Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #323

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading