Skip to content

Use generalized Lookup version of Halo2 #429

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ConstanceBeguier
Copy link

@ConstanceBeguier ConstanceBeguier commented Jul 9, 2024

This PR updates the orchard crate to use the generalized version of the halo2 crate (link). It contains two key changes:

  • Brings the LookupRangeCheck trait into scope (this maintains backward compatibility and allows existing code to function without additional modifications).
  • Updates Cargo.toml to point to the improve-backward-compatibility-without-zsa branch of the halo2 crate.

Copy link
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

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

Changes here LGTM once the halo2 PR is merged.

Cargo.toml Outdated
@@ -29,8 +29,8 @@ blake2b_simd = "1"
ff = "0.13"
fpe = "0.6"
group = { version = "0.13", features = ["wnaf-memuse"] }
halo2_gadgets = "0.3"
halo2_proofs = { version = "0.3", default-features = false, features = ["batch", "floor-planner-v1-legacy-pdqsort"] }
halo2_gadgets = { git = "https://github.com/QED-it/halo2", branch = "improve-backward-compatability-without-zsa" }
Copy link
Contributor

Choose a reason for hiding this comment

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

In general, we do not merge PRs that change dependencies in this way, for two reasons:

  • It is a security issue to depend on a branch rather than a commit.
  • We use [patch.crates-io] instead for patching in-progress changes (and we then propagate those sections through the various downstream repos).

Copy link
Author

Choose a reason for hiding this comment

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

I updated Cargo.toml to use patch.crates-io for halo2 repos.

dmidem and others added 5 commits April 22, 2025 15:18
This change updates the orchard crate to bring the PallasLookup trait
into scope, ensuring compatibility with the recent changes in the halo2
crate. By importing the PallasLookup trait, we maintain backward
compatibility and allow existing code to function without modification.
@ConstanceBeguier ConstanceBeguier force-pushed the zcash-0.8.0-new-halo2-compatible branch from d8babc6 to 8c83f96 Compare April 22, 2025 13:40
@ConstanceBeguier
Copy link
Author

I just rebased on main branch and updated Cargo.toml to use patch.crates-io for halo2 repos

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.

3 participants