Commit Graph

17 Commits

Author SHA1 Message Date
Simon 8ec096bdeb Add function librustzcash_sapling_compute_nf.
Also add function priv_get_note to refactor common code from librustzcash_sapling_compute_cm.
2018-06-07 10:36:52 -07:00
Simon eb3d8aa12c Add test for generating commitment randomness. 2018-06-04 14:24:14 -07:00
Simon 4ef2e9ae68 Add ffi and computation for Sapling note commitment. 2018-06-04 14:24:06 -07:00
Jay Graber be1b307446
Add check_diversifier and ivk_to_pkd 2018-05-31 11:07:43 +12:00
Jay Graber 23c2f0e527
Add crh_ivk 2018-05-31 11:07:42 +12:00
Jay Graber c44d70299b
Add ask_to_ak and nsk_to_nk 2018-05-31 11:07:39 +12:00
Jay Graber 128af9fc82
Add to_scalar call 2018-05-31 11:05:55 +12:00
str4d d19c9b5645
Implement Equihash validator
Follows Zcash implementation as closely as possible.
2018-05-24 16:30:56 +12:00
Sean Bowe fefa46b4c4
Implementation of Sprout proving and verifying 2018-05-10 14:29:02 -06:00
Sean Bowe 313e45cc01 Implementation of Sapling transaction verification. 2018-05-07 19:22:07 -06:00
Sean Bowe 4f9953f18f Support loading zk-SNARK parameters 2018-04-17 14:16:14 -06:00
Sean Bowe 37f20fb90c Use lazy_static to initialize the Jubjub parameters, to avoid passing parameters around. 2018-04-12 18:38:25 -06:00
Sean Bowe 96654ee5bd Fix typos 2018-04-12 15:01:48 -06:00
Sean Bowe f1d35708bc
Expose API for init/free of parameters and, to test, a merkle tree hash invocation. 2018-04-11 21:51:30 -06:00
Sean Bowe 91348647a8 Fix indentation. 2017-03-17 11:36:32 -06:00
Sean Bowe 2c9ee1a8bb Add stdint include. 2017-03-17 11:34:30 -06:00
Sean Bowe 7cf3af7d67 Add includes. 2017-03-17 11:25:08 -06:00