Lithe, a new EVM language developed by AI agents, offers smaller bytecode, formal verification, and enhanced security for smart contracts.
Lithe, a new smart contract language for the Ethereum Virtual Machine (EVM), has been introduced as a tool designed and built by AI agents. Developed in just 12 days using the Recur agent workflow tool, Lithe features smaller bytecode, built-in formal verification, and enhanced security mechanisms. According to Celestia Labs, the language aims to address common vulnerabilities in smart contracts while improving efficiency and auditability.
One of the key motivations behind Lithe's development is the prevalence of security flaws in existing smart contracts. A 2024 OWASP review found that access-control flaws accounted for two-thirds of $1.42 billion in losses, with Solidity often relying on conventions that both humans and AI models can overlook. Lithe mitigates these risks by embedding security rules directly into its compiler, making it easier to identify and prevent errors such as missing caller checks.
Unlike Solidity, which allows state-changing calls to execute before a function completes, Lithe ensures that every entry point represents a single state transition. This design prevents vulnerabilities like the reentrancy bug that caused the 2016 Ethereum DAO hack. For example, Lithe's defer keyword delays external calls until the current state is fully updated, ensuring consistency and security.
Lithe integrates formal verification into its workflow through the lithe prove tool, which checks deployed bytecode against developer-written specifications. This process ensures that contracts behave as intended across all inputs and call orders. Additionally, tools like lithe abi-tree and lithe footprint provide detailed insights into function paths, state changes, and error declarations, simplifying the auditing process.
Source link







