Package org.ldk.structs
Class AnchorDescriptor
- java.lang.Object
-
- org.ldk.structs.AnchorDescriptor
-
public class AnchorDescriptor extends Object
A descriptor used to sign for a commitment transaction's anchor output.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchorDescriptorclone()Creates a copy of the AnchorDescriptorWriteableEcdsaChannelSignerderive_channel_signer(SignerProvider signer_provider)Derives the channel signer required to sign the anchor input.booleaneq(AnchorDescriptor b)Checks if two AnchorDescriptors contain equal inner contents.booleanequals(Object o)protected voidfinalize()ChannelDerivationParametersget_channel_derivation_parameters()The parameters required to derive the signer for the anchor input.OutPointget_outpoint()The transaction input's outpoint corresponding to the commitment transaction's anchor output.static AnchorDescriptorof(ChannelDerivationParameters channel_derivation_parameters_arg, OutPoint outpoint_arg)Constructs a new AnchorDescriptor given each fieldTxOutprevious_utxo()Returns the UTXO to be spent by the anchor input, which can be obtained via [`Self::unsigned_tx_input`].voidset_channel_derivation_parameters(ChannelDerivationParameters val)The parameters required to derive the signer for the anchor input.voidset_outpoint(OutPoint val)The transaction input's outpoint corresponding to the commitment transaction's anchor output.byte[]tx_input_witness(byte[] signature)Returns the fully signed witness required to spend the anchor output in the commitment transaction.TxInunsigned_tx_input()Returns the unsigned transaction input spending the anchor output in the commitment transaction.byte[]witness_script()Returns the witness script of the anchor output in the commitment transaction.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_derivation_parameters
public ChannelDerivationParameters get_channel_derivation_parameters()
The parameters required to derive the signer for the anchor input.
-
set_channel_derivation_parameters
public void set_channel_derivation_parameters(ChannelDerivationParameters val)
The parameters required to derive the signer for the anchor input.
-
get_outpoint
public OutPoint get_outpoint()
The transaction input's outpoint corresponding to the commitment transaction's anchor output.
-
set_outpoint
public void set_outpoint(OutPoint val)
The transaction input's outpoint corresponding to the commitment transaction's anchor output.
-
of
public static AnchorDescriptor of(ChannelDerivationParameters channel_derivation_parameters_arg, OutPoint outpoint_arg)
Constructs a new AnchorDescriptor given each field
-
clone
public AnchorDescriptor clone()
Creates a copy of the AnchorDescriptor
-
eq
public boolean eq(AnchorDescriptor b)
Checks if two AnchorDescriptors 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.
-
previous_utxo
public TxOut previous_utxo()
Returns the UTXO to be spent by the anchor input, which can be obtained via [`Self::unsigned_tx_input`].
-
unsigned_tx_input
public TxIn unsigned_tx_input()
Returns the unsigned transaction input spending the anchor output in the commitment transaction.
-
witness_script
public byte[] witness_script()
Returns the witness script of the anchor output in the commitment transaction.
-
tx_input_witness
public byte[] tx_input_witness(byte[] signature)
Returns the fully signed witness required to spend the anchor output in the commitment transaction.
-
derive_channel_signer
public WriteableEcdsaChannelSigner derive_channel_signer(SignerProvider signer_provider)
Derives the channel signer required to sign the anchor input.
-
-