Skip to main content

KeyPair

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

An ECDH secret key.

type PublicKey: Debug + Clone + Decoy

An ECDH public key.

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".

Implementors§