Package org.ldk.structs
Class PhantomRouteHints
- java.lang.Object
-
- org.ldk.structs.PhantomRouteHints
-
public class PhantomRouteHints extends Object
Route hints used in constructing invoices for [phantom node payents]. [phantom node payments]: crate::chain::keysinterface::PhantomKeysManager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PhantomRouteHints
clone()
Creates a copy of the PhantomRouteHintsprotected void
finalize()
ChannelDetails[]
get_channels()
The list of channels to be included in the invoice route hints.long
get_phantom_scid()
A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.byte[]
get_real_node_pubkey()
The pubkey of the real backing node that would ultimately receive the payment.static PhantomRouteHints
of(ChannelDetails[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg)
Constructs a new PhantomRouteHints given each fieldstatic Result_PhantomRouteHintsDecodeErrorZ
read(byte[] ser)
Read a PhantomRouteHints from a byte array, created by PhantomRouteHints_writevoid
set_channels(ChannelDetails[] val)
The list of channels to be included in the invoice route hints.void
set_phantom_scid(long val)
A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.void
set_real_node_pubkey(byte[] val)
The pubkey of the real backing node that would ultimately receive the payment.byte[]
write()
Serialize the PhantomRouteHints object into a byte array which can be read by PhantomRouteHints_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channels
public ChannelDetails[] get_channels()
The list of channels to be included in the invoice route hints.
-
set_channels
public void set_channels(ChannelDetails[] val)
The list of channels to be included in the invoice route hints.
-
get_phantom_scid
public long get_phantom_scid()
A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.
-
set_phantom_scid
public void set_phantom_scid(long val)
A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.
-
get_real_node_pubkey
public byte[] get_real_node_pubkey()
The pubkey of the real backing node that would ultimately receive the payment.
-
set_real_node_pubkey
public void set_real_node_pubkey(byte[] val)
The pubkey of the real backing node that would ultimately receive the payment.
-
of
public static PhantomRouteHints of(ChannelDetails[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg)
Constructs a new PhantomRouteHints given each field
-
clone
public PhantomRouteHints clone()
Creates a copy of the PhantomRouteHints
-
write
public byte[] write()
Serialize the PhantomRouteHints object into a byte array which can be read by PhantomRouteHints_read
-
read
public static Result_PhantomRouteHintsDecodeErrorZ read(byte[] ser)
Read a PhantomRouteHints from a byte array, created by PhantomRouteHints_write
-
-