Skip to main content

EncryptingKeypair

Trait EncryptingKeypair 

Source
pub trait EncryptingKeypair {
    type EncryptingKey: Clone;

    // Required method
    fn encrypting_key(&self) -> Self::EncryptingKey;
}
Expand description

Encryption keypair with an associated encryption key.

Required Associated Types§

Source

type EncryptingKey: Clone

Encrypting key type for this keypair.

Required Methods§

Source

fn encrypting_key(&self) -> Self::EncryptingKey

Get the encrypting key which can encrypt messages to be decrypted by the decryption key portion of this keypair.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§