Browse Source

fix typo (#189)

main
3for 1 year ago
committed by GitHub
parent
commit
dd3b1a217d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      examples/signature.rs
  2. +1
    -1
      src/gadgets/r1cs.rs
  3. +1
    -1
      src/nifs.rs

+ 1
- 1
examples/signature.rs

@ -57,7 +57,7 @@ where
let mut t = [0u8; 80]; let mut t = [0u8; 80];
rng.fill_bytes(&mut t[..]); rng.fill_bytes(&mut t[..]);
// h = H*(T || M)
// h = H(T || M)
let h = Self::hash_to_scalar(b"Nova_Ecdsa_Hash", &t[..], c.to_repr().as_mut()); let h = Self::hash_to_scalar(b"Nova_Ecdsa_Hash", &t[..], c.to_repr().as_mut());
// R = [h]G // R = [h]G

+ 1
- 1
src/gadgets/r1cs.rs

@ -120,7 +120,7 @@ impl AllocatedRelaxedR1CSInstance {
} }
/// Allocates the hardcoded default RelaxedR1CSInstance in the circuit. /// Allocates the hardcoded default RelaxedR1CSInstance in the circuit.
/// W = E = 0, u = 1, X0 = X1 = 0
/// W = E = 0, u = 0, X0 = X1 = 0
pub fn default<CS: ConstraintSystem<<G as Group>::Base>>( pub fn default<CS: ConstraintSystem<<G as Group>::Base>>(
mut cs: CS, mut cs: CS,
limb_width: usize, limb_width: usize,

+ 1
- 1
src/nifs.rs

@ -78,7 +78,7 @@ impl NIFS {
)) ))
} }
/// Takes as input a relaxed R1CS instance `U1` and and R1CS instance `U2`
/// Takes as input a relaxed R1CS instance `U1` and R1CS instance `U2`
/// with the same shape and defined with respect to the same parameters, /// with the same shape and defined with respect to the same parameters,
/// and outputs a folded instance `U` with the same shape, /// and outputs a folded instance `U` with the same shape,
/// with the guarantee that the folded instance `U` /// with the guarantee that the folded instance `U`

Loading…
Cancel
Save