Class Bip44WalletUtils

    • Constructor Detail

      • Bip44WalletUtils

        public Bip44WalletUtils()
    • 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 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
        java.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 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
        java.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)