Support loading zk-SNARK parameters

This commit is contained in:
Sean Bowe
2018-04-17 14:16:14 -06:00
parent 2a86c912f6
commit 4f9953f18f
4 changed files with 72 additions and 1 deletions

View File

@@ -6,6 +6,14 @@
extern "C" {
uint64_t librustzcash_xor(uint64_t a, uint64_t b);
/// Loads the zk-SNARK parameters into memory and saves
/// paths as necessary. Only called once.
void librustzcash_init_zksnark_params(
const char* spend_path,
const char* output_path,
const char* sprout_path
);
/// Writes the "uncommitted" note value for empty leaves
/// of the merkle tree. `result` must be a valid pointer
/// to 32 bytes which will be written.