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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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