We built a Coinflip PoC using multiparty contracts on Ark!

Bonus points: it uses Nostr on the backend.

Ark's client-server architecture, built around presigned transactions, provides an interesting framework for coordinating complex multi-party interactions.

A key insight from our Coinflip implementation: Ark operators validate spending conditions off-chain, such that in the optimistic case, complex validation logic doesn't hit the blockchain at all.

Once the game concludes, players settle their balance without intermediary trust.

It's available here: Coinflip is available here: http://coinflip.casino

Check it out! 👾

Reply to this note

Please Login to reply.

Discussion

Awesome! Why is there a minimum amount of 333 sats though?

Dust amount - minimum amount a bitcoin transaction output is allowed through current policy. Since ark has unilateral exit, we currently enforce it. Although you can always go to a miner out of band and get it included in a block but thats more of a cheat code than pragmatic.

However we know that at that amount, perhaps it's not enforceability that matters, but rather the claim, and collecting a sum of claims higher than dust should allow you to go to enforceability again. Work in progress and just the rationale right now, but it's in our considerations