Skip to content

validateHash

validateHash(instance, testHash, content): Promise<boolean>

Defined in: astrobase/src/hashing/utils.ts:24

Checks whether or not a hash matches the content.

Instance

HashLike

A HashLike value.

Either an array of byte values, an ArrayBufferLike, or a base64 encoded string.

string | ArrayBufferLike | ArrayLike<number>

Promise<boolean>

A promise that resolves with a boolean indicating whether or not the hash and content match.