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