Module internals_functions_generation
Modules
- ABI attributes that are applied by the Aztec.nr macros to the generated functions with the
__aztec_nr_internals___prefix in the name. The attributes are prefixed withabi_as they are used only for ABI purposes and artifact generation.
The functionality in this module is triggered by the
#[aztec]macro. It generates new functions, prefixed with__aztec_nr_internals___, from the ones marked with#[external(...)]and#[internal(...)]attributes. The original functions are then modified to be uncallable. This prevents developers from inadvertently calling a function directly, instead of performing a proper contract call.