-
Notifications
You must be signed in to change notification settings - Fork 166
Use zcash_script’s new Script trait
#8751
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
Conversation
|
This depends on ZcashFoundation/zcash_script#171. |
e47cdfc to
9e5014b
Compare
38617ec to
f80b392
Compare
|
Thank you for your PR! We're focusing on changes for NU6 testnet activation at the moment so we won't be able to prioritise this review for another week or two. |
9d931b0 to
8449878
Compare
|
Re: the unchecked checkboxes
|
We usually check boxes if they don't apply to the PR.
Added a priority label. Added a |
What's next here? I see ZcashFoundation/zcash_script#171 has merged |
We should double check this PR works with zcash_script |
I can do this, but wondering how to show that it’s successful – should I put up a temporary PR that just fetches zcash_script from GH instead of the crate registry and shows that everything still passes? And we’ll just close it afterward? Also, I’m happy for there to be a zcash_script release now, but I figured it would be fine to leave it until the next PR or two land on zcash_script, which contain the actual Rust implementation. |
Yeah, I’ll look at this. I’m making other changes in zcash_script now, so I’ll add a test with a closure and make sure that’s working. |
|
@conradoplg I put up ZcashFoundation/zcash_script#216. I tried it against this branch (with some additional changes here) and it worked. I think that counts as a bugfix release, as it doesn’t affect the cases that already worked. But there are changes in ZcashFoundation/zcash_script#209 (and others coming) that do affect the interface (although in fairly minor ways – like the set of |
8c61024 to
21e8eeb
Compare
21e8eeb to
d0f565f
Compare
|
This should be good to go. I did the simplest thing and just added a I tested by manually pointing to my local copy of |
…rusty-zcash_script
…rusty-zcash_script
oxarbitrage
left a comment
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 conflicts.
…rusty-zcash_script
Oops, done |
|
I'm admin-merging this, because there is some CI issue making some jobs to be forever pending. We'll investigate the issue later with a external PR of our own. (My guess is some patch job issue) |
* Use zcash_script’s new `ZcashScript` trait This is a precursor to testing the Rust implementation of Zcash Script. * Point zcash_script dependency at master Show that ZcashFoundation#8751 would work with a new zcash_script release. * Adjust for the latest zcash_script API * allow duplicate secp245k1 for now * adjust to new API * add feature to choose which interpreter to use * allow duplicated secp256k1 (but not -sys) * update to published zcash_script; fix unused warning --------- Co-authored-by: Conrado Gouvea <[email protected]>
str4d
left a comment
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.
Post-hoc utACK (working through my review backlog)
Motivation
This is a precursor to testing the Rust implementation of Zcash Script.
Blocked-On: ZcashFoundation/zcash_script#171 and publishing a new version of
zcash_scriptwith those changes.Solution
This uses a trait that wraps the C++ Zcash Script implementation. As we progress toward cutting over to a Rust implementation, this trait will additionally have impls for the Rust version and a variant that runs both C++ & Rust, comparing the results.
Additionally, this eliminates a few cases from
zebra_script::Errorthat can never be produced.Tests
The tests are the same as the previous zebra_script tests – there should be no change in behavior.
Follow-up Work
This is blocked on a release of zcash_script containing ZcashFoundation/zcash_script#171.
PR Author's Checklist
PR Reviewer's Checklist