Package com.klaytn.caver.wallet
Class KlayWalletUtils
- java.lang.Object
-
- com.klaytn.caver.wallet.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.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.web3j.crypto.Bip39Wallet
generateBip39Wallet(java.lang.String address, java.lang.String password, java.io.File destinationDirectory)
Deprecated.Generates a BIP-39 compatible Ethereum wallet.static java.lang.String
generateFullNewWalletFile(java.lang.String password, java.io.File destinationDirectory)
Deprecated.static java.lang.String
generateFullNewWalletFile(java.lang.String address, java.lang.String password, java.io.File destinationDirectory)
Deprecated.static java.lang.String
generateNewWalletFile(java.lang.String password, java.io.File destinationDirectory)
Deprecated.static java.lang.String
generateNewWalletFile(java.lang.String address, java.lang.String password, java.io.File destinationDirectory)
Deprecated.static java.lang.String
generateNewWalletFile(java.lang.String address, java.lang.String password, java.io.File destinationDirectory, boolean useFullScrypt)
Deprecated.static java.lang.String
getBaobabKeyDirectory()
Deprecated.static java.lang.String
getDefaultKeyDirectory()
Deprecated.static java.lang.String
getMainnetKeyDirectory()
Deprecated.static boolean
isValidAddress(java.lang.String input)
Deprecated.static boolean
isValidPrivateKey(java.lang.String privateKey)
Deprecated.static KlayCredentials
loadBip39Credentials(java.lang.String password, java.lang.String mnemonic)
Deprecated.static KlayCredentials
loadCredentials(java.lang.String klaytnWalletKey)
Deprecated.static KlayCredentials
loadCredentials(java.lang.String password, java.io.File source)
Deprecated.static KlayCredentials
loadCredentials(java.lang.String password, java.lang.String source)
Deprecated.
-
-
-
Field Detail
-
ADDRESS_HEX_SIZE
public static final int ADDRESS_HEX_SIZE
Deprecated.- See Also:
- Constant Field Values
-
CHECKSUM
public static final java.lang.String CHECKSUM
Deprecated.- See Also:
- Constant Field Values
-
-
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
- addresspassword
- 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
-
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.
-
-