Skip to content

Commit

Permalink
Merge pull request AleoNet#1947 from AleoHQ/update_varuna_test
Browse files Browse the repository at this point in the history
Update varuna test
  • Loading branch information
howardwu authored Sep 4, 2023
2 parents 98d953b + 2a03ed0 commit bdc931e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion algorithms/src/snark/varuna/ahp/verifier/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl<TargetField: PrimeField, MM: SNARKMode> AHPForR1CS<TargetField, MM> {
) -> Result<(ThirdMessage<TargetField>, State<TargetField, MM>), AHPError> {
let elems = fs_rng.squeeze_nonnative_field_elements(1);
let beta = elems[0];
assert!(!state.max_constraint_domain.evaluate_vanishing_polynomial(beta).is_zero());
assert!(!state.max_variable_domain.evaluate_vanishing_polynomial(beta).is_zero());

let message = ThirdMessage { beta };
state.third_round_message = Some(message);
Expand Down Expand Up @@ -192,6 +192,7 @@ impl<TargetField: PrimeField, MM: SNARKMode> AHPForR1CS<TargetField, MM> {
) -> Result<State<TargetField, MM>, AHPError> {
let elems = fs_rng.squeeze_nonnative_field_elements(1);
let gamma = elems[0];
assert!(!state.max_non_zero_domain.evaluate_vanishing_polynomial(gamma).is_zero());

state.gamma = Some(gamma);
Ok(state)
Expand Down
2 changes: 1 addition & 1 deletion algorithms/src/snark/varuna/varuna.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ where
#[allow(clippy::only_used_in_recursion)]
/// This is the main entrypoint for creating proofs.
/// You can find a specification of the prover algorithm in:
/// https://github.com/AleoHQ/protocol-docs/tree/main/marlin
/// https://github.com/AleoHQ/protocol-docs/tree/main/snark/varuna
fn prove_batch<C: ConstraintSynthesizer<E::Fr>, R: Rng + CryptoRng>(
universal_prover: &Self::UniversalProver,
fs_parameters: &Self::FSParameters,
Expand Down

0 comments on commit bdc931e

Please sign in to comment.