From 4fa3b0c11535c7d62187a6e72dc548eedf6ba172 Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Mon, 19 Jun 2023 01:54:54 +0100 Subject: [PATCH] docs: Remove docblocks for internal functions. --- src/identities/identity.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/identities/identity.js b/src/identities/identity.js index 32db82b..9ee25f5 100644 --- a/src/identities/identity.js +++ b/src/identities/identity.js @@ -58,12 +58,6 @@ const Identity = async ({ id, publicKey, signatures, type, sign, verify } = {}) return identity } -/** - * Encode an Identity to a serializable form. - * @param {Identity} identity Identity to encode, - * @return {Object} Object with fields hash and bytes. - * @static - */ const _encodeIdentity = async (identity) => { const { id, publicKey, signatures, type } = identity const value = { id, publicKey, signatures, type } @@ -72,12 +66,6 @@ const _encodeIdentity = async (identity) => { return { hash, bytes: Uint8Array.from(bytes) } } -/** - * Decode an Identity from bytes - * @param {Uint8Array} bytes Bytes from which to decode an Identity from - * @return {Identity} - * @static - */ const decodeIdentity = async (bytes) => { const { value } = await Block.decode({ bytes, codec, hasher }) return Identity({ ...value })