Deirdre Connolly
|
f753e63f3b
|
Clarify docstring on NoteCommitment::new()
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
75cad3bb0a
|
Impl TryFrom's for Diversifier and use those to construct Sapling NoteCommitments
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
c8771ef620
|
Defer to From/Into [u8; 32] vs Zcash(De)Serialize for sprout::NoteCommitments
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
e8fdd0e1f3
|
Impl TryFrom for Commitments, call from impl ZcashDeserialize
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
5d13880461
|
Remove Zcash(De)Serialize impls for *Commitments
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
014afd8e4a
|
Move Pedersen hash functions to their own submodule
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
be7ea200c8
|
Accept an Amount<NonNegative> for the value arg of a ValueCommitment constructor
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
a3530b0eed
|
Move pedersen_hash() to go with the other Sapling hash functions, for now
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
9d9491c4e8
|
Index at 1, not 0, the main loop of PedersenHashToPoint, to match spec math
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
ca81e48843
|
Remove an extra line
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
fe45c6402a
|
Remove clippy::unit_arg allowance
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
2942bad6ff
|
Make diversify_hash() private again
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
5a249f8da5
|
A space
Co-authored-by: Henry de Valence <hdevalence@hdevalence.ca>
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
0c299972ec
|
Clarify docstring about the Jubjub prime-order subgroup on generate_trapdoor()
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
f816761a5c
|
The pedersen hash to point test vectors now pass
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
425275ad35
|
Fix exclusive range, shift up enumerate() indexes with map()
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
be22ef64e5
|
At least fewer M_i() rounds for test cases
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
14d502a54b
|
Compute pedersen hash to point in scalar field
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
3b01dc50ef
|
Use unicode scalar field characters instead of LaTeX
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
1d494a2b7a
|
Docstring wrap
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
e22afa3c8f
|
Generate uniformly random scalar w/ Fr::from_bytes_wide()
Which reduces mod r always.
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
c46cda920f
|
Add primitive merkle_crh_sapling function
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
65f8f2c613
|
Add mixing_pedersen_hash
Tidy constructors for NoteCommitment
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
ed888b38ef
|
Correctly generate a sapling NoteCommitment from the NoteCommitmentRandomness
|
2020-08-14 02:04:12 -04:00 |
Deirdre Connolly
|
b6385ca36f
|
Move commitment types into commitments module
Docs, tidy
|
2020-08-14 02:04:12 -04:00 |