pub fn id2pk(id: PeerId) -> Result<PublicKey, Error>
secp256k1
Converts a PeerId to a [secp256k1::PublicKey] by prepending the PeerId bytes with the SECP256K1_TAG_PUBKEY_UNCOMPRESSED tag.
PeerId
secp256k1::PublicKey
SECP256K1_TAG_PUBKEY_UNCOMPRESSED