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_u64Z
amount_pico_btc()
RawInvoice
clone()
Creates a copy of the RawInvoiceCurrency
currency()
Description
description()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneSha256
description_hash()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Noneboolean
eq(RawInvoice b)
Checks if two RawInvoices contain equal inner contents.boolean
equals(Object o)
ExpiryTime
expiry_time()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneInvoiceFeatures
features()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent Noneprotected void
finalize()
RawDataPart
get_data()
data partlong
hash()
Generates a non-cryptographic 64-bit hash of the RawInvoice.int
hashCode()
MinFinalCltvExpiryDelta
min_final_cltv_expiry_delta()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NonePayeePubKey
payee_pub_key()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneSha256
payment_hash()
Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent NoneOption_CVec_u8ZZ
payment_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()
void
set_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()
-
-