Barretenberg
The ZK-SNARK library at the core of Aztec
|
stdlib class that evaluates in-circuit pedersen hashes, consistent with behavior in crypto::pedersen_hash More...
#include <pedersen.hpp>
Static Public Member Functions | |
static field_ct | hash (const std::vector< field_ct > &in, GeneratorContext context={}) |
static field_ct | hash_skip_field_validation (const std::vector< field_ct > &in, GeneratorContext context={}) |
static field_ct | hash_buffer (const stdlib::byte_array< Builder > &input, GeneratorContext context={}) |
Hash a byte_array. | |
Private Types | |
using | field_ct = stdlib::field_t< Builder > |
using | bool_t = stdlib::bool_t< Builder > |
using | EmbeddedCurve = typename cycle_group< Builder >::Curve |
using | GeneratorContext = crypto::GeneratorContext< EmbeddedCurve > |
using | cycle_group = stdlib::cycle_group< Builder > |
stdlib class that evaluates in-circuit pedersen hashes, consistent with behavior in crypto::pedersen_hash
Builder |
Definition at line 23 of file pedersen.hpp.
|
private |
Definition at line 27 of file pedersen.hpp.
|
private |
Definition at line 30 of file pedersen.hpp.
|
private |
Definition at line 28 of file pedersen.hpp.
|
private |
Definition at line 26 of file pedersen.hpp.
|
private |
Definition at line 29 of file pedersen.hpp.
|
static |
Definition at line 15 of file pedersen.cpp.
|
static |
Hash a byte_array.
TODO(@zac-williamson #2796) Once Poseidon is implemented, replace this method with a more canonical hash algorithm (that is less efficient)
Definition at line 67 of file pedersen.cpp.
|
static |
Definition at line 37 of file pedersen.cpp.