744 B
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