|
Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <blake2s.hpp>


Public Member Functions | |
| BLAKE2s_256 (libsnark::protoboard< FieldT > &pb, const libsnark::block_variable< FieldT > &input, const libsnark::digest_variable< FieldT > &output, const std::string &annotation_prefix="blake2s_gadget") | |
| void | generate_r1cs_constraints (const bool ensure_output_bitness=true) |
| void | generate_r1cs_witness () |
Static Public Member Functions | |
| static constexpr size_t | get_block_len () |
| static constexpr size_t | get_digest_len () |
| static libff::bit_vector | get_hash (const libff::bit_vector &input) |
| static size_t | expected_constraints (const bool ensure_output_bitness) |
BLAKE2s_256 is the gadget implementing the BLAKE2s hash function for digests of length 256
Definition at line 24 of file blake2s.hpp.
| libzeth::BLAKE2s_256< FieldT >::BLAKE2s_256 | ( | libsnark::protoboard< FieldT > & | pb, |
| const libsnark::block_variable< FieldT > & | input, | ||
| const libsnark::digest_variable< FieldT > & | output, | ||
| const std::string & | annotation_prefix = "blake2s_gadget" |
||
| ) |
|
static |
| void libzeth::BLAKE2s_256< FieldT >::generate_r1cs_constraints | ( | const bool | ensure_output_bitness = true | ) |
| void libzeth::BLAKE2s_256< FieldT >::generate_r1cs_witness | ( | ) |
|
staticconstexpr |
|
staticconstexpr |
|
static |
1.8.17