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

interface RSAPeerId {
    publicKey?: RSAPublicKey;
    type: "RSA";
    equals(other?): boolean;
    toCID(): CID<Uint8Array, 114, 18, 1>;
    toMultihash(): MultihashDigest<18>;
    toString(): string;
}

Properties

publicKey?: RSAPublicKey

RSA 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

type: "RSA"

Methods