9#include <gtest/gtest.h>
24 witness_values.push_back(0);
26 cycle_group_ct input_point(
g1);
28 cycle_group_ct result = input_point.dbl();
30 witness_values.push_back(
g1.x);
31 witness_values.push_back(
g1.y);
32 witness_values.push_back(
g1.x);
33 witness_values.push_back(
g1.y);
34 witness_values.push_back(result.x.get_value());
35 witness_values.push_back(result.y.get_value());
36 witness_values.push_back(
fr(0));
37 witness_values.push_back(
fr(0));
38 ec_add_constraint =
EcAdd{
49 return witness_values.size();
54 EcAdd ec_add_constraint;
60 .
varnum =
static_cast<uint32_t
>(num_variables + 1),
61 .num_acir_opcodes = 1,
63 .ec_add_constraints = { ec_add_constraint },
68 AcirProgram program{ constraint_system, witness_values };
79 witness_values.emplace_back(
fr(0));
86 fr(
"0x0000000000000002cf135e7506a45d632d270d45f1181294833fc48d823f272c"),
92 fr(
"0x06ce1b0827aafa85ddeb49cdaa36306d19a74caa311e13d46d8bc688cdbffffe"),
93 fr(
"0x1c122f81a3a14964909ede0ba2a6855fc93faf6fa1a788bf467be7e7a43f80ac"),
100 .is_constant =
false,
105 .is_constant =
false,
110 .is_constant =
false,
115 .is_constant =
false,
120 .is_constant =
false,
125 .is_constant =
false,
130 .is_constant =
false,
135 .is_constant =
false,
140 .is_constant =
false,
145 .is_constant =
false,
149 .out_point_is_infinite = 0,
151 auto res_x =
fr(
"0x06ce1b0827aafa85ddeb49cdaa36306d19a74caa311e13d46d8bc688cdbffffe");
163 size_t num_variables = witness_values.size();
165 .
varnum =
static_cast<uint32_t
>(num_variables + 1),
166 .num_acir_opcodes = 1,
168 .multi_scalar_mul_constraints = { msm_constrain },
169 .poly_triple_constraints = { assert_equal },
174 AcirProgram program{ constraint_system, witness_values };
static bool check(const Builder &circuit)
Check the witness satisifies the circuit.
group class. Represents an elliptic curve group element. Group is parametrised by Fq and Fr
static constexpr affine_element affine_one
cycle_group represents a group Element of the proving system's embedded curve i.e....
std::filesystem::path bb_crs_path()
void init_file_crs_factory(const std::filesystem::path &path)
TEST_F(IPATest, ChallengesAreZero)
static constexpr field neg_one()