Abstract

Abstract With the development of blockchain technology, more and more blockchain systems have emerged. Traditional applications based on Ethereum smart contracts have the problem of requiring the off-chain database to assist in data operations and smart contract execution, which consumes a large amount of gas and causes waste of resources. This paper proposes an improved method for storage of smart contract data based on blockchain to optimize the data upload format of off-chain systems. Use solidity language to design smart contract storage variables and implement the function of adding, deleting, checking and modifying data on the chain. This method is a combination of general frameworks and gives detailed algorithm design and implementation methods. In this paper, the functional and performance tests of the proposed method are carried out through experiments to verify the integrity and feasibility of the system functions. The experimental results show that the improved system implements the function of adding, deleting, and modifying data on the chain. Compared with the traditional system, the improved system reduces the gas consumption. The more obvious with the increase of uploading data to reduce gas consumption.KeywordsBlockchainEthereumSmart contractGas

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call