Skip to content

Commit 1db32f8

Browse files
committed
Spell check typos.
1 parent 67a4f7f commit 1db32f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/toolbox/sigma/group_morphism.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct LinearCombination {
66
}
77

88
pub struct Morphism<G: Group> {
9-
pub linear_combinaison: Vec<LinearCombination>,
9+
pub linear_combination: Vec<LinearCombination>,
1010
pub group_elements: Vec<G>,
1111
pub num_scalars: usize,
1212
pub num_elements: usize,
@@ -23,23 +23,23 @@ fn msm_pr<G: Group>(scalars: &[G::Scalar], bases: &[G]) -> G {
2323
impl<G: Group> Morphism<G> {
2424
pub fn new() -> Self {
2525
Self {
26-
linear_combinaison: Vec::new(),
26+
linear_combination: Vec::new(),
2727
group_elements: Vec::new(),
2828
num_scalars: 0,
2929
num_elements: 0,
3030
}
3131
}
3232

3333
pub fn append(&mut self, lc: LinearCombination) {
34-
self.linear_combinaison.push(lc);
34+
self.linear_combination.push(lc);
3535
}
3636

3737
pub fn num_statements(&self) -> usize {
38-
self.linear_combinaison.len()
38+
self.linear_combination.len()
3939
}
4040

4141
pub fn evaluate(&self, scalars: &[<G as Group>::Scalar]) -> Vec<G> {
42-
self.linear_combinaison.iter().map(|lc| {
42+
self.linear_combination.iter().map(|lc| {
4343
let coefficients: Vec<_> = lc.scalar_indices.iter().map(|&i| scalars[i].clone()).collect();
4444
let elements: Vec<_> = lc.element_indices.iter().map(|&i| self.group_elements[i].clone()).collect();
4545
msm_pr(&coefficients, &elements)

tests/non_interactive_protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn fiat_shamir_schnorr_proof_ristretto() {
3232
let mut witness = Vec::new();
3333
witness.push(w.clone());
3434

35-
// The H = z * G equeation where z is the unique scalar variable
35+
// The H = z * G equation where z is the unique scalar variable
3636
morphismp.append_equation(1, &[(0, 0)]);
3737

3838
// The SigmaProtocol induced by morphismp

0 commit comments

Comments
 (0)