Trait tlsn_core::signing::Signer

source ·
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§

source

fn alg_id(&self) -> SignatureAlgId

Returns the algorithm used by this signer.

source

fn sign(&self, msg: &[u8]) -> Result<Signature, SignatureError>

Signs the message.

source

fn verifying_key(&self) -> VerifyingKey

Returns the verifying key for this signer.

Implementors§