Class KlayWalletUtils


  • public class KlayWalletUtils
    extends java.lang.Object
    Deprecated.
    This class is deprecated since caver-java:1.5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ADDRESS_HEX_SIZE
      Deprecated.
       
      static java.lang.String CHECKSUM
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      KlayWalletUtils()
      Deprecated.
       
    • Constructor Detail

      • KlayWalletUtils

        public KlayWalletUtils()
        Deprecated.
    • Method Detail

      • generateFullNewWalletFile

        public static java.lang.String generateFullNewWalletFile​(java.lang.String address,
                                                                 java.lang.String password,
                                                                 java.io.File destinationDirectory)
                                                          throws java.security.NoSuchAlgorithmException,
                                                                 java.security.NoSuchProviderException,
                                                                 java.security.InvalidAlgorithmParameterException,
                                                                 org.web3j.crypto.CipherException,
                                                                 java.io.IOException
        Deprecated.
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
        java.security.InvalidAlgorithmParameterException
        org.web3j.crypto.CipherException
        java.io.IOException
      • generateFullNewWalletFile

        public static java.lang.String generateFullNewWalletFile​(java.lang.String password,
                                                                 java.io.File destinationDirectory)
                                                          throws java.security.NoSuchAlgorithmException,
                                                                 java.security.NoSuchProviderException,
                                                                 java.security.InvalidAlgorithmParameterException,
                                                                 org.web3j.crypto.CipherException,
                                                                 java.io.IOException
        Deprecated.
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
        java.security.InvalidAlgorithmParameterException
        org.web3j.crypto.CipherException
        java.io.IOException
      • generateNewWalletFile

        public static java.lang.String generateNewWalletFile​(java.lang.String address,
                                                             java.lang.String password,
                                                             java.io.File destinationDirectory)
                                                      throws org.web3j.crypto.CipherException,
                                                             java.security.InvalidAlgorithmParameterException,
                                                             java.security.NoSuchAlgorithmException,
                                                             java.security.NoSuchProviderException,
                                                             java.io.IOException
        Deprecated.
        Throws:
        org.web3j.crypto.CipherException
        java.security.InvalidAlgorithmParameterException
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
        java.io.IOException
      • generateNewWalletFile

        public static java.lang.String generateNewWalletFile​(java.lang.String password,
                                                             java.io.File destinationDirectory)
                                                      throws org.web3j.crypto.CipherException,
                                                             java.security.InvalidAlgorithmParameterException,
                                                             java.security.NoSuchAlgorithmException,
                                                             java.security.NoSuchProviderException,
                                                             java.io.IOException
        Deprecated.
        Throws:
        org.web3j.crypto.CipherException
        java.security.InvalidAlgorithmParameterException
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
        java.io.IOException
      • generateNewWalletFile

        public static java.lang.String generateNewWalletFile​(java.lang.String address,
                                                             java.lang.String password,
                                                             java.io.File destinationDirectory,
                                                             boolean useFullScrypt)
                                                      throws org.web3j.crypto.CipherException,
                                                             java.io.IOException,
                                                             java.security.InvalidAlgorithmParameterException,
                                                             java.security.NoSuchAlgorithmException,
                                                             java.security.NoSuchProviderException
        Deprecated.
        Throws:
        org.web3j.crypto.CipherException
        java.io.IOException
        java.security.InvalidAlgorithmParameterException
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
      • generateBip39Wallet

        public static org.web3j.crypto.Bip39Wallet generateBip39Wallet​(java.lang.String address,
                                                                       java.lang.String password,
                                                                       java.io.File destinationDirectory)
                                                                throws org.web3j.crypto.CipherException,
                                                                       java.io.IOException
        Deprecated.
        Generates a BIP-39 compatible Ethereum wallet. The private key for the wallet can be calculated using following algorithm:
             Key = SHA-256(BIP_39_SEED(mnemonic, password))
         
        Parameters:
        address - address
        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
      • loadCredentials

        public static KlayCredentials loadCredentials​(java.lang.String password,
                                                      java.lang.String source)
                                               throws java.io.IOException,
                                                      org.web3j.crypto.CipherException
        Deprecated.
        Throws:
        java.io.IOException
        org.web3j.crypto.CipherException
      • loadCredentials

        public static KlayCredentials loadCredentials​(java.lang.String password,
                                                      java.io.File source)
                                               throws java.io.IOException,
                                                      org.web3j.crypto.CipherException
        Deprecated.
        Throws:
        java.io.IOException
        org.web3j.crypto.CipherException
      • loadCredentials

        public static KlayCredentials loadCredentials​(java.lang.String klaytnWalletKey)
        Deprecated.
      • loadBip39Credentials

        public static KlayCredentials loadBip39Credentials​(java.lang.String password,
                                                           java.lang.String mnemonic)
        Deprecated.
      • getBaobabKeyDirectory

        public static java.lang.String getBaobabKeyDirectory()
        Deprecated.
      • getMainnetKeyDirectory

        public static java.lang.String getMainnetKeyDirectory()
        Deprecated.
      • isValidPrivateKey

        @Deprecated
        public static boolean isValidPrivateKey​(java.lang.String privateKey)
        Deprecated.
      • isValidAddress

        @Deprecated
        public static boolean isValidAddress​(java.lang.String input)
        Deprecated.
      • getDefaultKeyDirectory

        public static java.lang.String getDefaultKeyDirectory()
        Deprecated.