Given a public CryptoKey, some
SignatureBytes, and a Uint8Array of data, this method will return true if the
signature was produced by signing the data using the private key associated with the public key,
and false otherwise.
constdata = newUint8Array([1, 2, 3]); if (!(awaitverifySignature(publicKey, signature, data))) { thrownewError('The data were *not* signed by the private key associated with `publicKey`'); }
Given a public
CryptoKey, some SignatureBytes, and aUint8Arrayof data, this method will returntrueif the signature was produced by signing the data using the private key associated with the public key, andfalseotherwise.