Skip to content

Commit 369f088

Browse files
committed
refactor(authwit): rename common submodule to utils to match codebase convention
1 parent 3746717 commit 369f088

11 files changed

Lines changed: 10 additions & 10 deletions

File tree

noir-projects/aztec-nr/aztec/src/authwit/account.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use crate::context::PrivateContext;
22

33
use crate::protocol::{constants::DOM_SEP__TX_NULLIFIER, hash::poseidon2_hash_with_separator, traits::Hash};
44

5-
use crate::authwit::common::{compute_authwit_message_hash, IS_VALID_SELECTOR};
65
use crate::authwit::entrypoint::app::AppPayload;
6+
use crate::authwit::utils::{compute_authwit_message_hash, IS_VALID_SELECTOR};
77

88
pub struct AccountActions<Context> {
99
context: Context,

noir-projects/aztec-nr/aztec/src/authwit/mod.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod account;
44
pub mod authorization_interface;
55
mod authorization_selector;
66
pub use authorization_selector::AuthorizationSelector;
7-
pub mod common;
7+
pub mod utils;
88
pub mod private;
99
pub mod public;
1010
pub mod entrypoint;

noir-projects/aztec-nr/aztec/src/authwit/private.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
authwit::common::{
2+
authwit::utils::{
33
CallAuthorization, compute_authwit_nullifier, compute_inner_authwit_hash, emit_authorization_as_offchain_effect,
44
IS_VALID_SELECTOR,
55
},

noir-projects/aztec-nr/aztec/src/authwit/public.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{authwit::common::{compute_inner_authwit_hash, IS_VALID_SELECTOR}, context::{gas::GasOpts, PublicContext}};
1+
use crate::{authwit::utils::{compute_inner_authwit_hash, IS_VALID_SELECTOR}, context::{gas::GasOpts, PublicContext}};
22
use crate::protocol::{abis::function_selector::FunctionSelector, address::AztecAddress, traits::ToField};
33
use crate::protocol::constants::CANONICAL_AUTH_REGISTRY_ADDRESS as AUTH_REGISTRY_ADDRESS;
44

File renamed without changes.

noir-projects/aztec-nr/aztec/src/test/helpers/authwit.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
authwit::common::{compute_authwit_message_hash, compute_inner_authwit_hash},
2+
authwit::utils::{compute_authwit_message_hash, compute_inner_authwit_hash},
33
context::{PrivateCall, PublicCall},
44
hash::hash_args,
55
test::helpers::{test_environment::TestEnvironment, txe_oracles},

noir-projects/aztec-nr/aztec/src/test/helpers/test_environment/test/accounts.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
authwit::common::{compute_authwit_message_hash, IS_VALID_SELECTOR},
2+
authwit::utils::{compute_authwit_message_hash, IS_VALID_SELECTOR},
33
context::calls::PrivateStaticCall,
44
keys::getters::get_public_keys,
55
test::helpers::{test_environment::TestEnvironment, txe_oracles},

noir-projects/contract-snapshots/test_programs/compile_failure/authorization_selector_collision/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
///
44
/// Note on the noisy cascade in `expected_error`: the `#[authorization]` macro is
55
/// currently `pub` in aztec-nr but only ever consumed from within aztec-nr itself (in
6-
/// `authwit/common.nr`). Its generated code references `crate::authwit::*` paths which
6+
/// `authwit/utils.nr`). Its generated code references `crate::authwit::*` paths which
77
/// do not resolve from a downstream crate, producing a handful of cascading resolution
88
/// errors before the collision panic is reached.
99
///

noir-projects/noir-contracts/contracts/app/nft_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use aztec::macros::aztec;
99
pub contract NFT {
1010
use crate::types::nft_note::{NFTNote, PartialNFTNote};
1111
use aztec::{
12-
authwit::common::compute_authwit_nullifier,
12+
authwit::utils::compute_authwit_nullifier,
1313
macros::{functions::{authorize_once, external, initializer, internal, only_self, view}, storage::storage},
1414
messages::message_delivery::MessageDelivery,
1515
note::{

noir-projects/noir-contracts/contracts/app/simple_token_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub contract SimpleToken {
1111
use compressed_string::FieldCompressedString;
1212

1313
use aztec::{
14-
authwit::common::compute_authwit_nullifier,
14+
authwit::utils::compute_authwit_nullifier,
1515
context::{PrivateCall, PrivateContext},
1616
macros::{
1717
events::event,

0 commit comments

Comments
 (0)