Functions

keccakAsHex

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

Defined in keccak/asHex.ts:23

name: keccakAsHex

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...
1
2
3

Parameters:

Name Type
value Buffer | Uint8Array | string

Returns: string


Last Updated: 2/26/2019, 11:35:18 AM