aztec-nr - noir_aztec::macros::functions::initialization_utils

Function mark_as_initialized_public

pub fn mark_as_initialized_public(context: PublicContext)

Emits (only) the public initialization nullifier.

This function is called by the aztec-nr auto-generated external public contract function (enqueued by private initializer functions), and also by mark_as_initialized_from_public_initializer for public initializers.

Warning

This should not be called manually. Incorrect use can leave the contract in a broken initialization state (e.g. emitting the public nullifier without the private one). The macro-generated code handles this automatically.