Skip to content

Commit

Permalink
Avoid using unstable features
Browse files Browse the repository at this point in the history
  • Loading branch information
winderica committed Aug 5, 2024
1 parent ec242bc commit 1a67dad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions folding-schemes/src/folding/protogalaxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ impl<C: CurveGroup> R1CSVar<C::ScalarField> for CommittedInstanceVar<C> {
}
}

impl<C: CurveGroup<ScalarField: Absorb, BaseField: PrimeField>> CommittedInstanceVar<C> {
impl<C: CurveGroup> CommittedInstanceVar<C>
where
C::ScalarField: Absorb,
C::BaseField: PrimeField,
{
/// hash implements the committed instance hash compatible with the native implementation from
/// CommittedInstance.hash.
/// Returns `H(i, z_0, z_i, U_i)`, where `i` can be `i` but also `i+1`, and `U` is the
Expand Down Expand Up @@ -610,7 +614,8 @@ where
// u_{i+1}.x[1] = H(cf_U_{i+1})
let cf_u_i1_x: C1::ScalarField;

if self.i.is_zero() { // Take extra care of the base case
if self.i.is_zero() {
// Take extra care of the base case
// `U_{i+1}` (i.e., `U_1`) is fixed to `U_dummy`, so we just use
// `self.U_i = U_0 = U_dummy`.
u_i1_x = self.U_i.hash(
Expand Down

0 comments on commit 1a67dad

Please sign in to comment.