TrustZone-Based WebAssembly Smart Contract Execution for Privacy-Preserving Blockchain
摘要
With the rise of privacy-sensitive blockchain applications, traditional smart contracts’ transparency poses significant risks for sensitive data. We propose a lightweight execution architecture combining ARM TrustZone and WebAssembly to isolate contract logic in the Secure World, achieving hardware-level privacy while remaining compatible with standard blockchain frameworks. An efficient shared memory and extended WASI-based communication mechanism enables seamless cooperation between on-chain and trusted execution. We further implement a decentralized identity (DID) system supporting encrypted verifiable credential (VC) verification via ECDH key agreement and AES encryption. Experimental results show the system maintains low latency and high throughput for queries, transactions, and privacy verification, demonstrating the feasibility of deploying privacy-preserving smart contracts on mobile and edge devices.