Oh by the way, does satoshi dice use encrypted keys so that they won't have to wait for a block to be confirmed to make everything faster? After submitting a transaction, how much time does the block appear in the network on average?
satoshi dice and the double spending problem would be an interesting topic
Satoshi Dice uses a neat trick to accept transactions without waiting for confirmations while avoiding the risk of a double-spend. They simply include the output of the user's bet transaction as one of the inputs for the payout transaction. In other words, part of the payout consists of the exact same coins the user originally paid with. Since it is impossible to invalidate only part of a transaction, if the original bet transaction later turns out to be a double spend, or is invalid for any other reason, the entire payout transaction is also invalid.