import { deriveBip39Phrase, KeyPair } from "everscale-crypto"; import { KeysConfig } from "../config"; export class Keys { /** * Derives specific amount of keys from the specified mnemonic phrase and HD path. * Phrase, amount and path should be specified in the keys config section * @returns {Promise} */ public static async generate(config: Required): Promise { return [...Array(config.amount).keys()].map(i => { const path = config.path.replace("INDEX", `${i}`); return deriveBip39Phrase(config.phrase, path); }); } }