Near <> Ethereum decentralized bridge
Start with wiki: https://github.com/nearprotocol/bridge/wiki
The Ethereum<>NEAR bridge is going to be implemented as mutual smart contract based light client, thus would provide full security of respective networks for the bridge. Currentlty, building NEAR smart contract and relayer for Etheruem blockchain light verification.
- Contract Setup: NodeJS short-running tool that performs necessary setup and initialization of the contracts;
- EthBridge: Rust (WASM) smart contract for Near blockchain, Ethereum light client storing hashes of blocks
- EthRelay: NodeJS service, streaming Ethereum block headers to EthBridge smart contract in Near blockchain.
- EthProver: Rust (WASM) smart contract for Near blockchain, helps verify log entry was included in tx receipt, which was included in block
- NearBridge: Solidity smart contractfor for Ethereum blockchain, Near light client stoging hashes of blocks
- NearRelay: NodeJS application, streaming Near block headers to NearBridge smart contract in Ethereum blockchain.
- NearProver: Solidity smart contractfor Ethereum blockchain, helps verify tx outcome was included in in block
- EthBridge:
- Test with
./test.sh - Compile into WASM with
./build.sh
- Test with
- NearBridge:
- Prepare with
yarn - Test with
yarn run test - Flatten
yarn run dist - Compile
yarn run truffle compile
- Prepare with
- EthRelay:
- Prepare with
yarnandethashproof/build.sh - Run localnet to localnets with
yarn run test - Run mainnet to localnet with
yarn run start - Check
scriptssubdir for other modes
- Prepare with
- NearRelay:
- Run localnet to localnets with
yarn run test - Run mainnet to localnet with
yarn run start - Check
scriptssubdir for other modes
- Run localnet to localnets with
- EthProver:
- Compile with
./build.sh - Run localnet to localnets with
yarn run test
- Compile with