Skip to content

hash

hash(value, bitLength?): Uint8Array

Create the blake2b and return the result as an u8a with the specified bitLength.

Parameters

value: any

Value to be hashed.

bitLength?: BitLength

Bit length of hash.

Returns

Uint8Array

Blake2b hash byte array.

Source

utils/src/Crypto.ts:143