Yeah that’s a solid solution
Discussion
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