Global Feed Post Login
Replying to Avatar nick

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.

Avatar
nick 1y ago

~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

Reply to this note

Please Login to reply.

Discussion

No replies yet.