DucaturFw / ducor-backend

Ducatur Oracles Backend
3 stars 3 forks source link

Implement RNG data provider #13

Open zlumer opened 6 years ago

zlumer commented 6 years ago

Random numbers can be used for:

  1. Gambling.
  2. Contests.
  3. Other entropy.

We start with a simple RNG scheme:

Tasks

zlumer commented 6 years ago
  1. Single random integer (-Infinity...+Infinity)
  2. Multiple random integers in an array

Floats are not necessary: all floats can be represented as integers with decimal places. Verifiable numbers are temporary disabled.

Sindbag commented 6 years ago

https://github.com/willfrew/node-random-org https://github.com/rcombs/node-random Useful libraries, the second one is mentioned on random.org Both libs are based on JSON-RPC of the service, require api-key to use. The service has 2 releases of JSON-RPC, I'm not sure about which one is used in libs.

Sindbag commented 6 years ago

Current workflow/implementation: we assume, that random is "next-turn" request, so data request takes parameters (data id, from, to, memo; in future: amount), then the data is pushed by data publisher, saving memo.