Interface EcdsaGenerateKeyParams

The EcdsaGenerateKeyParams interface defines the algorithm-specific parameters that should be passed into the generateKey() method when using the ECDSA algorithm.

interface EcdsaGenerateKeyParams {
    algorithm: "secp256k1" | "secp256r1" | "ES256K" | "ES256";
}

Hierarchy (view full)

Properties

Properties

algorithm: "secp256k1" | "secp256r1" | "ES256K" | "ES256"

A string defining the type of key to generate. The value must be one of the following:

  • "ES256": ECDSA using the secp256r1 (P-256) curve and SHA-256.
  • "ES256K": ECDSA using the secp256k1 curve and SHA-256.
  • "secp256k1": ECDSA using the secp256k1 curve and SHA-256.
  • "secp256r1": ECDSA using the secp256r1 (P-256) curve and SHA-256.