-
Notifications
You must be signed in to change notification settings - Fork 120
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
Conversation
f3f3faa
to
7f8c71f
Compare
5ae9e10
to
4584efc
Compare
ccf34e3
to
bab07b0
Compare
Note that this PR removes the ci jobs |
There was a problem hiding this 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" } |
There was a problem hiding this comment.
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 } |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
type Output = Fr; | ||
|
||
fn sub(self, rhs: &Fr) -> Fr { | ||
self + -rhs |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
7a147fb
to
dc763c8
Compare
This ensure it is actually checked on ci and testing and makes it easier to run
a83ecaa
to
85a6905
Compare
85a6905
to
c833c2d
Compare
There was a problem hiding this 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 } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
No description provided.