Skip to main content
Module

x/polkadot/util-crypto/index.ts>naclDecrypt

Package publishing for deno.land/x/polkadot
Go to Latest
function naclDecrypt
import { naclDecrypt } from "https://deno.land/x/polkadot@0.2.12/util-crypto/index.ts";

Examples

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

naclDecrypt([...], [...], [...]); // => [...]

Parameters

encrypted: Uint8Array
nonce: Uint8Array
secret: Uint8Array

Returns

Uint8Array | null