If you let anyone sign the high score event, anyone can post any high score they want. Would be better if the there was a private key for the game and the game signed and broadcasted high score events.
Discussion
Yeah that’s a solid solution
Still not great for a leaderboard especially if a lot of people are playing. Centralized database would be better. You could allow nip-98 access to the endpoints to retrieve the scores.
Yeah ideally would have a dedicated game relay(s) with white listed NIP-05s
if the game is browser based.. there is no way for you to ever have an anti-cheat system. to do that, you have to fully control all the hardware and install your spyware.
so, you might as well just have fun with it without all the complication.
Centralized db to store the scores would still be easier to query and make sure everyone sees the same leaderboard though