-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fixed V3a Backend #297
Fixed V3a Backend #297
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.
LGTM!
|
||
### 4. Verify Proof of Inclusion | ||
Note that the `verifier_params.json` file can be used in any other round unless the same circuit configurations, such as `N_CURRENCIES` and `K`. |
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.
Do you mean that it can be re-used if N_CURRENCIES and K didn't change?
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.
Yes, exactly!
@@ -112,6 +112,13 @@ pub mod summa_hyperplonk { | |||
grand_total, | |||
} | |||
} | |||
|
|||
pub fn init_empty() -> Self { |
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.
Is this method used anywhere?
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 pointing that out! I almost forgot to update its usage:
summa-solvency/backend/examples/summa_solvency_flow.rs
Lines 120 to 126 in 1537491
// Users can generate verifier parameters using only the configurations for "N_CURRENCIES" and "N_USERS", along with the SRS. | |
let dummy_circuit = SummaHyperplonk::<N_USERS, N_CURRENCIES>::init_empty(); | |
let (circuit_info, _) = circuit_fn(num_vars as usize, dummy_circuit); | |
let param = ProvingBackend::setup_custom("../backend/ptau/hyperplonk-srs-17").unwrap(); | |
let (_, verifier_params) = ProvingBackend::preprocess(¶m, &circuit_info).unwrap(); |
This is how it can be used.
…vency flow example
Major Changes in V3 backend.
hermez-raw-#
tohyperponk-srs-#
, which is generated for the HyperPlonk Backend.Round
interface in the Backend has been changed.