Package org.ldk.structs
Class Shutdown
- java.lang.Object
-
- org.ldk.structs.Shutdown
-
public class Shutdown extends Object
A shutdown message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Shutdownclone()Creates a copy of the Shutdownprotected voidfinalize()byte[]get_channel_id()The channel IDbyte[]get_scriptpubkey()The destination of this peer's funds on closing.static Shutdownof(byte[] channel_id_arg, byte[] scriptpubkey_arg)Constructs a new Shutdown given each fieldstatic Result_ShutdownDecodeErrorZread(byte[] ser)Read a Shutdown from a byte array, created by Shutdown_writevoidset_channel_id(byte[] val)The channel IDvoidset_scriptpubkey(byte[] val)The destination of this peer's funds on closing.byte[]write()Serialize the Shutdown object into a byte array which can be read by Shutdown_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_scriptpubkey
public byte[] get_scriptpubkey()
The destination of this peer's funds on closing. Must be in one of these forms: p2pkh, p2sh, p2wpkh, p2wsh.
-
set_scriptpubkey
public void set_scriptpubkey(byte[] val)
The destination of this peer's funds on closing. Must be in one of these forms: p2pkh, p2sh, p2wpkh, p2wsh.
-
of
public static Shutdown of(byte[] channel_id_arg, byte[] scriptpubkey_arg)
Constructs a new Shutdown given each field
-
write
public byte[] write()
Serialize the Shutdown object into a byte array which can be read by Shutdown_read
-
read
public static Result_ShutdownDecodeErrorZ read(byte[] ser)
Read a Shutdown from a byte array, created by Shutdown_write
-
-