git.delta.rocks / unique-network / refs/commits / 5c98ac6773a2

difftreelog

source

tests/src/substrate/privateKey.ts390 Bsourcehistory
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import { Keyring } from '@polkadot/api';7import { IKeyringPair } from '@polkadot/types/types';89export default function privateKey(account: string): IKeyringPair {10  const keyring = new Keyring({ type: 'sr25519' });11  12  return keyring.addFromUri(account);13}