Module

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

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

Examples

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