Class TrustedCommitmentTransaction


  • public class TrustedCommitmentTransaction
    extends Object
    A wrapper on CommitmentTransaction indicating that the derived fields (the built bitcoin transaction and the transaction creation keys) are trusted. See trust() and verify() functions on CommitmentTransaction. This structure implements Deref.
    • Method Detail

      • txid

        public byte[] txid()
        The transaction ID of the built Bitcoin transaction
      • keys

        public TxCreationKeys keys()
        The pre-calculated transaction creation public keys.
      • opt_anchors

        public boolean opt_anchors()
        Should anchors be used.
      • get_htlc_sigs

        public Result_CVec_SignatureZNoneZ get_htlc_sigs​(byte[] htlc_base_key,
                                                         DirectedChannelTransactionParameters channel_parameters,
                                                         EntropySource entropy_source)
        Get a signature for each HTLC which was included in the commitment transaction (ie for which HTLCOutputInCommitment::transaction_output_index.is_some()). The returned Vec has one entry for each HTLC, and in the same order. This function is only valid in the holder commitment context, it always uses EcdsaSighashType::All.