Skip to main content

TranscriptHistory

Trait TranscriptHistory 

Source
pub trait TranscriptHistory {
    type F;
    type State;

    // Required methods
    fn len(&self) -> usize;
    fn into_log(self) -> TranscriptLog<Self::F, Self::State>;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

fn len(&self) -> usize

Source

fn into_log(self) -> TranscriptLog<Self::F, Self::State>

Provided Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, P, const WIDTH: usize, const RATE: usize> TranscriptHistory for DuplexSpongeRecorder<F, P, WIDTH, RATE>

Source§

impl<F, P, const WIDTH: usize, const RATE: usize> TranscriptHistory for DuplexSpongeValidator<F, P, WIDTH, RATE>

Source§

impl<F, State> TranscriptHistory for ReadOnlyTranscript<'_, F, State>
where F: Clone, State: Clone,

Source§

type F = F

Source§

type State = State