pub trait CanObserve<T> {
// Required method
fn observe(&mut self, value: T);
// Provided method
fn observe_slice(&mut self, values: &[T])
where T: Clone { ... }
}Expand description
A generic trait for absorbing elements into the transcript.
Absorbed elements update the internal sponge state, preparing it to deterministically produce future challenges.
Required Methods§
Provided Methods§
Sourcefn observe_slice(&mut self, values: &[T])where
T: Clone,
fn observe_slice(&mut self, values: &[T])where
T: Clone,
Absorb a slice of values into the transcript.