aztec-nr - noir_aztec::macros::functions

Function external

pub comptime fn external(f: FunctionDefinition, f_type: CtString)

Same as in Solidity external functions are functions that our callable from outside the contract.

There are 3 types of external functions: private, public, and utility.

In this function we perform basic checks on the function to ensure it is valid and then we add the function to the external functions registry for later processing by the #[aztec] macro.