Functions
xxhash64AsHex
▸ xxhash64AsHex(data: Buffer | Uint8Array | string, seed: number): string
Defined in xxhash/xxhash64/asHex.ts:23
name: xxhash64AsHex
summary: Creates a xxhash hex from the input.
description: From either a string, Uint8Array or a Buffer input, create the xxhash and return the result as a hex string.
example:
import { xxhash64AsHex } from '@polkadot/util-crypto';
xxhash64AsHex('abcd', 0xabcd)); // => 0xe29f70f8b8c96df7
1
2
3
2
3
Parameters:
| Name | Type |
|---|---|
| data | Buffer | Uint8Array | string |
| seed | number |
Returns: string