Function assert_current_call_valid_authwit
pub fn assert_current_call_valid_authwit<let N: u32>(
context: &mut PrivateContext,
on_behalf_of: AztecAddress,
)
pub fn assert_current_call_valid_authwit<let N: u32>(
context: &mut PrivateContext,
on_behalf_of: AztecAddress,
)
Assert that
on_behalf_ofhas authorized the current call with a valid authentication witnessCompute the
inner_hashusing themsg_sender,selectorandargs_hashand then make a call out to theon_behalf_ofcontract to verify that theinner_hashis valid.Additionally, this function emits the identifying information of the call as an offchain effect so PXE can rely the information to the user/wallet in a readable way. To that effect, it is generic over N, where N is the number of arguments the authorized functions takes. This is used to load the arguments from the execution cache. This function is intended to be called via a macro, which will use the turbofish operator to specify the number of arguments.
@param on_behalf_of The address that has allegedly authorized the current call