Skip to main content

Module generic

Module generic 

Source
Expand description

This module implements the double generic gate.

Re-exportsยง

use alloc::string::String; ๐Ÿ”’
use alloc::vec; ๐Ÿ”’
use alloc::vec; ๐Ÿ”’
use alloc::vec::Vec; ๐Ÿ”’
use crate::circuits::argument::Argument; ๐Ÿ”’
use crate::circuits::argument::ArgumentEnv; ๐Ÿ”’
use crate::circuits::argument::ArgumentType; ๐Ÿ”’
use crate::circuits::berkeley_columns::BerkeleyChallengeTerm; ๐Ÿ”’
use crate::circuits::expr::constraints::ExprOps; ๐Ÿ”’
use crate::circuits::expr::Cache; ๐Ÿ”’
use crate::circuits::gate::CircuitGate; ๐Ÿ”’
use crate::circuits::gate::GateType; ๐Ÿ”’
use crate::circuits::polynomial::COLUMNS; ๐Ÿ”’
use crate::circuits::wires::GateWires; ๐Ÿ”’
use ark_ff::FftField; ๐Ÿ”’
use ark_ff::PrimeField; ๐Ÿ”’
use core::array; ๐Ÿ”’
use core::marker::PhantomData; ๐Ÿ”’
use crate::curve::KimchiCurve; ๐Ÿ”’
use crate::prover_index::ProverIndex; ๐Ÿ”’
use ark_ff::Zero; ๐Ÿ”’
use ark_poly::univariate::DensePolynomial; ๐Ÿ”’

Modulesยง

testing

Structsยง

Generic
Implementation of the Generic gate

Enumsยง

GenericGateSpec
The different type of computation that are possible with a generic gate. This type is useful to create a generic gate via the CircuitGate::create_generic_gadget function.

Constantsยง

CONSTRAINTS
Number of constraints produced by the gate.
DOUBLE_GENERIC_COEFFS
The double generic gate actually contains two generic gates.
DOUBLE_GENERIC_REGISTERS
Number of generic of registers by a double generic gate.
GENERIC_COEFFS
Number of coefficients used by a single generic gate Three are used for the registers, one for the multiplication, and one for the constant.
GENERIC_REGISTERS
Number of generic of registers by a single generic gate