-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add utils
module
#53
Add utils
module
#53
Conversation
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.
Thanks! Could you please update the CHANGELOG for next release with this item too?
Have you made sure it still works fine with nwaku (say)? Might be a good idea to add some integration tests to have more confidence in changes we make
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.
A rebase is needed to pick up latest changes from rln's Cargo.toml
. Latest version includes a parallel
feature enabled by default, which is disabled for rln-wasm
utils/Cargo.toml
Outdated
edition = "2021" | ||
|
||
[dependencies] | ||
ark-ff = { version = "0.3.0", default-features = false, features = ["parallel", "asm"] } |
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.
ark-ff = { version = "0.3.0", default-features = false, features = ["parallel", "asm"] } | |
ark-ff = { version = "0.3.0", default-features = false, features = ["asm"] } |
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.
Done in 6d863d7
utils/Cargo.toml
Outdated
ark-bn254 = { version = "0.3.0" } | ||
num-traits = "0.2.11" | ||
hex-literal = "0.3.4" | ||
tiny-keccak = { version = "2.0.2", features = ["keccak"] } |
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.
tiny-keccak = { version = "2.0.2", features = ["keccak"] } | |
tiny-keccak = { version = "2.0.2", features = ["keccak"] } | |
[features] | |
default = ["parallel"] | |
parallel = ["ark-ff/parallel"] |
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.
Done in 6d863d7
rln/Cargo.toml
Outdated
@@ -30,13 +30,10 @@ num-traits = "0.2.11" | |||
once_cell = "1.14.0" | |||
rand = "0.8" | |||
tiny-keccak = { version = "2.0.2", features = ["keccak"] } | |||
utils = { path = "../utils/" } |
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.
utils = { path = "../utils/" } | |
utils = { path = "../utils/", default-features = false } |
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.
Also, once this file is rebased, utils
should be added to the parallel
feature
parallel = ["ark-ec/parallel", "ark-ff/parallel", "ark-std/parallel", "ark-groth16/parallel", "utils/parallel"]
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.
Done in 6d863d7
e476732
to
e19b4ea
Compare
@richard-ramos I've implemented the changes you requested. Could you please have a last check? Thanks! |
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.
🎖️
Addresses #52 by moving the
rln
Poseidon and Merkle Tree crates toutils
.Note that this branch is based on
add-lfsr-poseidon
which implements #52 and will be rebased on master whenadd-lfsr-poseidon
is merged.