cardlang: statically typed language for TrustZone and smart cards
Nov 24 find · published Nov 22GHGitHub · cardlang · 2 min readRead original
TrustZone TEETrusted execution environment for microcontrollers
cardlang released a statically typed language compiler for writing secure applications on ARM TrustZone secure worlds and smart-card applets. The language enforces fixed-size data types (integers u8–u32, booleans, enums, structures, fixed arrays) with no heap, strings, or floating-point arithmetic, reducing attack surface on resource-constrained devices. Explicit atomic transactions and deterministic traps replace exceptions. The toolchain includes a C11 VM, VS Code debugger with real-time error checking, and example FIDO2 and PIV applications. The language prohibits recursion, allowing stack and transaction nesting to be verified before execution.
Comments
Sign in to join the conversation.