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

Aztec nr #9

Open
wants to merge 3 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
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion aztec/src/macros/functions/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion aztec/src/macros/notes/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -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;

(
Expand Down