public static Bip39Wallet generateBip44Wallet(String password, File destinationDirectory,
boolean testNet)
throws CipherException, IOException {
byte[] initialEntropy = new byte[16];
SecureRandomUtils.secureRandom().nextBytes(initialEntropy);
String mnemonic = MnemonicUtils.generateMnemonic(initialEntropy);
byte[] seed = MnemonicUtils.generateSeed(mnemonic, null);
Bip32ECKeyPair masterKeypair = Bip32ECKeyPair.generateKeyPair(seed);
Bip32ECKeyPair bip44Keypair = generateBip44KeyPair(masterKeypair, testNet);
String walletFile = generateWalletFile(password, bip44Keypair, destinationDirectory, false);
return new Bip39Wallet(walletFile, mnemonic);
}