{"id":18701314,"url":"https://github.com/marinx/btc-vanity","last_synced_at":"2025-04-12T08:32:15.887Z","repository":{"id":57482036,"uuid":"172220918","full_name":"MarinX/btc-vanity","owner":"MarinX","description":"Generate Bitcoin Vanity Address","archived":false,"fork":false,"pushed_at":"2023-04-17T22:05:38.000Z","size":18,"stargazers_count":27,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T03:41:51.269Z","etag":null,"topics":["bitcoin","cryptocurrency","go","vanitygen"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/MarinX.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":"2019-02-23T14:02:48.000Z","updated_at":"2024-11-07T20:49:55.000Z","dependencies_parsed_at":"2024-06-20T14:06:16.646Z","dependency_job_id":null,"html_url":"https://github.com/MarinX/btc-vanity","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/MarinX%2Fbtc-vanity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Fbtc-vanity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Fbtc-vanity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Fbtc-vanity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarinX","download_url":"https://codeload.github.com/MarinX/btc-vanity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248540096,"owners_count":21121294,"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":["bitcoin","cryptocurrency","go","vanitygen"],"created_at":"2024-11-07T11:41:14.687Z","updated_at":"2025-04-12T08:32:10.877Z","avatar_url":"https://github.com/MarinX.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btc-vanity\n\n[![Build Status](https://travis-ci.org/MarinX/btc-vanity.svg?branch=master)](https://travis-ci.org/MarinX/btc-vanity)\n[![Go Report Card](https://goreportcard.com/badge/github.com/MarinX/btc-vanity)](https://goreportcard.com/report/github.com/MarinX/btc-vanity)\n[![GoDoc](https://godoc.org/github.com/MarinX/btc-vanity?status.svg)](https://godoc.org/github.com/MarinX/btc-vanity)\n[![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)\n\nGenerate Bitcoin Vanity Address\n\n## What is bitcoin vanity address?\nVanity addresses are valid bitcoin addresses that contain human-readable messages. \n\nFor example, `1LoveBPzzD72PUXLzCkYAtGFYmK5vYNR33` is a valid address that contains the letters forming the word \"Love\" as the first four Base-58 letters. Vanity addresses require generating and testing billions of candidate private keys, until one derives a bitcoin address with the desired pattern...[reference](https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch04.asciidoc)\n\n\n### Length of address\nThe frequency of a vanity pattern (1KidsCharity) and average time-to-find on a desktop PC\n\n| Length | Pattern      | Frequency            | Average search time |\n|--------|--------------|----------------------|---------------------|\n| 1      | 1K           | 1 in 58 keys         | \u003c 1 milliseconds    |\n| 2      | 1Ki          | 1 in 3,364           | 50 milliseconds     |\n| 3      | 1Kid         | 1 in 195,000         | \u003c 2 seconds         |\n| 4      | 1Kids        | 1 in 11 million      | 1 minute            |\n| 5      | 1KidsC       | 1 in 656 million     | 1 hour              |\n| 6      | 1KidsCh      | 1 in 38 billion      | 2 days              |\n| 7      | 1KidsCha     | 1 in 2.2 trillion    | 3–4 months          |\n| 8      | 1KidsChar    | 1 in 128 trillion    | 13–18 years         |\n| 9      | 1KidsChari   | 1 in 7 quadrillion   | 800 years           |\n| 10     | 1KidsCharit  | 1 in 400 quadrillion | 46,000 years        |\n| 11     | 1KidsCharity | 1 in 23 quintillion  | 2.5 million years   |\n\n## Using library\n#### Install\n```sh\ngo get github.com/MarinX/btc-vanity\n```\n\n#### Use it as library\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/MarinX/btc-vanity\"\n)\n\nfunc main() {\n\n\t// create configuration\n\tcfg := \u0026btcvanity.Config{\n\t\t// buffered channel, more buffer, faster to find matching pattern\n\t\tBuffer: 5,\n\t\t// if you want to use testnet, set true\n\t\tTestNet: false,\n\t}\n\n\tbtc := btcvanity.New(cfg)\n\n\t// find a patters eg adddress which starts with \"ab\"\n\taddress, err := btc.Find(\"ab\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// print our custom public key\n\tfmt.Printf(\"PUBLIC KEY\\n%s\\n\", address.PublicKey())\n\n\t// print our private key so it can be imported in most btc wallets\n\tfmt.Printf(\"PRIVATE KEY\\n%s\\n\", address.PrivateKey())\n}\n\n```\n\n#### Use it as a CLI tool\n```sh\ngo get github.com/MarinX/btc-vanity/cmd/btcvanity\n```\n```sh\nUsage: ./btcvanity [OPTIONS] pattern\nExample: ./btcvanity Kid\n  -testnet\n        Use testnet\n  -threads int\n        How many threads you want to spawn (default 16)\n```\n\n## Tests\nNo magic, just run\n\n```sh\ngo test -v\n```\n\n## Credits\n- [Mastering Bitcoin by Andreas Antonopoulos](https://github.com/bitcoinbook/bitcoinbook)\n\n## License\nThis library is under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinx%2Fbtc-vanity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarinx%2Fbtc-vanity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinx%2Fbtc-vanity/lists"}