Module

x/polkadot/mod.ts>utilCrypto.ed25519PairFromString

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

Examples

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

ed25519PairFromString('test'); // => { secretKey: [...], publicKey: [...] }

Parameters

value: string

Returns

Keypair