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

Fix/err #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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 authwit/src/auth.nr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use dep::aztec::protocol_types::{
};

/**
* Authenticaion witness helper library
* Authentication witness helper library
*
* Authentication Witness is a scheme for authenticating actions on Aztec, so users can allow third-parties
* (e.g. protocols or other users) to execute an action on their behalf.
Expand Down
2 changes: 1 addition & 1 deletion aztec/src/context/globals/public_global_variables.nr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// protocl global vars are equal to the private ones so we just re-export them here under a different name
// protocol global vars are equal to the private ones so we just re-export them here under a different name
pub use dep::protocol_types::abis::global_variables::GlobalVariables as PublicGlobalVariables;
2 changes: 1 addition & 1 deletion aztec/src/utils/array/collapse.nr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn collapse<T, let N: u32>(input: [Option<T>; N]) -> BoundedVec<T, N>
where
T: Eq,
{
// Computing the collpased BoundedVec would result in a very large number of constraints, since we'd need to loop
// Computing the collapsed BoundedVec would result in a very large number of constraints, since we'd need to loop
// over the input array and conditionally write to a dynamic vec index, which is a very unfriendly pattern to the
// proving backend.
// Instead, we use an unconstrained function to produce the final collapsed array, along with some hints, and then
Expand Down
2 changes: 1 addition & 1 deletion aztec/src/utils/array/subarray.nr
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod test {

#[test]
unconstrained fn subarray_into_empty() {
// In all of these cases we're setting DST_LEN to be 0, so we always get back an emtpy array.
// In all of these cases we're setting DST_LEN to be 0, so we always get back an empty array.
assert_eq(subarray([], 0), []);
assert_eq(subarray([1, 2, 3, 4, 5], 0), []);
assert_eq(subarray([1, 2, 3, 4, 5], 2), []);
Expand Down