Package org.ldk.structs
Class DelayedPaymentOutputDescriptor
- java.lang.Object
-
- org.ldk.structs.DelayedPaymentOutputDescriptor
-
public class DelayedPaymentOutputDescriptor extends Object
Information about a spendable output to a P2WSH script. See SpendableOutputDescriptor::DelayedPaymentOutput for more details on how to spend this.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DelayedPaymentOutputDescriptor
clone()
Creates a copy of the DelayedPaymentOutputDescriptorprotected void
finalize()
byte[]
get_channel_keys_id()
Arbitrary identification information returned by a call to `Sign::channel_keys_id()`.long
get_channel_value_satoshis()
The value of the channel which this output originated from, possibly indirectly.OutPoint
get_outpoint()
The outpoint which is spendablebyte[]
get_per_commitment_point()
Per commitment point to derive delayed_payment_key by key holderbyte[]
get_revocation_pubkey()
The revocation point specific to the commitment transaction which was broadcast.short
get_to_self_delay()
The nSequence value which must be set in the spending input to satisfy the OP_CSV in the witness_script.static DelayedPaymentOutputDescriptor
of(OutPoint outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, TxOut output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg)
Constructs a new DelayedPaymentOutputDescriptor given each fieldstatic Result_DelayedPaymentOutputDescriptorDecodeErrorZ
read(byte[] ser)
Read a DelayedPaymentOutputDescriptor from a byte array, created by DelayedPaymentOutputDescriptor_writevoid
set_channel_keys_id(byte[] val)
Arbitrary identification information returned by a call to `Sign::channel_keys_id()`.void
set_channel_value_satoshis(long val)
The value of the channel which this output originated from, possibly indirectly.void
set_outpoint(OutPoint val)
The outpoint which is spendablevoid
set_output(TxOut val)
The output which is referenced by the given outpointvoid
set_per_commitment_point(byte[] val)
Per commitment point to derive delayed_payment_key by key holdervoid
set_revocation_pubkey(byte[] val)
The revocation point specific to the commitment transaction which was broadcast.void
set_to_self_delay(short val)
The nSequence value which must be set in the spending input to satisfy the OP_CSV in the witness_script.byte[]
write()
Serialize the DelayedPaymentOutputDescriptor object into a byte array which can be read by DelayedPaymentOutputDescriptor_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_per_commitment_point
public byte[] get_per_commitment_point()
Per commitment point to derive delayed_payment_key by key holder
-
set_per_commitment_point
public void set_per_commitment_point(byte[] val)
Per commitment point to derive delayed_payment_key by key holder
-
get_to_self_delay
public short get_to_self_delay()
The nSequence value which must be set in the spending input to satisfy the OP_CSV in the witness_script.
-
set_to_self_delay
public void set_to_self_delay(short val)
The nSequence value which must be set in the spending input to satisfy the OP_CSV in the witness_script.
-
set_output
public void set_output(TxOut val)
The output which is referenced by the given outpoint
-
get_revocation_pubkey
public byte[] get_revocation_pubkey()
The revocation point specific to the commitment transaction which was broadcast. Used to derive the witnessScript for this output.
-
set_revocation_pubkey
public void set_revocation_pubkey(byte[] val)
The revocation point specific to the commitment transaction which was broadcast. Used to derive the witnessScript for this output.
-
get_channel_keys_id
public byte[] get_channel_keys_id()
Arbitrary identification information returned by a call to `Sign::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 `Sign::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 output originated from, possibly indirectly.
-
set_channel_value_satoshis
public void set_channel_value_satoshis(long val)
The value of the channel which this output originated from, possibly indirectly.
-
of
public static DelayedPaymentOutputDescriptor of(OutPoint outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, TxOut output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg)
Constructs a new DelayedPaymentOutputDescriptor given each field
-
clone
public DelayedPaymentOutputDescriptor clone()
Creates a copy of the DelayedPaymentOutputDescriptor
-
write
public byte[] write()
Serialize the DelayedPaymentOutputDescriptor object into a byte array which can be read by DelayedPaymentOutputDescriptor_read
-
read
public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ read(byte[] ser)
Read a DelayedPaymentOutputDescriptor from a byte array, created by DelayedPaymentOutputDescriptor_write
-
-