relay-network
所属分类:以太坊
开发工具:GO
文件大小:35KB
下载次数:0
上传日期:2018-10-11 13:36:54
上 传 者:
sh-1993
说明: 用于第2层以太坊执行市场的去中心化中继网络
(Decentralized relay network for layer 2 Ethereum execution markets)
文件列表:
Gopkg.lock (12576, 2018-10-11)
Gopkg.toml (655, 2018-10-11)
LICENSE (1072, 2018-10-11)
cmd (0, 2018-10-11)
cmd\ethbasepub (0, 2018-10-11)
cmd\ethbasepub\main.go (1962, 2018-10-11)
cmd\example (0, 2018-10-11)
cmd\example\safemodule (0, 2018-10-11)
cmd\example\safemodule\main.go (5917, 2018-10-11)
cmd\example\safepub (0, 2018-10-11)
cmd\example\safepub\main.go (3800, 2018-10-11)
cmd\example\simplestorage.abi (471, 2018-10-11)
cmd\example\simplestorage.go (9771, 2018-10-11)
cmd\relayer (0, 2018-10-11)
cmd\relayer\main.go (2394, 2018-10-11)
ethbase (0, 2018-10-11)
ethbase\ethbase.go (5258, 2018-10-11)
ethbase\module.abi (3186, 2018-10-11)
ethbase\module.go (18953, 2018-10-11)
ethbase\proof.go (5051, 2018-10-11)
ethbase\registry.abi (2234, 2018-10-11)
ethbase\registry.go (17539, 2018-10-11)
ipfs (0, 2018-10-11)
ipfs\ipfs.go (898, 2018-10-11)
message.go (154, 2018-10-11)
safe (0, 2018-10-11)
safe\contract.abi (8187, 2018-10-11)
safe\contract.go (45127, 2018-10-11)
safe\safe.go (2232, 2018-10-11)
wallet (0, 2018-10-11)
wallet\wallet.go (1383, 2018-10-11)
# Relay Network
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/planet-ethereum/Lobby)
## Motivation
Various projects aim to improve user experience by enabling recurring fee subscriptions, delegated conditional execution or sponsored gas. These second layer execution markets all share the need for a relayer that submits signed user transactions to the network.
The aim of this project is to implement a decentralized relay network, with enough modularity that could support the various use-cases mentioned above. A [prototype](https://github.com/hermes-network/the-executor) of this idea, with a focus on supporting [Gnosis Safe](https://gnosis-safe.readthedocs.io/en/latest/) as identity proxy and whisper as pubsub protocol, was recently implemented by the Hermes Network team at ETHBerlin.
## Requirements
In order to run a relayer, you'll need to have an IPFS node with pubsub enabled running. Install and setup IPFS, then run daemon:
```bash
ipfs daemon --enable-pubsub-experiment
```
Relayer also needs access to an Ethereum chain. By default, it connects to Rinkeby, through Infura.
Clone the repository and install the dependencies via [dep](https://golang.github.io/dep/):
```bash
dep ensure
```
## Usage
Relay-network currently only works with [ethbase](https://github.com/planet-ethereum/ethbase). For using with ethbase, start a relayer, which listens on a pubsub topic, and submits the logs to the ethbase contract:
```bash
MNEMONIC="____" go run cmd/relayer/main.go
```
Then, run `ethbasepub`, which subscribes to the logs emitted by event emitters registered in `Ethbase`, generates a proof for the log, and sends it to the `relayer` via IPFS pubsub.
```bash
go run cmd/ethbasepub/main.go
```
近期下载者:
相关文件:
收藏者: