Uses stored key material to encrypt a message encoded as u8a.
EncryptResponseData which additionally to the data contains a nonce randomly generated in the encryption process (required for decryption).
nonce
The data to be encrypted, the peers public key and the sender's DID.
Uses stored key material to encrypt a message encoded as u8a.
Returns
EncryptResponseData which additionally to the data contains a
nonce
randomly generated in the encryption process (required for decryption).