Evaluating the Cost of Smart Contracts in Blockchain Applications through Simulation Environments

  • Emanuel Ferreira Coutinho Federal University of Ceará https://orcid.org/0000-0003-2233-7109
  • Delano José Holanda Maia Federal University of Ceará
  • Wagner L. Braga Bezerra Federal University of Ceará
  • Antonio Wellington dos Santos Abreu Federal University of Ceará

Abstract


Blockchain is a sequence of blocks containing a complete record of transactions as a public ledger, informing the order in which transactions occurred, and which has become an option for application development. Smart contracts are a flow of value based on terms and conditions, similar to contracts in the real world, but digital and in code. The objective of this work is to present a simulation of the smart contracts use in blockchain, to have a view of the resources consumption in the execution of operations, specifically financial costs. For this, a smart contract was designed to simulate an environment of financial donation. As a result, it was possible to evaluate the costs of smart contract methods and their impact on the number of calls in the application, reinforcing the importance of simulating environments.

Keywords: Blockchain, Smart Contracts, Simulation, Cost

References

Alharby, M. e van Moorsel, A. (2017). Blockchain-based smart contracts: A systematic mapping study. arXiv preprint arXiv:1710.06372.

Aoki, Y., Otsuki, K., Kaneko, T., Banno, R., e Shudo, K. (2019). Simblock: A blockchain network simulator. In IEEE INFOCOM 2019 - IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), pages 325–329.

Banno, R. e Shudo, K. (2019). Simulating a blockchain network with simblock. In 2019 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), pages 3–4.

Bhaskar, N. D. e Chuen, D. L. K. (2015). Chapter 3 - bitcoin mining technology. In Chuen, D. L. K., editor, Handbook of Digital Currency, pages 45 – 65. Academic Press, San Diego.

Christidis, K. e Devetsikiotis, M. (2016). Blockchains and smart contracts for the internet of things. IEEE Access, 4:2292–2303.

Faria, C. e Correia, M. (2019). Blocksim: Blockchain simulator. In 2019 IEEE International Conference on Blockchain (Blockchain), pages 439–446.

Korpela, K., Hallikas, J., e Dahlberg, T. (2017). Digital supply chain transformation toward blockchain integration. In 50th Hawaii International Conference on System Sciences (HICSS).

Nofer, M., Gomber, P., Hinz, O., e Schiereck, D. (2017). Blockchain. Business & Information Systems Engineering, 59(3):183–187.

Stoykov, L., Zhang, K., e Jacobsen, H. (2017). Vibes: Fast blockchain simulations for large-scale peer-to-peer networks: Demo. In Proceedings of the 18th ACM/IFIP/USENIX Middleware Conference: Posters and Demos, Middleware ’17, page 19–20, New York, NY, USA. Association for Computing Machinery.

Szabo, N. (1994). Smart contracts. http://bit.ly/2Yc9vjb. Online; accessed Oct-2019.

Wood, G. (2020). Ethereum: A secure decentralised generalised transaction ledger.

Zheng, Z., Xie, S., Dai, H.-N., Chen, X., e Wang, H. (2017). Blockchain challenges and opportunities: A survey. International Journal of Web and Grid Services (IJWGS).
Published
2020-10-19
COUTINHO, Emanuel Ferreira; MAIA, Delano José Holanda; BEZERRA, Wagner L. Braga; ABREU, Antonio Wellington dos Santos. Evaluating the Cost of Smart Contracts in Blockchain Applications through Simulation Environments. In: WORKSHOP ON MODELING AND SIMULATION OF SOFTWARE-INTENSIVE SYSTEMS (MSSIS), 2. , 2020, Evento Online. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2020 . p. 56-65. DOI: https://doi.org/10.5753/mssis.2020.12495.