Skip to content

Commit

Permalink
<add>(account) support list accounts with HSM model
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLi1024 committed Apr 4, 2023
1 parent db2fd8b commit 42b8932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/console/client/ConsoleClientImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public void listAccount(String[] params) {
public static String getAccountDir(Client client) {
ConfigOption configOption = client.getCryptoSuite().getConfig();
String subDir = CryptoKeyPair.ECDSA_ACCOUNT_SUBDIR;
if (client.getCryptoSuite().getCryptoTypeConfig() == CryptoType.SM_TYPE) {
if (client.getCryptoSuite().getCryptoTypeConfig() == CryptoType.SM_TYPE
|| client.getCryptoSuite().getCryptoTypeConfig() == CryptoType.HSM_TYPE) {
subDir = CryptoKeyPair.GM_ACCOUNT_SUBDIR;
}
return configOption.getAccountConfig().getKeyStoreDir() + File.separator + subDir;
Expand Down

0 comments on commit 42b8932

Please sign in to comment.