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§
Required Methods§
Sourcefn public_key(&self) -> Self::PublicKey
fn public_key(&self) -> Self::PublicKey
Get PublicKey