public class KeystoreUtils extends Object
| Constructor and Description |
|---|
KeystoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static KeystoreFile |
createWalletFileByAcount(String password,
Account account)
create keystore file by Account.
|
static KeystoreFile |
createWalletFileByKey(String password,
BigInteger privateKey)
create keystore file by private key.
|
static BigInteger |
loadKeyFromWalletFile(String password,
String keystore)
load private key from keystore.
|
public static KeystoreFile createWalletFileByAcount(String password, Account account)
password - keystore passwordaccount - account.public static KeystoreFile createWalletFileByKey(String password, BigInteger privateKey)
password - keystore passwordprivateKey - private keypublic static BigInteger loadKeyFromWalletFile(String password, String keystore)
password - keystore passwordkeystore - keystore contentCopyright © 2022 IoTeX Group. All rights reserved.