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

# Function compute_authwit_message_hash

Module: `noir_aztec::authwit::auth`

```rust
pub fn compute_authwit_message_hash(
    consumer: AztecAddress,
    chain_id: Field,
    version: Field,
    inner_hash: Field,
) -> Field
```

Computes the `message_hash` for the authentication witness

@param consumer The address of the contract that is consuming the message @param chain_id The chain id of the chain that the message is being consumed on @param version The version of the chain that the message is being consumed on @param inner_hash The hash of the "inner" message that is being consumed
