Bitcoin Forum
May 08, 2024, 07:30:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitcoinFlipcoin - One bet - 100% Blockchain-based. No sign-in. Payout in 30 min.  (Read 431 times)
BitcoinFlipcoin (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
February 11, 2014, 08:42:09 PM
 #1



Dead simple bitcoin betting. 100% blockchain-based. No server secrets, no accounts, no logins. Provably fair coin flip. We find out the outcome at the same time you do.

Send 0.001BTC to 0.1BTC from a compatible wallet to 1FLipCiMj2zKJ1ZpJh53K5FVqyBWGoL2h3

Heads pays 1.962 times your bet (minus a small miner's fee).

Includes a simple python verification script.  (http://www.bitcoinflipcoin.com/verify.html)

Details for the technically inclined:

The bet's transaction hash is combined with the block hash of the next block after the transaction is accepted (ie - the second confirmation). This byte array is then double-hashed (SHA-256) and if this new number is even, the flip is considered heads and wins. If odd, it's considered tails and loses.

Payout occurs on the 3rd confirmation.

The algorithm in pseudo-code:

Code:
bool isTails = SHA256(SHA256((txHash << 256) + blockHashOfSecondConfirmation)) & 1;
bool isWinner = !isTails;

Try it out with as little as one mBTC!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!