Trait flexible_transcript::Transcript
source · pub trait Transcript {
type Challenge: Clone + Send + Sync + AsRef<[u8]>;
fn new(name: &'static [u8]) -> Self;
fn domain_separate(&mut self, label: &'static [u8]);
fn append_message<M: AsRef<[u8]>>(&mut self, label: &'static [u8], message: M);
fn challenge(&mut self, label: &'static [u8]) -> Self::Challenge;
fn rng_seed(&mut self, label: &'static [u8]) -> [u8; 32];
}Required Associated Types
Required Methods
sourcefn domain_separate(&mut self, label: &'static [u8])
fn domain_separate(&mut self, label: &'static [u8])
Apply a domain separator to the transcript.
sourcefn append_message<M: AsRef<[u8]>>(&mut self, label: &'static [u8], message: M)
fn append_message<M: AsRef<[u8]>>(&mut self, label: &'static [u8], message: M)
Append a message to the transcript.
Implementors
sourceimpl Transcript for MerlinTranscript
Available on crate feature merlin only.
impl Transcript for MerlinTranscript
Available on crate feature
merlin only.