totally! or run it every n blocks and store state on relays
Discussion
Sooooo are my ticket numbers arbitrary data or financial transactions information 😜
I am not a lottery player but a periodic game tied to the difficulty adjustment would be pretty fun. Especially if it was a simple nostr note and Lightning transaction to play and then the payout automatically went to the correct players.
hodl invoices seem perfect but i think ~2 weeks is too long to hold