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

zcash_primitives: Add no_std support #1688

Merged
merged 6 commits into from
Jan 29, 2025

Conversation

nuttycom
Copy link
Contributor

@nuttycom nuttycom commented Jan 28, 2025

This depends upon zcash/orchard#453 and zcash/sapling-crypto#152

Subsumes #1683

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 72.95082% with 33 lines in your changes missing coverage. Please review.

Project coverage is 52.00%. Comparing base (1b09741) to head (d352b93).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
zcash_primitives/src/merkle_tree.rs 33.33% 16 Missing ⚠️
...h_primitives/src/transaction/components/orchard.rs 70.00% 3 Missing ⚠️
zcash_primitives/src/transaction/components/tze.rs 0.00% 3 Missing ⚠️
zcash_primitives/src/encoding.rs 93.54% 2 Missing ⚠️
zcash_primitives/src/transaction/builder.rs 50.00% 2 Missing ⚠️
...sh_primitives/src/transaction/components/sprout.rs 0.00% 2 Missing ⚠️
...imitives/src/transaction/components/tze/builder.rs 0.00% 2 Missing ⚠️
...h_primitives/src/transaction/components/sapling.rs 66.66% 1 Missing ⚠️
zcash_primitives/src/transaction/fees/zip317.rs 0.00% 1 Missing ⚠️
zcash_primitives/src/transaction/mod.rs 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1688      +/-   ##
==========================================
+ Coverage   51.89%   52.00%   +0.10%     
==========================================
  Files         180      181       +1     
  Lines       21169    21192      +23     
==========================================
+ Hits        10986    11021      +35     
+ Misses      10183    10171      -12     

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

@nuttycom nuttycom force-pushed the zcash_primitives_no_std branch 4 times, most recently from 52dcfd4 to c78d482 Compare January 28, 2025 23:27
@nuttycom nuttycom marked this pull request as ready for review January 29, 2025 00:32
@nuttycom nuttycom force-pushed the zcash_primitives_no_std branch from 2290f58 to 4d0ce78 Compare January 29, 2025 00:33
zcash_primitives/Cargo.toml Outdated Show resolved Hide resolved
daira
daira previously approved these changes Jan 29, 2025
Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK with non-blocking comments.

@nuttycom
Copy link
Contributor Author

force-pushed to use versions of orchard and sapling-crypto that have been merged to their respective main branches.

daira
daira previously approved these changes Jan 29, 2025
Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK with non-blocking suggestion (but there are conflicts).

nuttycom and others added 6 commits January 29, 2025 08:16
…protocol`

This fixes a few errors that have been introduced over time since
`zcash_extensions` is not regularly built, and migrates
`zcash_extensions` to eliminate the use of deprecated `zcash_primitives`
APIs.
As of `nonempty 0.11`, `nonempty` is `no-std` compatible and therefore
the `nonempty` dependency no longer needs to be optional.
Co-authored-by: Daira-Emma Hopwood <[email protected]>
@nuttycom
Copy link
Contributor Author

force-pushed to resolve conflicts and fix warnings.

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK d352b93

@nuttycom nuttycom merged commit 3cc8a13 into zcash:main Jan 29, 2025
32 checks passed
@nuttycom nuttycom deleted the zcash_primitives_no_std branch January 29, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants