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 CounterpartyChannelTransactionParametersclone()Creates a copy of the CounterpartyChannelTransactionParametersprotected voidfinalize()ChannelPublicKeysget_pubkeys()Counter-party public keysshortget_selected_contest_delay()The contest delay selected by the counterparty, which applies to holder-broadcast transactionsstatic CounterpartyChannelTransactionParametersof(ChannelPublicKeys pubkeys_arg, short selected_contest_delay_arg)Constructs a new CounterpartyChannelTransactionParameters given each fieldstatic Result_CounterpartyChannelTransactionParametersDecodeErrorZread(byte[] ser)Read a CounterpartyChannelTransactionParameters from a byte array, created by CounterpartyChannelTransactionParameters_writevoidset_pubkeys(ChannelPublicKeys val)Counter-party public keysvoidset_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
-
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
-
-