Package org.web3j.crypto
Class Bip44WalletUtils
java.lang.Object
org.web3j.crypto.WalletUtils
org.web3j.crypto.Bip44WalletUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.web3j.crypto.Bip32ECKeyPair
generateBip44KeyPair
(org.web3j.crypto.Bip32ECKeyPair master) static org.web3j.crypto.Bip32ECKeyPair
generateBip44KeyPair
(org.web3j.crypto.Bip32ECKeyPair master, boolean testNet) static org.web3j.crypto.Bip39Wallet
generateBip44Wallet
(String password, File destinationDirectory) Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.static org.web3j.crypto.Bip39Wallet
generateBip44Wallet
(String password, File destinationDirectory, boolean testNet) Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.static org.web3j.crypto.Credentials
loadBip44Credentials
(String password, String mnemonic) static org.web3j.crypto.Credentials
loadBip44Credentials
(String password, String mnemonic, boolean testNet) Methods inherited from class org.web3j.crypto.WalletUtils
generateBip39Wallet, generateBip39WalletFromMnemonic, generateFullNewWalletFile, generateLightNewWalletFile, generateNewWalletFile, generateNewWalletFile, generateWalletFile, getDefaultKeyDirectory, getMainnetKeyDirectory, getRinkebyKeyDirectory, getTestnetKeyDirectory, isValidAddress, isValidAddress, isValidPrivateKey, loadBip39Credentials, loadCredentials, loadCredentials, loadJsonCredentials
-
Constructor Details
-
Bip44WalletUtils
public Bip44WalletUtils()
-
-
Method Details
-
generateBip44Wallet
public static org.web3j.crypto.Bip39Wallet generateBip44Wallet(String password, File destinationDirectory) throws org.web3j.crypto.exception.CipherException, IOException Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.- Parameters:
password
- Will be used for both wallet encryption and passphrase for BIP-39 seeddestinationDirectory
- The directory containing the wallet- Returns:
- A BIP-39 compatible Ethereum wallet
- Throws:
org.web3j.crypto.exception.CipherException
- if the underlying cipher is not availableIOException
- if the destination cannot be written to
-
generateBip44Wallet
public static org.web3j.crypto.Bip39Wallet generateBip44Wallet(String password, File destinationDirectory, boolean testNet) throws org.web3j.crypto.exception.CipherException, IOException Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.- Parameters:
password
- Will be used for both wallet encryption and passphrase for BIP-39 seeddestinationDirectory
- The directory containing the wallettestNet
- should use the testNet derive path- Returns:
- A BIP-39 compatible Ethereum wallet
- Throws:
org.web3j.crypto.exception.CipherException
- if the underlying cipher is not availableIOException
- if the destination cannot be written to
-
generateBip44KeyPair
public static org.web3j.crypto.Bip32ECKeyPair generateBip44KeyPair(org.web3j.crypto.Bip32ECKeyPair master) -
generateBip44KeyPair
public static org.web3j.crypto.Bip32ECKeyPair generateBip44KeyPair(org.web3j.crypto.Bip32ECKeyPair master, boolean testNet) -
loadBip44Credentials
-
loadBip44Credentials
-