Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update key_tool.md #1678

Open
wants to merge 1 commit into
base: release-3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 2.x/docs/sdk/java_sdk/key_tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Java SDK的`org.fisco.bcos.sdk.crypto.CryptoSuite`提供账户加载功能,默
public CryptoKeyPair loadAccountFromHexPrivateKey(int cryptoType, String hexPrivateKey)
{
// 根据cryptoType创建cryptoSuite,cryptoType目前支持:
// 1. CryptoType.ECDSA_TYPE: 用于创建非国密类型的CryptoSuite
// 2. CryptoType.SM_TYPE: 用于创建国密类型的CryptoSuite
// 1. CryptoType.ECDSA_TYPE(cryptoType为0): 用于创建非国密类型的CryptoSuite
// 2. CryptoType.SM_TYPE(cryptoType为1): 用于创建国密类型的CryptoSuite
CryptoSuite cryptoSuite = new CryptoSuite(cryptoType);
// 从十六进制私钥字符串hexPrivateKey加载私钥对象
return cryptoSuite.getKeyPairFactory().createKeyPair(hexPrivateKey);
Expand Down Expand Up @@ -260,4 +260,4 @@ public CryptoKeyPair loadGMKeyStore(KeyTool gmKeyTool)
CryptoSuite cryptoSuite = new CryptoSuite(CryptoType.SM_TYPE);
return cryptoSuite.createKeyPair(keyPair);
}
```
```