pub trait Keypair {
    type VerifyingKey: Clone;

    // Required method
    fn verifying_key(&self) -> Self::VerifyingKey;
}
Available on crate feature signature only.
Expand description

Signing keypair with an associated verifying key.

This represents a type which holds both a signing key and a verifying key.

Required Associated Types§

source

type VerifyingKey: Clone

Verifying key type for this keypair.

Required Methods§

source

fn verifying_key(&self) -> Self::VerifyingKey

Get the verifying key which can verify signatures produced by the signing key portion of this keypair.

Implementors§

source§

impl Keypair for ring_compat::signature::ed25519::SigningKey

source§

impl<C> Keypair for ring_compat::signature::ecdsa::SigningKey<C>where C: CurveAlg, FieldBytesSize<C>: ModulusSize, SignatureSize<C>: ArrayLength<u8>,

source§

impl<K> Keypair for Kwhere K: KeypairRef,