1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 09:54:02 +01:00
A scala implementation of the Lightning Network.
Go to file
2016-02-16 17:55:10 +01:00
eclair-demo displaying bitcoin core version on startup 2016-02-15 19:19:28 +01:00
lightning-types fix closing tx fee 2016-02-08 16:52:22 +01:00
.gitignore project now compiles 2015-08-24 11:44:36 +02:00
.travis.yml added email notifications for travis 2016-02-15 14:44:22 +01:00
LICENSE now using sonatype repos for acinq-tools 2016-01-21 15:04:42 +01:00
pom.xml added an http api 2016-01-25 19:53:56 +01:00
README.md Update README.md 2016-02-16 17:55:10 +01:00
TESTING.md Update TESTING.md 2016-02-11 18:17:37 +01:00

Build Status

eclair

A scala implementation of the Lightning Network. Eclair is french for Lightning.

More precisely, this is an implementation of Rusty's deployable lightning. In particular it uses the same wire protocol, and almost the same state machine.

Overview

The general idea is to have an actor per channel, everything being non-blocking.

A "blockchain watcher" is responsible for monitoring the blockchain, and sending events (eg. when the anchor is spent).

Modules

  • lightning-types: scala code generation using protobuf's compiler (wire protocol)
  • eclair-demo: actual implementation

Usage

  • Either run from source:
mvn exec:java -Dexec.mainClass=fr.acinq.eclair.Boot
  • Or compile and execute the jar:
mvn install
java -jar eclair-demo/target/eclair-demo_2.11-*-capsule-fat.jar

See TESTING.md for more details on how to use this software.

JSON-RPC API

method params description
connect host, port, anchor_amount opens a channel with another eclair or lightningd instance
list lists existing channels
addhtlc channel_id, amount, rhash, locktime sends an htlc
fulfillhtlc channel_id, r fulfills an htlc
close channel_id closes a channel

Status

  • Network
  • Routing
  • Channel state machine
  • HTLC Scripts
  • Unilateral close handling
  • Relaying Payment
  • Blockchain watcher
  • Storing states in a database

Ressources