From 93359bc1e8ee8326800d711e6dc7b398d65949ab Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 13 Feb 2022 07:12:54 -0300 Subject: [PATCH] fix signature verification (we were wrongly replacing the pubkey). --- handlers/EventSigning.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/EventSigning.jsx b/handlers/EventSigning.jsx index f1fc7a5..8dc3916 100644 --- a/handlers/EventSigning.jsx +++ b/handlers/EventSigning.jsx @@ -24,6 +24,8 @@ export default function EventSigning({value}) { [privateKeyIsValid] ) let signature = useComputedState(async () => { + if (evt.sig) return null + try { evt.pubkey = publicKey return await signEvent(evt, privateKey)