Package org.ldk.structs
Class CommitmentSigned
- java.lang.Object
-
- org.ldk.structs.CommitmentSigned
-
public class CommitmentSigned extends Object
A commitment_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 CommitmentSigned
clone()
Creates a copy of the CommitmentSignedprotected void
finalize()
byte[]
get_channel_id()
The channel IDbyte[]
get_signature()
A signature on the commitment transactionstatic CommitmentSigned
of(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg)
Constructs a new CommitmentSigned given each fieldstatic Result_CommitmentSignedDecodeErrorZ
read(byte[] ser)
Read a CommitmentSigned from a byte array, created by CommitmentSigned_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_htlc_signatures(byte[][] val)
Signatures on the HTLC transactionsvoid
set_signature(byte[] val)
A signature on the commitment transactionbyte[]
write()
Serialize the CommitmentSigned object into a byte array which can be read by CommitmentSigned_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_signature
public byte[] get_signature()
A signature on the commitment transaction
-
set_signature
public void set_signature(byte[] val)
A signature on the commitment transaction
-
set_htlc_signatures
public void set_htlc_signatures(byte[][] val)
Signatures on the HTLC transactions
-
of
public static CommitmentSigned of(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg)
Constructs a new CommitmentSigned given each field
-
clone
public CommitmentSigned clone()
Creates a copy of the CommitmentSigned
-
write
public byte[] write()
Serialize the CommitmentSigned object into a byte array which can be read by CommitmentSigned_read
-
read
public static Result_CommitmentSignedDecodeErrorZ read(byte[] ser)
Read a CommitmentSigned from a byte array, created by CommitmentSigned_write
-
-