From e9bfd6bbb66881920ee340c5ff2fe32d64c535d7 Mon Sep 17 00:00:00 2001 From: Arthur Paulino Date: Mon, 18 Sep 2023 21:04:03 -0300 Subject: [PATCH] replace nova::PublicParams::setup call by new (#685) --- src/proof/nova.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/proof/nova.rs b/src/proof/nova.rs index 9ecbd390ff..8ac79d53ed 100644 --- a/src/proof/nova.rs +++ b/src/proof/nova.rs @@ -194,13 +194,12 @@ where let commitment_size_hint1 = as RelaxedR1CSSNARKTrait>>::commitment_key_floor(); let commitment_size_hint2 = as RelaxedR1CSSNARKTrait>>::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 } }