hopr_crypto_types::seal

Function unseal_data

Source
pub fn unseal_data(data: &[u8], keypair: &OffchainKeypair) -> Result<Box<[u8]>>
Expand description

Decrypts a data previously encrypted with seal_data.

The given keypair must correspond to the peer_id given during encryption.