How to use the @ethersproject/json-wallets.decryptJsonWallet function in @ethersproject/json-wallets

To help you get started, we’ve selected a few @ethersproject/json-wallets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethers-io / ethers.js / packages / wallet / lib.esm / index.js View on Github external
static fromEncryptedJson(json, password, progressCallback) {
        return decryptJsonWallet(json, password, progressCallback).then((account) => {
            return new Wallet(account);
        });
    }
    static fromMnemonic(mnemonic, path, wordlist) {
github ethers-io / ethers.js / packages / wallet / src.ts / index.ts View on Github external
static fromEncryptedJson(json: string, password: Bytes | string, progressCallback?: ProgressCallback): Promise {
        return decryptJsonWallet(json, password, progressCallback).then((account) => {
            return new Wallet(account);
        });
    }
github ethers-io / ethers.js / packages / wallet / index.js View on Github external
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) {

@ethersproject/json-wallets

Wallet management utilities for KeyStore and Crowdsale JSON wallets.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis