Package org.ldk.structs
Class BlindedRoute
- java.lang.Object
-
- org.ldk.structs.BlindedRoute
-
public class BlindedRoute extends Object
Onion messages can be sent and received to blinded routes, which serve to hide the identity of the recipient.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static Result_BlindedRouteNoneZof(byte[][] node_pks, KeysInterface keys_manager)Create a blinded route to be forwarded along `node_pks`.static Result_BlindedRouteDecodeErrorZread(byte[] ser)Read a BlindedRoute from a byte array, created by BlindedRoute_writebyte[]write()Serialize the BlindedRoute object into a byte array which can be read by BlindedRoute_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static Result_BlindedRouteNoneZ of(byte[][] node_pks, KeysInterface keys_manager)
Create a blinded route 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 BlindedRoute object into a byte array which can be read by BlindedRoute_read
-
read
public static Result_BlindedRouteDecodeErrorZ read(byte[] ser)
Read a BlindedRoute from a byte array, created by BlindedRoute_write
-
-