Skip to content

Commit

Permalink
Fix typographical errors in documentation and comments (#192)
Browse files Browse the repository at this point in the history
* typo kzg.rs

* typo virtual_polynomial.rs

* typo gadgets.rs

* typo nova.rs
  • Loading branch information
Marcofann authored Dec 26, 2024
1 parent 52c61d1 commit 16f4c18
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion folding-schemes/src/commitment/kzg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl<'a, E: Pairing<G1: Curve>, const H: bool> CommitmentScheme<E::G1, H> for KZ
}

/// setup returns the tuple (ProverKey, VerifierKey). For real world deployments the setup must
/// be computed in the most trustless way possible, usually through a MPC ceremony.
/// be computed in the most trustless way possible, usually through an MPC ceremony.
fn setup(
mut rng: impl RngCore,
len: usize,
Expand Down
2 changes: 1 addition & 1 deletion folding-schemes/src/folding/nova/nifs/nova.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::utils::vec::{hadamard, mat_vec_mul, vec_add, vec_scalar_mul, vec_sub}
use crate::{Curve, Error};

/// ChallengeGadget computes the RO challenge used for the Nova instances NIFS, it contains a
/// rust-native and a in-circuit compatible versions.
/// rust-native and an in-circuit compatible versions.
pub struct ChallengeGadget<C: Curve, CI: Absorb> {
_c: PhantomData<C>,
_ci: PhantomData<CI>,
Expand Down
2 changes: 1 addition & 1 deletion folding-schemes/src/utils/espresso/virtual_polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<F: PrimeField> VirtualPolynomial<F> {
}
}

/// Creates an new virtual polynomial from a MLE and its coefficient.
/// Creates a new virtual polynomial from a MLE and its coefficient.
pub fn new_from_mle(mle: &Arc<DenseMultilinearExtension<F>>, coefficient: F) -> Self {
let mle_ptr: *const DenseMultilinearExtension<F> = Arc::as_ptr(mle);
let mut hm = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion folding-schemes/src/utils/gadgets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::utils::vec::SparseMatrix;

/// `EquivalenceGadget` enforces that two in-circuit variables are equivalent,
/// where the equivalence relation is parameterized by `M`:
/// - For `FpVar`, it is simply a equality relation, and `M` is unused.
/// - For `FpVar`, it is simply an equality relation, and `M` is unused.
/// - For `NonNativeUintVar`, we consider equivalence as a congruence relation,
/// in terms of modular arithmetic, so `M` specifies the modulus.
pub trait EquivalenceGadget<M> {
Expand Down

0 comments on commit 16f4c18

Please sign in to comment.