Corrections to V7 transaction format and using updated test vectors#66
Conversation
…auth digest hash personalization)
1d17ea0 to
9107831
Compare
…fixes. Also making the zcash_unstable flag value consistent
9107831 to
9b67da5
Compare
alexeykoren
left a comment
There was a problem hiding this comment.
Good stuff, one minor question
|
CI checks fail due to missing |
Right. Yes, we'll merge it soon. But this PR we can merge even before, given that we are not targeting zsa1 |
PaulLaux
left a comment
There was a problem hiding this comment.
please fix CI error so we can merge it.
| let tx = Transaction::read(&tv.tx[..], BranchId::Nu5).unwrap(); | ||
| let tx = Transaction::read( | ||
| &tv.tx[..], | ||
| #[cfg(not(zcash_unstable = "nu6"))] /* TODO nu7 */ BranchId::Nu5, |
There was a problem hiding this comment.
new line after /* TODO nu7 */ (all occurrences)
There was a problem hiding this comment.
cargo fmt pushes it back to the above line (so making it new line would make it fail the Rustfmt CI check).
There was a problem hiding this comment.
I confirmed that this is the case for all lines where the newline is not used.
…ng constant imports to ENC_CIPHERTEXT_SIZE
) This PR makes the following changes: - reordering of the component fields in `read_action` and `write_action` in issuance in order to make them spec compliant. - It sets some of the constant values for NU7 in a way that is consistent with the generated test vectors from the Python reference implementation (See QED-it/zcash-test-vectors#22 for the changes to the Python reference implementation). - Some changes are made to function names to reflect the shift from preparing ZSAs for V7 rather than V6. - There are changes to the tests to use the `zcash_unstable` flag in order to cover both ZSA and vanilla Orchard behavior. - The test vectors are also expanded to include both the V5 vectors, and the V7 vectors (behind a `zcash_unstable` flag).
This PR makes the following changes:
read_actionandwrite_actionin issuance in order to make them spec compliant.zcash_unstableflag in order to cover both ZSA and vanilla Orchard behavior.zcash_unstableflag).