Function reth_discv5::enr::enr_to_discv4_id
source ยท pub fn enr_to_discv4_id(enr: &Enr) -> Option<PeerId>
Expand description
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.