Module enr

Source
Expand description

Interface between node identification on protocol version 5 and 4. Specifically, between types [discv5::enr::NodeId] and [PeerId].

Structs§

EnrCombinedKeyWrapper
Wrapper around [discv5::Enr] ([Enr<CombinedKey>]).

Functions§

discv4_id_to_discv5_id
Converts a [PeerId] to a [discv5::enr::NodeId].
discv4_id_to_multiaddr_id
Converts a [PeerId] to a [reth_network_peers::PeerId].
enr_to_discv4_id
Extracts a [CombinedPublicKey::Secp256k1] from a [discv5::Enr] and converts it to a [PeerId]. Note: conversion from discv5 ID to discv4 ID is not possible.