@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
16 lines (15 loc) • 555 B
TypeScript
/**
* @name shaAsU8a
* @summary Creates a sha Uint8Array from the input.
*/
export declare const shaAsU8a: (value: string | Uint8Array, bitLength?: 256 | 512, onlyJs?: boolean) => Uint8Array;
/**
* @name sha256AsU8a
* @summary Creates a sha256 Uint8Array from the input.
*/
export declare const sha256AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;
/**
* @name sha512AsU8a
* @summary Creates a sha512 Uint8Array from the input.
*/
export declare const sha512AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;