Module circuit

Source

Structs§

AddCircuitInputLibFuncWrapped
libfunc for adding an input in the circuit instance’s data.
AddModGate
Represents the action of adding two fields elements in the circuits builtin.
AddModType
Type for add mod builtin.
Circuit
A type that creates a circuit from a tuple of outputs.
CircuitData
A type representing a circuit instance data with all the inputs added.
CircuitDescriptor
A type representing the circuit add and mul tables.
CircuitFailureGuarantee
A type whose destruction guarantees that the circuit instance invocation failed.
CircuitFailureGuaranteeVerifyLibFunc
Verifies the circuit evaluation has failed.
CircuitInfo
Describes a circuit in the program.
CircuitInput
Circuit input type.
CircuitInputAccumulator
Type for accumulating inputs into the circuit instance’s data.
CircuitModulus
A type that can be used as a circuit modulus (a u384 that is not zero or one)
CircuitOutputs
A type representing a circuit instance where the outputs is filled.
CircuitPartialOutputs
A type representing a circuit instance where the outputs are partially filled as the evaluation of one of the inverse gates failed.
ConcreteCircuit
ConcreteCircuitInput
Defines an input for a circuit.
ConcreteGetOutputLibFunc
Struct the data for a multi pop action.
ConcreteU96LimbsLessThanGuarantee
ConcreteU96LimbsLessThanGuaranteeVerifyLibfunc
EvalCircuitLibFuncWrapped
A zero-input function that returns an handle to the offsets of a circuit.
GateOffsets
Describes the offset that define a gate in a circuit.
GetCircuitDescriptorLibFuncWrapped
A zero-input function that returns an handle to the offsets of a circuit.
GetOutputLibFunc
Libfunc for getting an output of a circuit.
InitCircuitDataLibFuncWrapped
Libfunc for initializing the input data for running an instance of the circuit.
IntoU96GuaranteeLibFuncWrapped
Converts ‘T’ into a ‘U96Guarantee’. ‘T’ must be a value that fits inside a u96, for example: u8, u96 or BoundedInt<0, 12>.
InverseGate
Represents the action of computing the inverse of a fields element in the circuits builtin.
MulModGate
Represents the action of multiplying two fields elements in the circuits builtin.
MulModType
Type for mul mod builtin.
SubModGate
TryIntoCircuitModulusLibFunc
Libfunc for checking whether the given u384 (given as 4 limbs of u96) is zero.
U96Guarantee
A value that is guaranteed to fit in a u96. This value can only be dropped by being written to a 96bit range check.
U96GuaranteeVerifyLibFunc
Libfunc for verifying and dropping a U96Guarantee.
U96LimbsLessThanGuarantee
A type whose destruction guarantees that u96-limbs based value is smaller than another.
U96LimbsLessThanGuaranteeVerifyLibfunc
Verifies that numbers with u96 limbs are one larger than the other.
U96SingleLimbLessThanGuaranteeVerifyLibfunc
Verifies that numbers with a single u96 limb are one larger than the other.

Enums§

CircuitConcreteLibfunc
CircuitLibFunc
CircuitType
CircuitTypeConcrete

Constants§

MOD_BUILTIN_INSTANCE_SIZE
The size of the AddMod and MulMod builtin instances.
OFFSETS_PER_GATE
A gate is defined by 3 offsets, the first two are the inputs and the third is the output.
ONE_OFFSET
The offset of the values in the values array.
VALUE_SIZE
The number of limbs used to represent a single value in the circuit.

Type Aliases§

AddCircuitInputLibFunc
EvalCircuitLibFunc
GetCircuitDescriptorLibFunc
InitCircuitDataLibFunc
IntoU96GuaranteeLibFunc