Expand description
Interface between node identification on protocol version 5 and 4. Specifically, between types
enr::NodeId and PeerId.
Structs§
- EnrCombined
KeyWrapper - Wrapper around [
discv5::Enr] (Enr<CombinedKey>).
Functions§
- discv4_
id_ to_ discv5_ id - Converts a
PeerIdto aenr::NodeId. - discv4_
id_ to_ multiaddr_ id - Converts a
PeerIdto a [libp2p_identity::PeerId]. - enr_
to_ discv4_ id - Extracts a [
CombinedPublicKey::Secp256k1] from a [discv5::Enr] and converts it to aPeerId. Note: conversion from discv5 ID to discv4 ID is not possible.