Add NSM transaction test vectors#101
Conversation
|
I've updated this PR following the naming change (ZSF -> NSM). |
|
Thanks @mariopil |
07166f6 to
3cd2cbc
Compare
|
@daira or somebody - can I have permissions to run this workflow or can somebody run it? |
nuttycom
left a comment
There was a problem hiding this comment.
Review not yet complete, but marking with changes requested to prevent inadvertent merge.
daira
left a comment
There was a problem hiding this comment.
Looks good modulo comments.
|
Thank you @daira for the suggestions, I've updated the PR. |
|
|
||
| V6_TX_VERSION = 6 | ||
| # TODO: change this | ||
| V6_VERSION_GROUP_ID = 0xFFFFFFFF |
There was a problem hiding this comment.
This intentionally isn't defined yet because ZIP 230 is not yet stable.
There was a problem hiding this comment.
I've added this to match the versions in librustzcash, ensuring the generated vectors used in the librustzcash tests are correct.
daira
left a comment
There was a problem hiding this comment.
utACK, except that the checked-in test vectors need to be updated.
|
@daira I've updated zip_0244 test vectors and added zip_0233 test vectors. |
|
How does it look now, @nuttycom? |
|
@mariopil looks like there's a failure |
|
The fact that the CI is failing indicates that some of the test vectors (the "-t zcash" ones) have not been regenerated. |
|
Thanks, I've regenerated the "zcash" vectors. |
|
This looks like it now needs to be rebased on |
This reverts commit dcdb844.
|
Hi @daira may we merge this? |
|
Sorry it's taken me a while to get to this. I will try to review it this week. |
I have some (minor and optional) suggestions on this PR. It is ok to make a review or do you prefer to review as it is ? |
oxarbitrage
left a comment
There was a problem hiding this comment.
Optional suggestions and some questions/comments. All minor stuff, feel free to ignore.
|
|
||
| return ret | ||
|
|
||
| class TransactionV6(TransactionV5): |
There was a problem hiding this comment.
FYI: In #108, the TransactionV5 is renamed to TransactionBase:
Then TransactionV5(TransactionBase) and TransactionV6(TransactionBase) are defined. I think that makes sense.
Given that this PR is probably going to be merged first, should we apply that change here ?
This adds test data generation for NSM transactions. Simply adds
zip233_amountto tx id and sighash calculations.For now NSM is developed under the ZFuture Network Update and ZFuture transaction version as the final NU and tx versions under which it'll be deployed are not decided yet.
The
librustzcashPR that uses the generated data is zcash/librustzcash#1567 .