Skip to main content
Module

x/polkadot/mod.ts>utilCrypto.naclDecrypt

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

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