reth_network_peers

Function id2pk

Source
pub fn id2pk(id: PeerId) -> Result<PublicKey, Error>
Available on crate feature secp256k1 only.
Expand description

Converts a PeerId to a [secp256k1::PublicKey] by prepending the PeerId bytes with the SECP256K1_TAG_PUBKEY_UNCOMPRESSED tag.