-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out what needs to go in standard contract library #7
Comments
There was high demand and 3rd party interest for "gambling" related CCs - maybe a dice, lotto or 'roulette' sort of contract? |
@ca333 I feel like these things are more "apps" so they should have their own repos, with branding, frontends etc. But, we should make them easy to create, by providing the necessary primitives. Off the top of my head:
Anything else I may be missing? |
we don't have a proper generic/high level blockchain based RNG (yet) afaik - having one would def solve a lot. we have a more experimental and vuln lotto CC ref. implementation:
+1, certainly needed for many casino related apps |
We can use notarization hashes or momom data as entropy, but this limits many use cases as it can only happen every 3 minutes at the fastest. It happens every ~10 minutes using default iguana configuration. I believe this is a sufficient source of entropy as it's highly unlikely a single person/party can influence it. (actually, everyone can influence it. Spam some txes and you can be relatively sure no one is entropy grinding.) @jl777 used a method in Dice CC which can support faster times. The "dealer" would create entropy, hash this entropy and broadcast this hash inside a transaction. The "bettor" would then choose one of the dealer's utxos and bet against it. Dealer would then be forced to reveal entropy within some time frame or the bet would default to a loss. Once entropy is revealed, either party can finalize it. I recall some issues with this concept, but I can't remember exactly what they were. If you're interested, can try to dig through on chat logs from the discord server. https://beacon.nist.gov/home
very hard, but not impossible. Payments CC is an example of a CC that can handle the huge amount of utxos that would be needed. |
I made an issue #8 for the RNG thing. |
in the kogs game project we need randoms created more often (several times in a block) |
PYCC should have a module
pycc.standard
, which includes a schema with contracts that you can take "off the shelf" for use in your blockchain.What else should or could be provided?
The text was updated successfully, but these errors were encountered: