Module

x/polkadot/mod.ts>utilCrypto.xxhashAsU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function utilCrypto.xxhashAsU8a
import { utilCrypto } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { xxhashAsU8a } = utilCrypto;

Examples

import { xxhashAsU8a } from 'https://deno.land/x/polkadot@0.2.35/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