Barretenberg
The ZK-SNARK library at the core of Aztec
|
stdlib class that evaluates in-circuit poseidon2 hashes, consistent with behavior in crypto::poseidon2 More...
#include <poseidon2.hpp>
Static Public Member Functions | |
static field_ct | hash (Builder &builder, const std::vector< field_ct > &in) |
Hash a vector of field_ct. | |
static field_ct | hash_buffer (Builder &builder, const stdlib::byte_array< Builder > &input) |
Private Types | |
using | field_ct = stdlib::field_t< Builder > |
using | bool_ct = stdlib::bool_t< Builder > |
using | Params = crypto::Poseidon2Bn254ScalarFieldParams |
using | Permutation = Poseidon2Permutation< Params, Builder > |
using | Sponge = FieldSponge< Params::t - 1, 1, Params::t, Permutation, Builder > |
stdlib class that evaluates in-circuit poseidon2 hashes, consistent with behavior in crypto::poseidon2
Builder |
Definition at line 23 of file poseidon2.hpp.
|
private |
Definition at line 27 of file poseidon2.hpp.
|
private |
Definition at line 26 of file poseidon2.hpp.
|
private |
Definition at line 28 of file poseidon2.hpp.
|
private |
Definition at line 29 of file poseidon2.hpp.
|
private |
Definition at line 31 of file poseidon2.hpp.
|
static |
Hash a vector of field_ct.
Definition at line 16 of file poseidon2.cpp.
|
static |