lnsocket-rs
A Rust library for establishing connections to Lightning Network nodes. This library provides low-level primitives for establishing encrypted communication channels with Lightning Network nodes using the Noise_XK protocol as specified in BOLT #8.
lnsocket also comes batteries included with Commando support, allowing you to call RPCs on core-lightning nodes remotely!
Features
- Establish encrypted connections to Lightning Network nodes with Noise_XK handshake protocol
- Send and receive Lightning Network messages
- Support for Commando CLN RPC messages
Usage
Add to your Cargo.toml:
[]
= "0.1.0"
Example
use ;
use ;
async
Status
This library is experimental and under active development. APIs may change significantly between versions.
License
This library contains code derived from LDK, which is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.