Files
common/docs/util-crypto/modules/_keccak_asu8a_.md
T
2018-10-25 12:12:35 +00:00

842 B

Functions

keccakAsU8a

▸ keccakAsU8a(value: * Buffer | Uint8Array | string*): Uint8Array

Defined in keccak/asU8a.ts:22

name: keccakAsU8a

signature: keccakAsU8a (value: Buffer | Uint8Array | string): Uint8Array

summary: Creates a keccak Uint8Array from the input.

description: From either a string or a Buffer input, create the keccak and return the result as a Uint8Array.

example:

import { keccakAsU8a } from '@polkadot/util-crypto';

keccakAsU8a('123'); // => Uint8Array

Parameters:

Param Type
value Buffer | Uint8Array | string

Returns: Uint8Array