public class WalletUtils extends Object
| Constructor and Description |
|---|
WalletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateFullNewWalletFile(byte[] password,
File destinationDirectory) |
static String |
generateLightNewWalletFile(byte[] password,
File destinationDirectory) |
static String |
generateNewWalletFile(byte[] password,
File destinationDirectory,
boolean useFullScrypt) |
static String |
generateWalletFile(byte[] password,
ECKey ecKeyPair,
File destinationDirectory,
boolean useFullScrypt) |
static String |
generateWalletFile(WalletFile walletFile,
File destinationDirectory) |
static String |
generateWalletString(byte[] password,
ECKey ecKeyPair,
boolean useFullScrypt) |
static String |
getDefaultKeyDirectory() |
static String |
getMainnetKeyDirectory() |
static String |
getTestnetKeyDirectory() |
static Credentials |
loadCredentials(byte[] password,
File source) |
static WalletFile |
loadWalletFile(File source) |
static void |
updateWalletFile(byte[] password,
ECKey ecKeyPair,
File source,
boolean useFullScrypt) |
public static String generateFullNewWalletFile(byte[] password, File destinationDirectory) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException, CipherException, IOException
public static String generateLightNewWalletFile(byte[] password, File destinationDirectory) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException, CipherException, IOException
public static String generateNewWalletFile(byte[] password, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException
public static String generateWalletFile(byte[] password, ECKey ecKeyPair, File destinationDirectory, boolean useFullScrypt) throws CipherException, IOException
CipherExceptionIOExceptionpublic static String generateWalletString(byte[] password, ECKey ecKeyPair, boolean useFullScrypt) throws CipherException, IOException
CipherExceptionIOExceptionpublic static void updateWalletFile(byte[] password,
ECKey ecKeyPair,
File source,
boolean useFullScrypt)
throws CipherException,
IOException
CipherExceptionIOExceptionpublic static String generateWalletFile(WalletFile walletFile, File destinationDirectory) throws IOException
IOExceptionpublic static Credentials loadCredentials(byte[] password, File source) throws IOException, CipherException
IOExceptionCipherExceptionpublic static WalletFile loadWalletFile(File source) throws IOException
IOExceptionpublic static String getDefaultKeyDirectory()
public static String getTestnetKeyDirectory()
public static String getMainnetKeyDirectory()
Copyright © 2020. All rights reserved.