Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

circuit

Fully qualified path: corelib_imports::circuit

Modules


Re-exports:

u384A 384-bit unsigned integer, used for circuit values.

AddInputResultThe result of filling an input in the circuit instance’s data. This enum represents the state of input filling process, indicating whether all inputs have been provided or more are needed.

u96A 96-bit unsigned integer type used as the basic building block for multi-limb arithmetic.

CircuitDefinitionA trait for defining a circuit’s structure and behavior. This trait is used to define the structure of a circuit, including its inputs,…
IntoCircuitInputValueTrait for converting a value to a circuit input value.
IntoU96GuaranteeTrait helper to convert a multi-limb guarantee to a U96Guarantee of the first pair of limbs that differ.

CircuitDataA type representing a circuit instance data with all the inputs added.
CircuitDescriptorA type representing a circuit descriptor.
CircuitInputAccumulatorType for accumulating inputs into the circuit instance’s data.
CircuitOutputsA type representing a circuit instance where the outputs are filled.
CircuitPartialOutputsA type representing a circuit instance where the outputs are partially filled as the evaluation of one of the inverse gates failed….
U96GuaranteeA value that is guaranteed to fit in a u96. The destructor of the type verifies that the value is indeed within the range of a u96.

add_circuit_inputFill an input in the circuit instance’s data.
circuit_failure_guarantee_verifyVerifies the guarantee in order to drop it.
eval_circuit—
get_circuit_descriptorReturns the descriptor for the circuit.
get_circuit_outputReturns the value of the circuit output, and a guarantee that the output is less than the modulus value.
init_circuit_dataInitializes the input data for running an instance of the circuit.
into_u96_guaranteeConverts ‘T’ into a ‘U96Guarantee’. ‘T’ must be a value that fits inside a u96, for example: u8, u96 or BoundedInt < 0, 12>.