EC key without private fields.

interface PublicKey {
    constructor: any;
    alg?: string;
    algorithm?: string;
    crv?: CurveType;
    curve: CurveType;
    d?: string;
    dp?: string;
    dq?: string;
    e?: string;
    ext?: boolean;
    extractable?: boolean;
    k?: string;
    key_ops?: string[];
    keyPair: BinaryKeyPair;
    keyPairBits?: BinaryKeyPair;
    kty?: KeyType;
    n?: string;
    operations?: string[];
    oth?: RsaOtherPrimesInfo[];
    p?: string;
    pkcs8?: Uint8Array;
    private?: string;
    privateBits?: Uint8Array;
    privateKey: Uint8Array;
    publicBits: Uint8Array;
    publicKey: Uint8Array;
    q?: string;
    qi?: string;
    sec1?: Uint8Array;
    spki?: Uint8Array;
    type: EC;
    use?: string;
    x: string;
    xBits: Uint8Array;
    y: string;
    yBits: Uint8Array;
}

Hierarchy (view full)

Constructors

constructor: any

Properties

alg?: string
algorithm?: string

The key algorithm, alias for JWK "alg" field.

crv?: CurveType
curve: CurveType

The elliptic curve type, alias for JWK "crv" field.

d?: string
dp?: string
dq?: string
e?: string
ext?: boolean
extractable?: boolean

Indicates whether the private key is extractable, alias for JSK "ext" field.

k?: string
key_ops?: string[]
keyPair: BinaryKeyPair

Alias for keyPairBits that throws if a complete key pair is not present.

keyPairBits?: BinaryKeyPair

Import/export of BinaryKeyPair structure used as an alternate serialization format for legacy reasons.

kty?: KeyType
n?: string
operations?: string[]

Operations supported by the key, alias for JWK "key_ops" field.

oth?: RsaOtherPrimesInfo[]
p?: string
pkcs8?: Uint8Array

Import (write-only) of private keys encoded in PKCS #8 format.

private?: string

The private key, alias for JWK "d" field.

privateBits?: Uint8Array

Binary alias to private key field. Automatically encodes/decodes the base-64 private key.

privateKey: Uint8Array

Alias for privateBits that throws if no private key is present.

publicBits: Uint8Array

Import/export of EC public key in SEC1/SPKI format. Maps to x & y fields internally.

publicKey: Uint8Array

Alias for publicBits that throws if no public key is present.

q?: string
qi?: string
sec1?: Uint8Array

Import (write-only) of private keys encoded in SEC1 format.

spki?: Uint8Array

Import (write-only) of public keys encoded in SPKI format.

type: EC

The key type, alias for JWK "kty" field.

use?: string
x: string
xBits: Uint8Array

Binary alias to the x field. Automatically encodes/decodes the base-64 x-point on EC public keys.

y: string
yBits: Uint8Array

Binary alias to the y field. Automatically encodes/decodes the base-64 y-point on EC public keys.