Skip to content

Commit

Permalink
chore: fix some comments (#323)
Browse files Browse the repository at this point in the history
Signed-off-by: dropbigfish <[email protected]>
  • Loading branch information
dropbigfish authored Sep 6, 2024
1 parent d9a5130 commit 2772826
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gadgets/r1cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl<E: Engine> AllocatedRelaxedR1CSInstance<E> {

// X0 and X1 are allocated and in the honest prover case set to zero
// If the prover is malicious, it can set to arbitrary values, but the resulting
// relaxed R1CS instance with the the checked default values of W, E, and u must still be satisfying
// relaxed R1CS instance with the checked default values of W, E, and u must still be satisfying
let X0 = BigNat::alloc_from_nat(
cs.namespace(|| "allocate x_default[0]"),
|| Ok(f_to_nat(&E::Scalar::ZERO)),
Expand Down
2 changes: 1 addition & 1 deletion src/gadgets/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
})
}

/// interepret scalar as base
/// interpret scalar as base
pub fn scalar_as_base<E: Engine>(input: E::Scalar) -> E::Base {
let input_bits = input.to_le_bits();
let mut mult = E::Base::ONE;
Expand Down
2 changes: 1 addition & 1 deletion src/traits/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub trait StepCircuit<F: PrimeField>: Send + Sync + Clone {
/// input a vector of size equal to arity and output a vector of size equal to arity
fn arity(&self) -> usize;

/// Sythesize the circuit for a computation step and return variable
/// Synthesize the circuit for a computation step and return variable
/// that corresponds to the output of the step `z_{i+1}`
fn synthesize<CS: ConstraintSystem<F>>(
&self,
Expand Down
2 changes: 1 addition & 1 deletion src/traits/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub trait CommitmentTrait<E: Engine>:
}

/// A trait that helps determine the length of a structure.
/// Note this does not impose any memory representation contraints on the structure.
/// Note this does not impose any memory representation constraints on the structure.
pub trait Len {
/// Returns the length of the structure.
fn length(&self) -> usize;
Expand Down

0 comments on commit 2772826

Please sign in to comment.