Rust-Lightning is a Bitcoin Lightning library written in Rust. The main crate, lightning, does not handle networking, persistence, or any other I/O. Thus, it is runtime-agnostic, but users must implement basic networking logic, chain interactions, and disk storage. The project implements all of the BOLT specifications in the 1.0 spec. The implementation has pretty good test coverage that is expected to continue to improve. It is also anticipated that as developers begin using the API, the lessons from that will result in changes to the API, so any developer using this API at this stage should be prepared to embrace that. LDK/Rust-Lightning is a generic library which allows you to build a lightning node without needing to worry about getting all of the lightning state machine, routing, and on-chain punishment code (and other chain interactions) exactly correct. Note that Rust-Lightning isn't, in itself, a node.

Features

  • You can store the channel state any way you want
  • We provide a simple block_connected/block_disconnected API which you provide block headers and transaction information to
  • RL/LDK owns on-chain funds as long as they are claimable as a part of a lightning output which can be contested
  • We also provide an API for getting information about transactions we wish to be informed of
  • The goal is to provide a full-featured but also incredibly flexible lightning implementation
  • For security reasons, do not add new dependencies

Project Samples

Project Activity

See All Activity >

Categories

Libraries, Bitcoin

License

Apache License V2.0, MIT License

Follow Rust-Lightning

Rust-Lightning Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rust-Lightning!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Libraries, Rust Bitcoin Software

Registered

2022-02-15