Files
common/docs/util-crypto/modules/_keccak_asu8a_.md
T
2019-02-28 09:51:40 +00:00

744 B

Functions

keccakAsU8a

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

Defined in keccak/asU8a.ts:21

name: keccakAsU8a

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:

Name Type
value Buffer | Uint8Array | string

Returns: Uint8Array