mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-01 03:36:38 +00:00
docs: Remove docblocks for internal functions.
This commit is contained in:
parent
a243efff71
commit
4fa3b0c115
@ -58,12 +58,6 @@ const Identity = async ({ id, publicKey, signatures, type, sign, verify } = {})
|
|||||||
return identity
|
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 _encodeIdentity = async (identity) => {
|
||||||
const { id, publicKey, signatures, type } = identity
|
const { id, publicKey, signatures, type } = identity
|
||||||
const value = { id, publicKey, signatures, type }
|
const value = { id, publicKey, signatures, type }
|
||||||
@ -72,12 +66,6 @@ const _encodeIdentity = async (identity) => {
|
|||||||
return { hash, bytes: Uint8Array.from(bytes) }
|
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 decodeIdentity = async (bytes) => {
|
||||||
const { value } = await Block.decode({ bytes, codec, hasher })
|
const { value } = await Block.decode({ bytes, codec, hasher })
|
||||||
return Identity({ ...value })
|
return Identity({ ...value })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user