Class ChannelAnnouncement


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

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