javascriptrubyclojureclojurescript

Online Betting Games and Security: How to?


I've developed a betting game (using bitcoins). This is how it is set up:

Using javascript, clojurescript, ruby on sinatra.

Initial Way (Plan A)

I am currently under the impression that I have made an astronomically grave error and I seek guidance so that I may put myself on the right track.

My New Way? (Plan B)

Thanks

p.s. Plan B is going to put the onus on my server. I suppose I need to consider many new things now. Suggestions on taking care of performance matters will also be appreciated.


Solution

  • Your Plan A is impossible to secure easily, because client-side results are generally not trustable.

    Your Plan B is a good plan.

    You are correct this puts the onus on your server.

    Server performance is a huge topic.

    Some tools you may want to look at as you grow:

    Aim for two kinds of requests: