Class TrustedClosingTransaction


  • public class TrustedClosingTransaction
    extends Object
    A wrapper on ClosingTransaction indicating that the built bitcoin transaction is trusted. See trust() and verify() functions on CommitmentTransaction. This structure implements Deref.
    • Method Detail

      • built_transaction

        public byte[] built_transaction()
        The pre-built Bitcoin commitment transaction
      • get_sighash_all

        public byte[] get_sighash_all​(byte[] funding_redeemscript,
                                      long channel_value_satoshis)
        Get the SIGHASH_ALL sighash value of the transaction. This can be used to verify a signature.
      • sign

        public byte[] sign​(byte[] funding_key,
                           byte[] funding_redeemscript,
                           long channel_value_satoshis)
        Sign a transaction, either because we are counter-signing the counterparty's transaction or because we are about to broadcast a holder transaction.