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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Please see the README on GitHub at https://github.com/cardanosolutions/ogmios/tree/master/server/modules/fast-bech32


[Skip to Readme]

Properties

Versions 1.0.0, 1.0.1, 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:50:52Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


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