Oslo

ECDSA.sign()

Signs data with a private key and returns the signature. See ECDSA for an example.

Definition

function sign(
	privateKey: ArrayBuffer | TypedArray,
	data: ArrayBuffer | TypedArray
): Promise<ArrayBuffer>;

Parameters

  • privateKey: Private key in PKCS#8 format
  • data: Data to sign