Class 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.
    • Method Detail

      • clone

        public Payee clone()
        Creates a copy of the Payee
        Overrides:
        clone in class Object
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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.