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
13#include <vector>
14
15namespace acir_format {
16
23template <class Curve = bb::curve::BN254>
24void populate_field_elements_for_mock_commitments(std::vector<bb::fr>& fields, const size_t& num_commitments);
25
33template <class FF = bb::curve::BN254::ScalarField>
34void populate_field_elements(std::vector<bb::fr>& fields,
35 const size_t& num_elements,
37
43template <typename Flavor, class PublicInputs>
44bb::HonkProof create_mock_oink_proof(const size_t acir_public_inputs_size = 0);
45
50template <typename Flavor> bb::HonkProof create_mock_sumcheck_proof();
51
57
63template <typename Flavor, class PublicInputs> bb::HonkProof create_mock_hyper_nova_proof(bool include_fold = false);
64
69template <typename Flavor> bb::HonkProof create_mock_pcs_proof();
70
75template <typename Flavor> bb::HonkProof create_mock_decider_proof();
76
82template <typename Flavor, class PublicInputs>
83bb::HonkProof create_mock_honk_proof(const size_t acir_public_inputs_size = 0);
84
92template <typename Flavor>
94 size_t acir_public_inputs_size);
95
101
108
116
122
128template <typename Builder> bb::HonkProof create_mock_chonk_proof(const size_t acir_public_inputs_size = 0);
129
137template <typename Flavor, class PublicInputs>
139 const size_t pub_inputs_offset,
140 const size_t acir_public_inputs_size = 0);
141
142} // namespace acir_format
MergeProver::MergeProof MergeProof
Definition goblin.hpp:34
std::shared_ptr< typename Flavor::VerificationKey > create_mock_honk_vk(const size_t dyadic_size, const size_t pub_inputs_offset, const size_t acir_public_inputs_size)
Create a mock VK that has the correct structure.
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_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.
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