🤖 AI Summary
Bitcoin lacks native true-random opcodes, hindering fair, cheat-resistant on-chain gambling. This paper proposes the first fully on-chain, script-agnostic, and externally indistinguishable decentralized randomness generation mechanism for Bitcoin. Our approach combines zero-knowledge game modeling with a UTXO-based state machine, integrating commitment-reveal protocols and the Thimbles game paradigm to implicitly realize OP_RAND functionality within standard Bitcoin transactions. Crucially, it requires no protocol modifications, trusted third parties, or soft forks—only trustless two-party interaction suffices. The scheme guarantees statistically uniform, publicly verifiable, and fairness-assured random outputs. Experimental evaluation demonstrates strong cheat resistance and full compatibility with existing Bitcoin infrastructure. By enabling verifiable randomness without consensus-layer changes, our work establishes a novel paradigm for extending Bitcoin’s ecosystem with auditable stochastic applications.
📝 Abstract
This paper proposes a method of emulation of OP_RAND opcode on Bitcoin through a trustless interactive game between transaction counterparties. The game result is probabilistic and doesn't allow any party to cheat and increase their chance to win on any protocol step. The protocol can be organized in a way unrecognizable to any external party and doesn't require some specific scripts or Bitcoin protocol updates. We will show how the protocol works on the simple Thimbles Game and provide some initial thoughts about approaches and applications that can use the mentioned approach.