Package org.ldk.structs
Class ChannelReady
- java.lang.Object
-
- org.ldk.structs.ChannelReady
-
public class ChannelReady extends Object
A channel_ready message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelReadyclone()Creates a copy of the ChannelReadyprotected voidfinalize()byte[]get_channel_id()The channel IDbyte[]get_next_per_commitment_point()The per-commitment point of the second commitment transactionOption_u64Zget_short_channel_id_alias()If set, provides a short_channel_id alias for this channel.static ChannelReadyof(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, Option_u64Z short_channel_id_alias_arg)Constructs a new ChannelReady given each fieldstatic Result_ChannelReadyDecodeErrorZread(byte[] ser)Read a ChannelReady from a byte array, created by ChannelReady_writevoidset_channel_id(byte[] val)The channel IDvoidset_next_per_commitment_point(byte[] val)The per-commitment point of the second commitment transactionvoidset_short_channel_id_alias(Option_u64Z val)If set, provides a short_channel_id alias for this channel.byte[]write()Serialize the ChannelReady object into a byte array which can be read by ChannelReady_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_next_per_commitment_point
public byte[] get_next_per_commitment_point()
The per-commitment point of the second commitment transaction
-
set_next_per_commitment_point
public void set_next_per_commitment_point(byte[] val)
The per-commitment point of the second commitment transaction
-
get_short_channel_id_alias
public Option_u64Z get_short_channel_id_alias()
If set, provides a short_channel_id alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
-
set_short_channel_id_alias
public void set_short_channel_id_alias(Option_u64Z val)
If set, provides a short_channel_id alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
-
of
public static ChannelReady of(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, Option_u64Z short_channel_id_alias_arg)
Constructs a new ChannelReady given each field
-
clone
public ChannelReady clone()
Creates a copy of the ChannelReady
-
write
public byte[] write()
Serialize the ChannelReady object into a byte array which can be read by ChannelReady_read
-
read
public static Result_ChannelReadyDecodeErrorZ read(byte[] ser)
Read a ChannelReady from a byte array, created by ChannelReady_write
-
-