Hash
Defined in: astrobase/src/hashing/hash.ts:6
A parser for the hash part of the ContentIdentifier
for immutable content.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Hash(
value
):Hash
Defined in: astrobase/src/hashing/hash.ts:10
Parameters
Section titled “Parameters”A valid hash value. When a string is used, it must be base58 encoded.
Returns
Section titled “Returns”Hash
Properties
Section titled “Properties”bytes:
Uint8Array
Defined in: astrobase/src/hashing/hash.ts:8
The full bytes.
Accessors
Section titled “Accessors”algorithm
Section titled “algorithm”Get Signature
Section titled “Get Signature”get algorithm():
Varint
Defined in: astrobase/src/hashing/hash.ts:18
The algorithm integer.
Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get value():
Uint8Array
<ArrayBufferLike
>
Defined in: astrobase/src/hashing/hash.ts:23
The value as bytes.
Returns
Section titled “Returns”Uint8Array
<ArrayBufferLike
>