Optional
Readonly
publicRSA public keys are too large to embed in the multihash commonly used to refer to peers, so this will only be defined if the public key has previously been found through a routing query or during normal protocol operations
Readonly
typeReturns a CID with the libp2p key code and the same multihash as
toMultihash()
Returns a multihash, the digest of which is the SHA2-256 hash of the public key
A PeerId generated from an RSA public key - it is a base58btc encoded sha-256 hash of the public key.
RSA public keys are too large to pass around freely, instead Ed25519 or secp256k1 should be preferred as they can embed their public key in the PeerId itself.
Deprecated
Ed25519 or secp256k1 keys are preferred to RSA