fast-bech32: Fast implementation of the Bech32 encoding format.

[ codec, library, mpl ] [ Propose Tags ]


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 1.0.0
Change log
Dependencies base (>=4.7 && <5), bytestring, relude, text [details]
License MPL-2.0
Copyright 2021 KtorZ
Author KtorZ <>
Revised Revision 1 made by KtorZ at 2021-12-20T20:02:16Z
Category Codec
Home page
Bug tracker
Source repo head: git clone
Uploaded by KtorZ at 2021-12-20T19:59:33Z
Distributions NixOS:1.0.0
Downloads 95 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-12-20 [all 1 reports]

Readme for fast-bech32-1.0.0

[back to package description]



An optimized implementation of the bech32 encoding format (checksumed base32 with human-readable prefixes).


import Data.ByteString.Bech32 
  ( HumanReadablePart(..), encodeBech32 )

encodeAddress :: ByteString -> Text
encodeAddress = encodeBech32 (HumanReadablePart "addr") 


Bytestring length (bytes) bech32 fast-bech32
10 8.085μs 0.875μs
100 60.83μs 2.181μs
1000 664.1μs 33.05μs

:gift: Contributing | :floppy_disk: Changelog