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

MIT License, Apache License V2.0

Follow Rust-Lightning

Rust-Lightning Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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