validateHash
validateHash(
instance,testHash,content):Promise<boolean>
Defined in: astrobase/src/hashing/utils.ts:24
Checks whether or not a hash matches the content.
Parameters
Section titled “Parameters”instance
Section titled “instance”testHash
Section titled “testHash”A HashLike value.
content
Section titled “content”Either an array of byte values, an ArrayBufferLike, or a base64 encoded string.
string | ArrayBufferLike | ArrayLike<number>
Returns
Section titled “Returns”Promise<boolean>
A promise that resolves with a boolean indicating whether or not the hash and content match.