openvm_sha2_circuit/sha2_chips/
mod.rs

1mod block_hasher_chip;
2mod config;
3mod execution;
4mod main_chip;
5mod trace;
6
7use std::marker::PhantomData;
8
9pub use block_hasher_chip::*;
10pub use main_chip::*;
11pub use trace::*;
12
13#[cfg(test)]
14mod test_utils;
15#[cfg(test)]
16mod tests;
17#[cfg(test)]
18pub use test_utils::*;
19
20#[derive(derive_new::new, Clone)]
21pub struct Sha2VmExecutor<C: Sha2Config> {
22    pub offset: usize,
23    pub pointer_max_bits: usize,
24    _phantom: PhantomData<C>,
25}
26
27// Indicates the message type of the interactions on the sha bus
28#[repr(u8)]
29pub enum MessageType {
30    State,
31    Message1,
32    Message2,
33}