Class OnionMessage


  • public class OnionMessage
    extends Object
    An onion message to be sent to or received from a peer.
    • Method Detail

      • get_blinding_point

        public byte[] get_blinding_point()
        Used in decrypting the onion packet's payload.
      • set_blinding_point

        public void set_blinding_point​(byte[] val)
        Used in decrypting the onion packet's payload.
      • eq

        public boolean eq​(OnionMessage b)
        Checks if two OnionMessages 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 OnionMessage object into a byte array which can be read by OnionMessage_read