|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Static Public Member Functions | |
| static field_ct | w_hex (Builder &builder, const char *hex) |
| static field_ct | w_u64 (Builder &builder, uint64_t v) |
| static std::size_t | gate_count (std::size_t N) |
| static void | test_hash (size_t num_inputs) |
| Call poseidon2 on a vector of inputs. | |
| static void | test_hash_repeated_pairs (size_t num_inputs) |
| Call poseidon2 on two inputs repeatedly. | |
| static void | test_hash_zeros (size_t num_inputs) |
| static void | test_hash_constants () |
| static void | test_padding_collisions () |
| static void | test_against_independent_values () |
Private Types | |
| using | _curve = stdlib::bn254< Builder > |
| using | byte_array_ct = typename _curve::byte_array_ct |
| using | field_ct = typename _curve::ScalarField |
| using | witness_ct = typename _curve::witness_ct |
| using | public_witness_ct = typename _curve::public_witness_ct |
| using | poseidon2 = typename stdlib::poseidon2< Builder > |
| using | native_poseidon2 = crypto::Poseidon2< crypto::Poseidon2Bn254ScalarFieldParams > |
Definition at line 13 of file poseidon2.test.cpp.
|
private |
Definition at line 14 of file poseidon2.test.cpp.
|
private |
Definition at line 16 of file poseidon2.test.cpp.
|
private |
Definition at line 17 of file poseidon2.test.cpp.
|
private |
Definition at line 21 of file poseidon2.test.cpp.
|
private |
Definition at line 20 of file poseidon2.test.cpp.
|
private |
Definition at line 19 of file poseidon2.test.cpp.
|
private |
Definition at line 18 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 27 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 167 of file poseidon2.test.cpp.
|
inlinestatic |
Call poseidon2 on a vector of inputs.
| num_inputs |
Definition at line 50 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 122 of file poseidon2.test.cpp.
|
inlinestatic |
Call poseidon2 on two inputs repeatedly.
| num_inputs |
Definition at line 80 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 103 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 142 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 24 of file poseidon2.test.cpp.
|
inlinestatic |
Definition at line 25 of file poseidon2.test.cpp.