Skip to content

hash

hash(value, bitLength?): Uint8Array

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

value: any

Value to be hashed.

bitLength?: BitLength

Bit length of hash.

Uint8Array

Blake2b hash byte array.

utils/src/Crypto.ts:143