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 to or received from a peer. [`update_fulfill_htlc`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#removing-an-htlc-update_fulfill_htlc-update_fail_htlc-and-update_fail_malformed_htlc
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFulfillHTLC
clone()
Creates a copy of the UpdateFulfillHTLCboolean
eq(UpdateFulfillHTLC b)
Checks if two UpdateFulfillHTLCs contain equal inner contents.boolean
equals(Object o)
protected 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
-
eq
public boolean eq(UpdateFulfillHTLC b)
Checks if two UpdateFulfillHTLCs 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.
-
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
-
-