6244aff14c61592a2ec6087a16de09d2aeebfc5b
[ldk-c-bindings] / lightning-c-bindings / src / lightning / mod.rs
1 // This file is Copyright its original authors, visible in version control
2 // history and in the source files from which this was generated.
3 //
4 // This file is licensed under the license available in the LICENSE or LICENSE.md
5 // file in the root of this repository or, if no such file exists, the same
6 // license as that which applies to the original source files from which this
7 // source was automatically generated.
8
9 //! Rust-Lightning, not Rusty's Lightning!
10 //!
11 //! A full-featured but also flexible lightning implementation, in library form. This allows the
12 //! user (you) to decide how they wish to use it instead of being a fully self-contained daemon.
13 //! This means there is no built-in threading/execution environment and it's up to the user to
14 //! figure out how best to make networking happen/timers fire/things get written to disk/keys get
15 //! generated/etc. This makes it a good candidate for tight integration into an existing wallet
16 //! instead of having a rather-separate lightning appendage to a wallet.
17
18 use std::ffi::c_void;
19 use bitcoin::hashes::Hash;
20 use crate::c_types::*;
21
22 pub mod util;
23 pub mod chain;
24 pub mod ln;
25 pub mod routing;