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

feat: use Halo2 compatible dependencies #205

Merged
merged 9 commits into from
Sep 18, 2021
Merged

feat: use Halo2 compatible dependencies #205

merged 9 commits into from
Sep 18, 2021

Conversation

DrPeterVanNostrand
Copy link

No description provided.

src/bls.rs Outdated Show resolved Hide resolved
src/gpu/fft.rs Outdated Show resolved Hide resolved
@DrPeterVanNostrand DrPeterVanNostrand marked this pull request as ready for review August 9, 2021 15:33
@DrPeterVanNostrand
Copy link
Author

Note that this PR removes the ci jobs test_pairing_gpu_x86_64-unknown-linux-gnu and test_pairing_x86_64-unknown-linux-gnu and those github checks will never pass. I'm not sure how to remove those github checks and/or I may not have permission in CircleCI.

Copy link
Author

@DrPeterVanNostrand DrPeterVanNostrand left a comment

Choose a reason for hiding this comment

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

Cargo.toml's should be updated before merging.

Cargo.toml Outdated

# pairing feature
paired = { version = "0.22.0", optional = true }
blstrs = { git = "https://github.com/filecoin-project/blstrs", branch = "halo" }
Copy link
Author

Choose a reason for hiding this comment

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

This should be changed before merging.

Cargo.toml Outdated

# gpu feature
rust-gpu-tools = { version = "0.4.0", optional = true }
ff-cl-gen = { version = "0.3.0", optional = true }
ff-cl-gen = { git = "https://github.com/filecoin-project/ff-cl-gen", branch = "halo", optional = true }
Copy link
Author

Choose a reason for hiding this comment

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

This should be changed before merging.

Copy link

@vmx vmx left a comment

Choose a reason for hiding this comment

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

Lots of mul_assign() where replaced by +, but not all of them (e.g. in src/groth16/aggregate/poly.rs). Not sure if that's a problem or not.

Some calculations changed a bit, but I'd expect that the test capture it if they were wrong now.

Lot's of comments, but all the them are rather style wise and nothing really important. So feel free to ignore those.

Cargo.toml Outdated Show resolved Hide resolved
examples/verifier_bench/Cargo.toml Outdated Show resolved Hide resolved
examples/verifier_bench/src/bin/main.rs Outdated Show resolved Hide resolved
src/gadgets/test/mod.rs Outdated Show resolved Hide resolved
src/groth16/aggregate/msm/fixed_base.rs Outdated Show resolved Hide resolved
type Output = Fr;

fn sub(self, rhs: &Fr) -> Fr {
self + -rhs
Copy link

Choose a reason for hiding this comment

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

+ - might be needed here, but it reads funny.

Choose a reason for hiding this comment

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

yeah I think it is needed, definitely looks funny

@@ -194,54 +197,87 @@ impl DensityTracker {
}
}

// Right shift the repr of a field element by `n` bits.
Copy link

Choose a reason for hiding this comment

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

I haven't reviewed this part in-depth, if needed, let me know.

src/multiexp.rs Outdated Show resolved Hide resolved
tests/groth16_aggregation.rs Outdated Show resolved Hide resolved
tests/mimc.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@cryptonemo cryptonemo left a comment

Choose a reason for hiding this comment

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

Looks good. Exciting 👍


# gpu feature
rust-gpu-tools = { version = "0.4.0", optional = true }
ff-cl-gen = { version = "0.3.0", optional = true }
ec-gpu = { git = "https://github.com/filecoin-project/ec-gpu", branch = "master", optional = true }
ec-gpu-gen = { git = "https://github.com/filecoin-project/ec-gpu", branch = "master", optional = true }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to clarify, is ff-cl-gen going to be released before this is merged, or are we sitting at master while things are in flux?

Choose a reason for hiding this comment

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

The plan is to sit on master until at least the cuda things are also merged

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.

4 participants