optimize verifykey

This commit is contained in:
CaiHQ 2021-11-30 17:17:55 +08:00
parent ca8afb8333
commit ac77d55952

View File

@ -187,12 +187,7 @@ public class CMActions implements OnHashCallback {
byte[] sign = ByteUtils.fromHexString(args.get("signature").getAsString()); byte[] sign = ByteUtils.fromHexString(args.get("signature").getAsString());
cReq.setSignature(ByteUtils.toHexString(sign)); cReq.setSignature(ByteUtils.toHexString(sign));
} }
if (cReq.getPublicKey() != null) {
if (!cReq.verifySignature()) {
cReq.setPublicKey(null);
cReq.setRequester(null);
}
}
String reqID; String reqID;
if (args.has("requestID")) { if (args.has("requestID")) {
reqID = args.get("requestID").getAsString(); reqID = args.get("requestID").getAsString();