pub fn enr_to_discv4_id(enr: &Enr) -> Option<PeerId>
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.
CombinedPublicKey::Secp256k1
discv5::Enr
PeerId