Signator

Trait Signator 

Source
pub trait Signator: Debug {
    type PublicKey: PublicKey;

    // Required methods
    fn public_key(&self) -> Self::PublicKey;
    fn sign(&self, message: &[u8]) -> <Self::PublicKey as PublicKey>::Signature;
}
Expand description

Define the operations that can be performed on a cryptographic signator.

Required Associated Types§

Source

type PublicKey: PublicKey

PublicKey type of associated cryptosystem.

Required Methods§

Source

fn public_key(&self) -> Self::PublicKey

Get PublicKey

Source

fn sign(&self, message: &[u8]) -> <Self::PublicKey as PublicKey>::Signature

Sign a message with private key encasuled in signator.

Implementors§

Source§

impl Signator for SignatorEnum

Source§

impl Signator for dup_crypto::keys::ed25519::bip32::Signator

Source§

impl Signator for dup_crypto::keys::ed25519::Signator