From bb222ab61627b26d3aedea39c1c65bfec524101f Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 1 Dec 2024 20:26:13 +0200 Subject: [PATCH 1/3] Update auth.nr --- authwit/src/auth.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authwit/src/auth.nr b/authwit/src/auth.nr index edbc4610..4ea5bfda 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. @@ -75,7 +75,7 @@ use dep::aztec::protocol_types::{ * To ensure that the same "approval" cannot be used multiple times, we also compute a `nullifier` for the * authentication witness, and emit it from the `Token` contract (consumer). * - * Note that we can do this flow as we are in private were we can do oracle calls out from contracts. + * Note that we can do this flow as we are in private where we can do oracle calls out from contracts. * * * Person Contract Contract Contract From d76c539afe8af2223342003ec2f5cb97edb2066c Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 1 Dec 2024 20:36:22 +0200 Subject: [PATCH 2/3] Update mod.nr --- aztec/src/macros/functions/mod.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/macros/functions/mod.nr b/aztec/src/macros/functions/mod.nr index 038fee01..df63cf12 100644 --- a/aztec/src/macros/functions/mod.nr +++ b/aztec/src/macros/functions/mod.nr @@ -52,7 +52,7 @@ comptime fn create_view_check(f: FunctionDefinition) -> Quoted { /// An initializer function is similar to a constructor: /// - it can only be called once /// - if there are multiple initializer functions, only one of them can be called -/// - no non-initializer functions can be called until an initializer has ben called (except `noinitcheck` functions) +/// - no non-initializer functions can be called until an initializer has been called (except `noinitcheck` functions) pub comptime fn initializer(_f: FunctionDefinition) { // Marker attribute } From a24794fe0d5c985f0495bf143947e0ce89092483 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 1 Dec 2024 20:38:13 +0200 Subject: [PATCH 3/3] Update mod.nr --- aztec/src/macros/notes/mod.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/macros/notes/mod.nr b/aztec/src/macros/notes/mod.nr index 43695823..4e3cd0f7 100644 --- a/aztec/src/macros/notes/mod.nr +++ b/aztec/src/macros/notes/mod.nr @@ -444,7 +444,7 @@ comptime fn generate_setup_payload( + 2 /* log_plaintext_length */ + 14 /* AES padding */; // Each field contains 31 bytes so the length in fields is computed as ceil(encrypted_log_byte_length / 31) - // --> we achieve rouding by adding 30 and then dividing without remainder + // --> we achieve rounding by adding 30 and then dividing without remainder let encrypted_log_field_length = (encrypted_log_byte_length + 30) / 31; (