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