Class HolderCommitmentTransaction


  • public class HolderCommitmentTransaction
    extends Object
    Information needed to build and sign a holder's commitment transaction. The transaction is only signed once we are ready to broadcast.
    • Method Detail

      • get_counterparty_sig

        public byte[] get_counterparty_sig()
        Our counterparty's signature for the transaction
      • set_counterparty_sig

        public void set_counterparty_sig​(byte[] val)
        Our counterparty's signature for the transaction
      • set_counterparty_htlc_sigs

        public void set_counterparty_htlc_sigs​(byte[][] val)
        All non-dust counterparty HTLC signatures, in the order they appear in the transaction
      • write

        public byte[] write()
        Serialize the HolderCommitmentTransaction object into a byte array which can be read by HolderCommitmentTransaction_read
      • of

        public static HolderCommitmentTransaction of​(CommitmentTransaction commitment_tx,
                                                     byte[] counterparty_sig,
                                                     byte[][] counterparty_htlc_sigs,
                                                     byte[] holder_funding_key,
                                                     byte[] counterparty_funding_key)
        Create a new holder transaction with the given counterparty signatures. The funding keys are used to figure out which signature should go first when building the transaction for broadcast.