Package org.ldk.structs
Class UnsignedNodeAnnouncement
- java.lang.Object
-
- org.ldk.structs.UnsignedNodeAnnouncement
-
public class UnsignedNodeAnnouncement extends Object
The unsigned part of a node_announcement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedNodeAnnouncement
clone()
Creates a copy of the UnsignedNodeAnnouncementprotected void
finalize()
byte[]
get_alias()
An alias, for UI purposes.NodeFeatures
get_features()
The advertised featuresbyte[]
get_node_id()
The node_id this announcement originated from (don't rebroadcast the node_announcement back to this node).byte[]
get_rgb()
An RGB color for UI purposesint
get_timestamp()
A strictly monotonic announcement counter, with gaps allowedstatic Result_UnsignedNodeAnnouncementDecodeErrorZ
read(byte[] ser)
Read a UnsignedNodeAnnouncement from a byte array, created by UnsignedNodeAnnouncement_writevoid
set_addresses(NetAddress[] val)
List of addresses on which this node is reachablevoid
set_alias(byte[] val)
An alias, for UI purposes.void
set_features(NodeFeatures val)
The advertised featuresvoid
set_node_id(byte[] val)
The node_id this announcement originated from (don't rebroadcast the node_announcement back to this node).void
set_rgb(byte[] val)
An RGB color for UI purposesvoid
set_timestamp(int val)
A strictly monotonic announcement counter, with gaps allowedbyte[]
write()
Serialize the UnsignedNodeAnnouncement object into a byte array which can be read by UnsignedNodeAnnouncement_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_features
public NodeFeatures get_features()
The advertised features
-
set_features
public void set_features(NodeFeatures val)
The advertised features
-
get_timestamp
public int get_timestamp()
A strictly monotonic announcement counter, with gaps allowed
-
set_timestamp
public void set_timestamp(int val)
A strictly monotonic announcement counter, with gaps allowed
-
get_node_id
public byte[] get_node_id()
The node_id this announcement originated from (don't rebroadcast the node_announcement back to this node).
-
set_node_id
public void set_node_id(byte[] val)
The node_id this announcement originated from (don't rebroadcast the node_announcement back to this node).
-
get_rgb
public byte[] get_rgb()
An RGB color for UI purposes
-
set_rgb
public void set_rgb(byte[] val)
An RGB color for UI purposes
-
get_alias
public byte[] get_alias()
An alias, for UI purposes. This should be sanitized before use. There is no guarantee of uniqueness.
-
set_alias
public void set_alias(byte[] val)
An alias, for UI purposes. This should be sanitized before use. There is no guarantee of uniqueness.
-
set_addresses
public void set_addresses(NetAddress[] val)
List of addresses on which this node is reachable
-
clone
public UnsignedNodeAnnouncement clone()
Creates a copy of the UnsignedNodeAnnouncement
-
write
public byte[] write()
Serialize the UnsignedNodeAnnouncement object into a byte array which can be read by UnsignedNodeAnnouncement_read
-
read
public static Result_UnsignedNodeAnnouncementDecodeErrorZ read(byte[] ser)
Read a UnsignedNodeAnnouncement from a byte array, created by UnsignedNodeAnnouncement_write
-
-