• Fantom Logo
  • Technology Tools Enterprise Ecosystem Developers
  • Fantom DeFi
      • Sub menu

        Intro to Fantom

        Fantom is a fast, scalable and secure platform for digital assets.

      • Sub menu

        Stake on Fantom

        Earn rewards by securing the network.

      • Sub menu

        FTM token

        FTM is the primary token of the Fantom ecosystem.

      • Sub menu

        The Consensus

        Discover Lachesis, Fantom’s ultra-fast consensus protocol.

      • Sub menu

        Opera Chain

        The Fantom mainnet, with staking and EVM support.

    • WALLETS

      • Sub menu

        Fantom Wallets

        Store, send, receive, and stake FTM on desktop, mobile, and hardware wallets.

      EXPLORER

      • Sub menu

        FTMScan

        A new Fantom explorer built by the Etherscan team.

      • Sub menu

        Opera Explorer

        Explore the network transactions, blocks, and nodes on Opera.

      • Sub menu

        OKLink

        OKLink is an alternative explorer for the Fantom network

    • GUIDES

      • How to use Fantom Wallet

      • How to set up Ledger Nano with Fantom

    • Sub menu

      Enterprise

      Discover Fantom’s solutions for enterprise clients.

    • Sub menu

      Solutions

      Take a deep dive in real world use cases.

      • Sub menu

        About us

        Meet the people behind Fantom.

      • Sub menu

        Partners and integrations

        Learn how we're creating a cross-chain ecosystem on our innovative platform.

      • Sub menu

        Blog

        Learn about Fantom through our general and tech articles.

      • Sub menu

        Podcasts and interviews

        Check out all the Fantom related interviews and AMAs.

      • Sub menu

        FAQ

        Do you have questions? We have answers!

      • Sub menu

        Community

        Join our wonderful community and share ideas.

      • Sub menu

        Careers

        Come work with us!

    • Sub menu

      Documentation

      Start building on Fantom

      GET STARTED

      Deploy a smart contract Create a fixed-cap asset Create a local test network GraphQL API docs

      GUIDES

      Set up Metamask Run a validator node
    • Sub menu

      Technical papers

      Read our technical papers and latest research essays.

      Covalent API
      The Graph's Subgraphs
      Verified contracts
      Frontend JS Utilities
      DeFi Smart Contracts
      Developers’ chat
Fantom Logo
menu
Fantom Logo close
  • Technology
        • Sub menu

          Intro to Fantom

        • Sub menu

          Stake on Fantom

        • Sub menu

          FTM token

        • Sub menu

          The Consensus

        • Sub menu

          Opera Chain

  • Tools
      • WALLETS

        • Sub menu

          Fantom Wallets

        EXPLORER

        • Sub menu

          FTMScan

        • Sub menu

          Opera Explorer

        • Sub menu

          OKLink

        GUIDES

        • How to use Fantom Wallet

        • How to set up Ledger Nano with Fantom

  • Enterprise
        • Sub menu

          Enterprise

        • Sub menu

          Solutions

  • Ecosystem
      • Sub menu

        About us

      • Sub menu

        Partners and integrations

      • Sub menu

        Blog

      • Sub menu

        Podcasts and interviews

      • Sub menu

        FAQ

      • Sub menu

        Community

      • Sub menu

        Careers

  • Developers
      • Sub menu

        Documentation

      • GET STARTED

      • Deploy a smart contract

      • Create a fixed-cap asset

      • Create a local test network

      • GraphQL API docs

      • GUIDES

      • Set up Metamask

      • Run a validator node

      • Covalent API

      • Verified contracts

      • DeFi Smart Contracts

      • The Graph's Subgraphs

      • Frontend JS Utilities

      • Developers’ chat

      • Sub menu

        Technical papers

blog-image
July 20, 2021

Fantom researchers propose a breakthrough solution for smart contract testing

Development

We’re proud to announce that Fantom researchers have presented a breakthrough solution focused on off-the-chain smart contract execution and testing at the Usenix 2021 Annual Technical Conference, held July 14-16. 

Yeonsoo Kim, Seongho Jeong, and Bernd Burgstaller from Yonsei University (Korea), and Kamil Jezek and Bernhard Scholz from the University of Sydney (Australia) have detailed a smart contract transaction record and replay mechanism that is substantially more efficient than existing solutions. 

To date, testing a smart contract has involved using one of three impractical options: archive nodes, full nodes, or testnet. Each of these is limited by scalability/speed and high data storage overhead. Testnet solutions, in particular, also require extensive developer effort. 

Addressing these limitations, Fantom researchers propose an off-the-chain testing environment built on a transaction “record and replay mechanism.” The recorder component of this solution captures substates, or snapshots of the blockchain containing only relevant environment and state parameters. These substates allow developers to replay transactions without depending on previous transactions and the entire world-state of the blockchain.

Using EVM binaries to simulate the Ethereum protocol, the replay mechanism enables contract execution independently and therefore outside of the Ethereum peer-to-peer network. The replay mechanism operates on the database of substates outputted by the recorder and can be run on a multicore server for unprecedented efficiency.  

In testing with a sample set of 9 million blocks, the record-replay model reduced storage required by more than 50%, from 700.1GB to 285.4GB. Throughput grew exponentially from 620.6 tx/sec to 2,817.9 tx/sec on single-threaded processors and 30,168.8 tx/sec on a system scaled to 44 cores. 

This solution promises to transform smart contract functionality and security testing. Numerous possible applications include: 

  • Hard fork testing: regression tests to determine whether newly introduced policies interfere with the execution of legacy smart contracts.
  • Metric evaluation: measuring the number of wasteful instructions in a smart contract for optimization purposes.
  • Contract fuzzing: testing for anomalies or unexpected results. 

Further details are available in the published technical paper and presentation slides.

Read more

Card image cap
Plena Finance — Fantom Ecosystem Spotlight
READ STORY
Card image cap
Fantom General Update | March 27, 2023
READ STORY
Card image cap
New Fantom Wallet is Here!
READ STORY
Card image cap
Plena Finance — Fantom Ecosystem Spotlight
READ STORY
Card image cap
Fantom General Update | March 27, 2023
READ STORY
Card image cap
New Fantom Wallet is Here!
READ STORY
  • Technology
    • Intro to Fantom
    • Stake on Fantom
    • FTM token
    • The Consensus
    • Opera Chain
  • Tools
    • Fantom Wallets
    • Opera Explorer
  • Enterprise
    • Enterprise
    • Solutions
  • Ecosystem
    • About us
    • Partners and integrations
    • Blog
    • Podcasts and interviews
    • FAQ
    • Community
    • Careers
    • Media kit
  • Developers
    • Documentation
    • Technical papers
    • Covalent API
    • Verified contracts
    • DeFi Smart Contracts
    • GraphQL API
    • Frontend JS utilities
    • Developers’ chat
Social
  • Twitter
  • Discord
  • Telegram
  • Telegram ANN
  • Reddit
Fantom Logo

© 2023 Fantom Foundation

  • Cookie Policy
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

The information on this website is for informational purposes only. It contains high-level summaries and is not intended to include all material information regarding the Fantom ecosystem and risk factors associated with holding FTM.