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] =
39 stdlib_opening_claim.set_public();
46 if constexpr (IsUltraOrMegaHonk<Flavor>) {
77 std::vector<DataType> vk_field_elements =
vk.to_field_elements();
79 for (
const auto& field_element : vk_field_elements) {
84 fr vk_hash_2 =
vk.hash();
85 EXPECT_EQ(vk_hash_1, vk_hash_2);
86 if constexpr (!IsAnyOf<Flavor, ECCVMFlavor, TranslatorFlavor>) {
89 fr vk_hash_3 =
vk.hash_through_transcript(
"", transcript_2);
90 EXPECT_EQ(vk_hash_2, vk_hash_3);
108 EXPECT_EQ(
vk.to_field_elements().size(), VerificationKey::VERIFICATION_KEY_LENGTH);
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...
DataType hash_independent_buffer()
Hashes the independent hash buffer and clears it.
void add_to_independent_hash_buffer(const std::string &label, const T &element)
Adds an element to an independent hash buffer.
TranscriptParams::DataType DataType
A DeciderProvingKey is normally constructed from a finalized circuit and it contains all the informat...
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
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.