Package org.ldk.structs
Class AnnouncementSignatures
- java.lang.Object
-
- org.ldk.structs.AnnouncementSignatures
-
public class AnnouncementSignatures extends Object
An announcement_signatures message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnouncementSignatures
clone()
Creates a copy of the AnnouncementSignaturesprotected void
finalize()
byte[]
get_bitcoin_signature()
A signature by the funding keybyte[]
get_channel_id()
The channel IDbyte[]
get_node_signature()
A signature by the node keylong
get_short_channel_id()
The short channel IDstatic AnnouncementSignatures
of(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg)
Constructs a new AnnouncementSignatures given each fieldstatic Result_AnnouncementSignaturesDecodeErrorZ
read(byte[] ser)
Read a AnnouncementSignatures from a byte array, created by AnnouncementSignatures_writevoid
set_bitcoin_signature(byte[] val)
A signature by the funding keyvoid
set_channel_id(byte[] val)
The channel IDvoid
set_node_signature(byte[] val)
A signature by the node keyvoid
set_short_channel_id(long val)
The short channel IDbyte[]
write()
Serialize the AnnouncementSignatures object into a byte array which can be read by AnnouncementSignatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
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_signature
public byte[] get_node_signature()
A signature by the node key
-
set_node_signature
public void set_node_signature(byte[] val)
A signature by the node key
-
get_bitcoin_signature
public byte[] get_bitcoin_signature()
A signature by the funding key
-
set_bitcoin_signature
public void set_bitcoin_signature(byte[] val)
A signature by the funding key
-
of
public static AnnouncementSignatures of(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg)
Constructs a new AnnouncementSignatures given each field
-
clone
public AnnouncementSignatures clone()
Creates a copy of the AnnouncementSignatures
-
write
public byte[] write()
Serialize the AnnouncementSignatures object into a byte array which can be read by AnnouncementSignatures_read
-
read
public static Result_AnnouncementSignaturesDecodeErrorZ read(byte[] ser)
Read a AnnouncementSignatures from a byte array, created by AnnouncementSignatures_write
-
-