Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Examples

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

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

Parameters

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

Returns

Uint8Array