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