Package org.ldk.structs
Class UnsignedChannelAnnouncement
- java.lang.Object
-
- org.ldk.structs.UnsignedChannelAnnouncement
-
public class UnsignedChannelAnnouncement extends Object
The unsigned part of a [`channel_announcement`] message. [`channel_announcement`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedChannelAnnouncement
clone()
Creates a copy of the UnsignedChannelAnnouncementboolean
eq(UnsignedChannelAnnouncement b)
Checks if two UnsignedChannelAnnouncements contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
NodeId
get_bitcoin_key_1()
The funding key for the first nodeNodeId
get_bitcoin_key_2()
The funding key for the second nodebyte[]
get_chain_hash()
The genesis hash of the blockchain where the channel is to be openedChannelFeatures
get_features()
The advertised channel featuresNodeId
get_node_id_1()
One of the two `node_id`s which are endpoints of this channelNodeId
get_node_id_2()
The other of the two `node_id`s which are endpoints of this channellong
get_short_channel_id()
The short channel IDstatic Result_UnsignedChannelAnnouncementDecodeErrorZ
read(byte[] ser)
Read a UnsignedChannelAnnouncement from a byte array, created by UnsignedChannelAnnouncement_writevoid
set_bitcoin_key_1(NodeId val)
The funding key for the first nodevoid
set_bitcoin_key_2(NodeId val)
The funding key for the second nodevoid
set_chain_hash(byte[] val)
The genesis hash of the blockchain where the channel is to be openedvoid
set_features(ChannelFeatures val)
The advertised channel featuresvoid
set_node_id_1(NodeId val)
One of the two `node_id`s which are endpoints of this channelvoid
set_node_id_2(NodeId val)
The other of the two `node_id`s which are endpoints of this channelvoid
set_short_channel_id(long val)
The short channel IDbyte[]
write()
Serialize the UnsignedChannelAnnouncement object into a byte array which can be read by UnsignedChannelAnnouncement_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_features
public ChannelFeatures get_features()
The advertised channel features
-
set_features
public void set_features(ChannelFeatures val)
The advertised channel features
-
get_chain_hash
public byte[] get_chain_hash()
The genesis hash of the blockchain where the channel is to be opened
-
set_chain_hash
public void set_chain_hash(byte[] val)
The genesis hash of the blockchain where the channel is to be opened
-
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_id_1
public NodeId get_node_id_1()
One of the two `node_id`s which are endpoints of this channel
-
set_node_id_1
public void set_node_id_1(NodeId val)
One of the two `node_id`s which are endpoints of this channel
-
get_node_id_2
public NodeId get_node_id_2()
The other of the two `node_id`s which are endpoints of this channel
-
set_node_id_2
public void set_node_id_2(NodeId val)
The other of the two `node_id`s which are endpoints of this channel
-
get_bitcoin_key_1
public NodeId get_bitcoin_key_1()
The funding key for the first node
-
set_bitcoin_key_1
public void set_bitcoin_key_1(NodeId val)
The funding key for the first node
-
get_bitcoin_key_2
public NodeId get_bitcoin_key_2()
The funding key for the second node
-
set_bitcoin_key_2
public void set_bitcoin_key_2(NodeId val)
The funding key for the second node
-
clone
public UnsignedChannelAnnouncement clone()
Creates a copy of the UnsignedChannelAnnouncement
-
eq
public boolean eq(UnsignedChannelAnnouncement b)
Checks if two UnsignedChannelAnnouncements 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 UnsignedChannelAnnouncement object into a byte array which can be read by UnsignedChannelAnnouncement_read
-
read
public static Result_UnsignedChannelAnnouncementDecodeErrorZ read(byte[] ser)
Read a UnsignedChannelAnnouncement from a byte array, created by UnsignedChannelAnnouncement_write
-
-