Skip to main content

auth

Standalone Functions

assert_current_call_valid_authwit

assert_current_call_valid_authwit(context, on_behalf_of);

Parameters

NameType
context&mut PrivateContext
on_behalf_ofAztecAddress

assert_current_call_valid_authwit_public

assert_current_call_valid_authwit_public(context, on_behalf_of);

Parameters

NameType
context&mut PublicContext
on_behalf_ofAztecAddress

compute_call_authwit_hash

compute_call_authwit_hash(caller, consumer, chain_id, version, selector, args);

Parameters

NameType
callerAztecAddress
consumerAztecAddress
chain_idField
versionField
selectorFunctionSelector
args[Field; N]

compute_inner_authwit_hash

compute_inner_authwit_hash(args);

Parameters

NameType
args[Field; N]

compute_outer_authwit_hash

compute_outer_authwit_hash(consumer, chain_id, version, inner_hash);

Parameters

NameType
consumerAztecAddress
chain_idField
versionField
inner_hashField

set_authorized

set_authorized(context, message_hash, authorize);

Parameters

NameType
context&mut PublicContext
message_hashField
authorizebool

set_reject_all

set_reject_all(context, reject);

Parameters

NameType
context&mut PublicContext
rejectbool