Replying to Avatar Liberty Farmer

Is anyone working on NOSTR based dlc or similar apps? I need it to help my degen gambling with nostr:npub1tvqc82mv8cezhax5r34n4muc2c4pgjz8kaye2smj032nngg52clq0rkrq4

Would love to setup some rules, agree over nostr, then publish the results to a note that sends a zap automatically. no clue how it would work, but would be amazing.

#asknostr

The most straightforward way ATM is with ecash and a multisig pay to pubkey setup and a 3rd signer as your "oracle"

P2pk constrains who can spend the cash and supports timeouts/refunds

Each party would make a 2 of 3 multisig p2pk spendable by the counterparty, the oracle provides the 2nd signature when the bet is settled

Mints support p2pk now but a true DLC is a bit more complicated // good luck I haven't grokked that yet

Reply to this note

Please Login to reply.

Discussion

Interesting. that's awesome

I'm building a 2-player flobby bird game where you bet ecash and literally just got the p2pk setup working. It took a while bc im an idiot and cryptography is magic

That's great. A chess game would be killer too, betting ecash.