fix:IdentifyManager sqlite重写

todo: 更新identity中的lock与unlock
This commit is contained in:
ChessNineeee committed 2021-04-10 16:27:34 +08:00
1 parent cca446b901
commit bcd906e1a2
5 files changed
+120 -57

No files matched your search

@@ -72,8 +72,8 @@ public class SM2PrivateKey implements PrivateKeyInterface {
* @return boolean
*/
public boolean setBytes(byte[] d){
if (d.length != 64)
return false;
// if (d.length != 64)
// return false;
String priStr = new String(d);
privateKey = new ECPrivateKeyParameters(new BigInteger(priStr, 16), SM2Base.DOMAIN_PARAMS);
return true;