1 // This file is Copyright its original authors, visible in version control
2 // history and in the source files from which this was generated.
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.
9 //! Implementation of Lightning Offers
10 //! ([BOLT 12](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md)).
12 //! Offers are a flexible protocol for Lightning payments.
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};
23 pub mod invoice_request;
29 use alloc::str::FromStr;
30 use core::ffi::c_void;
31 use core::convert::Infallible;
32 use bitcoin::hashes::Hash;
33 use crate::c_types::*;
34 #[cfg(feature="no-std")]
35 use alloc::{vec::Vec, boxed::Box};
40 use alloc::str::FromStr;
41 use core::ffi::c_void;
42 use core::convert::Infallible;
43 use bitcoin::hashes::Hash;
44 use crate::c_types::*;
45 #[cfg(feature="no-std")]
46 use alloc::{vec::Vec, boxed::Box};
51 use alloc::str::FromStr;
52 use core::ffi::c_void;
53 use core::convert::Infallible;
54 use bitcoin::hashes::Hash;
55 use crate::c_types::*;
56 #[cfg(feature="no-std")]
57 use alloc::{vec::Vec, boxed::Box};