Class AnnouncementSignatures


  • public class AnnouncementSignatures
    extends Object
    An [`announcement_signatures`] message to be sent to or received from a peer. [`announcement_signatures`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-announcement_signatures-message
    • 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_short_channel_id

        public long get_short_channel_id()
        The short channel ID
      • set_short_channel_id

        public void set_short_channel_id​(long val)
        The short channel ID
      • get_node_signature

        public byte[] get_node_signature()
        A signature by the node key
      • set_node_signature

        public void set_node_signature​(byte[] val)
        A signature by the node key
      • get_bitcoin_signature

        public byte[] get_bitcoin_signature()
        A signature by the funding key
      • set_bitcoin_signature

        public void set_bitcoin_signature​(byte[] val)
        A signature by the funding key
      • of

        public static AnnouncementSignatures of​(byte[] channel_id_arg,
                                                long short_channel_id_arg,
                                                byte[] node_signature_arg,
                                                byte[] bitcoin_signature_arg)
        Constructs a new AnnouncementSignatures given each field
      • eq

        public boolean eq​(AnnouncementSignatures b)
        Checks if two AnnouncementSignaturess 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 AnnouncementSignatures object into a byte array which can be read by AnnouncementSignatures_read