Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static fromEncryptedJson(json, password, progressCallback) {
return decryptJsonWallet(json, password, progressCallback).then((account) => {
return new Wallet(account);
});
}
static fromMnemonic(mnemonic, path, wordlist) {
static fromEncryptedJson(json: string, password: Bytes | string, progressCallback?: ProgressCallback): Promise {
return decryptJsonWallet(json, password, progressCallback).then((account) => {
return new Wallet(account);
});
}
Wallet.fromEncryptedJson = function (json, password, progressCallback) {
return json_wallets_1.decryptJsonWallet(json, password, progressCallback).then(function (account) {
return new Wallet(account);
});
};
Wallet.fromMnemonic = function (mnemonic, path, wordlist) {