Package org.ldk.structs
Class ChannelAnnouncement
- java.lang.Object
-
- org.ldk.structs.ChannelAnnouncement
-
public class ChannelAnnouncement extends Object
A channel_announcement message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelAnnouncementclone()Creates a copy of the ChannelAnnouncementprotected voidfinalize()byte[]get_bitcoin_signature_1()Proof of funding UTXO ownership by the first public nodebyte[]get_bitcoin_signature_2()Proof of funding UTXO ownership by the second public nodeUnsignedChannelAnnouncementget_contents()The actual announcementbyte[]get_node_signature_1()Authentication of the announcement by the first public nodebyte[]get_node_signature_2()Authentication of the announcement by the second public nodestatic ChannelAnnouncementof(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 fieldstatic Result_ChannelAnnouncementDecodeErrorZread(byte[] ser)Read a ChannelAnnouncement from a byte array, created by ChannelAnnouncement_writevoidset_bitcoin_signature_1(byte[] val)Proof of funding UTXO ownership by the first public nodevoidset_bitcoin_signature_2(byte[] val)Proof of funding UTXO ownership by the second public nodevoidset_contents(UnsignedChannelAnnouncement val)The actual announcementvoidset_node_signature_1(byte[] val)Authentication of the announcement by the first public nodevoidset_node_signature_2(byte[] val)Authentication of the announcement by the second public nodebyte[]write()Serialize the ChannelAnnouncement object into a byte array which can be read by ChannelAnnouncement_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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
-
get_contents
public UnsignedChannelAnnouncement get_contents()
The actual announcement
-
set_contents
public void set_contents(UnsignedChannelAnnouncement val)
The actual announcement
-
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
-
clone
public ChannelAnnouncement clone()
Creates a copy of the ChannelAnnouncement
-
write
public byte[] write()
Serialize the ChannelAnnouncement object into a byte array which can be read by ChannelAnnouncement_read
-
read
public static Result_ChannelAnnouncementDecodeErrorZ read(byte[] ser)
Read a ChannelAnnouncement from a byte array, created by ChannelAnnouncement_write
-
-