{"id":13651713,"url":"https://github.com/reza-hackathons/gandom","last_synced_at":"2025-10-01T04:30:38.019Z","repository":{"id":190009087,"uuid":"324148126","full_name":"reza-hackathons/gandom","owner":"reza-hackathons","description":"Distributed PRNG based on Golem.","archived":true,"fork":false,"pushed_at":"2021-01-02T15:01:50.000Z","size":3185,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-09T02:20:34.357Z","etag":null,"topics":["golem"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reza-hackathons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-12-24T12:10:44.000Z","updated_at":"2024-03-23T14:18:23.000Z","dependencies_parsed_at":"2024-01-03T05:15:36.291Z","dependency_job_id":"971ddaab-16e7-4746-91e3-af1ec6d17702","html_url":"https://github.com/reza-hackathons/gandom","commit_stats":null,"previous_names":["reza-hackathons/gandom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reza-hackathons%2Fgandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reza-hackathons%2Fgandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reza-hackathons%2Fgandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reza-hackathons%2Fgandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reza-hackathons","download_url":"https://codeload.github.com/reza-hackathons/gandom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234821049,"owners_count":18891970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golem"],"created_at":"2024-08-02T02:00:51.732Z","updated_at":"2025-10-01T04:30:31.881Z","avatar_url":"https://github.com/reza-hackathons.png","language":"C++","funding_links":[],"categories":["Archive"],"sub_categories":["Apps"],"readme":"\n\u003ch1 align=\"center\"\u003eTap on Golem's randomness ocean\u003c/h1\u003e\n\n## Rational\nA single computer's entropy allowance is a stub. This project tries to extract random streams from the distributed network of computers provided by [Golem](https://golem.network). The idea is to have a rest API sitting on some address that when invoked, asks Golem nodes for their random data. Each node runs some special software that employ a variaty of PRNGs to provide the requested randomness. At the moment, there are two PRNGs, one based on [Chaos machines](https://github.com/maciejczyzewski/libchaos) and the other that makes use of [Sodium](https://libsodium.org/).  \n\n### Invocation\nfirst off please head to Golem handbook and learn how to setup a [requestor workflow](https://handbook.golem.network/requestor-tutorials/flash-tutorial-of-requestor-development).  \nSimply run the `script.sh` file via your shell and wait for the output. The output you receive depends on the length and number sources you pass to the script.  \nExample:  \n`~$ ./script.sh -s 8 -l 16` asks for 16 bytes of random data from 8 sources.\nThe output would be:  \n\u003cpre\u003e\n{\n  \"csprng\": {\n    \"xored\": \"2NyHU/7UtXf5q0kZsi9C5g==\",\n    \"streams\": [\n      \"F4wOs1o/9K0CaxYpBnrgNQ==\",\n      \"B+ID7aLtBYWicr5bdSV00w==\",\n      \"IpY6WCP3LcsnBOnq4HXWQA==\",\n      \"JawP1hOK6EqWHfFZ8KarIg==\",\n      \"FH5XJRJ7VkDbly6vV7mrCw==\",\n      \"oF9yoBlzqsTASyl4YOCQRA==\"\n    ]\n  },\n  \"chaos\": {\n    \"xored\": \"NKMedZrCXZZsaYCAyZoiyg==\",\n    \"streams\": [\n      \"pwzGJczOkP6KQuQUySiuNg==\",\n      \"tE8AgO7SFzp2gHz6WNx+Xg==\",\n      \"CNBMpcYIJnTwwSgRXKqvTA==\",\n      \"mC+wQN7sDpDPCWB4TtqhgA==\",\n      \"OgCY3WKKRJrsboyegWAivA==\",\n      \"rKfiPKBYglTdZ5CAzBKloA==\"\n    ]\n  }\n}\n\u003c/pre\u003e\nIf sources are \u003e 2, two are choosen in random, removed from the list and xored. This is done to enrich the outcome. \n\n## Caveat\nNote that this API is just an experiment and still in development. So, please employ extreme caution in using it in real applications.\n\n## TODO\n- Make sure the sources are distinct\n- Cryptographically secure tests \u0026 benchmarks\n- Hook a public REST API for smart contract consumers\n\n## Demo\n[Presentation in PDF](https://siasky.net/BACpmQBkTw5Ut1wuWFa6r3xQZcQMGlf26LhE2PmpkviVAQ)  \n[Video-taped demo](https://youtu.be/Em1Z0dweJ98)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freza-hackathons%2Fgandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freza-hackathons%2Fgandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freza-hackathons%2Fgandom/lists"}