Generic private key interface

interface RSAPrivateKey {
    publicKey: RSAPublicKey;
    raw: Uint8Array;
    type: "RSA";
    equals(key?): boolean;
    sign(data): Uint8Array | Promise<Uint8Array>;
}

Properties

Methods

Properties

publicKey: RSAPublicKey

The public key that corresponds to this private key

PKIX in ASN1 DER format

type: "RSA"

The type of this key

Methods