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

      • hash

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

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