Update auto-generated bindings to 0.0.113
[ldk-c-bindings] / lightning-c-bindings / src / lightning / onion_message / 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 //! Onion Messages: sending, receiving, forwarding, and ancillary utilities live here
10 //!
11 //! Onion messages are multi-purpose messages sent between peers over the lightning network. In the
12 //! near future, they will be used to communicate invoices for [offers], unlocking use cases such as
13 //! static invoices, refunds and proof of payer. Further, you will be able to accept payments
14 //! without revealing your node id through the use of [blinded paths].
15 //!
16 //! LDK sends and receives onion messages via the [`OnionMessenger`]. See its documentation for more
17 //! information on its usage.
18 //!
19 //! [offers]: <https://github.com/lightning/bolts/pull/798>
20 //! [blinded paths]: crate::onion_message::BlindedPath
21
22 use alloc::str::FromStr;
23 use core::ffi::c_void;
24 use core::convert::Infallible;
25 use bitcoin::hashes::Hash;
26 use crate::c_types::*;
27 #[cfg(feature="no-std")]
28 use alloc::{vec::Vec, boxed::Box};
29
30 pub mod blinded_path;
31 pub mod messenger;
32 pub mod packet;
33 mod utils {
34
35 use alloc::str::FromStr;
36 use core::ffi::c_void;
37 use core::convert::Infallible;
38 use bitcoin::hashes::Hash;
39 use crate::c_types::*;
40 #[cfg(feature="no-std")]
41 use alloc::{vec::Vec, boxed::Box};
42
43 }