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

x/polkadot/mod.ts>utilCrypto.blake2AsU8a

Package publishing for deno.land/x/polkadot
Latest
function utilCrypto.blake2AsU8a
import { utilCrypto } from "https://deno.land/x/polkadot@0.2.45/mod.ts";
const { blake2AsU8a } = utilCrypto;

Examples

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

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

Parameters

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

Returns

Uint8Array