aztec-nr - noir_aztec::authwit::auth

Function compute_authwit_message_hash

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