tuweni / org.apache.tuweni.devp2p / EthereumNodeRecord / nodeId

nodeId

fun nodeId(): Bytes32 (source)

Derives the public key of an ethereum node record into a unique 32 bytes hash.

Return
the hash of the public key

fun nodeId(publicKey: PublicKey): Bytes32 (source)

Derives the public key of an ethereum node record into a unique 32 bytes hash.

Parameters

publicKey - the public key to hash

Exceptions

IllegalArgumentException - if the public key is not valid.

Return
the hash of the public key