mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 09:09:08 -04: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]
|
[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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user