Motivation
The cryptomarket is full of risk taker which really blurs the line between traders/gamblers. Even for derivatives, the CEO of Bitmex has repeatedly say that it caters to gamblers and retail traders. We dived into the gambling scene to discover tons of gambling talks to bitcointalk. It ranges from dice, sports, to full on casino. We find that the dice game is simple, addictive, and target the right demographic for our traders. The dice is discrete game that the user can control their own risk vs reward. So if the user chooses a dice (from 1-100) for a number under 5, then his chance of winning is 1 / 0.05 = 20. The house take say 1% of that. In this proposal, we propose a "roll_dice" operation on the blockchain.
Scope
This would be created as standalone blockchain operation without any coin.
Design
We're going to design a roll_dice with the following parameters.
roll_dice <user> <coin> <risk> <bet>
Parameters:
user: The user rolling
coin: The coin user is taking
risk: The amount of coin the user is risking
bet: a string that an OR of traditional | numbers | odd_or_even
traditional - can be less than or greater than "<5" or ">95"
numbers - can be a series of numbers, say "5,8,9,10"
odd_even - can be "odd" or "even"
Only one type of bet can be placed. The reward is calculated for each case.
Calculate fees
System
The fees are calculated then sent to a special pool (TBD) and the loss are also sent to a special pool (TBD). Winnings are taken out from the loss pool.
Randomness function / fairness
We want to produce an unpredictable randomness that is tamper proof even for block producer. Leveraging from (1), we can provide a randomness function
n = sha3(prev, seed=current_bet)
References
- https://cryptogambling.org/whitepapers/provably-fair-algorithms.pdf
- https://bitcointalk.org/index.php?board=56.0
- primedice.com
- https://github.com/yahoo/coname/blob/master/vrf/vrf.go
- https://gist.github.com/alexvandesande/259b4ffb581493ec0a1c
Motivation
The cryptomarket is full of risk taker which really blurs the line between traders/gamblers. Even for derivatives, the CEO of Bitmex has repeatedly say that it caters to gamblers and retail traders. We dived into the gambling scene to discover tons of gambling talks to bitcointalk. It ranges from dice, sports, to full on casino. We find that the dice game is simple, addictive, and target the right demographic for our traders. The dice is discrete game that the user can control their own risk vs reward. So if the user chooses a dice (from 1-100) for a number under 5, then his chance of winning is 1 / 0.05 = 20. The house take say 1% of that. In this proposal, we propose a "roll_dice" operation on the blockchain.
Scope
This would be created as standalone blockchain operation without any coin.
Design
We're going to design a roll_dice with the following parameters.
roll_dice <user> <coin> <risk> <bet>Parameters:
user: The user rolling
coin: The coin user is taking
risk: The amount of coin the user is risking
bet: a string that an OR of traditional | numbers | odd_or_even
traditional - can be less than or greater than "<5" or ">95"
numbers - can be a series of numbers, say "5,8,9,10"
odd_even - can be "odd" or "even"
Only one type of bet can be placed. The reward is calculated for each case.
Calculate fees
System
The fees are calculated then sent to a special pool (TBD) and the loss are also sent to a special pool (TBD). Winnings are taken out from the loss pool.
Randomness function / fairness
We want to produce an unpredictable randomness that is tamper proof even for block producer. Leveraging from (1), we can provide a randomness function
n = sha3(prev, seed=current_bet)
References