Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/ed25519/index.ts>ed25519PairFromSecret

Package publishing for deno.land/x/polkadot
Go to Latest
function ed25519PairFromSecret
import { ed25519PairFromSecret } from "https://deno.land/x/polkadot@0.2.13/util-crypto/ed25519/index.ts";

Examples

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

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

Parameters

secret: Uint8Array

Returns

Keypair