git.delta.rocks / unique-network / refs/commits / 8120aafe2828

difftreelog

source

tests/src/substrate/privateKey.ts258 Bsourcehistory
1import { Keyring } from "@polkadot/api";2import { IKeyringPair } from "@polkadot/types/types";34export default function privateKey(account: string): IKeyringPair {5  const keyring = new Keyring({ type: 'sr25519' });6  7  return keyring.addFromUri(account);8}