Module

x/polkadot/mod.ts>utilCrypto.ed25519PairFromSeed

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

Examples

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

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

Parameters

seed: Uint8Array
optional
onlyJs: boolean

Returns

Keypair