Commit Graph

18 Commits

Author SHA1 Message Date
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
Jack Grigg 9cb9e0f9bc Generate random test vectors for MapToCurve, GroupHash, Sinsemilla 2021-04-29 12:59:16 +12:00
Jack Grigg 4052b6404b Add rendering logic to Orchard GroupHash and Sinsemilla 2021-04-27 15:41:19 +12:00
Jack Grigg 943aa69e66 Remove bitstring dependency
Instead we just allow an iterable of bit-like elements.
2021-04-27 15:14:12 +12:00
Taylor Hornby 027b362773 Some cleanup and move group_hash into its own file 2021-04-26 18:29:39 -06:00
Taylor Hornby a2bf6c5a04 Check for incomplete addition exceptional cases in Sinsemilla 2021-04-26 18:21:01 -06:00
Taylor Hornby 756abfbb9c Delete sinsemilla_hash_bytes which was unused and not guaranteed to have correct endianness 2021-04-22 14:36:38 -06:00
Taylor Hornby 9f02018465
Clarify index-vs-exponent variable naming
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:34:47 -06:00
Taylor Hornby e141b76203
Fix missing divide-by-Z
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:31:55 -06:00
Taylor Hornby d9750457b9
Update orchard_sinsemilla.py
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:31:31 -06:00
Taylor Hornby b8dccde4c4
Update orchard_sinsemilla.py
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:17:21 -06:00
Taylor Hornby 8c2275a4b5
Update orchard_sinsemilla.py
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:17:12 -06:00
Taylor Hornby 75ce7b22be
Update orchard_sinsemilla.py
Co-authored-by: str4d <jack@z.cash>
2021-04-22 14:17:02 -06:00
Taylor Hornby a5579bab84
Update orchard_sinsemilla.py
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-04-22 14:16:44 -06:00
Daira Hopwood 28370d5fe9 orchard_sinsemilla.py: corrections, and add test vector for SinsemillaHash.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-04-02 17:57:29 +01:00
Daira Hopwood 9184c78c0f Remove trailing spaces, and make orchard_iso_pallas.py and orchard_sinsemilla.py executable.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-04-02 17:56:14 +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