db unittest completed(annotations added to be compatible with go version's json)

This commit is contained in:
ChessNineeee committed 2021-04-07 19:34:43 +08:00
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);