Class CommitmentSigned


  • public class CommitmentSigned
    extends Object
    A commitment_signed message to be sent or received from a peer
    • 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
      • 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
      • write

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