Commit Graph

14 Commits

Author SHA1 Message Date
Daira Hopwood f024c7dd8f Extract some SpendingKey methods into mixins that will be used by ZIP 32 classes.
Also use hex, not octal byte constants.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood 61f7f70e7a Add diversify_hash function rather than repeating the personalization.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +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
Jack Grigg 145fe37af5
Implement JSON output 2018-06-05 20:36:37 +12:00
Jack Grigg 68263af2b5
Extract sapling_key_components Rust rendering 2018-06-05 17:30:16 +12:00
Jack Grigg 7e37b8cc24
Move chunk() into tv_output module 2018-06-05 16:10:43 +12: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 c795bb6ef7 Add comments to test vector output linking to source 2018-05-19 07:48:49 +12:00
Jack Grigg 7aebe58a58 Add note nullifiers to key component test vectors 2018-05-19 07:47:22 +12:00
Jack Grigg 51206901cc Add note commitments to key component test vectors 2018-05-19 07:19:09 +12:00
Jack Grigg 9df19eb154 pylint 2018-05-18 18:01:08 +12:00
Jack Grigg 2f152758ba Implement RedJubjub 2018-05-18 18:01:05 +12:00
Jack Grigg 95f483fd3d Refactor into modules 2018-05-18 11:57:11 +12:00
Jack Grigg c0d4ff2fd2 Add test vector generator for Sapling key components 2018-05-18 07:21:42 +12:00