Class Bip44WalletUtils

java.lang.Object
org.web3j.crypto.WalletUtils
org.web3j.crypto.Bip44WalletUtils

public class Bip44WalletUtils extends WalletUtils
  • Constructor Details

    • Bip44WalletUtils

      public Bip44WalletUtils()
  • Method Details

    • generateBip44Wallet

      public static org.web3j.crypto.Bip39Wallet generateBip44Wallet(String password, File destinationDirectory) throws org.web3j.crypto.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 seed
      destinationDirectory - The directory containing the wallet
      Returns:
      A BIP-39 compatible Ethereum wallet
      Throws:
      org.web3j.crypto.CipherException - if the underlying cipher is not available
      IOException - 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.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 seed
      destinationDirectory - The directory containing the wallet
      testNet - should use the testNet derive path
      Returns:
      A BIP-39 compatible Ethereum wallet
      Throws:
      org.web3j.crypto.CipherException - if the underlying cipher is not available
      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(String password, String mnemonic)
    • loadBip44Credentials

      public static org.web3j.crypto.Credentials loadBip44Credentials(String password, String mnemonic, boolean testNet)