Files
common/docs/util-crypto/modules/_keccak_ashex_.md
T
2018-12-17 19:12:02 +00:00

836 B

Functions

keccakAsHex

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

Defined in keccak/asHex.ts:24

name: keccakAsHex

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

summary: Creates a keccak hex string from the input.

description: From either a string or a Buffer input, create the keccak and return the result as a 0x prefixed hex string.

example:

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

keccakAsHex('123'); // => 0x...

Parameters:

Name Type
value Buffer | Uint8Array | string

Returns: string