BAC-L2-AVAX-107Avalanche
Precompiles and execution customisation
Extending the virtual machine with native code: the route to features a contract cannot deliver at acceptable cost.
- Level
- L2 — Appchain developer
- Duration
- 4 h
- Track
- Avalanche
- Maintainer
- Avalanche Lead Architect
Learning objectives
- 01Enable and configure an access-control precompile
- 02Explain what a precompile allows that a contract cannot
- 03Assess the maintenance cost of a customised virtual machine
Guided lab
Enable an allowlist precompile and demonstrate its effect on deployments.
Independent lab
Specify a precompile answering a Cameroonian regulatory requirement.
Security angle
A poorly designed precompile breaks compatibility and auditability: it changes the machine's rules, not just an application.
Assessment
Precompile specification peer-reviewed against security criteria.
