From 747c9f894b49c423d2ac4eb1c93e069f59192ee4 Mon Sep 17 00:00:00 2001 From: wborgeaud Date: Sun, 26 Sep 2021 20:09:26 +0200 Subject: [PATCH] Back to width 12 --- src/field/field_types.rs | 2 +- src/hash/hashing.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/field/field_types.rs b/src/field/field_types.rs index 97db0948..82f27d60 100644 --- a/src/field/field_types.rs +++ b/src/field/field_types.rs @@ -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: diff --git a/src/hash/hashing.rs b/src/hash/hashing.rs index 77ee1534..b39bc175 100644 --- a/src/hash/hashing.rs +++ b/src/hash/hashing.rs @@ -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;