{"id":15202798,"url":"https://github.com/koba-e964/base58-go","last_synced_at":"2026-02-06T03:31:54.642Z","repository":{"id":223603476,"uuid":"761001904","full_name":"koba-e964/base58-go","owner":"koba-e964","description":"A fast implementation of Base58 with resistance to side-channel attacks.","archived":false,"fork":false,"pushed_at":"2025-11-19T10:39:38.000Z","size":26,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-19T12:16:24.229Z","etag":null,"topics":["bitcoin-wallet","cryptocurrency","cryptography-library","golang"],"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/koba-e964.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-21T03:45:33.000Z","updated_at":"2025-11-19T10:38:18.000Z","dependencies_parsed_at":"2024-02-21T05:25:37.376Z","dependency_job_id":"2a992366-246c-4b70-a6b6-8a2710afc509","html_url":"https://github.com/koba-e964/base58-go","commit_stats":null,"previous_names":["koba-e964/base58-go"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/koba-e964/base58-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbase58-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbase58-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbase58-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbase58-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koba-e964","download_url":"https://codeload.github.com/koba-e964/base58-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbase58-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29148140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-wallet","cryptocurrency","cryptography-library","golang"],"created_at":"2024-09-28T04:04:47.942Z","updated_at":"2026-02-06T03:31:54.633Z","avatar_url":"https://github.com/koba-e964.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# base58 ![Go](https://github.com/koba-e964/base58-go/actions/workflows/go.yml/badge.svg?query=branch%3Amain)\n`base58` is a fast, cryptographically secure, purely Go implementation of [Base58](https://en.bitcoin.it/wiki/Base58Check_encoding) with resistance to side-channel attacks.\n\n# Security\nThis package provides constant-time functions (`base58.Encode` and `base58.Decode`) that convert from/to Base58 strings, which offers cryptographic security that resists side-channel attacks such as [timing attacks](https://en.wikipedia.org/wiki/Timing_attack).\nAs far as the author knows, there are no libraries so far that provide constant-time functions. The author checked the following libraries so far:\n- https://github.com/btcsuite/btcd/tree/13152b35e191385a874294a9dbc902e48b1d71b0/btcutil/base58\n- https://github.com/itchyny/base58-go/blob/v0.2.1/base58.go\n- https://github.com/trezor/trezor-crypto/blob/915b3dbbbf58c262865647728a3463b8785fc965/base58.c#L149\n- https://github.com/akamensky/base58/blob/71d82f380f85866825434c181ba341ec09cba13b/base58.go\n- https://github.com/mr-tron/base58/blob/v1.2.0/base58.go\n\n# Benchmarks\nThis package provides variable-time functions (`base58.VartimeEncode` and `base58.VartimeDecode`) as well.\n```console\n$ go version\ngo version go1.25.2 darwin/arm64\n$ go test -bench=5K .\ngoos: darwin\ngoarch: arm64\npkg: github.com/koba-e964/base58-go\ncpu: Apple M2\nBenchmarkDecode_ConstantTime_5K-8            679           1798649 ns/op           3.85 MB/s        5376 B/op          1 allocs/op\nBenchmarkDecode_VariableTime_5K-8           8347            121181 ns/op          57.13 MB/s      338043 B/op        126 allocs/op\nBenchmarkEncode_ConstantTime_5K-8            236           5192019 ns/op           0.96 MB/s       12288 B/op          2 allocs/op\nBenchmarkEncode_VariableTime_5K-8            912           1209566 ns/op           4.13 MB/s       24664 B/op        686 allocs/op\nPASS\nok      github.com/koba-e964/base58-go  6.809s\n```\n\nThe performance of `base58.VartimeEncode` and `base58.VartimeDecode` is comparable to that of [github.com/btcsuite/btcd/btcutil/base58](https://github.com/btcsuite/btcd/tree/aa58ce24b9dea750aedaad8f0f2b5fd6475af4cc/btcutil/base58):\n\n```console\n$ go test -bench=5K .\ngoos: darwin\ngoarch: arm64\npkg: github.com/btcsuite/btcd/btcutil/base58\ncpu: Apple M2\nBenchmarkBase58Encode_5K-8   \t     944\t   1318152 ns/op\t   3.79 MB/s\nBenchmarkBase58Decode_5K-8   \t    8816\t    139034 ns/op\t  49.12 MB/s\nPASS\nok  \tgithub.com/btcsuite/btcd/btcutil/base58\t3.318s\n$ git log --max-count=1\ncommit aa58ce24b9dea750aedaad8f0f2b5fd6475af4cc (HEAD -\u003e master, origin/master, origin/HEAD)\nMerge: 380c66b1 c448768d\nAuthor: Yong \u003cyong2452@gmail.com\u003e\nDate:   Thu Feb 13 10:36:07 2025 +0800\n\n    Merge pull request #2317 from finaltrip/master\n    \n    refactor: using slices.Contains to simplify the code\n$ go version\ngo version go1.24.0 darwin/arm64\n```\n# Docs\nhttps://pkg.go.dev/github.com/koba-e964/base58-go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Fbase58-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoba-e964%2Fbase58-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Fbase58-go/lists"}