{"id":26933551,"url":"https://github.com/ppad-tech/base58","last_synced_at":"2025-04-02T09:19:35.054Z","repository":{"id":268730504,"uuid":"905292878","full_name":"ppad-tech/base58","owner":"ppad-tech","description":"(mirror of https://git.ppad.tech/base58)","archived":false,"fork":false,"pushed_at":"2025-03-01T04:22:11.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T05:21:02.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/ppad-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2024-12-18T14:34:44.000Z","updated_at":"2025-03-01T04:22:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"67d735ac-90d9-44c7-b85d-932470fb9e27","html_url":"https://github.com/ppad-tech/base58","commit_stats":null,"previous_names":["ppad-tech/base58"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbase58","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbase58/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbase58/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbase58/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/base58/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785456,"owners_count":20833498,"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":"2025-04-02T09:19:34.416Z","updated_at":"2025-04-02T09:19:35.046Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# base58\n\n[![](https://img.shields.io/hackage/v/ppad-base58?color=blue)](https://hackage.haskell.org/package/ppad-base58)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-base58-lightblue)](https://docs.ppad.tech/base58)\n\nA pure Haskell implementation of base58 and base58check encoding \u0026\ndecoding on strict ByteStrings.\n\n## Usage\n\nA sample GHCi session:\n\n```\n  \u003e :set -XOverloadedStrings\n  \u003e\n  \u003e -- import qualified\n  \u003e import qualified Data.ByteString.Base58 as B58\n  \u003e import qualified Data.ByteString.Base58Check as B58Check\n  \u003e\n  \u003e -- simple base58 encoding and decoding\n  \u003e let b58 = B58.encode \"hello world\"\n  \u003e b58\n  \"StV1DL6CwTryKyV\"\n  \u003e\n  \u003e B58.decode b58\n  Just \"hello world\"\n  \u003e\n  \u003e -- base58check is a versioned, checksummed format\n  \u003e let b58check = B58Check.encode \"\\NULhello world\" -- 0x00 version byte\n  \u003e b58check\n  \"13vQB7B6MrGQZaxCqW9KER\"\n  \u003e\n  \u003e B58Check.decode b58check\n  Just \"\\NULhello world\"\n```\n\n## Documentation\n\nHaddocks (API documentation, etc.) are hosted at\n[docs.ppad.tech/base58](https://docs.ppad.tech/base58).\n\n## Performance\n\nThe aim is best-in-class performance for pure, highly-auditable Haskell\ncode.\n\nCurrent benchmark figures on my mid-2020 MacBook Air look like (use\n`cabal bench` to run the benchmark suite):\n\n```\n  benchmarking ppad-base32/base58/encode/hello world\n  time                 667.4 ns   (661.2 ns .. 674.5 ns)\n                       0.999 R²   (0.999 R² .. 1.000 R²)\n  mean                 673.5 ns   (669.5 ns .. 678.8 ns)\n  std dev              15.91 ns   (13.00 ns .. 21.13 ns)\n\n  benchmarking ppad-base32/base58/decode/StV1DL6CwTryKyV\n  time                 741.2 ns   (731.5 ns .. 752.5 ns)\n                       0.999 R²   (0.998 R² .. 0.999 R²)\n  mean                 748.3 ns   (741.8 ns .. 757.2 ns)\n  std dev              24.98 ns   (20.60 ns .. 31.28 ns)\n\n  benchmarking ppad-base32/base58check/encode/0x00, hello world\n  time                 5.411 μs   (5.349 μs .. 5.472 μs)\n                       0.999 R²   (0.999 R² .. 1.000 R²)\n  mean                 5.389 μs   (5.352 μs .. 5.439 μs)\n  std dev              142.5 ns   (119.5 ns .. 184.4 ns)\n\n  benchmarking ppad-base32/base58check/decode/13vQB7B6MrGQZaxCqW9KER\n  time                 5.825 μs   (5.722 μs .. 5.930 μs)\n                       0.998 R²   (0.997 R² .. 0.999 R²)\n  mean                 5.718 μs   (5.655 μs .. 5.792 μs)\n  std dev              228.0 ns   (190.7 ns .. 275.4 ns)\n```\n\n## Security\n\nThis library aims at the maximum security achievable in a\ngarbage-collected language under an optimizing compiler such as GHC, in\nwhich strict constant-timeness can be challenging to achieve.\n\nIf you discover any vulnerabilities, please disclose them via\nsecurity@ppad.tech.\n\n## Development\n\nYou'll require [Nix][nixos] with [flake][flake] support enabled. Enter a\ndevelopment shell with:\n\n```\n$ nix develop\n```\n\nThen do e.g.:\n\n```\n$ cabal repl ppad-base58\n```\n\nto get a REPL for the main library.\n\n## Attribution\n\nThe vectors used in the test suite for both base58\nand base58check are verbatim from paulmillr's\n[scure-base](https://github.com/paulmillr/scure-base) library.\n\n[nixos]: https://nixos.org/\n[flake]: https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbase58","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Fbase58","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbase58/lists"}