unseal_data

Function unseal_data 

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

Decrypts a data previously encrypted with seal_data.

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