Skip to main content

seal_data

Function seal_data 

Source
pub fn seal_data(
    _data: &[u8],
    _peer_id: PeerId,
) -> Result<Box<[u8]>, CryptoError>
Expand description

CURRENTLY NOT IMPLEMENTED, see https://github.com/hoprnet/hoprnet/issues/7172

Performs randomized encryption of the given data so that only the recipient with the given peer_id can decrypt it.