generateNewEncryptedWallet method
Generates a new encrypted wallet for the specified network with the supplied password
EncryptedWallet encryptedWallet = new WalletFactory().generateNewEncryptedWallet(Network.testnet, 'password');
Implementation
EncryptedWallet generateNewEncryptedWallet(Network network, String password) {
return encryptWallet(generateNewWallet(network), password);
}