Package org.ldk.structs
Class Payee
- java.lang.Object
-
- org.ldk.structs.Payee
-
- Direct Known Subclasses:
Payee.Blinded,Payee.Clear
public class Payee extends Object
The recipient of a payment, differing based on whether they've hidden their identity with route blinding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayee.BlindedThe recipient provided blinded paths and payinfo to reach them.static classPayee.ClearThe recipient included these route hints in their BOLT11 invoice.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Payeeblinded(TwoTuple_BlindedPayInfoBlindedPathZ[] route_hints, Bolt12InvoiceFeatures features)Utility method to constructs a new Blinded-variant Payeestatic Payeeclear(byte[] node_id, RouteHint[] route_hints, Bolt11InvoiceFeatures features, int final_cltv_expiry_delta)Utility method to constructs a new Clear-variant PayeePayeeclone()Creates a copy of the Payeebooleaneq(Payee b)Checks if two Payees contain equal inner contents.booleanequals(Object o)protected voidfinalize()longhash()Generates a non-cryptographic 64-bit hash of the Payee.inthashCode()
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
blinded
public static Payee blinded(TwoTuple_BlindedPayInfoBlindedPathZ[] route_hints, Bolt12InvoiceFeatures features)
Utility method to constructs a new Blinded-variant Payee
-
clear
public static Payee clear(byte[] node_id, RouteHint[] route_hints, Bolt11InvoiceFeatures features, int final_cltv_expiry_delta)
Utility method to constructs a new Clear-variant Payee
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the Payee.
-
eq
public boolean eq(Payee b)
Checks if two Payees contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-