Files
common/docs/util-crypto/modules/_sha512_asu8a_.md
T
2018-11-14 12:53:23 +00:00

723 B

Functions

sha512AsU8a

▸ sha512AsU8a(data: Uint8Array): Uint8Array

Defined in sha512/asU8a.ts:22

name: sha512AsU8a

signature: sha512AsU8a (data: Uint8Array): Uint8Array

summary: Creates sha-512 hash of the input.

description: Returns a sha-512 Uint8Array from the supplied data.

example:

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

sha512AsU8a(Uint8Array.from([...])); // => Uint8Array([...])

Parameters:

Param Type
data Uint8Array

Returns: Uint8Array