> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function assert_inner_hash_valid_authwit

Module: `noir_aztec::authwit::auth`

```rust
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
