Package org.ldk.structs
Class TxAddInput
- java.lang.Object
-
- org.ldk.structs.TxAddInput
-
public class TxAddInput extends Object
A tx_add_input message for adding an input during interactive transaction construction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxAddInputclone()Creates a copy of the TxAddInputbooleaneq(TxAddInput b)Checks if two TxAddInputs contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDTransactionU16LenLimitedget_prevtx()Serialized transaction that contains the output this input spends to verify that it is non malleable.intget_prevtx_out()The index of the output being spentintget_sequence()The sequence number of this inputlongget_serial_id()A randomly chosen unique identifier for this input, which is even for initiators and odd for non-initiators.static TxAddInputof(byte[] channel_id_arg, long serial_id_arg, TransactionU16LenLimited prevtx_arg, int prevtx_out_arg, int sequence_arg)Constructs a new TxAddInput given each fieldstatic Result_TxAddInputDecodeErrorZread(byte[] ser)Read a TxAddInput from a byte array, created by TxAddInput_writevoidset_channel_id(byte[] val)The channel IDvoidset_prevtx(TransactionU16LenLimited val)Serialized transaction that contains the output this input spends to verify that it is non malleable.voidset_prevtx_out(int val)The index of the output being spentvoidset_sequence(int val)The sequence number of this inputvoidset_serial_id(long val)A randomly chosen unique identifier for this input, which is even for initiators and odd for non-initiators.byte[]write()Serialize the TxAddInput object into a byte array which can be read by TxAddInput_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_serial_id
public long get_serial_id()
A randomly chosen unique identifier for this input, which is even for initiators and odd for non-initiators.
-
set_serial_id
public void set_serial_id(long val)
A randomly chosen unique identifier for this input, which is even for initiators and odd for non-initiators.
-
get_prevtx
public TransactionU16LenLimited get_prevtx()
Serialized transaction that contains the output this input spends to verify that it is non malleable.
-
set_prevtx
public void set_prevtx(TransactionU16LenLimited val)
Serialized transaction that contains the output this input spends to verify that it is non malleable.
-
get_prevtx_out
public int get_prevtx_out()
The index of the output being spent
-
set_prevtx_out
public void set_prevtx_out(int val)
The index of the output being spent
-
get_sequence
public int get_sequence()
The sequence number of this input
-
set_sequence
public void set_sequence(int val)
The sequence number of this input
-
of
public static TxAddInput of(byte[] channel_id_arg, long serial_id_arg, TransactionU16LenLimited prevtx_arg, int prevtx_out_arg, int sequence_arg)
Constructs a new TxAddInput given each field
-
clone
public TxAddInput clone()
Creates a copy of the TxAddInput
-
eq
public boolean eq(TxAddInput b)
Checks if two TxAddInputs 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 TxAddInput object into a byte array which can be read by TxAddInput_read
-
read
public static Result_TxAddInputDecodeErrorZ read(byte[] ser)
Read a TxAddInput from a byte array, created by TxAddInput_write
-
-