TL;DR
This paper introduces SmartACE, a tool that solves the "state explosion" problem in smart contract verification by reducing a system with $2^{160}$ potential users down to a "local bundle" with just a few representative users. By leveraging Parameterized Compositional Model Checking (PCMC), the authors demonstrate order-of-magnitude speedups over state-of-the-art verifiers while maintaining the ability to prove safety for an arbitrary number of participants.
What Problem Does This Paper Address?
Smart contracts on blockchains like Ethereum are designed to handle an astronomical number of users—theoretically up to $2^{160}$ (the size of an address space). Verifying that these contracts are safe is a nightmare for formal methods.
If you try to check every possible state, you hit state explosion: even a simple contract with a few bits of data per user has a state space of at least $2^{2^{160}}$. Existing tools usually take one of two shortcuts:
- Under-approximation: They only test the contract with 2 or 3 users. This is fast but might miss bugs that only appear when 100 users interact.
- Manual Proofs: Experts write complex mathematical proofs. This is thorough but incredibly slow and expensive.
The authors aim to bridge this gap by creating a method that is both automated and capable of proving properties for any number of users.
Methods
The core innovation is the Local Bundle abstraction. The researchers treat smart contracts as Synchronized Control-User Networks (SCUNs).
- MicroSol & MiniSol: The authors defined formal subsets of Solidity to precisely model how contracts and users communicate.
- Participation Topology (PT): They categorize how users interact with a transaction. A user might be Explicit (the one calling the function), Transient (someone whose data is read, like a manager), or Implicit (someone mentioned by a hardcoded address).
- PTGBuilder: This is a static analysis algorithm that automatically builds a Participation Topology Graph (PTG). This graph identifies the minimum number of "representative users" needed to simulate all possible communication patterns.
- Interference Invariants: To handle properties that don't scale linearly (like the sum of all bids in an auction), the system uses a predicate to summarize the behavior of all users not currently participating in a transaction.
- SmartACE: The authors implemented these ideas into a toolchain that translates Solidity into LLVM IR and uses the SeaHorn model checker to prove safety.
Datasets
The authors evaluated SmartACE using a benchmark of 89 properties across 15 smart contracts.
- VerX Benchmarks: 12 contracts were taken from the existing VerX suite (a state-of-the-art verifier).
- New Benchmarks: They added
FundandAuctionto test specific parameterized properties that break standard "Small Model" assumptions. - Real-world Protocol: They included
QSPStaking, which implements the Quantstamp Assurance Protocol, to demonstrate effectiveness on large-scale, industrial code.
Key Insights and Ideas
- Symmetry is Key: Most users in a smart contract are "locally symmetric." From the contract's perspective, one arbitrary bidder is exactly like another. SmartACE exploits this to replace thousands of identical users with a single "representative" user.
- Breaking the Small Model Property: Some properties (like "the sum of all bids") actually get harder to prove as you add more users. Standard bounded verification fails here. SmartACE handles this by using "split invariants" that separate the state of the active user from the summarized state of everyone else.
- Communication as the Abstraction Bottleneck: Instead of abstracting data, the paper abstracts communication. By figuring out who needs to talk to whom, they can prune the state space significantly without losing the ability to find bugs.
Key Results
- Massive Speedups: SmartACE outperformed VerX on almost every benchmark, often achieving a 10x speedup. In one case (
PolicyPal), SmartACE finished in 26 seconds while VerX took over 5 hours (20,773 seconds). - Scalability: The tool successfully reduced complex contracts to models with only 5 to 16 representative users, even though the original contracts could theoretically support $2^{160}$ users.
- Automation: Unlike deductive verification which requires manual proofs for every step, SmartACE automatically inferred the necessary representative users and transaction summaries.
Limitations and Future Work
- Manual Interference Invariants: While the tool automates much of the process, users still occasionally need to provide a manual "interference invariant" for complex properties (e.g., properties involving global sums). The authors suggest this could be automated in the future using Constrained Horn Clauses (CHC).
- Language Subsets: The current implementation works on MicroSol/MiniSol. While these cover many common patterns, they don't yet support every "dark corner" of the full Solidity language (like complex inheritance or certain types of dynamic calls) without some manual pre-processing.
- Unbounded Arrays: Handling arrays that grow indefinitely still requires some manual modeling effort to ensure the abstraction remains finite-state.
Summary updated