Papers2 providers Ā· 3 records
July 22, 2019Ā· arXiv (Cornell University)
preprint
Open access

Truffle tests for free -- Replaying Ethereum smart contracts for transparency

Abstract

The Ethereum blockchain is essentially a globally replicated public database.\nPrograms called smart contracts can access this database. Over 10 million smart\ncontracts have been deployed on the Ethereum blockchain. Executing a method of\na smart contract generates a transaction that is also stored on the blockchain.\nThere are over 1 billion Ethereum transactions to date. Smart contracts that\nare transparent about their function are more successful than opaque contracts.\nWe have therefore developed a tool (ContractVis) to explore the transparency of\nsmart contracts. The tool generates a replay script for the historic\ntransactions of a smart contract. The script executes the transactions with the\nsame arguments as recorded on the blockchain, but in a minimal test\nenvironment. Running a replay script provides insights into the contract, and\ninsights into the blockchain explorer that was used to retrieve the contract\nand its history. We provide five concrete recommendations for blockchain\nexplorers like Etherscan to improve the transparency of smart contracts.\n

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.