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 to or received from a peer. [`commitment_signed`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#committing-updates-so-far-commitment_signed
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitmentSigned
clone()
Creates a copy of the CommitmentSignedboolean
eq(CommitmentSigned b)
Checks if two CommitmentSigneds contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_channel_id()
The channel IDbyte[][]
get_htlc_signatures()
Signatures on the HTLC transactions Returns a copy of the field.byte[]
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
-
get_htlc_signatures
public byte[][] get_htlc_signatures()
Signatures on the HTLC transactions Returns a copy of the field.
-
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
-
eq
public boolean eq(CommitmentSigned b)
Checks if two CommitmentSigneds 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 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
-
-