Package org.ldk.structs
Class ClosingSigned
- java.lang.Object
-
- org.ldk.structs.ClosingSigned
-
public class ClosingSigned extends Object
A closing_signed message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClosingSigned
clone()
Creates a copy of the ClosingSignedprotected void
finalize()
byte[]
get_channel_id()
The channel IDClosingSignedFeeRange
get_fee_range()
The minimum and maximum fees which the sender is willing to accept, provided only by new nodes.long
get_fee_satoshis()
The proposed total fee for the closing transactionbyte[]
get_signature()
A signature on the closing transactionstatic ClosingSigned
of(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, ClosingSignedFeeRange fee_range_arg)
Constructs a new ClosingSigned given each fieldstatic Result_ClosingSignedDecodeErrorZ
read(byte[] ser)
Read a ClosingSigned from a byte array, created by ClosingSigned_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_fee_range(ClosingSignedFeeRange val)
The minimum and maximum fees which the sender is willing to accept, provided only by new nodes.void
set_fee_satoshis(long val)
The proposed total fee for the closing transactionvoid
set_signature(byte[] val)
A signature on the closing transactionbyte[]
write()
Serialize the ClosingSigned object into a byte array which can be read by ClosingSigned_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_fee_satoshis
public long get_fee_satoshis()
The proposed total fee for the closing transaction
-
set_fee_satoshis
public void set_fee_satoshis(long val)
The proposed total fee for the closing transaction
-
get_signature
public byte[] get_signature()
A signature on the closing transaction
-
set_signature
public void set_signature(byte[] val)
A signature on the closing transaction
-
get_fee_range
@Nullable public ClosingSignedFeeRange get_fee_range()
The minimum and maximum fees which the sender is willing to accept, provided only by new nodes. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
-
set_fee_range
public void set_fee_range(@Nullable ClosingSignedFeeRange val)
The minimum and maximum fees which the sender is willing to accept, provided only by new nodes. Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
-
of
public static ClosingSigned of(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, ClosingSignedFeeRange fee_range_arg)
Constructs a new ClosingSigned given each field
-
clone
public ClosingSigned clone()
Creates a copy of the ClosingSigned
-
write
public byte[] write()
Serialize the ClosingSigned object into a byte array which can be read by ClosingSigned_read
-
read
public static Result_ClosingSignedDecodeErrorZ read(byte[] ser)
Read a ClosingSigned from a byte array, created by ClosingSigned_write
-
-