ZIP 225 & ZIP 244#375
Conversation
|
A note to reviewers: This PR is best viewed hiding whitespace changes. |
39770cf to
aa060fa
Compare
conradoplg
left a comment
There was a problem hiding this comment.
Found a possible personalization field mismatch
therealyingtong
left a comment
There was a problem hiding this comment.
Flushing comments from partial review.
There was a problem hiding this comment.
Could to_txid() be a method on TransactionData?
3450de4 to
239b125
Compare
Co-authored-by: str4d <jack@electriccoin.co>
ecc9b68 to
8a9eda7
Compare
Co-authored-by: str4d <jack@electriccoin.co>
54dce0e to
1d7c6ea
Compare
str4d
left a comment
There was a problem hiding this comment.
utACK 1d7c6ea9f9a60a564a7ead4cab9b9e6b55aef241
There was a problem hiding this comment.
I have not checked this file either.
daira
left a comment
There was a problem hiding this comment.
Partial review. I commented which files I have not checked.
Co-authored-by: str4d <jack@electriccoin.co>
Co-authored-by: str4d <jack@electriccoin.co>
| unauthed_tx, | ||
| let transparent_bundle = unauthed_tx.transparent_bundle.clone().map(|b| { | ||
| b.apply_signatures( | ||
| #[cfg(feature = "transparent-inputs")] |
There was a problem hiding this comment.
Should this be a separate method for the case with transparent inputs, rather than a method with feature-conditional arguments?
There was a problem hiding this comment.
That's going to happen in a subsequent PR, when the Orchard builder is integrated.
| if actions_without_auth.is_empty() { | ||
| Ok(None) | ||
| } else { | ||
| let flags = orchard_serialization::read_flags(&mut reader)?; |
There was a problem hiding this comment.
The implementation of read_flags enforces that unused bits are zero. This is as intended but was ambiguous in the spec. The spec has been clarified in version 2021.2.4.
| lock_time, | ||
| expiry_height: expiry_height.into(), | ||
| transparent_bundle, | ||
| sprout_bundle: None, |
There was a problem hiding this comment.
I know we don't support creating v4 transactions with a Sprout bundle, but we do support reading them, so it should probably be prop-tested. Please file a ticket. (Does not block this PR.)
| const ZCASH_SAPLING_SIGS_HASH_PERSONALIZATION: &[u8; 16] = b"ZTxAuthSapliHash"; | ||
| const ZCASH_ORCHARD_SIGS_HASH_PERSONALIZATION: &[u8; 16] = b"ZTxAuthOrchaHash"; | ||
| #[cfg(feature = "zfuture")] | ||
| const ZCASH_TZE_WITNESSES_HASH_PERSONALIZATION: &[u8; 16] = b"ZTxAuthTZE__Hash"; |
There was a problem hiding this comment.
I checked all of the non-TZE personalizations against the current version of ZIP 244.
daira
left a comment
There was a problem hiding this comment.
utACK with minor comments.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
No description provided.