* 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
437 B
437 B
sha512
Implements Sha-512 hashing functions for a variety of input and outputs
- sha512AsU8a Creates sha-512 hash of the input.
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([...])