Back to width 12

This commit is contained in:
wborgeaud 2021-09-26 20:09:26 +02:00
parent 1a55538e23
commit 747c9f894b
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ use crate::hash::poseidon::Poseidon;
use crate::util::bits_u64;
/// A prime order field with the features we need to use it as a base field in our argument system.
pub trait RichField: PrimeField + GMiMC<8> + Poseidon<8> {}
pub trait RichField: PrimeField + GMiMC<12> + Poseidon<12> {}
/// A finite field.
pub trait Field:

View File

@ -9,7 +9,7 @@ use crate::hash::hash_types::{HashOut, HashOutTarget};
use crate::iop::target::Target;
use crate::plonk::circuit_builder::CircuitBuilder;
pub(crate) const SPONGE_RATE: usize = 4;
pub(crate) const SPONGE_RATE: usize = 8;
pub(crate) const SPONGE_CAPACITY: usize = 4;
pub const SPONGE_WIDTH: usize = SPONGE_RATE + SPONGE_CAPACITY;