0ea6089951d41ee88b28fc85a0ed8a0c7024f7d2
[ldk-c-bindings] / lightning-c-bindings / src / lightning / offers / 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 //! Implementation of Lightning Offers
10 //! ([BOLT 12](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md)).
11 //!
12 //! Offers are a flexible protocol for Lightning payments.
13
14 use alloc::str::FromStr;
15 use core::ffi::c_void;
16 use core::convert::Infallible;
17 use bitcoin::hashes::Hash;
18 use crate::c_types::*;
19 #[cfg(feature="no-std")]
20 use alloc::{vec::Vec, boxed::Box};
21
22 pub mod invoice;
23 pub mod invoice_error;
24 pub mod invoice_request;
25 pub mod offer;
26 pub mod parse;
27 pub mod refund;
28 mod merkle {
29
30 use alloc::str::FromStr;
31 use core::ffi::c_void;
32 use core::convert::Infallible;
33 use bitcoin::hashes::Hash;
34 use crate::c_types::*;
35 #[cfg(feature="no-std")]
36 use alloc::{vec::Vec, boxed::Box};
37
38 }
39 mod payer {
40
41 use alloc::str::FromStr;
42 use core::ffi::c_void;
43 use core::convert::Infallible;
44 use bitcoin::hashes::Hash;
45 use crate::c_types::*;
46 #[cfg(feature="no-std")]
47 use alloc::{vec::Vec, boxed::Box};
48
49 }
50 mod signer {
51
52 use alloc::str::FromStr;
53 use core::ffi::c_void;
54 use core::convert::Infallible;
55 use bitcoin::hashes::Hash;
56 use crate::c_types::*;
57 #[cfg(feature="no-std")]
58 use alloc::{vec::Vec, boxed::Box};
59
60 }