{"id":13728451,"url":"https://github.com/robertDurst/stellar-vanity-address-generator","last_synced_at":"2025-05-08T00:31:45.775Z","repository":{"id":46007089,"uuid":"126147161","full_name":"robertDurst/stellar-vanity-address-generator","owner":"robertDurst","description":"Generate Stellar Vanity Wallets","archived":false,"fork":false,"pushed_at":"2021-11-23T05:50:56.000Z","size":41,"stargazers_count":23,"open_issues_count":5,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T21:39:19.999Z","etag":null,"topics":["blockchain","rust","stellar","vanity-address"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/stellar_vanity","language":"Rust","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/robertDurst.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":"2018-03-21T08:31:56.000Z","updated_at":"2025-01-09T19:57:54.000Z","dependencies_parsed_at":"2022-09-26T21:31:34.562Z","dependency_job_id":null,"html_url":"https://github.com/robertDurst/stellar-vanity-address-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertDurst%2Fstellar-vanity-address-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertDurst%2Fstellar-vanity-address-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertDurst%2Fstellar-vanity-address-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertDurst%2Fstellar-vanity-address-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertDurst","download_url":"https://codeload.github.com/robertDurst/stellar-vanity-address-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601880,"owners_count":21774663,"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":["blockchain","rust","stellar","vanity-address"],"created_at":"2024-08-03T02:00:42.679Z","updated_at":"2025-05-08T00:31:40.764Z","avatar_url":"https://github.com/robertDurst.png","language":"Rust","funding_links":[],"categories":["Developer Resources","开发者资源","Rust"],"sub_categories":[],"readme":"# Stellar Vanity\n\n![](https://img.shields.io/crates/v/stellar_vanity)\n![](https://img.shields.io/librariesio/release/cargo/stellar_vanity)\n\nA simple CLI tool to generate Stellar vanity addresses.\n\n**Vanity Address:** similar to a vanity license plate, a vanity cryptocurrency address is an\naddress where either the beginning (prefix) or end (postfix) is a special or meaningful phrase.\nGenerating such an address requires work. \n\n## Benchmarking\n\nBenchmarking is performed by using [criterion.rs](https://github.com/bheisler/criterion.rs) via `cargo bench`, which executes the `benches/benchmark.rs` file.\n\n## How can I Benchmark?\n\nAh, thanks so much! I have limited computing power (if you do too... do not attempt, will likely be long and costly)\n\n1. `git clone https://github.com/robertDurst/stellar-vanity-address-generator.git`\n2. `cd stellar-vanity-address-generator`\n3. `cargo bench`\n\n**Benchmark Configurations:**\n* as many threads as possible (see note below)\n* varied samples per method\n* 1 - 3 prefixes\n\n**Note:** this uses `num_cpus::get()` from [num_cpus](https://docs.rs/num_cpus/1.13.0/num_cpus/) to determine the maximum number of cores availible. If that is not desired, you'll have to dig in and set this number manually... or open a pr if you know how to pass CLI args to `cargo bench` :) \n\n## How to use library:\n```\nuse stellar_vanity::vanity_key::AddressGenerator, deserialize_public_key};;\n\nlet mut generator: AddressGenerator = Default::default();\nlet keypair = generator.find(|key| {\n    let public = deserialize_public_key(key);\n    // any conditions go here\n    public.as_str().ends_with(\"RUST\") // e.g. find address with the \"RUST\" suffix\n});\n```\n\nThis will continuously loop until a key with the desired properties is found. Once the vanity address is found, a keypair will be returned, which may be deserialized with `deserialize_public_key` and `deserialize_private_key` respectively. Note, this is a synchronous function.\n\n\n## How to use CLI:\n```\ncargo run -- [--postfix=\u003cPOSTFIX\u003e] [--prefix=\u003cPREFIX\u003e] [-c=\u003cNUMBER_OF_THREADS\u003e]\n\nEither `--postfix` or `--prefix` option is required, while thread count is optional.\n```\n\nAs an example, the following looks for an address ending in pizza with 8 threads:\n```\ncargo run -- -c=8 --postfix=pizza\n```\n\nThe `--prefix` and `--postfix` options will search using RegEx expressions. You may need to enclose the expression in quotes when running from the command-line.\n\nThe following looks for an address ending in joe with a number before it, using 8 threads:\n```\ncargo run -- -c=8 --postfix='[0-9]joe'\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrobertDurst%2Fstellar-vanity-address-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FrobertDurst%2Fstellar-vanity-address-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrobertDurst%2Fstellar-vanity-address-generator/lists"}