Skip to main content

auth

Standalone Functions

assert_current_call_valid_authwit

assert_current_call_valid_authwit(context, on_behalf_of);

docs:start:assert_current_call_valid_authwit

Parameters

NameType
context&mut PrivateContext
on_behalf_ofAztecAddress

assert_inner_hash_valid_authwit

assert_inner_hash_valid_authwit(context, on_behalf_of, inner_hash);

Parameters

NameType
context&mut PrivateContext
on_behalf_ofAztecAddress
inner_hashField

assert_current_call_valid_authwit_public

assert_current_call_valid_authwit_public(context, on_behalf_of);

Parameters

NameType
context&mut PublicContext
on_behalf_ofAztecAddress

assert_inner_hash_valid_authwit_public

assert_inner_hash_valid_authwit_public(context, on_behalf_of, inner_hash);

Parameters

NameType
context&mut PublicContext
on_behalf_ofAztecAddress
inner_hashField

compute_authwit_message_hash_from_call

compute_authwit_message_hash_from_call(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_authwit_nullifier

compute_authwit_nullifier(on_behalf_of, inner_hash);

Parameters

NameType
on_behalf_ofAztecAddress
inner_hashField

compute_authwit_message_hash

compute_authwit_message_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