From 537050398d38af15c0ffb8d0a2cf6422858f91ec Mon Sep 17 00:00:00 2001 From: Romashka Date: Wed, 18 Dec 2024 14:22:29 +0200 Subject: [PATCH 1/4] typo-Update auth.nr --- authwit/src/auth.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authwit/src/auth.nr b/authwit/src/auth.nr index 6c21bfae..85e7be95 100644 --- a/authwit/src/auth.nr +++ b/authwit/src/auth.nr @@ -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. From ef1eb9319f3ca2c1879dbd15dd839e5cde3ec7e5 Mon Sep 17 00:00:00 2001 From: Romashka Date: Wed, 18 Dec 2024 14:22:53 +0200 Subject: [PATCH 2/4] typo-Update public_global_variables.nr --- aztec/src/context/globals/public_global_variables.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/context/globals/public_global_variables.nr b/aztec/src/context/globals/public_global_variables.nr index c1f2bcb8..90d425ef 100644 --- a/aztec/src/context/globals/public_global_variables.nr +++ b/aztec/src/context/globals/public_global_variables.nr @@ -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; From 1ffe358f69677bb4ac2b5b823a1ce12985539391 Mon Sep 17 00:00:00 2001 From: Romashka Date: Wed, 18 Dec 2024 14:23:24 +0200 Subject: [PATCH 3/4] typo-Update collapse.nr --- aztec/src/utils/array/collapse.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/utils/array/collapse.nr b/aztec/src/utils/array/collapse.nr index 22ac88ae..3d86f5a5 100644 --- a/aztec/src/utils/array/collapse.nr +++ b/aztec/src/utils/array/collapse.nr @@ -9,7 +9,7 @@ pub fn collapse(input: [Option; N]) -> BoundedVec 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 From e2fcdaf6b3ce2d3eaca72dd71980d63f4ba856d8 Mon Sep 17 00:00:00 2001 From: Romashka Date: Wed, 18 Dec 2024 14:23:45 +0200 Subject: [PATCH 4/4] typo-Update subarray.nr --- aztec/src/utils/array/subarray.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/utils/array/subarray.nr b/aztec/src/utils/array/subarray.nr index fc4b7567..52b98f9a 100644 --- a/aztec/src/utils/array/subarray.nr +++ b/aztec/src/utils/array/subarray.nr @@ -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), []);