Trait iop_keyvault::AsymmetricCrypto[][src]

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

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

Associated Types

type KeyId: Hash + Eq + Clone[src]

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

type PublicKey: PublicKey<Self>[src]

See PublicKey for more details.

type PrivateKey: PrivateKey<Self>[src]

See PrivateKey for more details.

type Signature: Clone[src]

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

Loading content...

Implementors

Loading content...