mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
db unittest completed(annotations added to be compatible with go version's json)
This commit is contained in:
1 parent
f727a5c505
commit
c43a9a3a1c
7 files changed
+173
-27
No files matched your search
@@ -59,6 +59,7 @@ public class SM2PrivateKey implements PrivateKeyInterface {
|
||||
|
||||
@Override
|
||||
public boolean setBytes(byte[] d) {
|
||||
// TODO 待与go版本进行兼容 目前版本无法使用
|
||||
if(d.length != 32 && d.length != 33)
|
||||
return false;
|
||||
privateKey = new ECPrivateKeyParameters(new BigInteger(d), SM2Base.DOMAIN_PARAMS);
|
||||
|
||||
Reference in new issue
Block a user