{"id":23403130,"url":"https://github.com/mr-tron/base58","last_synced_at":"2025-04-12T14:18:47.313Z","repository":{"id":41579760,"uuid":"84945825","full_name":"mr-tron/base58","owner":"mr-tron","description":"Fast implementation of base58 encoding on golang. ","archived":false,"fork":false,"pushed_at":"2020-05-31T14:53:28.000Z","size":69,"stargazers_count":159,"open_issues_count":5,"forks_count":36,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T14:18:43.030Z","etag":null,"topics":["base58","encoding","fast","golang"],"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/mr-tron.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":"2017-03-14T12:21:10.000Z","updated_at":"2025-03-08T16:20:44.000Z","dependencies_parsed_at":"2022-08-20T12:40:58.380Z","dependency_job_id":null,"html_url":"https://github.com/mr-tron/base58","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-tron%2Fbase58","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-tron%2Fbase58/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-tron%2Fbase58/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-tron%2Fbase58/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr-tron","download_url":"https://codeload.github.com/mr-tron/base58/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578876,"owners_count":21127714,"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":["base58","encoding","fast","golang"],"created_at":"2024-12-22T12:40:01.021Z","updated_at":"2025-04-12T14:18:47.281Z","avatar_url":"https://github.com/mr-tron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast Implementation of Base58 encoding\n[![GoDoc](https://godoc.org/github.com/mr-tron/base58?status.svg)](https://godoc.org/github.com/mr-tron/base58)  [![Go Report Card](https://goreportcard.com/badge/github.com/mr-tron/base58)](https://goreportcard.com/report/github.com/mr-tron/base58)\n[![Used By](https://sourcegraph.com/github.com/mr-tron/base58/-/badge.svg)](https://sourcegraph.com/github.com/mr-tron/base58?badge)\n\nFast implementation of base58 encoding in Go. \n\nBase algorithm is adapted from https://github.com/trezor/trezor-crypto/blob/master/base58.c\n\n## Benchmark\n- Trivial - encoding based on big.Int (most libraries use such an implementation)\n- Fast - optimized algorithm provided by this module\n\n```\nBenchmarkTrivialBase58Encoding-4          123063              9568 ns/op\nBenchmarkFastBase58Encoding-4             690040              1598 ns/op\n\nBenchmarkTrivialBase58Decoding-4          275216              4301 ns/op\nBenchmarkFastBase58Decoding-4            1812105               658 ns/op\n```\nEncoding - **faster by 6 times**\n\nDecoding - **faster by 6 times**\n\n## Usage example\n\n```go\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/mr-tron/base58\"\n)\n\nfunc main() {\n\n\tencoded := \"1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq\"\n\tnum, err := base58.Decode(encoded)\n\tif err != nil {\n\t\tfmt.Printf(\"Demo %v, got error %s\\n\", encoded, err)\t\n\t}\n\tchk := base58.Encode(num)\n\tif encoded == string(chk) {\n\t\tfmt.Printf ( \"Successfully decoded then re-encoded %s\\n\", encoded )\n\t} \n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-tron%2Fbase58","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-tron%2Fbase58","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-tron%2Fbase58/lists"}