Trait narwhal_crypto::traits::Authenticator
[−]pub trait Authenticator: 'static + Signature + Display + Default + Serialize + DeserializeOwned + Send + Sync + Clone {
type PubKey: VerifyingKey
where
<Self::PubKey as VerifyingKey>::Sig == Self;
type PrivKey: SigningKey
where
<Self::PrivKey as SigningKey>::Sig == Self;
const LENGTH: usize;
}
Expand description
Trait impl’d by signatures in asymmetric cryptography.
The trait bounds are implemented so as to be symmetric and equivalent to the ones on its associated types for private key and public key material.
Required Associated Types
type PubKey: VerifyingKey
where
<Self::PubKey as VerifyingKey>::Sig == Self
type PrivKey: SigningKey
where
<Self::PrivKey as SigningKey>::Sig == Self
Required Associated Constants
Implementors
impl Authenticator for BLS12381Signature
impl Authenticator for BLS12381Signature
impl Authenticator for Ed25519Signature
impl Authenticator for Ed25519Signature
Implement Authenticator