|
@@ -85,7 +85,7 @@ public class WalletUtil {
|
|
|
|
|
|
@SneakyThrows
|
|
|
public static AirdropWallet getWalletByKeystore(String keystore, String userId, String groupName, String password) {
|
|
|
- Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + groupName + File.separator + keystore);
|
|
|
+ Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + getEncryptPwd(groupName) + File.separator + keystore);
|
|
|
String privateKey = credentials.getEcKeyPair().getPrivateKey().toString(16);
|
|
|
AirdropWallet wallet = new AirdropWallet();
|
|
|
wallet.setPrivateKey(privateKey);
|