reth_discv5::enr

Function 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.