fix signature verification (we were wrongly replacing the pubkey).

This commit is contained in:
fiatjaf 2022-02-13 07:12:54 -03:00
parent 7debc6fd2d
commit 93359bc1e8

View File

@ -24,6 +24,8 @@ export default function EventSigning({value}) {
[privateKeyIsValid] [privateKeyIsValid]
) )
let signature = useComputedState(async () => { let signature = useComputedState(async () => {
if (evt.sig) return null
try { try {
evt.pubkey = publicKey evt.pubkey = publicKey
return await signEvent(evt, privateKey) return await signEvent(evt, privateKey)