Package org.ldk.structs
Class NodeId
- java.lang.Object
-
- org.ldk.structs.NodeId
-
public class NodeId extends Object
Represents the compressed public key of a node
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]as_slice()Get the public key slice from this NodeIdNodeIdclone()Creates a copy of the NodeIdprotected voidfinalize()static NodeIdfrom_pubkey(byte[] pubkey)Create a new NodeId from a public keylonghash()Checks if two NodeIds contain equal inner contents.inthashCode()static Result_NodeIdDecodeErrorZread(byte[] ser)Read a NodeId from a byte array, created by NodeId_writebyte[]write()Serialize the NodeId object into a byte array which can be read by NodeId_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
from_pubkey
public static NodeId from_pubkey(byte[] pubkey)
Create a new NodeId from a public key
-
as_slice
public byte[] as_slice()
Get the public key slice from this NodeId
-
hash
public long hash()
Checks if two NodeIds contain equal inner contents.
-
write
public byte[] write()
Serialize the NodeId object into a byte array which can be read by NodeId_read
-
read
public static Result_NodeIdDecodeErrorZ read(byte[] ser)
Read a NodeId from a byte array, created by NodeId_write
-
-