Barretenberg
The ZK-SNARK library at the core of Aztec
|
Unverified claim (C,r,v) for some witness polynomial p(X) such that. More...
#include <claim.hpp>
Public Types | |
using | Builder = std::conditional_t< std::is_same_v< Curve, stdlib::grumpkin< UltraCircuitBuilder > >, UltraCircuitBuilder, void > |
Public Member Functions | |
uint32_t | set_public () |
Set the witness indices for the opening claim to public. | |
auto | get_native_opening_claim () const |
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 polynomial in r. | |
bool | operator== (const OpeningClaim &other) const =default |
Static Public Member Functions | |
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. | |
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. | |
Public Attributes | |
OpeningPair< Curve > | opening_pair |
Commitment | commitment |
Static Public Attributes | |
static constexpr bool | IS_GRUMPKIN |
static constexpr size_t | PUBLIC_INPUTS_SIZE = IS_GRUMPKIN ? GRUMPKIN_OPENING_CLAIM_SIZE : INVALID_PUBLIC_INPUTS_SIZE |
Private Types | |
using | CK = CommitmentKey< Curve > |
using | Commitment = typename Curve::AffineElement |
using | Fr = typename Curve::ScalarField |
Unverified claim (C,r,v) for some witness polynomial p(X) such that.
Params | for the given commitment scheme |
using bb::OpeningClaim< Curve >::Builder = std::conditional_t<std::is_same_v<Curve, stdlib::grumpkin<UltraCircuitBuilder> >, UltraCircuitBuilder, void> |
|
private |
|
private |
|
private |
|
inline |
|
default |
|
inlinestatic |
Reconstruct a native opening claim from native field elements.
|
inlinestatic |
|
inline |
|
inline |
inefficiently check that the claim is correct by recomputing the commitment and evaluating the polynomial in r.
ck | CommitmentKey used |
polynomial | the claimed witness polynomial p(X) |
Commitment bb::OpeningClaim< Curve >::commitment |
|
staticconstexpr |
OpeningPair<Curve> bb::OpeningClaim< Curve >::opening_pair |
|
staticconstexpr |