Skip to content

hash

hash(instance, alg, payload): Promise<Hash>

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

Performs the hashing algorithm on the given buffer.

Instance

The instance for algorithm resolution.

number

The the type code of the hashing algorithm to use.

BufferSource

The buffer to perform hashing on.

Promise<Hash>

A promise that resolves with the Hash output.