Skip to content

Commit e9cb26e

Browse files
committed
fix: docs and minor adjustments
1 parent 14e94eb commit e9cb26e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tests/test_relations.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn subtractions_with_shift<G: PrimeGroup, R: RngCore>(
324324
(instance, witness)
325325
}
326326

327-
/// Fixed version of cmz wallet spend relation that properly handles the constant
327+
328328
#[allow(non_snake_case)]
329329
fn cmz_wallet_spend_relation<G: PrimeGroup, R: RngCore>(
330330
mut rng: &mut R,
@@ -352,7 +352,6 @@ fn cmz_wallet_spend_relation<G: PrimeGroup, R: RngCore>(
352352
let var_A = relation.allocate_element();
353353

354354
// C_show_Hattr_W_balance = (N.balance + I.price + fee) * P_W + z_w_balance * A
355-
// Now fee is a variable, not a constant
356355
let var_C = relation
357356
.allocate_eq((var_n_balance + var_i_price + fee) * var_P_W + var_z_w_balance * var_A);
358357

@@ -401,7 +400,7 @@ fn test_cmz_scalar_constant_bug() {
401400

402401
// This equation has a scalar constant (fee) which causes the error
403402
let _var_C = relation.allocate_eq(
404-
(var_n_balance + var_i_price + <G as Group>::Scalar::from(5u64)) * var_P_W
403+
(var_n_balance + var_i_price + <G as Group>::Scalar::from(5)) * var_P_W
405404
+ var_z_w_balance * var_A,
406405
);
407406

0 commit comments

Comments
 (0)