Very Popular
import type { KeyringOptions, KeyringPair } from './types.ts';
import { nobody } from './pair/nobody.ts';import { createTestKeyring } from './testing.ts';
export interface TestKeyringMap { [index: string]: KeyringPair;}
export function createTestPairs (options?: KeyringOptions, isDerived = true): TestKeyringMap { const keyring = createTestKeyring(options, isDerived); const pairs = keyring.getPairs(); const map: TestKeyringMap = { nobody: nobody() };
for (const p of pairs) { map[p.meta.name as string] = p; }
return map;}