libp2p
    Preparing search index...

    Interface RSAPublicKey

    interface RSAPublicKey {
        jwk: JsonWebKey;
        raw: Uint8Array;
        type: "RSA";
        equals(key?: any): boolean;
        toCID(): CID<unknown, 114, 18, 1>;
        toMultihash(): MultihashDigest<18>;
        toString(): string;
        verify(
            data: Uint8Array<ArrayBufferLike> | Uint8ArrayList,
            sig: Uint8Array,
        ): boolean | Promise<boolean>;
    }
    Index

    Properties

    jwk: JsonWebKey

    The public key as a JSON web key

    PKIX in ASN1 DER format

    type: "RSA"

    The type of this key

    Methods

    • Return this public key as a CID encoded with the libp2p-key codec

      The digest contains a sha256 hash of the protobuf version of the public key.

      Returns CID<unknown, 114, 18, 1>