Package org.ldk.structs
Class StaticPaymentOutputDescriptor
- java.lang.Object
-
- org.ldk.structs.StaticPaymentOutputDescriptor
-
public class StaticPaymentOutputDescriptor extends Object
Information about a spendable output to our \"payment key\". See [`SpendableOutputDescriptor::StaticPaymentOutput`] for more details on how to spend this.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticPaymentOutputDescriptor
clone()
Creates a copy of the StaticPaymentOutputDescriptorboolean
eq(StaticPaymentOutputDescriptor b)
Checks if two StaticPaymentOutputDescriptors contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_channel_keys_id()
Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].long
get_channel_value_satoshis()
The value of the channel which this transactions spends.OutPoint
get_outpoint()
The outpoint which is spendable.TxOut
get_output()
The output which is referenced by the given outpoint.static StaticPaymentOutputDescriptor
of(OutPoint outpoint_arg, TxOut output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg)
Constructs a new StaticPaymentOutputDescriptor given each fieldstatic Result_StaticPaymentOutputDescriptorDecodeErrorZ
read(byte[] ser)
Read a StaticPaymentOutputDescriptor from a byte array, created by StaticPaymentOutputDescriptor_writevoid
set_channel_keys_id(byte[] val)
Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].void
set_channel_value_satoshis(long val)
The value of the channel which this transactions spends.void
set_outpoint(OutPoint val)
The outpoint which is spendable.void
set_output(TxOut val)
The output which is referenced by the given outpoint.byte[]
write()
Serialize the StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_outpoint
public OutPoint get_outpoint()
The outpoint which is spendable.
-
set_outpoint
public void set_outpoint(OutPoint val)
The outpoint which is spendable.
-
get_output
public TxOut get_output()
The output which is referenced by the given outpoint. Returns a copy of the field.
-
set_output
public void set_output(TxOut val)
The output which is referenced by the given outpoint.
-
get_channel_keys_id
public byte[] get_channel_keys_id()
Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`]. This may be useful in re-deriving keys used in the channel to spend the output.
-
set_channel_keys_id
public void set_channel_keys_id(byte[] val)
Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`]. This may be useful in re-deriving keys used in the channel to spend the output.
-
get_channel_value_satoshis
public long get_channel_value_satoshis()
The value of the channel which this transactions spends.
-
set_channel_value_satoshis
public void set_channel_value_satoshis(long val)
The value of the channel which this transactions spends.
-
of
public static StaticPaymentOutputDescriptor of(OutPoint outpoint_arg, TxOut output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg)
Constructs a new StaticPaymentOutputDescriptor given each field
-
clone
public StaticPaymentOutputDescriptor clone()
Creates a copy of the StaticPaymentOutputDescriptor
-
eq
public boolean eq(StaticPaymentOutputDescriptor b)
Checks if two StaticPaymentOutputDescriptors 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 StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read
-
read
public static Result_StaticPaymentOutputDescriptorDecodeErrorZ read(byte[] ser)
Read a StaticPaymentOutputDescriptor from a byte array, created by StaticPaymentOutputDescriptor_write
-
-