74 auto inner_verification_key =
76 InnerProver inner_prover(inner_proving_key, inner_verification_key);
79 auto stdlib_vk_and_hash =
88 auto native_result = native_verifier.template verify_proof<NativeIO>(inner_proof);
90 throw std::runtime_error(
"Inner proof verification failed");
93 StdlibProof stdlib_inner_proof(outer_circuit, inner_proof);
94 VerifierOutput output = verifier.template verify_proof<OuterIO>(stdlib_inner_proof);
A DeciderProvingKey is normally constructed from a finalized circuit and it contains all the informat...
Manages the data that is propagated on the public inputs of an application/function circuit.
typename InnerFlavor::CircuitBuilder InnerBuilder
static OuterBuilder generate(uint256_t inputs[])
Generate a recursive circuit.
typename RecursiveVerifier::VerificationKey VerificationKey
bb::stdlib::public_witness_t< OuterBuilder > public_witness_ct
InnerFlavor::Commitment InnerCommitment
typename RecursiveFlavor::CircuitBuilder OuterBuilder
static InnerBuilder create_inner_circuit(uint256_t inputs[])
Create a inner circuit object. In this case an extremely simple circuit that just adds two numbers.
Curve::AffineElement Commitment
UltraCircuitBuilder CircuitBuilder
The recursive counterpart to the "native" Ultra flavor.
BuilderType CircuitBuilder
std::shared_ptr< Transcript > transcript
A simple wrapper around a vector of stdlib field elements representing a proof.
void assert_equal(const field_t &rhs, std::string const &msg="field_t::assert_equal") const
Copy constraint: constrain that *this field is equal to rhs element.
Manages the data that is propagated on the public inputs of an application/function circuit.
static void add_default(Builder &builder)
Add default public inputs when they are not present.
typename Flavor::VerificationKey VerificationKey
std::shared_ptr< Transcript > transcript
Base class templates for structures that contain data parameterized by the fundamental polynomials of...
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
uint32_t set_public()
Set the witness indices for the limbs of the pairing points to public.
PairingPoints< Builder > points_accumulator