-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make transparent signatures commit to all input amounts & scripts. #472
Make transparent signatures commit to all input amounts & scripts. #472
Conversation
cf8a31c
to
7fcad74
Compare
3e984cf
to
f38f5a4
Compare
Codecov Report
@@ Coverage Diff @@
## master #472 +/- ##
==========================================
+ Coverage 50.20% 50.57% +0.37%
==========================================
Files 88 88
Lines 7962 8002 +40
==========================================
+ Hits 3997 4047 +50
+ Misses 3965 3955 -10
Continue to review full report at Codecov.
|
c808f36
to
c66bb89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
@@ -5985,39 +5986,36 @@ pub mod zip_0244 { | |||
0xdc, 0x7f, 0x83, 0x46, 0xb2, 0x82, 0xec, 0x04, 0xb8, 0x40, 0xf2, 0x45, 0x1d, | |||
0x09, 0xc0, 0x86, 0x3c, 0xda, 0x6b, | |||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not checked the test data changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/zcash/librustzcash/pull/472/files/c66bb892baf7e54437be7341c163f40909a64b43#r785116088 (the incorrect comment in sighash_v5::transparent_sig_digest
) is blocking.
e666cb4
to
9baceba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
The refactoring of array hashing needed a rustfmt, sorry about that. |
9baceba
to
8cf5c8c
Compare
Transparent UTXOs are referred as pair of previous txid and index. In order to verify UTXO's amount in HWW (hardware wallet), whole previous transaction containing this UTXO must be streamed into the device. This increases complexity of signing process significantly. zcash/zips#574 identifies this problem and suggests a modification to ZIP-244 to resolve this issue, by adding three new fields to section S.2 of the signature hash.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
8cf5c8c
to
eaa3ec5
Compare
This implements the changes to ZIP 244 sighash rules specified in zcash/zips#577 .
Transparent UTXOs are referred to as a pair of previous txid and index. In order to verify a UTXO's amount, e.g. in a hardware wallet, under the previous rules the whole previous transaction containing this UTXO would have needed to be streamed into the device. This would have increased the complexity of signing process significantly, but is not necessary under the new rules.
Fixes #473