GithubHelp home page GithubHelp logo

roblav96 / ilp-plugin-ethereum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from interledgerjs/ilp-plugin-ethereum

0.0 2.0 0.0 1.5 MB

Settle Interledger payments with ether and (soon!) ERC-20 tokens

JavaScript 100.00%

ilp-plugin-ethereum's Introduction

ILP Plugin Ethereum Asym Server

Server to Ethereum Asym Client

Description

This plugin is still under development. Don't use it for large amounts of money.

This is an implementation of an ILP integration with Ethereum. It uses simple unidirectional payment channels on Ethereum, by making use of the Machinomy library.

One party must run this Asym Server, and then any number of clients can connect by using Ethereum Asym Client. Each client opens a payment channel to this server, and will immediately send a claim. This claim is to cover the transaction fee of the server opening a channel to the client. The end result is that the server and client have two payment channels, allowing either one to send and receive.

Interleger packets are passed over the websocket connection that the client and server share, and then are periodically settled by passing claims over the websocket connection. The ILP Connector will manage this logic for you.

Usage

export RINKEBY_PROVIDER_URL=https://rinkeby.infura.io/2LQpDUsVeDqOZ8hvLzti
export SECRET=eepauZo4UTh2Iejuo9Aichahph0ooy5boojohtoh
npm install
DEBUG=* node scripts/server-infura.js

For testing purposes

export PROVIDER_URL=https://ropsten.infura.io/T1S8a0bkyrGD7jxJBgeH
export SECRET="lazy glass net matter square melt fun diary network bean play deer"
npm install
DEBUG=* node test-infura-sell.js

ilp-plugin-ethereum's People

Contributors

ukstv avatar emschwartz avatar kincaidoneil avatar michielbdejong avatar sentientwaffle avatar

Watchers

James Cloos avatar  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.