Trait KeyPair
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§
type SecretKey: RandomSecretKey
type SecretKey: RandomSecretKey
An ECDH secret key.
type PublicKeySize: ArraySize
type PublicKeySize: ArraySize
Bytes length of the public key
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".