{"id":13720681,"url":"https://github.com/StrongSquirrel/crptwav","last_synced_at":"2025-05-07T12:33:03.174Z","repository":{"id":57507136,"uuid":"143034828","full_name":"StrongSquirrel/crptwav","owner":"StrongSquirrel","description":"A useful library for validation of Bitcoin, Litecoin, Ethereum and other cryptocoin addresses","archived":false,"fork":false,"pushed_at":"2018-08-28T07:03:51.000Z","size":58,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T01:13:44.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/StrongSquirrel.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-07-31T15:43:16.000Z","updated_at":"2024-07-09T09:50:56.000Z","dependencies_parsed_at":"2022-09-19T05:30:17.912Z","dependency_job_id":null,"html_url":"https://github.com/StrongSquirrel/crptwav","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongSquirrel%2Fcrptwav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongSquirrel%2Fcrptwav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongSquirrel%2Fcrptwav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongSquirrel%2Fcrptwav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StrongSquirrel","download_url":"https://codeload.github.com/StrongSquirrel/crptwav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224604513,"owners_count":17339150,"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":"2024-08-03T01:01:06.835Z","updated_at":"2024-11-14T10:30:26.412Z","avatar_url":"https://github.com/StrongSquirrel.png","language":"Go","funding_links":[],"categories":["Development Libraries"],"sub_categories":["Warning"],"readme":"# crptwav\n\nSimple wallet address validator for validating Bitcoin and other altcoins addresses.\n\nIt is a port of JavaScript library [https://github.com/ognus/wallet-address-validator](https://github.com/ognus/wallet-address-validator).\n\n## Documentation\n\n[https://godoc.org/github.com/StrongSquirrel/crptwav](https://godoc.org/github.com/StrongSquirrel/crptwav)\n\n## Example\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/StrongSquirrel/crptwav\"\n)\n\nfunc main() {\n\tfmt.Println(crptwav.IsValidAddress(\"0xE37c0D48d68da5c5b14E5c1a9f1CFE802776D9FF\", \"ETH\"))\n\tfmt.Println(crptwav.IsValidAddress(\"12KYrjTdVGjFMtaxERSk3gphreJ5US8aUP\", \"Bitcoin\"))\n\tfmt.Println(crptwav.IsValidProdAddress(\"12KYrjTdVGjFMtaxERSk3gphreJ5US8aUP\", \"Bitcoin\"))\n\tfmt.Println(crptwav.IsValidTestnetAddress(\"mzBc4XEFSdzCDcTxAgf6EZXgsZWpztRhef\", \"BTC\"))\n\tfmt.Println(crptwav.IsValidProdAddress(\"mzBc4XEFSdzCDcTxAgf6EZXgsZWpztRhef\", \"BTC\"))\n\t// Output:\n\t// true\n\t// true\n\t// true\n\t// true\n\t// false\n}\n```\n\n### Supported crypto currencies (todo)\n\n- [x] Auroracoin/AUR, `'auroracoin'` or `'AUR'`\n- [x] BeaverCoin/BVC, `'beavercoin'` or `'BVC'`\n- [x] Biocoin/BIO, `'biocoin'` or `'BIO'`\n- [x] Bitcloud/BTDX, `'bitcloud'` or `'BTDX'`\n- [x] Bitcoin/BTC, `'bitcoin'` or `'BTC'`\n- [x] BitcoinCash/BCH, `'bitcoincash'` or `'BCH'`\n- [x] BitcoinGold/BTG, `'bitcoingold'` or `'BTG'`\n- [ ] BitcoinPrivate/BTCP, `'bitcoinprivate'` or `'BTCP'`\n- [ ] BitcoinZ/BTCZ, `'bitcoinz'` or `'BTCZ'`\n- [x] Bitcore/BTX, `'bitcore'` or `'BTX'`\n- [x] Bitsend/BSD, `'bitsend'` or `'BSD'`\n- [x] Callisto/CLO, `'callisto'` or `'CLO'`\n- [x] Dash, `'dash'` or `'DASH'`\n- [ ] Decred/DCR, `'decred'` or `'DCR'`\n- [ ] Digibyte/DGB, `'digibyte'` or `'DGB'`\n- [x] Dogecoin/DOGE, `'dogecoin'` or `'DOGE'`\n- [x] Ethereum/ETH, `'ethereum'` or `'ETH'`\n- [x] EthereumClassic/ETH, `'ethereumclassic'` or `'ETC'`\n- [x] EthereumZero/ETZ, `'etherzero'` or `'ETZ'`\n- [ ] Freicoin/FRC, `'freicoin'` or `'FRC'`\n- [ ] Garlicoin/GRLC, `'garlicoin'` or `'GRLC'`\n- [ ] Hush/HUSH, `'hush'` or `'HUSH'`\n- [ ] Komodo/KMD, `'komodo'` or `'KMD'`\n- [x] Litecoin/LTC, `'litecoin'` or `'LTC'`\n- [x] Megacoin/MEC, `'megacoin'` or `'MEC'`\n- [ ] Namecoin/NMC, `'namecoin'` or `'NMC'`\n- [ ] NEO/NEO, `'NEO'` or `'NEO'`\n- [ ] NeoGas/GAS, `'neogas'` or `'GAS'`\n- [x] Peercoin/PPCoin/PPC, `'peercoin'` or `'PPC'`\n- [ ] Primecoin/XPM, `'primecoin'` or `'XPM'`\n- [ ] Protoshares/PTS, `'protoshares'` or `'PTS'`\n- [ ] Qtum/QTUM, `'qtum'` or `'QTUM'`\n- [ ] Ripple/XRP, `'ripple'` or `'XRP'`\n- [ ] Snowgem/SNG, `'snowgem'` or `'SNG'`\n- [ ] Vertcoin/VTC, `'vertcoin'` or `'VTC'`\n- [ ] Votecoin/VTC, `'votecoin'` or `'VOT'`\n- [ ] Zcash/ZEC, `'zcash'` or `'ZEC'`\n- [ ] Zclassic/ZCL, `'zclassic'` or `'ZCL'`\n- [ ] ZenCash/ZEN, `'zencash'` or `'ZEN'`\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStrongSquirrel%2Fcrptwav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStrongSquirrel%2Fcrptwav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStrongSquirrel%2Fcrptwav/lists"}