Package org.ldk.structs
Class ReceiveTlvs
- java.lang.Object
-
- org.ldk.structs.ReceiveTlvs
-
public class ReceiveTlvs extends Object
Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and may not be valid if received by another lightning implementation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceiveTlvsclone()Creates a copy of the ReceiveTlvsprotected voidfinalize()PaymentConstraintsget_payment_constraints()Constraints for the receiver of this payment.byte[]get_payment_secret()Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.static ReceiveTlvsof(byte[] payment_secret_arg, PaymentConstraints payment_constraints_arg)Constructs a new ReceiveTlvs given each fieldstatic Result_ReceiveTlvsDecodeErrorZread(byte[] ser)Read a ReceiveTlvs from a byte array, created by ReceiveTlvs_writevoidset_payment_constraints(PaymentConstraints val)Constraints for the receiver of this payment.voidset_payment_secret(byte[] val)Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.byte[]write()Serialize the ReceiveTlvs object into a byte array which can be read by ReceiveTlvs_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_payment_secret
public byte[] get_payment_secret()
Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
-
set_payment_secret
public void set_payment_secret(byte[] val)
Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
-
get_payment_constraints
public PaymentConstraints get_payment_constraints()
Constraints for the receiver of this payment.
-
set_payment_constraints
public void set_payment_constraints(PaymentConstraints val)
Constraints for the receiver of this payment.
-
of
public static ReceiveTlvs of(byte[] payment_secret_arg, PaymentConstraints payment_constraints_arg)
Constructs a new ReceiveTlvs given each field
-
clone
public ReceiveTlvs clone()
Creates a copy of the ReceiveTlvs
-
write
public byte[] write()
Serialize the ReceiveTlvs object into a byte array which can be read by ReceiveTlvs_read
-
read
public static Result_ReceiveTlvsDecodeErrorZ read(byte[] ser)
Read a ReceiveTlvs from a byte array, created by ReceiveTlvs_write
-
-