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 AnnouncementSignaturesclone()Creates a copy of the AnnouncementSignaturesprotected voidfinalize()byte[]get_bitcoin_signature()A signature by the funding keybyte[]get_channel_id()The channel IDbyte[]get_node_signature()A signature by the node keylongget_short_channel_id()The short channel IDstatic AnnouncementSignaturesof(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_AnnouncementSignaturesDecodeErrorZread(byte[] ser)Read a AnnouncementSignatures from a byte array, created by AnnouncementSignatures_writevoidset_bitcoin_signature(byte[] val)A signature by the funding keyvoidset_channel_id(byte[] val)The channel IDvoidset_node_signature(byte[] val)A signature by the node keyvoidset_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
-
-