Giter Site home page Giter Site logo

bridge_eth_smart_contracts's Introduction

EOS-ETH Relay:

Prove EOS actions on the ethereum blockchain using a trustless block relay service.

Tested POC sequence:

https://github.com/talbaneth/bridge_eth_smart_contracts/blob/master/test/relay.js#L6

Kovan deployment:

https://kovan.etherscan.io/address/0x2b08EBa5972e21C5551f3723BA46Ee9514d18485

Verifying an action on testnet:

https://github.com/talbaneth/bridge_eth_smart_contracts/blob/master/scripts/relayDeployer.js#L202

Smart contract test data:

manufactued using https://github.com/talbaneth/eos/blob/relay_data/programs/relay-data/main.cpp. inputs for this c++ program:

  • jungle_first_11k.json (manufactured from scripts/get_headers_from_blockchain.sh)
  • action_receipts_digests_10776.json (manufactured by replaying altered node)
  • action_to_prove_10776.json (manufactured by replaying altered node)

Caveats:

  • For complete finality of a block more than one round of 2/3+1 producers is needed (https://medium.com/eosio/dpos-bft-pipelined-byzantine-fault-tolerance-8a0634a270ba).
  • The header's "confirmed" field is overlooked in the finality algorithm.
  • There is not yet a check that 2/3+1 producers are distinct.
  • There might be periods were blocks are not allowed to be relayed (perhaps during schedule changes). This might be ok since actions from these times can still be proved. Currently we overlook this.
  • There is only support for relaying blocks based on most latest schedule version.
  • Gas optimizations.

bridge_eth_smart_contracts's People

Contributors

talbaneth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.