4#include <gtest/gtest.h>
12TEST(Poseidon2Permutation, TestVectors)
19 EXPECT_EQ(result, expected);
22TEST(Poseidon2Permutation, BasicTests)
44TEST(Poseidon2Permutation, ConsistencyCheck)
46 fr a(std::string(
"9a807b615c4d3e2fa0b1c2d3e4f56789fedcba9876543210abcdef0123456789"));
47 fr b(std::string(
"9a807b615c4d3e2fa0b1c2d3e4f56789fedcba9876543210abcdef0123456789"));
48 fr c(std::string(
"0x9a807b615c4d3e2fa0b1c2d3e4f56789fedcba9876543210abcdef0123456789"));
49 fr d(std::string(
"0x9a807b615c4d3e2fa0b1c2d3e4f56789fedcba9876543210abcdef0123456789"));
55 fr(std::string(
"0x2bf1eaf87f7d27e8dc4056e9af975985bccc89077a21891d6c7b6ccce0631f95")),
56 fr(std::string(
"0x0c01fa1b8d0748becafbe452c0cb0231c38224ea824554c9362518eebdd5701f")),
57 fr(std::string(
"0x018555a8eb50cf07f64b019ebaf3af3c925c93e631f3ecd455db07bbb52bbdd3")),
58 fr(std::string(
"0x0cbea457c91c22c6c31fd89afd2541efc2edf31736b9f721e823b2165c90fd41")),
60 EXPECT_EQ(result, expected);
static constexpr State permutation(const State &input)
Native form of Poseidon2 permutation from https://eprint.iacr.org/2023/323.
RNG & get_debug_randomness(bool reset, std::uint_fast64_t seed)
Entry point for Barretenberg command-line interface.
TEST(MegaCircuitBuilder, CopyConstructor)
field< Bn254FrParams > fr
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
static constexpr std::array< FF, t > TEST_VECTOR_OUTPUT
static constexpr std::array< FF, t > TEST_VECTOR_INPUT
static field random_element(numeric::RNG *engine=nullptr) noexcept