Kotlin coroutine based implementation of the Ethereum ÐΞVp2p protocol.
These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-devp2p
(tuweni-devp2p.jar
).
class DevP2PPeerRoutingTable : PeerRoutingTable
A Peer routing table for the Ethereum ÐΞVp2p network. |
|
interface DiscoveryService
An Ethereum ÐΞVp2p discovery service. |
|
data class Endpoint
An Ethereum node endpoint. |
|
data class EnodeUriComponents
The components of an enode URI. |
|
class EphemeralPeerRepository : PeerRepository
An in-memory peer repository. |
|
class EthereumNodeRecord
Ethereum Node Record (ENR) as described in EIP-778. |
|
interface Peer
An Ethereum P2P network peer. |
|
interface PeerRepository
A repository of peers in an Ethereum network. |
|
interface PeerRoutingTable : Set<Peer>
A routing table for ÐΞVp2p peers. |
const val DEVP2P_BUCKET_SIZE: Int |
fun parseEnodeUri(uri: URI): EnodeUriComponents
Parse an enode URI. |