Function assert_current_call_valid_authwit_public
pub unconstrained fn assert_current_call_valid_authwit_public(
context: PublicContext,
on_behalf_of: AztecAddress,
)
pub unconstrained fn assert_current_call_valid_authwit_public(
context: PublicContext,
on_behalf_of: AztecAddress,
)
Assert that
on_behalf_ofhas authorized the current call in the authentication registryCompute the
inner_hashusing themsg_sender,selectorandargs_hashand then make a call out to theon_behalf_ofcontract to verify that theinner_hashis valid.Note that the authentication registry will take the
msg_senderinto account as the consumer, so this will only work if themsg_senderis the same as theconsumerwhen themessage_hashwas inserted into the registry.@param on_behalf_of The address that has allegedly authorized the current call