Interface ECKeyPairOptions<PubF, PrivF>

interface ECKeyPairOptions<PubF, PrivF> {
    namedCurve: string;
    paramEncoding?: "explicit" | "named";
    privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
        type: "pkcs8" | "sec1";
    };
    publicKeyEncoding: {
        format: PubF;
        type: "pkcs1" | "spki";
    };
}

Type Parameters

Hierarchy (view full)

Properties

namedCurve: string

Name of the curve to use

paramEncoding?: "explicit" | "named"

Must be 'named' or 'explicit'. Default: 'named'.

privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
    type: "pkcs8" | "sec1";
}
publicKeyEncoding: {
    format: PubF;
    type: "pkcs1" | "spki";
}