Hacking private raffles into ecash (whjo is asking for this):

Imagine you own a rarity that you want to privately raffle,

You place the item in a box protected behind a locked door, a door that only unlocks after a payment to a displayed QR invoice.

You create an ecash mint and allow people to exchange sats for ecash tickets. Ticket holders continually self pay to improve group privacy.

To draw a winner, you draw a single note at random and make that note the only redeemable note which can pay the invoice to unlock the door.

Reply to this note

Please Login to reply.

Discussion

If you're concerned about in-person privacy, you can place the item box in the departing hallway, each person leaves one at a time through the hallway and has the opportunity to collect the item if they have the winning ecash.

🤔🤔🤔🤔

~3 lines of python to pause ecash redemptions except for a winning token

~5 lines of code on the mint to randomly select a winning token

~10 lines of code for a physical unlocking mechanism to activate upon balance increase

i completely made this up but could be real