Expand description
Generic field element over a pluggable CircuitBuilder backend.
CircuitElem<F, B> is a field element that is either a known Constant or a Wire in a
CircuitBuilder B. The arithmetic-trait impls on CircuitElem are written once and
reused across all backends; each operation either folds constants at the F level or delegates
to the builder’s add/mul/hint/… on the wire type B::Wire. The backends are the frontend
builders themselves:
ConstraintBuilder— symbolic constraint recording (used byIronSpartanBuilderChannel).InstanceGenerator— reconstructs the public-input vector during verification (used byZKWrappedVerifierChannel).WitnessGenerator— concrete evaluation that fills a witness (used bybinius_spartan_prover::wrapper::ReplayChannel).
Enums§
- Circuit
Elem - A field element that is either a known constant or a wire in a
CircuitBuilderB.