Post
Topic
Board Announcements (Altcoins)
Re: [ANN][LISK] Lisk | ICO | Decentralized Application & Sidechain Platform
by
TheRedHawk
on 29/04/2016, 11:51:01 UTC

Yeah, I think hitting the ground running by having some usable Dapps ready is important for the long term process of the project.

I still like the idea of a decentralized email client, if that is at all possible:
https://forum.lisk.io/viewtopic.php?f=8&t=95

And I am a big fan of the dead man switch thingy:
https://forum.lisk.io/viewtopic.php?f=8&t=24

Apart from that, a game always is a good idea. Poker or something along those lines makes sense, obviously, although I am not much of a gambler and don't really like the idea of Lisk being too closely associated with gambling.

I'm wondering how a poker dapp could create randomness avoiding the math()random command...

I was thinking about it, but i can't reach the solution.

AFAIK there are three ways to do it.

1. Oracle

You have an oracle (outside, disconnected with the dapp) which is giving you a random number. This could either be something centralized which uses random() or something decentralized in which a bigger number of users state a number from which a random number is generated.

2. User input

If you have a dapp with 2 users which are "competing" against each others, then each of them could state one random number. The final random number could then be generated out of this.

(e.g. User A: 5, User B: 7 -> 5+7=12 -> 12%10=2 -> 2 is the random number) (I don't know if this is mathematical secure, or if the distribution is "unfair". It's just an example)

3. Block IDs

You could also use block IDs of the future.

At time 0s you need a random number. To get this random number it takes 1 minute (6 block IDs). At time 60s you can then continue with the dapp.


These variations are obviously not good enough for poker. Poker is extremely hard to do, you could check out Pokereum how they are doing it. Smiley For dice or slot machines these are legit methods in my opinion.

I have been reading about the DApps and they are definitely awesome! However, how does the developer make money if they need to pay an initial fee to put the DApp sidechain on the network?

Later: Buy a dapp with LISK

Now (and later): Internal dapp functions cost a fee (e.g. send a message for 1 LISK). All sidechain forgers will get 100%-x% of these fees, the dapp owner gets x%.

Thanks a lot for your advices max!

As you probably know, I’m not involved with the development of a poker dapp, but yesterday I was facing a similar problem concerning the math()random when I tried to upload as a dapp, one of the pre-alpha test of our GoldSeed project.

Maybe we can solve it following one of the choices you’ve written!

See ya!