Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function addressFromPublicKey(pk: string, byte: string): string {
return new seedUtils.Seed(pk, byte).address
}
static getNewWallets(networkCode) {
const list = [];
for (let i = 0; i < 5; i++) {
const seedData = seedUtils.Seed.create();
const seed = seedData.phrase;
const address = new seedUtils.Seed(seed, networkCode).address;
list.push({ seed, address, type: 'seed' });
}
return list ;
}