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

x/polkadot/util-crypto/blake2/asU8a.ts>blake2AsU8a

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

Examples

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

blake2AsU8a('abc'); // => [0xba, 0x80, 0xa5, 0x3f, 0x98, 0x1c, 0x4d, 0x0d]

Parameters

data: HexString | Uint8Array | string
optional
bitLength:
| 64
| 128
| 256
| 384
| 512
= [UNSUPPORTED]
optional
key: Uint8Array | null
optional
onlyJs: boolean

Returns

Uint8Array