pub trait HasherChip<const CHUNK: usize, F: Field>: Hasher<CHUNK, F> {
// Required method
fn compress_and_record(
&mut self,
left: &[F; CHUNK],
right: &[F; CHUNK],
) -> [F; CHUNK];
// Provided method
fn hash_and_record(&mut self, values: &[F; CHUNK]) -> [F; CHUNK] { ... }
}
Required Methods§
Sourcefn compress_and_record(
&mut self,
left: &[F; CHUNK],
right: &[F; CHUNK],
) -> [F; CHUNK]
fn compress_and_record( &mut self, left: &[F; CHUNK], right: &[F; CHUNK], ) -> [F; CHUNK]
Stateful version of hash
for recording the event in the chip.