aztec-nr - noir_aztec::messages::discovery

Type alias CustomMessageHandler

pub type CustomMessageHandler<Env> = unconstrained fn[Env](AztecAddress, u64, u64, BoundedVec<Field, 11>, MessageContext);

A handler for custom messages.

Contracts that emit custom messages (i.e. any with a message type that is not in crate::messages::msg_type) need to use crate::macros::AztecConfig::custom_message_handler with a function of this type in order to process them. They will otherwise be silently ignored.