Skip to main content

HashTranscript

Type Alias HashTranscript 

Source
pub type HashTranscript<H = Sha512> = XofTranscript<DigestXof<H>>;
Expand description

Hash-based transcript using counter-mode expansion for fixed-output hashes.

The squeeze output is produced by hashing a seed with an incrementing counter, generating H::OutputSize bytes per block:

seed = H(label || absorbed_data)
block_i = H(seed || i.to_le_bytes())    for i = 0, 1, 2, ...

Aliased Typeยง

pub struct HashTranscript<H = Sha512> { /* private fields */ }