Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <chacha_rng.hpp>
Public Member Functions | |
chacha_rng (const void *seed, size_t seed_size) | |
void | random (void *output, size_t output_size) |
Random number generator matching the implementation used by zcash powersoftau and phase2. Usage: https://github.com/clearmatics/powersoftau (See hash_to_g2 function) Implementation is based on: https://docs.rs/rand/0.4.6/src/rand/prng/chacha.rs.html (See description comment, in particular word layout)
Definition at line 22 of file chacha_rng.hpp.
libzeth::chacha_rng::chacha_rng | ( | const void * | seed, |
size_t | seed_size | ||
) |
Definition at line 20 of file chacha_rng.cpp.
void libzeth::chacha_rng::random | ( | void * | output, |
size_t | output_size | ||
) |
Definition at line 35 of file chacha_rng.cpp.