Trait LogupHelpers

Source
pub trait LogupHelpers<F: One + Debug + Zero>
where Self: Interpreter<F>,
{ // Provided methods fn lookup_rc16(&mut self, flag: Self::Variable, value: Self::Variable) { ... } fn lookup_reset( &mut self, flag: Self::Variable, dense: Self::Variable, sparse: Self::Variable, ) { ... } fn lookup_sparse(&mut self, flag: Self::Variable, value: Self::Variable) { ... } fn lookup_byte(&mut self, flag: Self::Variable, value: Self::Variable) { ... } fn lookup_pad(&mut self, flag: Self::Variable, value: Vec<Self::Variable>) { ... } fn lookup_round_constants( &mut self, flag: Self::Variable, value: Vec<Self::Variable>, ) { ... } fn read_syscall(&mut self, flag: Self::Variable, value: Vec<Self::Variable>) { ... } fn write_syscall( &mut self, flag: Self::Variable, value: Vec<Self::Variable>, ) { ... } }
Expand description

This trait contains helper functions for the lookups used in the Keccak circuit using the zkVM lookup tables

Provided Methods§

Source

fn lookup_rc16(&mut self, flag: Self::Variable, value: Self::Variable)

Adds a lookup to the RangeCheck16 table

Source

fn lookup_reset( &mut self, flag: Self::Variable, dense: Self::Variable, sparse: Self::Variable, )

Adds a lookup to the Reset table

Source

fn lookup_sparse(&mut self, flag: Self::Variable, value: Self::Variable)

Adds a lookup to the Shift table

Source

fn lookup_byte(&mut self, flag: Self::Variable, value: Self::Variable)

Adds a lookup to the Byte table

Source

fn lookup_pad(&mut self, flag: Self::Variable, value: Vec<Self::Variable>)

Adds a lookup to the Pad table

Source

fn lookup_round_constants( &mut self, flag: Self::Variable, value: Vec<Self::Variable>, )

Adds a lookup to the RoundConstants table

Source

fn read_syscall(&mut self, flag: Self::Variable, value: Vec<Self::Variable>)

Source

fn write_syscall(&mut self, flag: Self::Variable, value: Vec<Self::Variable>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F: Field> LogupHelpers<F> for o1vm::interpreters::keccak::constraints::Env<F>

Source§

impl<F: Field> LogupHelpers<F> for o1vm::interpreters::keccak::witness::Env<F>