-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove height 32 from RLN #239
Conversation
Benchmark for a70d395Click to view benchmark
|
Benchmark for a70d395Click to view benchmark
|
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 for this PR! Please look at the changes requested :)
rln/src/circuit.rs
Outdated
@@ -33,8 +33,8 @@ const WASM_FILENAME: &str = "rln.wasm"; | |||
// Note that the circuit and keys in TEST_RESOURCES_FOLDER are compiled for Merkle trees of height 20 & 32 | |||
// Changing these parameters to other values than these defaults will cause zkSNARK proof verification to fail | |||
pub const TEST_PARAMETERS_INDEX: usize = 0; | |||
pub const TEST_TREE_HEIGHT: usize = [20, 32][TEST_PARAMETERS_INDEX]; | |||
pub const TEST_RESOURCES_FOLDER: &str = ["tree_height_20", "tree_height_32"][TEST_PARAMETERS_INDEX]; | |||
pub const TEST_TREE_HEIGHT: usize = [20][TEST_PARAMETERS_INDEX]; |
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.
you should also remove the tree_height_32 resources from the resources sub-directory.
please fix the comments which reference the tree height 32 too.
we can remove the TEST_TREE_HEIGHT, TEST_PARAMETERS_INDEX constants since they can have only one value.
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.
Removed resources.
Removed TEST_PARAMETERS_INDEX
, but left TEST_TREE_HEIGHT
, because it is used all over the place, and removing it would make it less descriptive.
Please also add some description to your PR, and link back to the issue in which this was assigned to you |
Part of #237 |
Benchmark for f03469aClick to view benchmark
|
Done |
Benchmark for f03469aClick to view benchmark
|
Remove tree_height 32 resources and associated circuit loading within