Merge pull request #92 from orbitdb/docs-fix

docs: Correct param types.
This commit is contained in:
Hayden Young 2023-07-15 04:42:39 +08:00 committed by GitHub
commit ecc1d961ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.