1 | /**
|
2 | * @name keccakAsU8a
|
3 | * @summary Creates a keccak Uint8Array from the input.
|
4 | * @description
|
5 | * From either a `string` or a `Buffer` input, create the keccak and return the result as a `Uint8Array`.
|
6 | * @example
|
7 | * <BR>
|
8 | *
|
9 | * ```javascript
|
10 | * import { keccakAsU8a } from '@polkadot/util-crypto';
|
11 | *
|
12 | * keccakAsU8a('123'); // => Uint8Array
|
13 | * ```
|
14 | */
|
15 | export declare const keccakAsU8a: (value: string | Uint8Array, bitLength?: 256 | 512, onlyJs?: boolean) => Uint8Array;
|
16 | /**
|
17 | * @name keccak256AsU8a
|
18 | * @description Creates a keccak256 Uint8Array from the input.
|
19 | */
|
20 | export declare const keccak256AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;
|
21 | /**
|
22 | * @name keccak512AsU8a
|
23 | * @description Creates a keccak512 Uint8Array from the input.
|
24 | */
|
25 | export declare const keccak512AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;
|
26 | /**
|
27 | * @name keccakAsHex
|
28 | * @description Creates a keccak hex string from the input.
|
29 | */
|
30 | export declare const keccakAsHex: (value: string | Uint8Array, bitLength?: 256 | 512 | undefined, onlyJs?: boolean | undefined) => import("@polkadot/util/types").HexString;
|