Package org.ldk.structs
Class CounterpartyChannelTransactionParameters
- java.lang.Object
-
- org.ldk.structs.CounterpartyChannelTransactionParameters
-
public class CounterpartyChannelTransactionParameters extends Object
Late-bound per-channel counterparty data used to build transactions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterpartyChannelTransactionParameters
clone()
Creates a copy of the CounterpartyChannelTransactionParametersboolean
eq(CounterpartyChannelTransactionParameters b)
Checks if two CounterpartyChannelTransactionParameterss contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
ChannelPublicKeys
get_pubkeys()
Counter-party public keysshort
get_selected_contest_delay()
The contest delay selected by the counterparty, which applies to holder-broadcast transactionsstatic CounterpartyChannelTransactionParameters
of(ChannelPublicKeys pubkeys_arg, short selected_contest_delay_arg)
Constructs a new CounterpartyChannelTransactionParameters given each fieldstatic Result_CounterpartyChannelTransactionParametersDecodeErrorZ
read(byte[] ser)
Read a CounterpartyChannelTransactionParameters from a byte array, created by CounterpartyChannelTransactionParameters_writevoid
set_pubkeys(ChannelPublicKeys val)
Counter-party public keysvoid
set_selected_contest_delay(short val)
The contest delay selected by the counterparty, which applies to holder-broadcast transactionsbyte[]
write()
Serialize the CounterpartyChannelTransactionParameters object into a byte array which can be read by CounterpartyChannelTransactionParameters_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_pubkeys
public ChannelPublicKeys get_pubkeys()
Counter-party public keys
-
set_pubkeys
public void set_pubkeys(ChannelPublicKeys val)
Counter-party public keys
-
get_selected_contest_delay
public short get_selected_contest_delay()
The contest delay selected by the counterparty, which applies to holder-broadcast transactions
-
set_selected_contest_delay
public void set_selected_contest_delay(short val)
The contest delay selected by the counterparty, which applies to holder-broadcast transactions
-
of
public static CounterpartyChannelTransactionParameters of(ChannelPublicKeys pubkeys_arg, short selected_contest_delay_arg)
Constructs a new CounterpartyChannelTransactionParameters given each field
-
clone
public CounterpartyChannelTransactionParameters clone()
Creates a copy of the CounterpartyChannelTransactionParameters
-
eq
public boolean eq(CounterpartyChannelTransactionParameters b)
Checks if two CounterpartyChannelTransactionParameterss 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 CounterpartyChannelTransactionParameters object into a byte array which can be read by CounterpartyChannelTransactionParameters_read
-
read
public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ read(byte[] ser)
Read a CounterpartyChannelTransactionParameters from a byte array, created by CounterpartyChannelTransactionParameters_write
-
-