Skip to main content

RedactionHasher

Trait RedactionHasher 

Source
pub trait RedactionHasher {
    // Required methods
    fn algorithm(&self) -> Label;
    fn digest(&self, data: &[u8]) -> Vec<u8> ;
}
Expand description

Redaction hash algorithm used for Salted Disclosed Claims.

Required Methods§

Source

fn algorithm(&self) -> Label

Returns the COSE algorithm identifier advertised in sd_alg.

Source

fn digest(&self, data: &[u8]) -> Vec<u8>

Computes the digest of one bstr-encoded Salted Disclosed Claim.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§