Skip to main content

KeyPair

Trait KeyPair 

Source
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§

Source

type SecretKey: RandomSecretKey

An ECDH secret key.

Source

type PublicKey: Debug + Clone + Decoy

An ECDH public key.

Source

type PublicKeySize: ArraySize

Bytes length of the public key

Implementors§