decodeSEC1PublicKey()

Decodes an SEC 1 encoded public key point. Supports both compressed and uncompressed variants. This does not validate that public key is on the curve.

Throws an error if the encoded bytes is invalid.

Definition

function decodeSEC1PublicKey(curve: ECDSANamedCurve, bytes: Uint8Array): ECDSAPublicKey;

Parameters

  • curve
  • bytes