11#include <gtest/gtest.h>
15#ifdef STARKNET_GARAGA_FLAVORS
25 testing::Types<UltraFlavor, UltraKeccakFlavor, UltraRollupFlavor, MegaFlavor, ECCVMFlavor, TranslatorFlavor>;
36 if constexpr (HasIPAAccumulator<Flavor>) {
37 auto [stdlib_opening_claim, ipa_proof] =
40 stdlib_opening_claim.set_public();
47 if constexpr (IsUltraOrMegaHonk<Flavor>) {
78 std::vector<DataType> vk_field_elements =
vk.to_field_elements();
80 for (
const auto& field_element : vk_field_elements) {
85 fr vk_hash_2 =
vk.hash();
86 EXPECT_EQ(vk_hash_1, vk_hash_2);
87 if constexpr (!IsAnyOf<Flavor, ECCVMFlavor, TranslatorFlavor>) {
90 fr vk_hash_3 =
vk.hash_through_transcript(
"", transcript_2);
91 EXPECT_EQ(vk_hash_2, vk_hash_3);
109 EXPECT_EQ(
vk.to_field_elements().size(), VerificationKey::calc_num_data_types());
typename Flavor::CircuitBuilder Builder
static void SetUpTestSuite()
VerificationKey create_vk()
void set_default_pairing_points_and_ipa_claim_and_proof(typename Flavor::CircuitBuilder &builder)
typename Flavor::VerificationKey VerificationKey
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
typename Codec::DataType DataType
void add_to_independent_hash_buffer(const std::string &label, const T &element)
Adds an element to an independent hash buffer.
DataType hash_independent_buffer()
Hashes the independent hash buffer and clears it.
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) pol...
IPA (inner product argument) commitment scheme class.
The verification key is responsible for storing the commitments to the precomputed (non-witness) poly...
NativeTranscript Transcript
MegaCircuitBuilder CircuitBuilder
A ProverInstance is normally constructed from a finalized circuit and it contains all the information...
UltraKeccakFlavor::VerificationKey VerificationKey
std::filesystem::path bb_crs_path()
void init_file_crs_factory(const std::filesystem::path &path)
Entry point for Barretenberg command-line interface.
TYPED_TEST_SUITE(ShpleminiTest, TestSettings)
TYPED_TEST(ShpleminiTest, CorrectnessOfMultivariateClaimBatching)
VerifierCommitmentKey< Curve > vk
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
static void add_default_to_public_inputs(Builder &builder)
Adds default public inputs to the builder.