mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-25 00:59:08 -05:00
fix signature verification (we were wrongly replacing the pubkey).
This commit is contained in:
parent
7debc6fd2d
commit
93359bc1e8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user