pub trait SigningKey: ToFromBytes + Serialize + DeserializeOwned + Send + Sync + 'static {
    type PubKey: VerifyingKey<PrivKey = Self>;
    type Sig: Authenticator<PrivKey = Self>;

    const LENGTH: usize;
}
Expand description

Trait impl’d by private (secret) keys in asymmetric cryptography.

The trait bounds are implemented so as to be symmetric and equivalent to the ones on its associated types for public key and signature material.

Required Associated Types§

type PubKey: VerifyingKey<PrivKey = Self>

type Sig: Authenticator<PrivKey = Self>

Required Associated Constants§

const LENGTH: usize

Object Safety§

This trait is not object safe.

Implementors§

§

impl SigningKey for BLS12381PrivateKey

§

type PubKey = BLS12381PublicKey

§

type Sig = BLS12381Signature

§

const LENGTH: usize = 32usize

§

impl SigningKey for BLS12381PrivateKey

§

type PubKey = BLS12381PublicKey

§

type Sig = BLS12381Signature

§

const LENGTH: usize = 32usize

§

impl SigningKey for Ed25519PrivateKey

§

type PubKey = Ed25519PublicKey

§

type Sig = Ed25519Signature

§

const LENGTH: usize = 32usize

§

impl SigningKey for Secp256k1PrivateKey

§

type PubKey = Secp256k1PublicKey

§

type Sig = Secp256k1Signature

§

const LENGTH: usize = 32usize

§

impl SigningKey for Secp256r1PrivateKey

§

type PubKey = Secp256r1PublicKey

§

type Sig = Secp256r1Signature

§

const LENGTH: usize = 32usize