View publication
Title | Fuzzing to Estimate Gas Costs of Ethereum Contracts |
Authors | Daniel Soto, Alexandre Bergel, Alejandro Hevia |
Publication date | 2020 |
Abstract | This paper studies how a simple approach based on fuzzing testing can help authors of Solidity contracts to accurately estimate the gas cost of services specified in a contract. Our fuzzer creates a private blockchain and randomly generates transactions. Such an environment is meant to simulate large scale behavior that may be seen in a public blockchain. Our fuzzer handles Ethereum starting and target endpoints in a transaction to accommodate requirements expressed in financial contracts. By comparing the gas computation made by the Ethereum Solidity compiler and the actual consumption during our fuzzing, we are able to find discrepancies between predicted and real gas consumption. Our findings are beneficial to transaction authors to correctly predict the computing resources of Ethereum miners. |
Pages | 687-691 |
Conference name | IEEE International Conference on Software Maintenance |
Publisher | IEEE Press (Piscataway, NJ, USA) |
Reference URL |
![]() |