Skip to main content
Module

x/polkadot/mod.ts>utilCrypto.ed25519PairFromSecret

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

Examples

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

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

Parameters

secret: Uint8Array

Returns

Keypair