Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.36 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.36 KB

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

Run Demo.scala to have an example of:

  1. Opening a channel
  2. Updating the balance with an HTLC
  3. Closing the channel

Status

  • Network
  • Routing
  • Channel state machine
  • HTLC Scripts
  • Relaying Payment
  • Blockchain watcher

Ressources