Skip to content

Hash

Defined in: astrobase/src/hashing/hash.ts:6

A parser for the hash part of the ContentIdentifier for immutable content.

new Hash(value): Hash

Defined in: astrobase/src/hashing/hash.ts:10

HashLike

A valid hash value. When a string is used, it must be base58 encoded.

Hash

bytes: Uint8Array

Defined in: astrobase/src/hashing/hash.ts:8

The full bytes.

get algorithm(): Varint

Defined in: astrobase/src/hashing/hash.ts:18

The algorithm integer.

Varint


get value(): Uint8Array<ArrayBufferLike>

Defined in: astrobase/src/hashing/hash.ts:23

The value as bytes.

Uint8Array<ArrayBufferLike>