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

x/polkadot/util-crypto/xxhash/index.ts>xxhashAsU8a

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

Examples

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

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

Parameters

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

Returns

Uint8Array