{"id":26756987,"url":"https://github.com/effectai/nosana-grind-keypair","last_synced_at":"2025-03-28T15:34:29.088Z","repository":{"id":269451985,"uuid":"904249615","full_name":"effectai/nosana-grind-keypair","owner":"effectai","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-23T16:23:59.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-23T17:29:19.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/effectai.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-16T14:27:43.000Z","updated_at":"2024-12-23T16:24:02.000Z","dependencies_parsed_at":"2024-12-23T17:29:28.816Z","dependency_job_id":"28beb8f9-7f8d-4ef1-af36-b20f7e713501","html_url":"https://github.com/effectai/nosana-grind-keypair","commit_stats":null,"previous_names":["effectai/nosana-grind-keypair"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectai%2Fnosana-grind-keypair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectai%2Fnosana-grind-keypair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectai%2Fnosana-grind-keypair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectai%2Fnosana-grind-keypair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectai","download_url":"https://codeload.github.com/effectai/nosana-grind-keypair/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246054538,"owners_count":20716383,"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":[],"created_at":"2025-03-28T15:34:04.119Z","updated_at":"2025-03-28T15:34:29.071Z","avatar_url":"https://github.com/effectai.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e This project has been tested and works correctly only on the **arm64 Darwin platform**, **Linux platforms with Nvidia GPUs** and **Windows platforms with Nvidia GPUs** . Results may be incorrect on Windows + AMD platforms (Especially the Vega architecture).\n\n\u003e Support for NVIDIA Multi-GPU. Tested with 2 GPUs, 4 GPUs, and 8 GPUs. Due to a known issue (busy-wait) when running OpenCL in NVIDIA, each GPU will fully utilize one CPU core. Make sure you have enough CPU cores.\n\n\u003e For those with both a CPU and GPU that support OpenCL, please ensure you select the GPU to run the program (use the `--select-device` parameter)!\n\n## Run on Nosana Network\nDirectly run this job on a GPU on the Nosana Network:\n1. Fill in your preferred prefix in the Nosana Job Definition file: `nosana-generate-key.json`\n\n2. Depending on your prefix length, pick a suitable GPU from the market list. For a prefix of 6 characters, we recommend a heavier GPU, like the a100 or the h100.\n```\nnpx @nosana/cli market list\n```\n\n3. Post your job and wait for the results\n```\nnpx @nosana/cli job post -f nosana-generate-key.json -m nvidia-h100 --wait\n```\n\n## Manual Installation\n\n```bash\n$ python3 -m pip install -r requirements.txt\n\n# or\n\n$ pip3 install -r requirements.txt\n```\n\nRequires Python 3.6 or higher.\n\n## Docker\n\nOnly works on Linux platforms with Nvidia GPUs. [Check this doc](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation).\n\n```bash\n$ docker build -t sol_vanity_cl .\n$ docker run --rm -it sol_vanity_cl\n```\n\nYou will enter the container. The source code is located in the /app directory in the container, and all dependencies have been installed.\n\nUse the Docker image laurensv/sol_vanity_cl:latest. You can easily use vast.ai or runpod.io to run this program. Please note:\n\n1. The device’s CUDA version should be greater than 12.0.\n2. The source code is located in the /app directory, so you don’t need to download the code from GitHub.\n\n## Usage\n\n```bash\n$ python main.py\n\nUsage: main.py [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  search-pubkey  Search Solana vanity pubkey\n  show-device    Show OpenCL devices\n```\n\n### Search Pubkey\n\n```bash\n$ python main.py search-pubkey --help\n\nUsage: main.py search-pubkey [OPTIONS]\n\n  Search Solana vanity pubkey\n\nOptions:\n  --starts-with TEXT              Public key starts with the indicated prefix.\n  --ends-with TEXT                Public key ends with the indicated suffix.\n  --count INTEGER                 Count of pubkeys to generate.  [default: 1]\n  --output-dir DIRECTORY          Output directory.  [default: ./]\n  --select-device / --no-select-device\n                                  Select OpenCL device manually  [default: no-\n                                  select-device]\n  --iteration-bits INTEGER        Number of the iteration occupied bits.\n                                  Recommended 24, 26, 28, 30, 32. The larger\n                                  the bits, the longer it takes to complete an\n                                  iteration.  [default: 24]\n  --help                          Show this message and exit.\n```\n\nExample:\n\n```bash\n$ python main.py search-pubkey --starts-with SoL\n\n[INFO 2024-05-11 03:17:57,110] Searching Solana pubkey that starts with 'SoL' and ends with ''\n[INFO 2024-05-11 03:17:57,161] Searching with 1 OpenCL devices\n[INFO 2024-05-11 03:18:06,034] Speed: 1.89 MH/s\n[INFO 2024-05-11 03:18:06,036] Found: SoLJqsivM2R8Y2GXhfvKJoFM1aDAsmwMBLbbFwAZWR1\n```\n\nVerify Keypairs file via Solana CLI:\n\n```bash\n$ solana-keygen pubkey SoLJqsivM2R8Y2GXhfvKJoFM1aDAsmwMBLbbFwAZWR1.json\n\nSoLJqsivM2R8Y2GXhfvKJoFM1aDAsmwMBLbbFwAZWR1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectai%2Fnosana-grind-keypair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectai%2Fnosana-grind-keypair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectai%2Fnosana-grind-keypair/lists"}