{"id":15093096,"url":"https://github.com/mining-pool/go-randomx","last_synced_at":"2025-04-12T06:31:31.814Z","repository":{"id":57498267,"uuid":"210770440","full_name":"mining-pool/go-randomx","owner":"mining-pool","description":"golang binding for random-x algorithm variants","archived":false,"fork":false,"pushed_at":"2020-07-07T11:22:46.000Z","size":41,"stargazers_count":22,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T05:14:47.333Z","etag":null,"topics":["algorithm","golang","monero","randomx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mining-pool.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}},"created_at":"2019-09-25T06:22:05.000Z","updated_at":"2025-03-31T10:30:25.000Z","dependencies_parsed_at":"2022-08-28T17:12:42.715Z","dependency_job_id":null,"html_url":"https://github.com/mining-pool/go-randomx","commit_stats":null,"previous_names":["c0mm4nd/go-randomx","maoxs2/go-randomx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mining-pool%2Fgo-randomx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mining-pool%2Fgo-randomx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mining-pool%2Fgo-randomx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mining-pool%2Fgo-randomx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mining-pool","download_url":"https://codeload.github.com/mining-pool/go-randomx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248529567,"owners_count":21119534,"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":["algorithm","golang","monero","randomx"],"created_at":"2024-09-25T11:03:37.359Z","updated_at":"2025-04-12T06:31:26.760Z","avatar_url":"https://github.com/mining-pool.png","language":"Go","readme":"# go-randomx\n\n**WARNING: this is not a lib, but a binding**\n\nDo NOT use go mod import this\n\n**NOTICE**: For better go.mod experience, like direcly import go-randomx dep through `go get` or `go build`, check the https://github.com/ngchain/RandomX and https://github.com/ngchain/go-randomx and their github actions.\n\n## Algorithms\n\n- random-x\n- random-xl\n- random-wow\n- random-arq\n- random-yada\n- ...\n\n## Build\n\n### Windows\n\nFirstly download and install the msys2, then open and install the following components:\n\nTake msys2's pacman for example\n\n```bash\npacman -Syu\npacman -S git mingw64/mingw-w64-x86_64-go mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-make\n```\n\nSecondly clone this repo to your project folder\n```\ncd MyProject\ngit clone https://github.com/maoxs2/go-randomx\n```\n\nAnd then run `./build.sh` to auto compile official random-x code \n```bash\n# clone and compile RandomX source code into librandomx\n./build random-x # random-x can be replaced with random-xl random-arq random-wow\n```\n\nFinally you can using the package as your internal one. \n\nDirectly using it with `import \"github.com/MyProject/go-randomx\"` and then `randomx.AllocCache()` etc.\n\n### Linux\n\nTake Ubuntu for example \n\nDownload the latest go from [here](https://golang.org/dl/) and then install it following [this instruction](https://golang.org/doc/install#tarball)\n\n```bash\nsudo apt update \u0026\u0026 sudo apt upgrade \nsudo apt install git cmake make gcc build-essential\n```\n\nSecondly clone this repo to your project folder\n\n```\ncd MyProject\ngit clone https://github.com/maoxs2/go-randomx\n```\n\nAnd then run `go generate` to auto compile official random-x code\n\n```bash\n# clone and compile RandomX source code into librandomx\n./build random-x # random-x can be replaced with random-xl random-arq random-wow\n```\n\nFinally you can using the package as your internal one. \n\nDirectly using it with `import \"github.com/myname/my-project/go-randomx\"` and then start the functions like `randomx.AllocCache()` etc.\n\n## More\n\nIf you have any better solution, tell me please.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmining-pool%2Fgo-randomx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmining-pool%2Fgo-randomx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmining-pool%2Fgo-randomx/lists"}