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

[ codec, library, mpl ] [ Propose Tags ]

Modules

[Last Documentation]

  • Data
    • ByteString
      • Data.ByteString.Bech32

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 1.0.1
Change log CHANGELOG.md
Dependencies base (>=4.17 && <5), bytestring, relude, text [details]
License MPL-2.0
Copyright 2021 KtorZ
Author KtorZ <matthias.benkort@gmail.com>
Maintainer matthias.benkort@gmail.com
Category Codec
Home page https://github.com/cardanosolutions/ogmios#readme
Bug tracker https://github.com/cardanosolutions/ogmios/issues
Source repo head: git clone https://github.com/cardanosolutions/ogmios
Uploaded by KtorZ at 2023-12-04T10:52:32Z
Distributions
Downloads 147 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-12-04 [all 2 reports]

Readme for fast-bech32-1.0.1

[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