serokell-util-0.1.2.4: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.Util.Base16

Description

Base16 encoding/decoding.

Synopsis

Documentation

encode :: ByteString -> Text Source #

Apply base16 encoding to strict ByteString.

decode :: Text -> Either Text ByteString Source #

Decode base16-encoded ByteString.

formatBase16 :: ByteString -> Builder Source #

Construct Builder from bytestring formatting it in Base16.

base16F :: Format r (ByteString -> r) Source #

Format which uses Base16 to print bytestring.