-
Notifications
You must be signed in to change notification settings - Fork 0
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
Corrections to V7 transaction format and using updated test vectors #66
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
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.
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 |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line after /* TODO nu7 */
(all occurrences)
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_action
andwrite_action
in issuance in order to make them spec compliant.zcash_unstable
flag in order to cover both ZSA and vanilla Orchard behavior.zcash_unstable
flag).