Skip to main content
Module

x/polkadot/mod.ts>utilCrypto.blake2AsU8a

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

Examples

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