How to Make Smart Contract Smarter

Published: 01 Jan 2020, Last Modified: 06 Feb 2025ChineseCSCW 2020EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: The smart contract is a self-executing code that is managed by blockchain nodes, providing coordination and enforcement framework for agreements between network participants. However, smart contracts are not particularly “smart” since the virtual machine (VM) does not support the running environment of machine learning. To make the smart contract smarter, we propose a decentralized blockchain oracle framework to support smart contract training the machine learning model. In view of malicious nodes which may attack the process of training, we propose a consensus algorithm to prevent the malicious attack from malicious nodes. At the end of this paper, we do an experiment on two datasets: MNIST and CIFAR10. The result shows that our framework can prevent malicious attack efficiently and keep high accuracy. With our proposed framework, smart contracts have an ability to train or call machine learning model, making a smart contracts “smarter”.
Loading