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 alloc::string::String;
16 use core::ffi::c_void;
17 use core::convert::Infallible;
18 use bitcoin::hashes::Hash;
19 use crate::c_types::*;
20 #[cfg(feature="no-std")]
21 use alloc::{vec::Vec, boxed::Box};
25 pub mod invoice_error;
26 pub mod invoice_request;
32 use alloc::str::FromStr;
33 use alloc::string::String;
34 use core::ffi::c_void;
35 use core::convert::Infallible;
36 use bitcoin::hashes::Hash;
37 use crate::c_types::*;
38 #[cfg(feature="no-std")]
39 use alloc::{vec::Vec, boxed::Box};
44 use alloc::str::FromStr;
45 use alloc::string::String;
46 use core::ffi::c_void;
47 use core::convert::Infallible;
48 use bitcoin::hashes::Hash;
49 use crate::c_types::*;
50 #[cfg(feature="no-std")]
51 use alloc::{vec::Vec, boxed::Box};