5#include <gtest/gtest.h>
21 auto srs =
ck.get_monomial_points();
22 return PP(srs[1], -srs[0]);
30 EXPECT_EQ(pp.P0(), Point::infinity());
31 EXPECT_EQ(pp.P1(), Point::infinity());
38 EXPECT_TRUE(pp.check());
44 PP pp = make_valid_pairing_points();
45 EXPECT_TRUE(pp.check());
51 Point
G = Point::one();
53 EXPECT_FALSE(pp.check());
60 PP other = make_valid_pairing_points();
62 EXPECT_EQ(acc.P0(), other.P0());
63 EXPECT_EQ(acc.P1(), other.P1());
69 PP acc = make_valid_pairing_points();
70 PP other = make_valid_pairing_points();
72 EXPECT_TRUE(acc.check());
78 PP acc = make_valid_pairing_points();
80 EXPECT_THROW(acc.aggregate(empty), std::runtime_error);
CommitmentKey object over a pairing group 𝔾₁.
PairingPoints< Curve > PP
Curve::AffineElement Point
static PP make_valid_pairing_points()
static void SetUpTestSuite()
An object storing two EC points that represent the inputs to a pairing check.
typename Group::affine_element AffineElement
#define G(r, i, a, b, c, d)
std::filesystem::path bb_crs_path()
void init_file_crs_factory(const std::filesystem::path &path)
Entry point for Barretenberg command-line interface.
TEST_F(IPATest, ChallengesAreZero)
CommitmentKey< Curve > ck