pub trait Signer {
// Required methods
fn alg_id(&self) -> SignatureAlgId;
fn sign(&self, msg: &[u8]) -> Result<Signature, SignatureError>;
fn verifying_key(&self) -> VerifyingKey;
}
Expand description
Cryptographic signer.
Required Methods§
sourcefn alg_id(&self) -> SignatureAlgId
fn alg_id(&self) -> SignatureAlgId
Returns the algorithm used by this signer.
sourcefn verifying_key(&self) -> VerifyingKey
fn verifying_key(&self) -> VerifyingKey
Returns the verifying key for this signer.