Module

x/polkadot/util-crypto/index.ts>ed25519PairFromRandom

Package publishing for deno.land/x/polkadot
Go to Latest
function ed25519PairFromRandom
import { ed25519PairFromRandom } from "https://dotland.deno.dev/x/polkadot@0.2.35/util-crypto/index.ts";

Examples

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

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

Returns

Keypair