Double or nothing on the blockchain