Files
common/packages/util-crypto/docs/sha512.md
T
Jaco Greeff b5c5734c7c Add Blake2s & XXHash utility functions (#66)
* Initial split of util & util-crypto

* Add initial XXHash version

* Blake2s wit tests & documentation

* Add sha512 (from NaCl)

* Add randomBytes (from NaCl)

* Flow fixes

* Update documentation

* Update latest @polkadot/dev
2018-01-25 14:13:43 +01:00

437 B

sha512

Implements Sha-512 hashing functions for a variety of input and outputs

sha512AsU8a

Creates sha-512 hash of the input.

sha512AsU8a (data: Uint8Array): Uint8Array

Returns a sha-512 Uint8Array from the supplied data.

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

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