docs: Correct param types.

This commit is contained in:
Hayden Young 2023-07-14 21:37:18 +01:00
parent 192edb9bd2
commit 5ec4cb4768

View File

@ -49,8 +49,8 @@ const verifySignature = async (signature, publicKey, data) => {
/**
* Signs data using a key pair.
* @param {string} key The key to use for signing data.
* @param {string} data The data to sign.
* @param {Secp256k1PrivateKey} key The key to use for signing data.
* @param {string|Uint8Array} data The data to sign.
* @return {string} A signature.
* @throws No signing key given if no key is provided.
* @throws Given input data was undefined if no data is provided.