Package org.web3j.crypto
Class Bip44WalletUtils
- java.lang.Object
-
- org.web3j.crypto.WalletUtils
-
- org.web3j.crypto.Bip44WalletUtils
-
public class Bip44WalletUtils extends WalletUtils
-
-
Constructor Summary
Constructors Constructor Description Bip44WalletUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(java.lang.String password, java.io.File destinationDirectory)
Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.static org.web3j.crypto.Bip39Wallet
generateBip44Wallet(java.lang.String password, java.io.File destinationDirectory, boolean testNet)
Generates a BIP-44 compatible Ethereum wallet on top of BIP-39 generated seed.static org.web3j.crypto.Credentials
loadBip44Credentials(java.lang.String password, java.lang.String mnemonic)
static org.web3j.crypto.Credentials
loadBip44Credentials(java.lang.String password, java.lang.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
-
-
-
-
Method Detail
-
generateBip44Wallet
public static org.web3j.crypto.Bip39Wallet generateBip44Wallet(java.lang.String password, java.io.File destinationDirectory) throws org.web3j.crypto.CipherException, java.io.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.CipherException
- if the underlying cipher is not availablejava.io.IOException
- if the destination cannot be written to
-
generateBip44Wallet
public static org.web3j.crypto.Bip39Wallet generateBip44Wallet(java.lang.String password, java.io.File destinationDirectory, boolean testNet) throws org.web3j.crypto.CipherException, java.io.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.CipherException
- if the underlying cipher is not availablejava.io.IOException
- 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
public static org.web3j.crypto.Credentials loadBip44Credentials(java.lang.String password, java.lang.String mnemonic)
-
loadBip44Credentials
public static org.web3j.crypto.Credentials loadBip44Credentials(java.lang.String password, java.lang.String mnemonic, boolean testNet)
-
-