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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedChannelAnnouncement
clone()
Creates a copy of the UnsignedChannelAnnouncementprotected void
finalize()
byte[]
get_bitcoin_key_1()
The funding key for the first nodebyte[]
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 featuresbyte[]
get_node_id_1()
One of the two node_ids which are endpoints of this channelbyte[]
get_node_id_2()
The other of the two node_ids 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(byte[] val)
The funding key for the first nodevoid
set_bitcoin_key_2(byte[] 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(byte[] val)
One of the two node_ids which are endpoints of this channelvoid
set_node_id_2(byte[] val)
The other of the two node_ids 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 byte[] get_node_id_1()
One of the two node_ids which are endpoints of this channel
-
set_node_id_1
public void set_node_id_1(byte[] val)
One of the two node_ids which are endpoints of this channel
-
get_node_id_2
public byte[] get_node_id_2()
The other of the two node_ids which are endpoints of this channel
-
set_node_id_2
public void set_node_id_2(byte[] val)
The other of the two node_ids which are endpoints of this channel
-
get_bitcoin_key_1
public byte[] get_bitcoin_key_1()
The funding key for the first node
-
set_bitcoin_key_1
public void set_bitcoin_key_1(byte[] val)
The funding key for the first node
-
get_bitcoin_key_2
public byte[] get_bitcoin_key_2()
The funding key for the second node
-
set_bitcoin_key_2
public void set_bitcoin_key_2(byte[] val)
The funding key for the second node
-
clone
public UnsignedChannelAnnouncement clone()
Creates a copy of the UnsignedChannelAnnouncement
-
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
-
-