aztec-nr - noir_aztec::authwit::auth

Function assert_inner_hash_valid_authwit

pub fn assert_inner_hash_valid_authwit(
    context: &mut PrivateContext,
    on_behalf_of: AztecAddress,
    inner_hash: Field,
)

Assert that a specific inner_hash is valid for the on_behalf_of address

Used as an internal function for assert_current_call_valid_authwit and can be used as a standalone function when the inner_hash is from a different source, e.g., say a block of text etc.

@param on_behalf_of The address that has allegedly authorized the current call @param inner_hash The hash of the message to authorize