Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_verifier_inputs.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Planned, auditors: [], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
14#include <vector>
15
16namespace acir_format {
17
24template <class Curve = bb::curve::BN254>
25void populate_field_elements_for_mock_commitments(std::vector<bb::fr>& fields, const size_t& num_commitments);
26
34template <class FF = bb::curve::BN254::ScalarField>
35void populate_field_elements(std::vector<bb::fr>& fields,
36 const size_t& num_elements,
38
44template <typename Flavor, class PublicInputs>
45bb::HonkProof create_mock_oink_proof(const size_t acir_public_inputs_size = 0);
46
51template <typename Flavor> bb::HonkProof create_mock_sumcheck_proof();
52
58
64template <typename Flavor, class PublicInputs> bb::HonkProof create_mock_hyper_nova_proof(bool include_fold = false);
65
70template <typename Flavor> bb::HonkProof create_mock_pcs_proof();
71
76template <typename Flavor> bb::HonkProof create_mock_decider_proof();
77
83template <typename Flavor, class PublicInputs>
84bb::HonkProof create_mock_honk_proof(const size_t acir_public_inputs_size = 0);
85
91
99template <typename Flavor>
101 size_t acir_public_inputs_size);
102
108
115
123
129
135template <typename Builder> bb::HonkProof create_mock_chonk_proof(const size_t acir_public_inputs_size = 0);
136
143template <typename Flavor, class PublicInputs>
145 const size_t acir_public_inputs_size = 0);
146
147} // namespace acir_format
MergeProver::MergeProof MergeProof
Definition goblin.hpp:40
HonkProof create_mock_honk_proof(const size_t acir_public_inputs_size)
Create a mock honk proof that has the correct structure but is not in general valid.
HonkProof create_mock_oink_proof(const size_t acir_public_inputs_size)
Create a mock oink proof that has the correct structure but is not in general valid.
void populate_field_elements(std::vector< fr > &fields, const size_t &num_elements, std::optional< FF > value)
Helper to populate a field buffer with some number of field elements.
HonkProof create_mock_chonk_proof(const size_t acir_public_inputs_size)
Create a mock Chonk proof which has the correct structure but is not necessarily valid.
Goblin::MergeProof create_mock_merge_proof()
Create a mock merge proof which has the correct structure but is not necessarily valid.
HonkProof create_mock_eccvm_proof()
Create a mock pre-ipa proof which has the correct structure but is not necessarily valid.
HonkProof create_mock_translator_proof()
Create a mock Translator proof which has the correct structure but is not necessarily valid.
void populate_field_elements_for_mock_commitments(std::vector< fr > &fields, const size_t &num_commitments)
Helper to populate a field buffer with fields corresponding to some number of mock commitment values.
HonkProof create_mock_hyper_nova_proof(bool include_fold)
Create a mock Hypernova proof that has the correct structure but is not in general valid.
HonkProof create_mock_decider_proof()
Create a mock decider proof that has the correct structure but is not in general valid.
HonkProof create_mock_multilinear_batch_proof()
Create a mock multilinear batching sumcheck proof that has the correct structure but is not in genera...
std::pair< HonkProof, std::shared_ptr< typename Flavor::VerificationKey > > construct_arbitrary_valid_honk_proof_and_vk(const size_t acir_public_inputs_size)
Create a valid honk proof and vk for a circuit with a single big add gate. Adds random public inputs ...
HonkProof create_mock_avm_proof_without_pub_inputs(const bool add_padding)
Create a mock AVM proof without public inputs that has the correct structure but is not in general va...
HonkProof create_mock_pcs_proof()
Create a mock PCS proof that has the correct structure but is not in general valid.
HonkProof create_mock_sumcheck_proof()
Create a mock sumcheck proof that has the correct structure but is not in general valid.
std::shared_ptr< typename Flavor::VerificationKey > create_mock_honk_vk(const size_t dyadic_size, const size_t acir_public_inputs_size)
Create a mock VK that has the correct structure.
HonkProof create_mock_ipa_proof()
Create a mock ipa proof which has the correct structure but is not necessarily valid.
std::vector< fr > HonkProof
Definition proof.hpp:15
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13