Trait safe_network::types::Encryption [−][src]
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