Package org.ldk.structs
Class BlindedTail
- java.lang.Object
-
- org.ldk.structs.BlindedTail
-
public class BlindedTail extends Object
The blinded portion of a [`Path`], if we're routing to a recipient who provided blinded paths in their BOLT12 [`Invoice`]. [`Invoice`]: crate::offers::invoice::Invoice
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlindedTailclone()Creates a copy of the BlindedTailbooleaneq(BlindedTail b)Checks if two BlindedTails contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_blinding_point()The blinding point of the [`BlindedPath`] provided by the recipient.intget_excess_final_cltv_expiry_delta()Excess CLTV delta added to the recipient's CLTV expiry to deter intermediate nodes from inferring the destination.longget_final_value_msat()The total amount paid on this [`Path`], excluding the fees.BlindedHop[]get_hops()The hops of the [`BlindedPath`] provided by the recipient.longhash()Generates a non-cryptographic 64-bit hash of the BlindedTail.inthashCode()static BlindedTailof(BlindedHop[] hops_arg, byte[] blinding_point_arg, int excess_final_cltv_expiry_delta_arg, long final_value_msat_arg)Constructs a new BlindedTail given each fieldstatic Result_BlindedTailDecodeErrorZread(byte[] ser)Read a BlindedTail from a byte array, created by BlindedTail_writevoidset_blinding_point(byte[] val)The blinding point of the [`BlindedPath`] provided by the recipient.voidset_excess_final_cltv_expiry_delta(int val)Excess CLTV delta added to the recipient's CLTV expiry to deter intermediate nodes from inferring the destination.voidset_final_value_msat(long val)The total amount paid on this [`Path`], excluding the fees.voidset_hops(BlindedHop[] val)The hops of the [`BlindedPath`] provided by the recipient.byte[]write()Serialize the BlindedTail object into a byte array which can be read by BlindedTail_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_hops
public BlindedHop[] get_hops()
The hops of the [`BlindedPath`] provided by the recipient. [`BlindedPath`]: crate::blinded_path::BlindedPath
-
set_hops
public void set_hops(BlindedHop[] val)
The hops of the [`BlindedPath`] provided by the recipient. [`BlindedPath`]: crate::blinded_path::BlindedPath
-
get_blinding_point
public byte[] get_blinding_point()
The blinding point of the [`BlindedPath`] provided by the recipient. [`BlindedPath`]: crate::blinded_path::BlindedPath
-
set_blinding_point
public void set_blinding_point(byte[] val)
The blinding point of the [`BlindedPath`] provided by the recipient. [`BlindedPath`]: crate::blinded_path::BlindedPath
-
get_excess_final_cltv_expiry_delta
public int get_excess_final_cltv_expiry_delta()
Excess CLTV delta added to the recipient's CLTV expiry to deter intermediate nodes from inferring the destination. May be 0.
-
set_excess_final_cltv_expiry_delta
public void set_excess_final_cltv_expiry_delta(int val)
Excess CLTV delta added to the recipient's CLTV expiry to deter intermediate nodes from inferring the destination. May be 0.
-
get_final_value_msat
public long get_final_value_msat()
The total amount paid on this [`Path`], excluding the fees.
-
set_final_value_msat
public void set_final_value_msat(long val)
The total amount paid on this [`Path`], excluding the fees.
-
of
public static BlindedTail of(BlindedHop[] hops_arg, byte[] blinding_point_arg, int excess_final_cltv_expiry_delta_arg, long final_value_msat_arg)
Constructs a new BlindedTail given each field
-
clone
public BlindedTail clone()
Creates a copy of the BlindedTail
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the BlindedTail.
-
eq
public boolean eq(BlindedTail b)
Checks if two BlindedTails 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 BlindedTail object into a byte array which can be read by BlindedTail_read
-
read
public static Result_BlindedTailDecodeErrorZ read(byte[] ser)
Read a BlindedTail from a byte array, created by BlindedTail_write
-
-