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

x/polkadot/util-crypto/nacl/decrypt.ts>naclDecrypt

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

Examples

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

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

Parameters

encrypted: Uint8Array
nonce: Uint8Array
secret: Uint8Array

Returns

Uint8Array | null