Skip to content

Commit

Permalink
replace nova::PublicParams::setup call by new (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpaulino authored Sep 19, 2023
1 parent 351e894 commit e9bfd6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/proof/nova.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,12 @@ where
let commitment_size_hint1 = <SS1<F> as RelaxedR1CSSNARKTrait<G1<F>>>::commitment_key_floor();
let commitment_size_hint2 = <SS2<F> as RelaxedR1CSSNARKTrait<G2<F>>>::commitment_key_floor();

let pp = nova::PublicParams::setup(
let pp = nova::PublicParams::new(
&circuit_primary,
&circuit_secondary,
Some(commitment_size_hint1),
Some(commitment_size_hint2),
)
.unwrap();
);
let (pk, vk) = CompressedSNARK::setup(&pp).unwrap();
PublicParams { pp, pk, vk }
}
Expand Down

0 comments on commit e9bfd6b

Please sign in to comment.