Package org.ldk.structs
Class OnionMessage
- java.lang.Object
-
- org.ldk.structs.OnionMessage
-
public class OnionMessage extends Object
An onion message to be sent to or received from a peer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnionMessage
clone()
Creates a copy of the OnionMessageboolean
eq(OnionMessage b)
Checks if two OnionMessages contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_blinding_point()
Used in decrypting the onion packet's payload.static Result_OnionMessageDecodeErrorZ
read(byte[] ser)
Read a OnionMessage from a byte array, created by OnionMessage_writevoid
set_blinding_point(byte[] val)
Used in decrypting the onion packet's payload.byte[]
write()
Serialize the OnionMessage object into a byte array which can be read by OnionMessage_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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.
-
clone
public OnionMessage clone()
Creates a copy of the OnionMessage
-
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.
-
read
public static Result_OnionMessageDecodeErrorZ read(byte[] ser)
Read a OnionMessage from a byte array, created by OnionMessage_write
-
write
public byte[] write()
Serialize the OnionMessage object into a byte array which can be read by OnionMessage_read
-
-