Skip to content

Commit 0065474

Browse files
authored
Fix typos
1 parent 634dd45 commit 0065474

File tree

35 files changed

+53
-53
lines changed

35 files changed

+53
-53
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The libsnark library currently provides a C++ implementation of:
7676
contribution of \[DFGK14]
7777
4. A preprocessing SNARK for a language of Boolean circuits, "TBCS"
7878
(_Two-input Boolean Circuit Satisfiability_). Internally, it reduces to USCS.
79-
This is much more efficient than going through R1CS.
79+
This is much more efficient than going through R1CS.
8080
5. A simulation-extractable preprocessing SNARK for R1CS.
8181
This construction uses the approach described in \[GM17]. For arithmetic
8282
circuits, it is slower than the \[BCTV14a] approach, but produces shorter
@@ -298,7 +298,7 @@ This will install `libsnark.a` into `/install/path/lib`; so your application sho
298298

299299
In addition, unless you use `WITH_SUPERCOP=OFF`, `libsnark_adsnark.a` will be installed and should be linked in using `-lsnark_adsnark`.
300300

301-
When you use compile you application against `libsnark`, you must have the same conditional defines (`#define FOO` or `g++ -DFOO`) as when you compiled `libsnark`, due to the use of templates. One way to figure out the correct conditional defines is to look at `build/libsnark/CMakeFiles/snark.dir/flags.make` after running `cmake`. ([Issue #21](https://github.com/scipr-lab/libsnark/issues/21))
301+
When you use compile your application against `libsnark`, you must have the same conditional defines (`#define FOO` or `g++ -DFOO`) as when you compiled `libsnark`, due to the use of templates. One way to figure out the correct conditional defines is to look at `build/libsnark/CMakeFiles/snark.dir/flags.make` after running `cmake`. ([Issue #21](https://github.com/scipr-lab/libsnark/issues/21))
302302

303303
### Building on Windows using Cygwin
304304

libsnark/common/data_structures/integer_permutation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class integer_permutation {
4141
integer_permutation slice(const size_t slice_min_element, const size_t slice_max_element) const;
4242

4343
/* Similarly to std::next_permutation this transforms the current
44-
integer permutation into the next lexicographically oredered
44+
integer permutation into the next lexicographically ordered
4545
permutation; returns false if the last permutation was reached and
4646
this is now the identity permutation on [min_element .. max_element] */
4747
bool next_permutation();

libsnark/common/data_structures/merkle_tree.tcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ merkle_tree<HashT>::merkle_tree(const size_t depth,
138138
}
139139
else
140140
{
141-
// typical case: this is the left child of the parent and adjecent to it there is a right child
141+
// typical case: this is the left child of the parent and adjacent to it there is a right child
142142
hashes[(idx-1)/2] = two_to_one_CRH<HashT>(hash, std::next(it)->second);
143143
++it;
144144
}

libsnark/common/data_structures/sparse_vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct sparse_vector {
5757
size_t size() const; // return the number of indices (representing the number of non-zero entries)
5858
size_t size_in_bits() const; // return the number bits needed to store the sparse vector
5959

60-
/* return a pair consisting of the accumulated value and the sparse vector of non-accumuated values */
60+
/* return a pair consisting of the accumulated value and the sparse vector of non-accumulated values */
6161
template<typename FieldT>
6262
std::pair<T, sparse_vector<T> > accumulate(const typename std::vector<FieldT>::const_iterator &it_begin,
6363
const typename std::vector<FieldT>::const_iterator &it_end,

libsnark/common/libsnark_serialization.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @file
22
*****************************************************************************
33
4-
Temporary import serialization operators from libff in libsnark namspace;
4+
Temporary import serialization operators from libff in libsnark namespace;
55
66
*****************************************************************************
77
* @author This file is part of libsnark, developed by SCIPR Lab

libsnark/common/routing_algorithms/as_waksman_routing_algorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void construct_as_waksman_inner(const size_t left,
147147
/**
148148
* Odd special case:
149149
* the last wire is not connected to any switch,
150-
* and the the wire is mereley routed "straight".
150+
* and the wire is merely routed "straight".
151151
*/
152152
neighbors[left][hi].first = neighbors[left][hi].second = hi;
153153
neighbors[right][hi].first = neighbors[right][hi].second = rhs_dests[hi-lo];

libsnark/common/routing_algorithms/benes_routing_algorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ benes_routing get_benes_routing(const integer_permutation &permutation)
265265
return routing;
266266
}
267267

268-
/* auxuliary function that is used in valid_benes_routing below */
268+
/* auxiliary function that is used in valid_benes_routing below */
269269
template<typename T>
270270
std::vector<std::vector<T> > route_by_benes(const benes_routing &routing, const std::vector<T> &start)
271271
{

libsnark/gadgetlib1/gadgets/cpu_checkers/fooram/components/bar_gadget.tcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @file
22
*****************************************************************************
33
4-
Implementation of interfaces for an auxiliarry gadget for the FOORAM CPU.
4+
Implementation of interfaces for an auxiliary gadget for the FOORAM CPU.
55
66
See bar_gadget.hpp .
77

libsnark/gadgetlib1/gadgets/hashes/knapsack/knapsack_gadget.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
In both cases, a method ("sample_randomness") allows to sample M.
1919
2020
The parameter d (the dimension) is fixed at compile time in the struct
21-
knapsack_dimension below. The parameter m (the input lenght) can be chosen
21+
knapsack_dimension below. The parameter m (the input length) can be chosen
2222
at run time (in either gadget).
2323
2424

libsnark/gadgetlib2/adapters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This limitation is to prevent a logic bug that may occur if the variables used a
6767
The indices are assigned on the Variable constructor, using the global variable nextFreeIndex. Thus, creating two protoboards in the same program may cause
6868
unexpected behavior when converting.
6969
Moreover, the bug will create more variables than needed in the converted system, e.g. if variables 0,1,3,4 were used in the gadgetlib2
70-
generated system, than the conversion will create a new r1cs system with variables 0,1,2,3,4 and assign variable 2 the value zero
70+
generated system, then the conversion will create a new r1cs system with variables 0,1,2,3,4 and assign variable 2 the value zero
7171
(when converting the assignment).
7272
Everything should be fixed soon.
7373
If you are sure you know what you are doing, you can comment out the ASSERT line.

0 commit comments

Comments
 (0)