Commit Graph

15 Commits

Author SHA1 Message Date
therealyingtong e0b8fd639a Return base field element from commit_ivk()
Co-authored-by: Jack Grigg <jack@electriccoin.co>
2021-05-11 20:06:32 +08:00
ying tong fb08eeeb39 Pass rand instead of randbytes
Co-authored-by: str4d <jack@z.cash>
2021-05-09 12:46:09 +08:00
Daira Hopwood af04017407 orchard_pallas.py: add constants for Scalar.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-05-09 12:44:40 +08:00
Daira Hopwood 929692ecdc Rename sapling_utils.py to utils.py.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-05-09 12:44:39 +08:00
Daira Hopwood a7a1e5b217 Use rejection sampling to implement `random` for `Fp` and `Scalar`.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-05-09 12:41:18 +08:00
therealyingtong 72cae20b61 Add Orchard commitments
HomomorphicPedersenCommit -> ValueCommit
SinsemillaCommit -> NoteCommit
SinsemillaShortCommit -> CommitIvk
2021-05-09 12:41:18 +08:00
str4d 0cc31479cf
Merge pull request #17 from zcash-hackworks/sinsemilla-test-vectors
Add iso-Pallas, SWU hash-to-curve, and Sinsemilla
2021-04-29 02:20:39 +01:00
Taylor Hornby 86c2796de8
Fix broken incomplete addition case check
Co-authored-by: str4d <jack@z.cash>
2021-04-26 23:35:30 -06:00
Taylor Hornby a2bf6c5a04 Check for incomplete addition exceptional cases in Sinsemilla 2021-04-26 18:21:01 -06:00
Jack Grigg efa8a9ac2f Fix doc comment
Too much Rust :P
2021-04-22 23:56:37 +12:00
str4d 3b868bb182
Add comment documenting ROOT_OF_UNITY
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-04-21 00:01:57 +01:00
Daira Hopwood 57c2894522
Update orchard_pallas.py
Replace 0 with Fp.ZERO in `extract`.

Co-authored-by: Taylor Hornby <taylor@defuse.ca>
2021-04-06 22:51:29 +01:00
Daira Hopwood 816cfa0059
Apply suggestions from code review 2021-04-01 23:14:28 +01:00
Taylor Hornby c3a70e269b Add iso-Pallas, SWU hash-to-curve, and Sinsemilla
Co-authored-by: Kris Nuttycombe <kris.nuttycombe@gmail.com>
2021-03-30 11:03:55 -06:00
Jack Grigg 65ed28c661 Add implementation of Pallas 2021-02-25 14:52:13 +00:00