mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-12 18:18:50 +00:00
it's evt.sig, not evt.signature.
This commit is contained in:
@@ -32,7 +32,7 @@ export default function EventSigning({value}) {
|
|||||||
}
|
}
|
||||||
}, [value, privateKey])
|
}, [value, privateKey])
|
||||||
let isValidSignature = useComputedState(async () => {
|
let isValidSignature = useComputedState(async () => {
|
||||||
if (evt.id && evt.signature) {
|
if (evt.id && evt.sig) {
|
||||||
try {
|
try {
|
||||||
return await verifySignature(evt)
|
return await verifySignature(evt)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user