Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Base32Hex = UnsafeFromText Text
- fromByteString :: ByteString -> Base32Hex
- toByteString :: Base32Hex -> ByteString
- fromText :: Text -> Maybe Base32Hex
- toText :: Base32Hex -> Text
- validChars :: Set Char
Documentation
fromByteString :: ByteString -> Base32Hex Source #
Return the lowercase unpadded base32Hex encoding of this ByteString
.
Multibase prefix would be v
, see https://github.com/multiformats/multibase
toByteString :: Base32Hex -> ByteString Source #
Produce a Hash
from a base32hex-encoded version of its binary representation
validChars :: Set Char Source #