0.28.0 • Published 1 year ago

@node-lightning/gossip-rocksdb v0.28.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

Node-Lightning, formerly LNTools

Node.js CI codecov

Node-Lightning is an implementation of the Bitcoin Lightning Network in the Node.js runtime. The goal of this project is to implement the BOLT specifications to enable testing, research, and education. This project is not intended to replace or compete with the major implementations, though our hope is that the implementation will be fully functional. This

This library contains the core packages and several examples. There is currently no runtime for this project.

The architecture philosophies for packages is:

  1. Minimize external dependencies - the Node.js ecosystem is rife with excess dependency usage. This project attempts to minimize the usage of external depedencies as much as possible (there are very few external modules in use at this point).
  2. Reduce complexity using semi-formalized state machines - the Lightning Network is a complex beast. It is very difficult to reason about code that has high cyclomatic complexity. To reduce cognitive load, allow for isolated testing, and enable composibility and extensibility, code is frequently broken into state machines and combined with concepts from state charts. This library is not using metaprogramming techniques, though we are using many of the concepts. This enables the last point.
  3. Engineer for modular composibility - The goal is to enable composibility of various state machines which enables swapping out implementations or direct extensibility of complex processes.

The goal of this project is ambitious and there is a still a long road ahead. Refer to issues and the wiki for more information on how this project is structured and how you can contribute.

Structure and Modules

Node-Lightning is structured as a monorepo with individual packages existing inside of packages.

Examples of usage can be found inside examples

BOLT Status

Current status of Lightning RFC specification implementation:

  • BOLT 1 - Base Protocol
  • BOLT 2 - Peer Protocol for Channel Management
  • BOLT 3 - Bitcoin Transaction and Script Format
  • BOLT 4 - Onion Routing Protocol
  • BOLT 5 - Recommendations for On-chain Transaction Handling
  • BOLT 7 - P2P Node and Channel Discovery: @node-lightning/wire, @node-lightning/graph
  • BOLT 8 - Encrypted and Authenticated Transport: @node-lightning/noise
  • BOLT 9 - Assigned Feature Flags: @node-lightning/wire
  • BOLT 10 - DNS Bootstrap and Assisted Node Location
  • BOLT 11 - Invoice Protocol for Lightning Payments: @node-lightning/invoice
0.28.0

1 year ago

0.27.2

2 years ago

0.27.4

2 years ago

0.27.0

2 years ago

0.26.1

3 years ago

0.26.0

3 years ago

0.25.0

3 years ago

0.24.1

3 years ago

0.24.0

3 years ago

0.23.0

3 years ago

0.23.0-alpha.0

3 years ago

0.22.1

3 years ago

0.22.0

3 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.20.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago