79 uint32_t start_idx =
opening_pair.challenge.set_public();
96 const size_t COMMITMENT_SIZE = Commitment::PUBLIC_INPUTS_SIZE;
103 auto commitment = Commitment::reconstruct_from_public(commitment_limbs);
117 const size_t COMMITMENT_SIZE = Commitment::PUBLIC_INPUTS_SIZE;
130 requires(
Curve::is_stdlib_type)
153 auto real_commitment =
ck->commit(polynomial);
CommitmentKey object over a pairing group 𝔾₁.
Unverified claim (C,r,v) for some witness polynomial p(X) such that.
static OpeningClaim< Curve > reconstruct_from_public(const std::span< const stdlib::field_t< Builder >, PUBLIC_INPUTS_SIZE > &limbs)
Reconstruct an opening claim from limbs stored on the public inputs.
bool verify(std::shared_ptr< CK > ck, const bb::Polynomial< Fr > &polynomial) const
inefficiently check that the claim is correct by recomputing the commitment and evaluating the polyno...
static OpeningClaim< Curve > reconstruct_from_public(const std::span< const bb::fr, PUBLIC_INPUTS_SIZE > &limbs)
Reconstruct a native opening claim from native field elements.
OpeningPair< Curve > opening_pair
std::conditional_t< std::is_same_v< Curve, stdlib::grumpkin< UltraCircuitBuilder > >, UltraCircuitBuilder, void > Builder
auto get_native_opening_claim() const
static constexpr bool IS_GRUMPKIN
static constexpr size_t PUBLIC_INPUTS_SIZE
bool operator==(const OpeningClaim &other) const =default
uint32_t set_public()
Set the witness indices for the opening claim to public.
typename Curve::AffineElement Commitment
typename Curve::ScalarField Fr
Opening pair (r,v) for some witness polynomial p(X) such that p(r) = v.
typename Curve::ScalarField Fr
bool operator==(const OpeningPair &other) const =default
Structured polynomial class that represents the coefficients 'a' of a_0 + a_1 x .....
Fr evaluate(const Fr &z, size_t target_size) const
Polynomial p and an opening pair (r,v) such that p(r) = v.
OpeningPair< Curve > opening_pair
typename Curve::ScalarField Fr
typename Group::affine_element AffineElement
Entry point for Barretenberg command-line interface.
UltraCircuitBuilder_< UltraExecutionTraceBlocks > UltraCircuitBuilder
CommitmentKey< Curve > ck
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
An accumulator consisting of the Shplonk evaluation challenge and vectors of commitments and scalars.
Curve::ScalarField evaluation_point
std::vector< typename Curve::AffineElement > commitments
std::vector< typename Curve::ScalarField > scalars
static constexpr size_t PUBLIC_INPUTS_SIZE
static field reconstruct_from_public(const std::span< const field< V >, PUBLIC_INPUTS_SIZE > &limbs)