Class 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 Detail

      • 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
      • hash

        public long hash()
        Generates a non-cryptographic 64-bit hash of the BlindedTail.
      • hashCode

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