tlsn_core::signing

Trait SignatureVerifier

source
pub trait SignatureVerifier {
    // Required methods
    fn alg_id(&self) -> SignatureAlgId;
    fn verify(
        &self,
        key: &VerifyingKey,
        msg: &[u8],
        sig: &[u8],
    ) -> Result<(), SignatureError>;
}
Expand description

Signature verifier.

Required Methods§

source

fn alg_id(&self) -> SignatureAlgId

Returns the algorithm used by this verifier.

source

fn verify( &self, key: &VerifyingKey, msg: &[u8], sig: &[u8], ) -> Result<(), SignatureError>

Verifies the signature.

Implementors§