-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Fast and safe representation of a Base-58 string
--
@package base58string
@version 0.9.1
module Data.Base58String
-- | Represents a Base58 string. Guarantees that all characters it contains
-- are valid base58 characters.
data Base58String
-- | Smart constructor which validates that all the text are actually
-- base-58 characters.
b58String :: ByteString -> Base58String
-- | Converts a Binary to a Base58String value
fromBinary :: Binary a => a -> Base58String
-- | Converts a Base58String to a Binary value
toBinary :: Binary a => Base58String -> a
-- | Reads a ByteString as raw bytes and converts to base58
-- representation. We cannot use the instance Binary of ByteString
-- because it provides a leading length, which is not what we want when
-- dealing with raw bytes.
fromBytes :: ByteString -> Base58String
-- | Access to the raw bytes in a ByteString format.
toBytes :: Base58String -> ByteString
-- | Access to a Text representation of the Base58String
toText :: Base58String -> Text
-- | Converts a Text representation to a Base58String
fromText :: Text -> Base58String
instance Show Base58String
instance Eq Base58String
instance Ord Base58String
instance ToJSON Base58String
instance FromJSON Base58String