UNPKG

413 BJavaScriptView Raw
1import { nobody } from './pair/nobody.js';
2import { createTestKeyring } from './testing.js';
3export function createTestPairs(options, isDerived = true) {
4 const keyring = createTestKeyring(options, isDerived);
5 const pairs = keyring.getPairs();
6 const map = { nobody: nobody() };
7 for (const p of pairs) {
8 if (p.meta.name) {
9 map[p.meta.name] = p;
10 }
11 }
12 return map;
13}