mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-12 09:01:28 +01:00
integrate with neptune's sponge (#105)
* integrate with neptune's sponge * fix clippy warning * add checks to ensure at most one squeeze * add checks to ensure at most one squeeze
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! This module implements various gadgets necessary for folding R1CS types.
|
||||
use crate::{
|
||||
constants::NUM_CHALLENGE_BITS,
|
||||
constants::{NUM_CHALLENGE_BITS, NUM_FE_FOR_RO},
|
||||
gadgets::{
|
||||
ecc::AllocatedPoint,
|
||||
utils::{
|
||||
@@ -268,7 +268,7 @@ where
|
||||
n_limbs: usize,
|
||||
) -> Result<AllocatedRelaxedR1CSInstance<G>, SynthesisError> {
|
||||
// Compute r:
|
||||
let mut ro = G::ROCircuit::new(ro_consts);
|
||||
let mut ro = G::ROCircuit::new(ro_consts, NUM_FE_FOR_RO);
|
||||
ro.absorb(params);
|
||||
self.absorb_in_ro(cs.namespace(|| "absorb running instance"), &mut ro)?;
|
||||
u.absorb_in_ro(&mut ro);
|
||||
|
||||
Reference in New Issue
Block a user