Struct AztecConfig
pub struct AztecConfig
{ /* private fields */ }
Implementations
impl AztecConfig
pub comptime fn new() -> Self
Creates a new AztecConfig with default values.
Calling new is equivalent to invoking the aztec macro with no parameters. The different methods
(e.g. AztecConfig::custom_message_handler) can then be used to change the default behavior.
pub comptime fn custom_message_handler(
_self: Self,
handler: CustomMessageHandler<()>,
) -> Self
Sets a handler for custom messages.
This enables contracts to process non-standard messages (i.e. any with a message type that is not in
crate::messages::msg_type).
handler must be a #[contract_library_method] function that conforms to the
crate::messages::discovery::CustomMessageHandler type signature.
Configuration for the
aztecmacro.This type lets users override different parts of the default aztec-nr contract behavior, such as message handling. These are advanced features that require careful understanding of the behavior of these systems.
Examples