hash
hash(
instance
,alg
,payload
):Promise
<Hash
>
Defined in: astrobase/src/hashing/utils.ts:44
Performs the hashing algorithm on the given buffer.
Parameters
Section titled “Parameters”instance
Section titled “instance”The instance for algorithm resolution.
number
The the type code of the hashing algorithm to use.
payload
Section titled “payload”BufferSource
The buffer to perform hashing on.
Returns
Section titled “Returns”Promise
<Hash
>
A promise that resolves with the Hash output.