The rise of smart contract systems such as Ethereum has resulted in a proliferation of blockchain-based decentralized applications including applications that store and manage a wide range of data. Current smart contracts are designed to be executed solely by miners and are revealed entirely on-chain, resulting in reduced scalability and privacy. In this paper, we discuss that scalability and privacy of smart contracts can be enhanced by splitting a given contract into an off-chain contract and an on-chain contract. Specifically, functions of the contract that involve high-cost computation or sensitive information can be split and included as the off-chain contract, that is signed and executed by only the interested participants. The proposed approach allows the participants to reach unanimous agreement off-chain when all of them are honest, allowing computing resources of miners to be saved and content of the off-chain contract to be hidden from the public. In case of a dispute caused by any dishonest participants, a signed copy of the off-chain contract can be revealed so that a verified instance can be created to make miners enforce the true execution result. Thus, honest participants have the ability to redress and penalize any fraudulent or dishonest behavior, which incentivizes all participants to honestly follow the agreed off-chain contract. We discuss techniques for splitting a contract into a pair of on/off-chain contracts and propose a mechanism to address the challenges of handling dishonest participants in the system. Our implementation and evaluation of the proposed approach using an example smart contract demonstrate the effectiveness of the proposed approach in Ethereum.
[1]
Stefan Tai,et al.
On or Off the Blockchain? Insights on Off-Chaining Computation and Data
,
2017,
ESOCC.
[2]
Chao Li,et al.
Decentralized Release of Self-Emerging Data using Smart Contracts
,
2018,
2018 IEEE 37th Symposium on Reliable Distributed Systems (SRDS).
[3]
Chao Li,et al.
Decentralized Privacy-Preserving Timed Execution in Blockchain-Based Smart Contract Platforms
,
2018,
2018 IEEE 25th International Conference on High Performance Computing (HiPC).
[4]
George Danezis,et al.
Chainspace: A Sharded Smart Contracts Platform
,
2017,
NDSS.
[5]
S. Matthew Weinberg,et al.
Arbitrum: Scalable, private smart contracts
,
2018,
USENIX Security Symposium.
[6]
Elaine Shi,et al.
Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart Contracts
,
2016,
2016 IEEE Symposium on Security and Privacy (SP).
[7]
Satoshi Nakamoto.
Bitcoin : A Peer-to-Peer Electronic Cash System
,
2009
.
[8]
Chao Li,et al.
Decentralized Privacy-preserving Transaction Scheduling in Blockchain-based Smart Contract Platforms
,
2018
.
[9]
Daniel Davis Wood,et al.
ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER
,
2014
.
[10]
Ellis Solaiman,et al.
Implementation of Smart Contracts Using Hybrid Architectures with On and Off–Blockchain Components
,
2018,
2018 IEEE 8th International Symposium on Cloud and Service Computing (SC2).