From ac77d55952f172575c8f4f36958ec960719ddc7a Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Tue, 30 Nov 2021 17:17:55 +0800 Subject: [PATCH] optimize verifykey --- src/main/java/org/bdware/server/action/CMActions.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/bdware/server/action/CMActions.java b/src/main/java/org/bdware/server/action/CMActions.java index 06bda8d..b4fb46e 100644 --- a/src/main/java/org/bdware/server/action/CMActions.java +++ b/src/main/java/org/bdware/server/action/CMActions.java @@ -187,12 +187,7 @@ public class CMActions implements OnHashCallback { byte[] sign = ByteUtils.fromHexString(args.get("signature").getAsString()); cReq.setSignature(ByteUtils.toHexString(sign)); } - if (cReq.getPublicKey() != null) { - if (!cReq.verifySignature()) { - cReq.setPublicKey(null); - cReq.setRequester(null); - } - } + String reqID; if (args.has("requestID")) { reqID = args.get("requestID").getAsString();