Zebra/zebra-chain/src/sprout
Jane Lusby 6744f415d2
Implement sighash (#870)
* Implement sighash

* move sighash logic to a separate module

* start filling in more of the alg

* start setting up a test case

* make the test useful

* Iter transaction inputs

* better error message for expect

* add support for zip243 sighash

* ohey first testvector is passing, yayyy

* pass the second testvector

* add last testvector

* move a use statement

* use common deserialization code for amount everywhere

* cleanup attributes

* bring in fixed preimage

* fix discrepancy with spec

* always deserialize as a signed value

* Update zebra-chain/src/transaction/sighash.rs

* update unreachable statements

* add serialization impls for nonnegative amounts

* Apply suggestions from code review

* document sighash fn

* tweek docs

* fix mistake in translation for zip243

* consistent error messages

* reorder because i like it more that way

* document more panics

* Update zebra-chain/src/amount.rs

* Add comment regarding the serialization of spend descriptions in sighash

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
2020-09-05 19:31:11 -04:00
..
note deps: use x25519-dalek's new PartialEq, Eq methods 2020-08-31 13:30:14 -07:00
tests Rename tree::*NoteTreeRootHash to tree::Root 2020-08-28 04:46:31 -04:00
address.rs deps: use x25519-dalek's new PartialEq, Eq methods 2020-08-31 13:30:14 -07:00
commitment.rs Update sha2@0.9.1 (#938) 2020-08-21 16:26:14 -07:00
joinsplit.rs Implement sighash (#870) 2020-09-05 19:31:11 -04:00
keys.rs Update sha2@0.9.1 (#938) 2020-08-21 16:26:14 -07:00
note.rs Add memo to Note, remove NotePlaintext 2020-08-28 04:46:31 -04:00
tests.rs chain: move JoinSplit to sprout 2020-08-17 11:46:34 -07:00
tree.rs Rename tree::*NoteTreeRootHash to tree::Root 2020-08-28 04:46:31 -04:00