Package org.ldk.structs
Class ChannelDerivationParameters
- java.lang.Object
-
- org.ldk.structs.ChannelDerivationParameters
-
public class ChannelDerivationParameters extends Object
The parameters required to derive a channel signer via [`SignerProvider`].
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelDerivationParametersclone()Creates a copy of the ChannelDerivationParametersbooleaneq(ChannelDerivationParameters b)Checks if two ChannelDerivationParameterss contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_keys_id()The unique identifier to re-derive the signer for the associated channel.ChannelTransactionParametersget_transaction_parameters()The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`].longget_value_satoshis()The value in satoshis of the channel we're attempting to spend the anchor output of.static ChannelDerivationParametersof(long value_satoshis_arg, byte[] keys_id_arg, ChannelTransactionParameters transaction_parameters_arg)Constructs a new ChannelDerivationParameters given each fieldstatic Result_ChannelDerivationParametersDecodeErrorZread(byte[] ser)Read a ChannelDerivationParameters from a byte array, created by ChannelDerivationParameters_writevoidset_keys_id(byte[] val)The unique identifier to re-derive the signer for the associated channel.voidset_transaction_parameters(ChannelTransactionParameters val)The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`].voidset_value_satoshis(long val)The value in satoshis of the channel we're attempting to spend the anchor output of.byte[]write()Serialize the ChannelDerivationParameters object into a byte array which can be read by ChannelDerivationParameters_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_value_satoshis
public long get_value_satoshis()
The value in satoshis of the channel we're attempting to spend the anchor output of.
-
set_value_satoshis
public void set_value_satoshis(long val)
The value in satoshis of the channel we're attempting to spend the anchor output of.
-
get_keys_id
public byte[] get_keys_id()
The unique identifier to re-derive the signer for the associated channel.
-
set_keys_id
public void set_keys_id(byte[] val)
The unique identifier to re-derive the signer for the associated channel.
-
get_transaction_parameters
public ChannelTransactionParameters get_transaction_parameters()
The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`]. [`ChannelSigner::provide_channel_parameters`]: crate::sign::ChannelSigner::provide_channel_parameters
-
set_transaction_parameters
public void set_transaction_parameters(ChannelTransactionParameters val)
The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`]. [`ChannelSigner::provide_channel_parameters`]: crate::sign::ChannelSigner::provide_channel_parameters
-
of
public static ChannelDerivationParameters of(long value_satoshis_arg, byte[] keys_id_arg, ChannelTransactionParameters transaction_parameters_arg)
Constructs a new ChannelDerivationParameters given each field
-
clone
public ChannelDerivationParameters clone()
Creates a copy of the ChannelDerivationParameters
-
eq
public boolean eq(ChannelDerivationParameters b)
Checks if two ChannelDerivationParameterss 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 ChannelDerivationParameters object into a byte array which can be read by ChannelDerivationParameters_read
-
read
public static Result_ChannelDerivationParametersDecodeErrorZ read(byte[] ser)
Read a ChannelDerivationParameters from a byte array, created by ChannelDerivationParameters_write
-
-