Merge pull request #53 from orenfromberg/patch-1
[ldk-c-bindings] / lightning-c-bindings / src / lightning_invoice / constants.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 /// Tag constants as specified in BOLT11
10
11 use std::str::FromStr;
12 use std::ffi::c_void;
13 use core::convert::Infallible;
14 use bitcoin::hashes::Hash;
15 use crate::c_types::*;
16
17
18 #[no_mangle]
19 pub static TAG_PAYMENT_HASH: u8 = lightning_invoice::constants::TAG_PAYMENT_HASH;
20
21 #[no_mangle]
22 pub static TAG_DESCRIPTION: u8 = lightning_invoice::constants::TAG_DESCRIPTION;
23
24 #[no_mangle]
25 pub static TAG_PAYEE_PUB_KEY: u8 = lightning_invoice::constants::TAG_PAYEE_PUB_KEY;
26
27 #[no_mangle]
28 pub static TAG_DESCRIPTION_HASH: u8 = lightning_invoice::constants::TAG_DESCRIPTION_HASH;
29
30 #[no_mangle]
31 pub static TAG_EXPIRY_TIME: u8 = lightning_invoice::constants::TAG_EXPIRY_TIME;
32
33 #[no_mangle]
34 pub static TAG_MIN_FINAL_CLTV_EXPIRY: u8 = lightning_invoice::constants::TAG_MIN_FINAL_CLTV_EXPIRY;
35
36 #[no_mangle]
37 pub static TAG_FALLBACK: u8 = lightning_invoice::constants::TAG_FALLBACK;
38
39 #[no_mangle]
40 pub static TAG_PRIVATE_ROUTE: u8 = lightning_invoice::constants::TAG_PRIVATE_ROUTE;
41
42 #[no_mangle]
43 pub static TAG_PAYMENT_SECRET: u8 = lightning_invoice::constants::TAG_PAYMENT_SECRET;
44
45 #[no_mangle]
46 pub static TAG_FEATURES: u8 = lightning_invoice::constants::TAG_FEATURES;