Class CommitmentSigned


  • public class CommitmentSigned
    extends Object
    A [`commitment_signed`] message to be sent to or received from a peer. [`commitment_signed`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#committing-updates-so-far-commitment_signed
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_signature

        public byte[] get_signature()
        A signature on the commitment transaction
      • set_signature

        public void set_signature​(byte[] val)
        A signature on the commitment transaction
      • get_htlc_signatures

        public byte[][] get_htlc_signatures()
        Signatures on the HTLC transactions Returns a copy of the field.
      • set_htlc_signatures

        public void set_htlc_signatures​(byte[][] val)
        Signatures on the HTLC transactions
      • of

        public static CommitmentSigned of​(byte[] channel_id_arg,
                                          byte[] signature_arg,
                                          byte[][] htlc_signatures_arg)
        Constructs a new CommitmentSigned given each field
      • eq

        public boolean eq​(CommitmentSigned b)
        Checks if two CommitmentSigneds 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.
      • write

        public byte[] write()
        Serialize the CommitmentSigned object into a byte array which can be read by CommitmentSigned_read