Fix links and add clarification in Identities api docs

This commit is contained in:
haad
2023-06-30 08:48:35 +03:00
parent 3ac96ee18d
commit ce8235ff04
2 changed files with 3 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ const Identities = async ({ keystore, path, storage, ipfs } = {}) => {
/**
* Gets an identity by hash.
* @param {string} hash An identity hash.
* @return {Identity} An instance of identity.
* @return {module:Identities~Identity} An instance of identity.
* @memberof module:Identities~Identities
* @instance
*/

View File

@@ -13,12 +13,11 @@ const hashStringEncoding = base58btc
* @property {object} publicKey A public key.
* @property {object} signatures A signed identity id and public key.
* @property {string} type The type of identity provider.
* @property {function} sign A sign function.
* @property {function} verify A verify function.
* @property {function} sign A sign function to sign data using this identity.
* @property {function} verify A verify function to verify data signed by this identity.
*/
const Identity = async ({ id, publicKey, signatures, type, sign, verify } = {}) => {
/**
* @namespace module:Identities~Identity
* @description The Identity instance. Returned by
* [Identities.createIdentity()]{@link module:Identities~Identities#createIdentity}.
*/