Package org.ldk.structs
Class BlindedHop
- java.lang.Object
-
- org.ldk.structs.BlindedHop
-
public class BlindedHop extends Object
Used to construct the blinded hops portion of a blinded path. These hops cannot be identified by outside observers and thus can be used to hide the identity of the recipient.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlindedHopclone()Creates a copy of the BlindedHopbooleaneq(BlindedHop b)Checks if two BlindedHops contain equal inner contents.booleanequals(Object o)protected voidfinalize()longhash()Generates a non-cryptographic 64-bit hash of the BlindedHop.inthashCode()static Result_BlindedHopDecodeErrorZread(byte[] ser)Read a BlindedHop from a byte array, created by BlindedHop_writebyte[]write()Serialize the BlindedHop object into a byte array which can be read by BlindedHop_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public BlindedHop clone()
Creates a copy of the BlindedHop
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the BlindedHop.
-
eq
public boolean eq(BlindedHop b)
Checks if two BlindedHops contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
write
public byte[] write()
Serialize the BlindedHop object into a byte array which can be read by BlindedHop_read
-
read
public static Result_BlindedHopDecodeErrorZ read(byte[] ser)
Read a BlindedHop from a byte array, created by BlindedHop_write
-
-