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

Properties

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>