@Test public void testGenerateFullWalletFile() throws Exception { String fileName = WalletUtils.generateWalletFile(PASSWORD, KEY_PAIR, tempDir, true); testGenerateWalletFile(fileName); }
public static String generateWalletFile( String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException { WalletFile walletFile; if (useFullScrypt) { walletFile = Wallet.createStandard(password, ecKeyPair); } else { walletFile = Wallet.createLight(password, ecKeyPair); } String fileName = getWalletFileName(walletFile); File destination = new File(destinationDirectory, fileName); objectMapper.writeValue(destination, walletFile); return fileName; }
WalletUtils { public static String generateWalletFile( String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException { WalletFile walletFile; if (useFullScrypt) { walletFile = Wallet.createStandard(password, ecKeyPair); } else { walletFile = Wallet.createLight(password, ecKeyPair); } String fileName = getWalletFileName(walletFile); File destination = new File(destinationDirectory, fileName); objectMapper.writeValue(destination, walletFile); return fileName; } }
WalletUtils { public static String generateWalletFile( String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException { WalletFile walletFile; if (useFullScrypt) { walletFile = Wallet.createStandard(password, ecKeyPair); } else { walletFile = Wallet.createLight(password, ecKeyPair); } String fileName = getWalletFileName(walletFile); File destination = new File(destinationDirectory, fileName); objectMapper.writeValue(destination, walletFile); return fileName; }  }
WalletUtils { public static String generateWalletFile( String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException { WalletFile walletFile; if (useFullScrypt) { walletFile = Wallet.createStandard(password, ecKeyPair); } else { walletFile = Wallet.createLight(password, ecKeyPair); } String fileName = getWalletFileName(walletFile); File destination = new File(destinationDirectory, fileName); objectMapper.writeValue(destination, walletFile); return fileName; }  static String generateFullNewWalletFile(String password, File destinationDirectory); static String generateLightNewWalletFile(String password, File destinationDirectory); static String generateNewWalletFile(
            String password, File destinationDirectory, boolean useFullScrypt); static String generateWalletFile(
            String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt); static Bip39Wallet generateBip39Wallet(String password, File destinationDirectory); static Credentials loadCredentials(String password, String source); static Credentials loadCredentials(String password, File source); static Credentials loadBip39Credentials(String password, String mnemonic); static String getDefaultKeyDirectory(); static String getTestnetKeyDirectory(); static String getMainnetKeyDirectory(); static boolean isValidPrivateKey(String privateKey); static boolean isValidAddress(String input); }
WalletUtils { public static String generateWalletFile( String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException { WalletFile walletFile; if (useFullScrypt) { walletFile = Wallet.createStandard(password, ecKeyPair); } else { walletFile = Wallet.createLight(password, ecKeyPair); } String fileName = getWalletFileName(walletFile); File destination = new File(destinationDirectory, fileName); objectMapper.writeValue(destination, walletFile); return fileName; }  static String generateFullNewWalletFile(String password, File destinationDirectory); static String generateLightNewWalletFile(String password, File destinationDirectory); static String generateNewWalletFile(
            String password, File destinationDirectory, boolean useFullScrypt); static String generateWalletFile(
            String password, ECKeyPair ecKeyPair, File destinationDirectory, boolean useFullScrypt); static Bip39Wallet generateBip39Wallet(String password, File destinationDirectory); static Credentials loadCredentials(String password, String source); static Credentials loadCredentials(String password, File source); static Credentials loadBip39Credentials(String password, String mnemonic); static String getDefaultKeyDirectory(); static String getTestnetKeyDirectory(); static String getMainnetKeyDirectory(); static boolean isValidPrivateKey(String privateKey); static boolean isValidAddress(String input);  }