Trait iota_types::crypto::Authenticator

pub trait Authenticator:
    ToFromBytes
    + Display
    + Serialize
    + DeserializeOwned
    + Send
    + Sync
    + 'static
    + Clone {
    type PubKey: VerifyingKey<Sig = Self>;
    type PrivKey: 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<Sig = Self>

type PrivKey: SigningKey<Sig = Self>

Required Associated Constants§

const LENGTH: usize

Object Safety§

This trait is not object safe.

Implementors§

§

impl Authenticator for BLS12381Signature

§

type PubKey = BLS12381PublicKey

§

type PrivKey = BLS12381PrivateKey

§

const LENGTH: usize = 48usize

§

impl Authenticator for BLS12381Signature

§

type PubKey = BLS12381PublicKey

§

type PrivKey = BLS12381PrivateKey

§

const LENGTH: usize = 96usize

§

impl Authenticator for Ed25519Signature

§

type PubKey = Ed25519PublicKey

§

type PrivKey = Ed25519PrivateKey

§

const LENGTH: usize = 64usize

§

impl Authenticator for Secp256k1Signature

§

type PubKey = Secp256k1PublicKey

§

type PrivKey = Secp256k1PrivateKey

§

const LENGTH: usize = 64usize

§

impl Authenticator for Secp256r1Signature

§

type PubKey = Secp256r1PublicKey

§

type PrivKey = Secp256r1PrivateKey

§

const LENGTH: usize = 64usize