Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
arithmetic_constraints.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  acir_format
 

Functions

template<typename Builder >
void acir_format::set_zero_idx (const Builder &builder, mul_quad_< typename Builder::FF > &mul_quad)
 Replace indices which are set to IS_CONSTANT with the zero index of the builder.
 
template<typename Builder >
void acir_format::check_mul_add_gate (Builder &builder, const mul_quad_< typename Builder::FF > &mul_quad, const typename Builder::FF next_wire_w4=Builder::FF::zero())
 Check if a mul add gate is valid.
 
template<typename Builder >
void acir_format::create_quad_constraint (Builder &builder, bb::mul_quad_< typename Builder::FF > &mul_quad)
 Create a simple width-4 Ultra arithmetic gate constraint representing the equation.
 
template<typename Builder >
void acir_format::create_big_quad_constraint (Builder &builder, std::vector< mul_quad_< typename Builder::FF > > &big_constraint)