logo
pub trait Encryption: Sync + Send {
    fn public_key(&self) -> &PublicKey;
fn encrypt(&self, bytes: Bytes) -> Result<Bytes>;
fn decrypt(&self, encrypted_data: Bytes) -> Result<Bytes>; }
Expand description

Ability to encrypt and decrypt bytes

Required methods

Implementors