[−][src]Trait dup_crypto::keys::Signator
Define the operations that can be performed on a cryptographic signator.
Associated Types
type Signature: Signature
Signature type of associated cryptosystem.
type PublicKey: PublicKey
PublicKey type of associated cryptosystem.
Required methods
fn public_key(&self) -> Self::PublicKey
Get PublicKey
fn sign(&self, message: &[u8]) -> Self::Signature
Sign a message with private key encasuled in signator.