class EthereumNodeRecord
(source)
Ethereum Node Record (ENR) as described in EIP-778.
EthereumNodeRecord(signature: Bytes, seq: Long, data: Map<String, Bytes>)
Ethereum Node Record (ENR) as described in EIP-778. |
val data: Map<String, Bytes> |
|
val seq: Long |
|
val signature: Bytes |
fun ip(): InetAddress |
|
fun publicKey(): PublicKey |
|
fun tcp(): Int |
|
fun udp(): Int |
|
fun validate(): Unit |
fun fromRLP(rlp: Bytes): EthereumNodeRecord
Creates an ENR from its serialized form as a RLP list |
|
fun toRLP(signatureKeyPair: KeyPair, seq: Long = Instant.now().toEpochMilli(), data: Map<String, Bytes>? = null, ip: InetAddress, tcp: Int? = null, udp: Int? = null): Bytes
Creates the serialized form of a ENR |