mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-08 16:48:51 +00:00
fix signature verification (we were wrongly replacing the pubkey).
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user