libp2p
    Preparing search index...

    Interface RSAPeerId

    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.

    Ed25519 or secp256k1 keys are preferred to RSA

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

    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

    • Returns true if the passed argument is equivalent to this PeerId

      Parameters

      • Optionalother: any

      Returns boolean