Package org.ldk.structs
Class UpdateFulfillHTLC
- java.lang.Object
-
- org.ldk.structs.UpdateFulfillHTLC
-
public class UpdateFulfillHTLC extends Object
An update_fulfill_htlc message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFulfillHTLC
clone()
Creates a copy of the UpdateFulfillHTLCprotected void
finalize()
byte[]
get_channel_id()
The channel IDlong
get_htlc_id()
The HTLC IDbyte[]
get_payment_preimage()
The pre-image of the payment hash, allowing HTLC redemptionstatic UpdateFulfillHTLC
of(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg)
Constructs a new UpdateFulfillHTLC given each fieldstatic Result_UpdateFulfillHTLCDecodeErrorZ
read(byte[] ser)
Read a UpdateFulfillHTLC from a byte array, created by UpdateFulfillHTLC_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_htlc_id(long val)
The HTLC IDvoid
set_payment_preimage(byte[] val)
The pre-image of the payment hash, allowing HTLC redemptionbyte[]
write()
Serialize the UpdateFulfillHTLC object into a byte array which can be read by UpdateFulfillHTLC_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_htlc_id
public long get_htlc_id()
The HTLC ID
-
set_htlc_id
public void set_htlc_id(long val)
The HTLC ID
-
get_payment_preimage
public byte[] get_payment_preimage()
The pre-image of the payment hash, allowing HTLC redemption
-
set_payment_preimage
public void set_payment_preimage(byte[] val)
The pre-image of the payment hash, allowing HTLC redemption
-
of
public static UpdateFulfillHTLC of(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg)
Constructs a new UpdateFulfillHTLC given each field
-
clone
public UpdateFulfillHTLC clone()
Creates a copy of the UpdateFulfillHTLC
-
write
public byte[] write()
Serialize the UpdateFulfillHTLC object into a byte array which can be read by UpdateFulfillHTLC_read
-
read
public static Result_UpdateFulfillHTLCDecodeErrorZ read(byte[] ser)
Read a UpdateFulfillHTLC from a byte array, created by UpdateFulfillHTLC_write
-
-