EOSrelay (EOS-ETH Relay) is a system that allow of using EOS on Ethereum.
The 1st DApp Development Contest Entry Work
Based on PeaceRelay
EOSrelay is an EOS–ETH relaying smart contract DApp. EOSrelay allows EOS holders to use DApps based on Ethereum eco-system, written in Solidity(or et al.).
Certain blockchain’s (blockchain system of currency that user is holding) information, such as block and transaction information, is verified on Target Blockchain (blockchain that user want to use) eco-system Platform. For EOSrelay, EOS’s block and transaction information is verified on Ethereum platform. And the information (mostly the EOS block header) is submitted by relayers.
"There is an Ethereum smart contract that stores all EOS
block headers relayed/submitted by users, or relayers."
refers to the article of Lou Luu in KyberNetwork.
As you know, each block header contains committed transactions. Given a block header, anyone will be able to verify if a transaction is included or not. Now we can offer a transfer services from EOS
to ETH
.
- Tx1 is occurred and included in Block. Tx1 is a locking transaction that sending EOS to certain account.
- Relayer registers the header information of the Block (one that include Tx1) on Ethereum.
- All the verification processes are executed by smart contract, whether the Tx1 is involved in Block and locking transaction is sent properly.
- If the Tx1 is confirmed as verified one, same amount of token is minted on Ethereum.
Users can use DApps based on different blockchain eco-system by using EOSrelay. For now, it is specialized at connecting EOS to ETH. And also, users can get experience advantages of both Ethereum and EOS.
Relayers can get fee as reward for submitting the block header to EOSrelay. But relayers can’t get reward just for submitting information to smart contract. They only can get reward when the information they gave is verified.
- Solidity v0.4.21
pragma solidity ^0.4.21;
is basically the same as PeaceRelay
There are 2 wallets needed: 1 that does the submitting of block headers, and another that will submit mint transactions for the smart contracts.
The contracts' codes can be found in the ./contracts folder.
- Implement ownable, pausable
- 2-way-relay (current 1-way: EOS -> ETH)
- Add & validate relay options
- Support data retrieve from multiple EOS nodes
- Support desktop user interface (GUI application)
- Start Date: Nov 21, 2018
- MVP running (EOS -> ETH): Dec 7, 2018
- Add features (ownable, pausable, etc.)
- Complete Prototype Development (EOS <-> ETH)
- End Date: Not decided yet.
- https://github.com/KyberNetwork/peace-relay
- https://github.com/twodude/eos-dapp-dev
- https://github.com/k26dr/eth-eos-relay
@Luke Park
@Keunhak Lim
@Minseo Park
@Jiwon Heo
The EOSrelay project is licensed under the Apache License, Version 2.0, also included in our repository in the LICENSE file.