pub trait AsymmetricCrypto {
    type KeyId: Hash + Eq + Clone;
    type PublicKey: PublicKey<Self>;
    type PrivateKey: PrivateKey<Self>;
    type Signature: Clone;
}
Expand description

An implementation of this trait defines a family of types that fit together perfectly to form a cryptography using asymmetric keypairs.

Required Associated Types

The ID (also called fingerprint or address in some literature) of the public key. See PublicKey::key_id for more details.

See PublicKey for more details.

See PrivateKey for more details.

The signature of a given message with a given private key. Its size and representation is up to the implementation.

Implementors