@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
8 lines (7 loc) • 338 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { Keypair } from '../../types.js';
/**
* @name sr25519PairFromSeed
* @description Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
*/
export declare function sr25519PairFromSeed(seed: HexString | Uint8Array | string): Keypair;