Trait narwhal_crypto::traits::SigningKey
[−]pub trait SigningKey: 'static + ToFromBytes + Serialize + DeserializeOwned + Send + Sync {
type PubKey: VerifyingKey
where
<Self::PubKey as VerifyingKey>::PrivKey == Self;
type Sig: Authenticator
where
<Self::Sig as 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
where
<Self::PubKey as VerifyingKey>::PrivKey == Self
type Sig: Authenticator
where
<Self::Sig as Authenticator>::PrivKey == Self
Required Associated Constants
Implementors
impl SigningKey for BLS12381PrivateKey
impl SigningKey for BLS12381PrivateKey
impl SigningKey for Ed25519PrivateKey
impl SigningKey for Ed25519PrivateKey
Implement SigningKey