3#include "barretenberg/commitment_schemes/commitment_key.hpp"
4#include "barretenberg/polynomials/polynomial.hpp"
13 using Fr =
typename Curve::ScalarField;
19 bool operator==(
const OpeningPair& other)
const =
default;
28 using Fr =
typename Curve::ScalarField;
45 using Commitment =
typename Curve::AffineElement;
46 using Fr =
typename Curve::ScalarField;
52 Commitment commitment;
64 Fr real_eval =
polynomial.evaluate(opening_pair.challenge);
65 if (real_eval != opening_pair.evaluation) {
70 return (real_commitment == commitment);
73 bool operator==(
const OpeningClaim& other)
const =
default;
Definition: polynomial.hpp:12
CommitmentKey object over a pairing group 𝔾₁.
Definition: commitment_key.hpp:35
Unverified claim (C,r,v) for some witness polynomial p(X) such that.
Definition: claim.hpp:43
bool verify(std::shared_ptr< CK > ck, const barretenberg::Polynomial< Fr > &polynomial) const
inefficiently check that the claim is correct by recomputing the commitment and evaluating the polyno...
Definition: claim.hpp:62
Opening pair (r,v) for some witness polynomial p(X) such that p(r) = v.
Definition: claim.hpp:12
Polynomial p and an opening pair (r,v) such that p(r) = v.
Definition: claim.hpp:27
Provides interfaces for different 'CommitmentKey' classes.
Definition: claim.hpp:6