Trait iop_keyvault::AsymmetricCrypto
source · [−]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.
type PrivateKey: PrivateKey<Self>
type PrivateKey: PrivateKey<Self>
See PrivateKey
for more details.