Simple check to make sure events are valid.

This commit is contained in:
Vitor Pamplona
2026-01-05 19:26:24 -05:00
parent 69c53aca06
commit 8a5e05c0ac
@@ -63,6 +63,10 @@ class EventDeserializer : StdDeserializer<Event>(Event::class.java) {
}
}
if (pubKey.isEmpty()) {
throw IllegalArgumentException("Event not found")
}
return EventFactory.create(id, pubKey, createdAt, kind, tags, content, sig)
}
}