Skip to content
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

Create new zcash_script crate that will contain logic for verifying Zcash transparent scripts. #655

Closed
wants to merge 1 commit into from

Conversation

ebfull
Copy link
Collaborator

@ebfull ebfull commented Sep 30, 2022

This is a very early WIP attempt at recreating zcashd's CScript interpreter and other logic needed to verify transparent scripts in an attempt to destroy this directory and help out the Zebra folks who maintain the actual zcash_script crate which binds to our C++ codebase.

@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

Attention: Patch coverage is 0% with 306 lines in your changes are missing coverage. Please review.

Project coverage is 73.59%. Comparing base (4d28279) to head (409c8aa).
Report is 1497 commits behind head on main.

Files Patch % Lines
zcash_script/src/lib.rs 0.00% 254 Missing ⚠️
zcash_script/src/opcodes.rs 0.00% 52 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #655       +/-   ##
===========================================
+ Coverage   51.52%   73.59%   +22.06%     
===========================================
  Files          91      101       +10     
  Lines        8500    10825     +2325     
===========================================
+ Hits         4380     7967     +3587     
+ Misses       4120     2858     -1262     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

stack.push(a.clone());
stack.push(b.clone());
stack.push(a);
stack.push(b);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these implementations could be made more concise with some helper functions ({push/pop}{1,2,3,4}).

@nuttycom nuttycom added the S-in-progress Status: Work is currently in progress on this item. label Apr 25, 2024
@nuttycom
Copy link
Contributor

Subsumed by ZcashFoundation/zcash_script#158

@nuttycom nuttycom closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-in-progress Status: Work is currently in progress on this item.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants