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

[ codec, library, mpl ] [ Propose Tags ]

Modules

[Index] [Quick Jump]

Downloads

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

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), bytestring, relude, text [details]
License MPL-2.0
Copyright 2021 KtorZ
Author KtorZ <matthias.benkort@gmail.com>
Maintainer matthias.benkort@gmail.com
Revised Revision 1 made by KtorZ at 2021-12-20T20:02:16Z
Category Codec
Home page https://github.com/cardanosolutions/ogmios/tree/master/server/fast-bech32#readme
Bug tracker https://github.com/cardanosolutions/ogmios/issues
Source repo head: git clone https://github.com/cardanosolutions/ogmios/tree/master/modules/fast-bech32
Uploaded by KtorZ at 2021-12-20T19:59:33Z
Distributions NixOS:1.0.0
Downloads 58 total (4 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]

fast-bech32

Overview

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

Usage

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

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

Benchmarks

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