Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::crypto::Poseidon2Bn254ScalarFieldParams Struct Reference

#include <poseidon2_params.hpp>

Public Types

using FF = bb::fr
 

Static Public Attributes

static constexpr size_t t = 4
 
static constexpr size_t d = 5
 
static constexpr size_t rounds_f = 8
 
static constexpr size_t rounds_p = 56
 
static constexpr size_t sbox_size = 254
 
static constexpr std::array< FF, tinternal_matrix_diagonal
 
static constexpr std::array< std::array< FF, t >, tinternal_matrix
 
static constexpr std::array< std::array< FF, t >, rounds_f+rounds_pround_constants
 
static constexpr std::array< FF, tTEST_VECTOR_INPUT
 
static constexpr std::array< FF, tTEST_VECTOR_OUTPUT
 

Detailed Description

Definition at line 16 of file poseidon2_params.hpp.

Member Typedef Documentation

◆ FF

Member Data Documentation

◆ d

constexpr size_t bb::crypto::Poseidon2Bn254ScalarFieldParams::d = 5
staticconstexpr

Definition at line 20 of file poseidon2_params.hpp.

◆ internal_matrix

constexpr std::array<std::array<FF, t>, t> bb::crypto::Poseidon2Bn254ScalarFieldParams::internal_matrix
staticconstexpr
Initial value:
= {
std::array<FF, t>{
FF(std::string("0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
},
std::array<FF, t>{
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0c28145b6a44df3e0149b3d0a30b3bb599df9756d4dd9b84a86b38cfb45a740c")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
},
std::array<FF, t>{
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
},
std::array<FF, t>{
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c")),
},
}

Definition at line 31 of file poseidon2_params.hpp.

◆ internal_matrix_diagonal

constexpr std::array<FF, t> bb::crypto::Poseidon2Bn254ScalarFieldParams::internal_matrix_diagonal
staticconstexpr
Initial value:
= {
FF(std::string("0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e7")),
FF(std::string("0x0c28145b6a44df3e0149b3d0a30b3bb599df9756d4dd9b84a86b38cfb45a740b")),
FF(std::string("0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac15")),
FF(std::string("0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428b")),
}

Definition at line 24 of file poseidon2_params.hpp.

◆ round_constants

constexpr std::array<std::array<FF, t>, rounds_f + rounds_p> bb::crypto::Poseidon2Bn254ScalarFieldParams::round_constants
staticconstexpr

Definition at line 58 of file poseidon2_params.hpp.

◆ rounds_f

constexpr size_t bb::crypto::Poseidon2Bn254ScalarFieldParams::rounds_f = 8
staticconstexpr

Definition at line 21 of file poseidon2_params.hpp.

◆ rounds_p

constexpr size_t bb::crypto::Poseidon2Bn254ScalarFieldParams::rounds_p = 56
staticconstexpr

Definition at line 22 of file poseidon2_params.hpp.

◆ sbox_size

constexpr size_t bb::crypto::Poseidon2Bn254ScalarFieldParams::sbox_size = 254
staticconstexpr

Definition at line 23 of file poseidon2_params.hpp.

◆ t

constexpr size_t bb::crypto::Poseidon2Bn254ScalarFieldParams::t = 4
staticconstexpr

Definition at line 19 of file poseidon2_params.hpp.

◆ TEST_VECTOR_INPUT

constexpr std::array<FF, t> bb::crypto::Poseidon2Bn254ScalarFieldParams::TEST_VECTOR_INPUT
staticconstexpr
Initial value:
{
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000000")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000001")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000002")),
FF(std::string("0x0000000000000000000000000000000000000000000000000000000000000003")),
}

Definition at line 445 of file poseidon2_params.hpp.

◆ TEST_VECTOR_OUTPUT

constexpr std::array<FF, t> bb::crypto::Poseidon2Bn254ScalarFieldParams::TEST_VECTOR_OUTPUT
staticconstexpr
Initial value:
{
FF(std::string("0x01bd538c2ee014ed5141b29e9ae240bf8db3fe5b9a38629a9647cf8d76c01737")),
FF(std::string("0x239b62e7db98aa3a2a8f6a0d2fa1709e7a35959aa6c7034814d9daa90cbac662")),
FF(std::string("0x04cbb44c61d928ed06808456bf758cbf0c18d1e15a7b6dbc8245fa7515d5e3cb")),
FF(std::string("0x2e11c5cff2a22c64d01304b778d78f6998eff1ab73163a35603f54794c30847a")),
}

Definition at line 451 of file poseidon2_params.hpp.


The documentation for this struct was generated from the following file: