Package org.ldk.structs
Class RawInvoice
- java.lang.Object
-
- org.ldk.structs.RawInvoice
-
public class RawInvoice extends Object
Represents an syntactically correct Invoice for a payment on the lightning network, but without the signature information. De- and encoding should not lead to information loss but may lead to different hashes. For methods without docs see the corresponding methods in `Invoice`.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Option_u64Zamount_pico_btc()RawInvoiceclone()Creates a copy of the RawInvoiceCurrencycurrency()Descriptiondescription()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneSha256description_hash()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Nonebooleaneq(RawInvoice b)Checks if two RawInvoices contain equal inner contents.ExpiryTimeexpiry_time()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneInvoiceFeaturesfeatures()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Noneprotected voidfinalize()RawDataPartget_data()data partbyte[]hash()Calculate the hash of the encoded `RawInvoice`MinFinalCltvExpirymin_final_cltv_expiry()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NonePayeePubKeypayee_pub_key()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneSha256payment_hash()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Nonebyte[]payment_secret()Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NonePrivateRoute[]private_routes()voidset_data(RawDataPart val)data part
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_data
public RawDataPart get_data()
data part
-
set_data
public void set_data(RawDataPart val)
data part
-
eq
public boolean eq(RawInvoice b)
Checks if two RawInvoices contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
clone
public RawInvoice clone()
Creates a copy of the RawInvoice
-
hash
public byte[] hash()
Calculate the hash of the encoded `RawInvoice`
-
payment_hash
@Nullable public Sha256 payment_hash()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
description
@Nullable public Description description()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
payee_pub_key
@Nullable public PayeePubKey payee_pub_key()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
description_hash
@Nullable public Sha256 description_hash()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
expiry_time
@Nullable public ExpiryTime expiry_time()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
min_final_cltv_expiry
@Nullable public MinFinalCltvExpiry min_final_cltv_expiry()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
payment_secret
@Nullable public byte[] payment_secret()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
features
@Nullable public InvoiceFeatures features()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
private_routes
public PrivateRoute[] private_routes()
-
amount_pico_btc
public Option_u64Z amount_pico_btc()
-
currency
public Currency currency()
-
-