Class NodeAnnouncement


  • public class NodeAnnouncement
    extends Object
    A node_announcement message to be sent or received from a peer
    • Method Detail

      • get_signature

        public byte[] get_signature()
        The signature by the node key
      • set_signature

        public void set_signature​(byte[] val)
        The signature by the node key
      • eq

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