mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
fix:IdentifyManager sqlite重写
todo: 更新identity中的lock与unlock
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user