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

x/polkadot/util-crypto/nacl/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.14/util-crypto/nacl/index.ts";

Examples

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

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

Parameters

encrypted: Uint8Array
nonce: Uint8Array
secret: Uint8Array

Returns

Uint8Array | null