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. Decoding 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.booleanequals(Object o)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 partlonghash()Generates a non-cryptographic 64-bit hash of the RawInvoice.inthashCode()MinFinalCltvExpiryDeltamin_final_cltv_expiry_delta()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 NoneOption_CVec_u8ZZpayment_metadata()byte[]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 partbyte[]signable_hash()Calculate the hash of the encoded `RawInvoice` which should be signed.
-
-
-
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 long hash()
Generates a non-cryptographic 64-bit hash of the RawInvoice.
-
signable_hash
public byte[] signable_hash()
Calculate the hash of the encoded `RawInvoice` which should be signed.
-
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_delta
@Nullable public MinFinalCltvExpiryDelta min_final_cltv_expiry_delta()
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
-
payment_metadata
public Option_CVec_u8ZZ payment_metadata()
-
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()
-
-