Skip to main content

KeyPair

Trait KeyPair 

pub trait KeyPair: PartialEq {
    type SecretKey: RandomSecretKey;
    type PublicKey: Debug + Clone + Decoy + PartialEq;
    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 + PartialEq

An ECDH public key.

type PublicKeySize: ArraySize

Bytes length of the public key

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§