Advancing Web 3.0: Making Smart Contracts Smarter on Blockchain

Junqin Huang, Linghe Kong, Guanjie Cheng, Qiao Xiang, Guihai Chen, Gang Huang, Xue Liu

Abstract

Blockchain and smart contracts are one of key technologies promoting Web 3.0. However, due to security considerations and consistency requirements, smart contracts currently only support simple and deterministic programs, which significantly hinders their deployment in intelligent Web 3.0 applications. To enhance smart contracts intelligence on the blockchain, we propose $\texttt{SMART}$, a plug-in smart contract framework that supports efficient AI model inference while being compatible with existing blockchains. To handle the high complexity of model inference, we propose an on-chain and off-chain joint execution model, which separates the $\texttt{SMART}$ contract into two parts: the deterministic code still runs inside an on-chain virtual machine, while the complex model inference is offloaded to off-chain compute nodes. To solve the non-determinism brought by model inference, we leverage Trusted Execution Environments (TEEs) to endorse the integrity and correctness of the off-chain execution. We also design distributed attestation and secret key provisioning schemes to further enhance the system security and model privacy. We implement a $\texttt{SMART}$ prototype and evaluate it on a popular Ethereum Virtual Machine (EVM)-based blockchain. Theoretical analysis and prototype evaluation show that $\texttt{SMART}$ not only achieves the security goals of correctness, liveness, and model privacy, but also has approximately 5 orders of magnitude faster inference efficiency than existing on-chain solutions.
BibTeX
@inproceedings{huang2024advancing,
  author = {Junqin Huang and Linghe Kong and Guanjie Cheng and Qiao Xiang and Guihai Chen and Gang Huang and Xue Liu},
  title = {{Advancing Web 3.0: Making Smart Contracts Smarter on Blockchain}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589334.3645319},
}

Loading related content...

Figure