883 B
883 B
Functions
blake2AsHex
▸ blake2AsHex(data: Uint8Array, bitLength?: number): string
Defined in blake2/asHex.ts:22
name: blake2AsHex
signature: blake2AsHex (data: Uint8Array, bitLength: number = 256): string
summary: Creates a blake2b hex from the input.
description: From a Uint8Array input, create the blake2b and return the result as a hex string with the specified bitLength.
example:
import { blake2AsHex } from '@polkadot/util-crypto';
blake2AsHex('abc'); // => 0xba80a53f981c4d0d
Parameters:
| Name | Type | Default value |
|---|---|---|
| data | Uint8Array |
- |
Default value bitLength |
number |
256 |
Returns: string