Skip to main content

Module gadget

Module gadget 

Source
Expand description

Range check gate

Re-exportsยง

use alloc::vec; ๐Ÿ”’
use alloc::vec; ๐Ÿ”’
use alloc::vec::Vec; ๐Ÿ”’
use ark_ff::FftField; ๐Ÿ”’
use ark_ff::PrimeField; ๐Ÿ”’
use crate::alphas::Alphas; ๐Ÿ”’
use crate::circuits::argument::Argument; ๐Ÿ”’
use crate::circuits::berkeley_columns::E; ๐Ÿ”’
use crate::circuits::expr::Cache; ๐Ÿ”’
use crate::circuits::gate::CircuitGate; ๐Ÿ”’
use crate::circuits::gate::Connect; ๐Ÿ”’
use crate::circuits::gate::GateType; ๐Ÿ”’
use crate::circuits::lookup; ๐Ÿ”’
use crate::circuits::lookup::tables::GateLookupTable; ๐Ÿ”’
use crate::circuits::lookup::tables::LookupTable; ๐Ÿ”’
use crate::circuits::wires::Wire; ๐Ÿ”’
use super::circuitgates::RangeCheck0; ๐Ÿ”’
use super::circuitgates::RangeCheck1; ๐Ÿ”’

Constantsยง

GATE_COUNT

Functionsยง

circuit_gate_constraint_count
Number of constraints for a given range check circuit gate type
circuit_gate_constraints
Get combined constraints for a given range check circuit gate type
circuit_gates
Get vector of range check circuit gate types
combined_constraints
Get the combined constraints for all range check circuit gate types
lookup_table
Get the range check lookup table