Class AnchorDescriptor


  • public class AnchorDescriptor
    extends Object
    A descriptor used to sign for a commitment transaction's anchor output.
    • Method Detail

      • 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.
      • 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.