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

change(deps): Upgrade shared dependencies to match zcashd 5.5.0 #6536

Merged
merged 4 commits into from
Apr 18, 2023

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Apr 18, 2023

Motivation

We want to use the same shared dependencies as the latest zcashd version 5.5.0.

Closes #6232

Specifications

These libraries already implement the consensus rules as specified.

Solution

Dependencies

Upgrade the following shared dependencies:

  • bellman
  • bls12_381
  • group
  • halo2
  • halo2_proofs
  • jubjub
  • orchard
  • redjubjub
  • zcash_address
  • zcash_note_encryption
  • zcash_primitives
  • zcash_proofs

Remove redundant deny.toml entries

Code Changes

Replace orchard::from_bytes_wide() with ff::from_uniform_bytes()

Review

This is an urgent change we want in the next release, so we continue building with Rust 1.69.

Reviewer Checklist

  • Will the PR name make sense to users?
    • Does it need extra CHANGELOG info? (new features, breaking changes, large changes)
  • Are the PR labels correct?
  • Does the code do what the ticket and PR says?
    • Does it change concurrent code, unsafe code, or consensus rules?
  • How do you know it works? Does it have tests?

Follow Up Work

Upgrade zcash_script:

```sh
cargo upgrade --workspace << EOF
bellman
bls12_381
group
halo2
halo2_proofs
jubjub
orchard
redjubjub
zcash_address
zcash_note_encryption
zcash_primitives
zcash_proofs
EOF
```
@teor2345 teor2345 added A-dependencies Area: Dependency file updates A-consensus Area: Consensus rule updates C-enhancement Category: This is an improvement P-High 🔥 A-cryptography Area: Cryptography related labels Apr 18, 2023
@teor2345 teor2345 requested a review from a team as a code owner April 18, 2023 03:01
@teor2345 teor2345 self-assigned this Apr 18, 2023
@teor2345 teor2345 requested a review from a team as a code owner April 18, 2023 03:01
@teor2345 teor2345 requested review from upbqdn and removed request for a team April 18, 2023 03:01
@github-actions github-actions bot added the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Apr 18, 2023
@teor2345
Copy link
Contributor Author

Temporary network error building the lightwalletd docker image:

ERROR: failed to solve: failed to compute cache key: failed to copy: read tcp 172.17.0.2:34684->142.250.114.82:443: read: connection timed out

https://github.com/ZcashFoundation/zebra/actions/runs/4728149718/jobs/8389421342#step:11:786

@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Merging #6536 (01d350c) into main (2e434b0) will increase coverage by 0.12%.
The diff coverage is 75.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6536      +/-   ##
==========================================
+ Coverage   77.68%   77.80%   +0.12%     
==========================================
  Files         305      305              
  Lines       40104    40104              
==========================================
+ Hits        31154    31204      +50     
+ Misses       8950     8900      -50     

@teor2345
Copy link
Contributor Author

mergify bot added a commit that referenced this pull request Apr 18, 2023
@mergify mergify bot merged commit 3ba334b into main Apr 18, 2023
@mergify mergify bot deleted the update-zcashd-550-deps branch April 18, 2023 10:11
@arya2 arya2 mentioned this pull request Apr 18, 2023
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Area: Consensus rule updates A-cryptography Area: Cryptography related A-dependencies Area: Dependency file updates C-enhancement Category: This is an improvement C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Orchard and zcash_primitives versions with the nightly Rust (1.69) fix before 20 April
2 participants