Module

x/polkadot/mod.ts>utilCrypto.naclBoxPairFromSecret

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

Examples

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

naclBoxPairFromSecret(...); // => { secretKey: [...], publicKey: [...] }

Parameters

secret: Uint8Array

Returns

Keypair