Package org.ldk.structs
Class BlindedPath
- java.lang.Object
-
- org.ldk.structs.BlindedPath
-
public class BlindedPath extends Object
Onion messages can be sent and received to blinded paths, which serve to hide the identity of the recipient.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlindedPathclone()Creates a copy of the BlindedPathprotected voidfinalize()static Result_BlindedPathNoneZof(byte[][] node_pks, KeysInterface keys_manager)Create a blinded path to be forwarded along `node_pks`.static Result_BlindedPathDecodeErrorZread(byte[] ser)Read a BlindedPath from a byte array, created by BlindedPath_writebyte[]write()Serialize the BlindedPath object into a byte array which can be read by BlindedPath_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public BlindedPath clone()
Creates a copy of the BlindedPath
-
of
public static Result_BlindedPathNoneZ of(byte[][] node_pks, KeysInterface keys_manager)
Create a blinded path to be forwarded along `node_pks`. The last node pubkey in `node_pks` will be the destination node. Errors if less than two hops are provided or if `node_pk`(s) are invalid.
-
write
public byte[] write()
Serialize the BlindedPath object into a byte array which can be read by BlindedPath_read
-
read
public static Result_BlindedPathDecodeErrorZ read(byte[] ser)
Read a BlindedPath from a byte array, created by BlindedPath_write
-
-