Package org.ldk.structs
Class TxSignatures
- java.lang.Object
-
- org.ldk.structs.TxSignatures
-
public class TxSignatures extends Object
A tx_signatures message containing the sender's signatures for a transaction constructed with interactive transaction construction.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxSignaturesclone()Creates a copy of the TxSignaturesbooleaneq(TxSignatures b)Checks if two TxSignaturess contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDbyte[]get_tx_hash()The TXIDbyte[][]get_witnesses()The list of witnesses Returns a copy of the field.static TxSignaturesof(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg)Constructs a new TxSignatures given each fieldstatic Result_TxSignaturesDecodeErrorZread(byte[] ser)Read a TxSignatures from a byte array, created by TxSignatures_writevoidset_channel_id(byte[] val)The channel IDvoidset_tx_hash(byte[] val)The TXIDvoidset_witnesses(byte[][] val)The list of witnessesbyte[]write()Serialize the TxSignatures object into a byte array which can be read by TxSignatures_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_tx_hash
public byte[] get_tx_hash()
The TXID
-
set_tx_hash
public void set_tx_hash(byte[] val)
The TXID
-
get_witnesses
public byte[][] get_witnesses()
The list of witnesses Returns a copy of the field.
-
set_witnesses
public void set_witnesses(byte[][] val)
The list of witnesses
-
of
public static TxSignatures of(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg)
Constructs a new TxSignatures given each field
-
clone
public TxSignatures clone()
Creates a copy of the TxSignatures
-
eq
public boolean eq(TxSignatures b)
Checks if two TxSignaturess 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 TxSignatures object into a byte array which can be read by TxSignatures_read
-
read
public static Result_TxSignaturesDecodeErrorZ read(byte[] ser)
Read a TxSignatures from a byte array, created by TxSignatures_write
-
-