pub trait KeyPair {
type SecretKey: RandomSecretKey;
type PublicKey: Debug + Clone + Decoy;
type PublicKeySize: ArraySize;
}Expand description
An elliptic curve key pair.
Creates a formal relationship between public and secret types.
Required Associated Types§
Sourcetype SecretKey: RandomSecretKey
type SecretKey: RandomSecretKey
An ECDH secret key.
Sourcetype PublicKeySize: ArraySize
type PublicKeySize: ArraySize
Bytes length of the public key