Files
common/docs/util-crypto/modules/_blake2_ashex_.md
T
2018-10-24 14:06:04 +00:00

884 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:

Param Type Default value
data Uint8Array -
Default value bitLength number 256

Returns: string