Commit Graph

13 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 65ed28c661 Add implementation of Pallas 2021-02-25 14:52:13 +00:00
Jack Grigg 196c317d89
Explicitly check Points against None 2019-02-22 22:10:57 +00:00
Jack Grigg 3f9edde19f
Generate a valid Jubjub point for SpendDescription test vectors 2018-10-11 18:37:24 +01:00
Daira Hopwood c8036959ad Add assertions that we are running under Python 3.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood 74aeee659b Use a ValueError exception to represent out-of-range field element representations.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-06-04 14:36:37 +01:00
Jack Grigg 739ec65c52
Implement ToScalar from spec, and small refactor to match spec more closely
Test vectors from sapling_key_components.py and sapling_signatures.py are not
altered by this commit.
2018-06-05 00:33:50 +12:00
Jack Grigg ef17e5bc26 Reject encoded points with v not in the field 2018-05-19 06:30:19 +12:00
Jack Grigg 2641abb3be Add tests of field arithmetic 2018-05-19 06:27:33 +12:00
Jack Grigg 9df19eb154 pylint 2018-05-18 18:01:08 +12:00
Jack Grigg 6d12cb9a74 Extract LEOS2IP and I2LEOSP functions 2018-05-18 15:28:36 +12:00
Jack Grigg 929b36ccfd Implement Pedersen hashes and commitments 2018-05-18 13:18:47 +12:00
Jack Grigg 95f483fd3d Refactor into modules 2018-05-18 11:57:11 +12:00