Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/mod.ts>xxhashAsU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function xxhashAsU8a
import { xxhashAsU8a } from "https://deno.land/x/polkadot@0.2.25/util-crypto/mod.ts";

Examples

import { xxhashAsU8a } from 'https://deno.land/x/polkadot@0.2.25/util-crypto/mod.ts';

xxhashAsU8a('abc'); // => 0x44bc2cf5ad770999

Parameters

data:
| HexString
| Buffer
| Uint8Array
| string
optional
bitLength:
| 64
| 128
| 192
| 256
| 320
| 384
| 448
| 512
= [UNSUPPORTED]
optional
onlyJs: boolean

Returns

Uint8Array