Class ChannelAnnouncement


  • public class ChannelAnnouncement
    extends Object
    A [`channel_announcement`] message to be sent to or received from a peer. [`channel_announcement`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
    • Method Detail

      • get_node_signature_1

        public byte[] get_node_signature_1()
        Authentication of the announcement by the first public node
      • set_node_signature_1

        public void set_node_signature_1​(byte[] val)
        Authentication of the announcement by the first public node
      • get_node_signature_2

        public byte[] get_node_signature_2()
        Authentication of the announcement by the second public node
      • set_node_signature_2

        public void set_node_signature_2​(byte[] val)
        Authentication of the announcement by the second public node
      • get_bitcoin_signature_1

        public byte[] get_bitcoin_signature_1()
        Proof of funding UTXO ownership by the first public node
      • set_bitcoin_signature_1

        public void set_bitcoin_signature_1​(byte[] val)
        Proof of funding UTXO ownership by the first public node
      • get_bitcoin_signature_2

        public byte[] get_bitcoin_signature_2()
        Proof of funding UTXO ownership by the second public node
      • set_bitcoin_signature_2

        public void set_bitcoin_signature_2​(byte[] val)
        Proof of funding UTXO ownership by the second public node
      • of

        public static ChannelAnnouncement of​(byte[] node_signature_1_arg,
                                             byte[] node_signature_2_arg,
                                             byte[] bitcoin_signature_1_arg,
                                             byte[] bitcoin_signature_2_arg,
                                             UnsignedChannelAnnouncement contents_arg)
        Constructs a new ChannelAnnouncement given each field
      • eq

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