Ethereum is a public (permissionless) blockchain with a Turing complete execution machine for smart contracts. Miners that execute a smart contract receive a fee determined by the gas associated with the operation codes (opcodes) in the smart contract. It is important that the gas award is proportional to the computation resources required, to assure that incentives are aligned and denial of service attacks are avoided. Currently, the amount of gas awarded is set statically for each opcode, but it is unknown if these values are correct for various computer architectures. Therefore, we propose in this paper a benchmark approach to assess the computational resources required per opcode. We apply the benchmark approach to PC and MAC as a first illustration of the approach.
[1]
Ellis Solaiman,et al.
Performance Benchmarking of Smart Contracts to Assess Miner Incentives in Ethereum
,
2018,
2018 14th European Dependable Computing Conference (EDCC).
[2]
Satoshi Nakamoto.
Bitcoin : A Peer-to-Peer Electronic Cash System
,
2009
.
[3]
Daniel Davis Wood,et al.
ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER
,
2014
.
[4]
Maher Alharby,et al.
The Impact of Profit Uncertainty on Miner Decisions in Blockchain Systems
,
2018,
UKPEW.
[5]
Massimo Bartoletti,et al.
A Survey of Attacks on Ethereum Smart Contracts (SoK)
,
2017,
POST.