<p>Beware, there are lots of problems with dice, especially when there is a relatively low hash rate (e.g. most altcoins). An attacker with enough hashpower to solomine could steal fairly easily. I can't find the article detailing how a miner could defraud you but it goes something like this:</p>

<ol>
<li>Attacker has 250 BTC</li>
<li>Attacker makes 2 transactions from one input, but doesn't publish them<br>
<ol>
<li>betting 250 BTC on Satoshi Dice 50% 1.98x  </li>
<li>sending 250 BTC to another address owned by attacker</li>
</ol></li>
<li>Attacker solo mines bitcoin at 0.1% of network (reasonable expectation to block: 1 week) with transaction b included</li>
<li>Attacker finds a block and holds it while sending 250 BTC bet to satoshi dice</li>
<li>Within seconds, attacker knows if they've won 245 BTC or if they've lost</li>
</ol>

<p>If attacker loses bet: they publish the block, effectively unspending the transaction sent to satoshidice</p>

<p>If attacker wins bet: they discard the block, since 245 BTC is greater than the 25 expected from the block</p>

<p>Also, it's possible for people to game these 0 confirmation games by not paying a fee to the game and sending a double spend with a fee. See: <a href="https://bitcointalk.org/index.php?topic=130764.0" rel="nofollow">https://bitcointalk.org/index.php?topic=130764.0</a></p>

<p>Any dice game you use should be deposit based, like just-dice.com</p>

CC BY-SA 3.0
2014-02-10T17:18:04.597Z
2014-12-27T19:49:15.443Z
2014-12-27T19:49:15.443Z
Mark
<p>There are many clones of SatoshiDice.</p>

<p>SatoshDice is very primitive game in a technical sense. However, it's very popular among Bitcoin users. It seems like the same thing would be true of altcoins, but there are only 10-20 alt-coin dices versus 200-300 alt-coins.</p>

<p>It seems like the engine of satoshi-dice might be easy to implementat. Probably, without a server-side database. One page-php + bitcoind + little log + small cron's script.</p>

<p>That is why I'm looking for turnkey solution.</p>

CC BY-SA 3.0
2014-02-10T16:52:02.293Z
Interesting post, but I have problems at finding the question. What exactly are you asking?
Joe Pineda
CC BY-SA 3.0
2014-02-10T16:59:43.547Z
I'm looking for "OpenSource Alt-coins Dice engine"
user2496
<satoshidice>
Is there an open source clone of SatoshiDice that works on altcoins?
user2496
# Is there an open source clone of SatoshiDice that works on altcoins?

(Asked by: username_0 on 2014-02-10)

There are many clones of SatoshiDice.

SatoshDice is very primitive game in a technical sense. However, it's very popular among Bitcoin users. It seems like the same thing would be true of altcoins, but there are only 10-20 alt-coin dices versus 200-300 alt-coins.

It seems like the engine of satoshi-dice might be easy to implementat. Probably, without a server-side database. One page-php + bitcoind + little log + small cron's script.

That is why I'm looking for turnkey solution.

**Tags:** satoshidice

> **Comments:**
> **username_1**: Interesting post, but I have problems at finding the question. What exactly are you asking?  
> **username_0**: I'm looking for "OpenSource Alt-coins Dice engine"  

---

## 1 answers

### Answer by username_2 on 2014-02-10. Score: 1

Beware, there are lots of problems with dice, especially when there is a relatively low hash rate (e.g. most altcoins). An attacker with enough hashpower to solomine could steal fairly easily. I can't find the article detailing how a miner could defraud you but it goes something like this:

1. Attacker has 250 BTC
2. Attacker makes 2 transactions from one input, but doesn't publish them  
   1. betting 250 BTC on Satoshi Dice 50% 1.98x
   2. sending 250 BTC to another address owned by attacker
3. Attacker solo mines bitcoin at 0.1% of network (reasonable expectation to block: 1 week) with transaction b included
4. Attacker finds a block and holds it while sending 250 BTC bet to satoshi dice
5. Within seconds, attacker knows if they've won 245 BTC or if they've lost

If attacker loses bet: they publish the block, effectively unspending the transaction sent to satoshidice

If attacker wins bet: they discard the block, since 245 BTC is greater than the 25 expected from the block

Also, it's possible for people to game these 0 confirmation games by not paying a fee to the game and sending a double spend with a fee. See: <https://bitcointalk.org/index.php?topic=130764.0>

Any dice game you use should be deposit based, like just-dice.com


---

