base58-bytestring-0.1.0: Implementation of BASE58 transcoding for ByteStrings
Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Base58.Internal

Synopsis

Documentation

newtype Alphabet Source #

Constructors

Alphabet 

Instances

Instances details
Eq Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

Ord Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

Show Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

IsString Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

Generic Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

Associated Types

type Rep Alphabet :: Type -> Type #

Methods

from :: Alphabet -> Rep Alphabet x #

to :: Rep Alphabet x -> Alphabet #

type Rep Alphabet Source # 
Instance details

Defined in Data.ByteString.Base58.Internal

type Rep Alphabet = D1 ('MetaData "Alphabet" "Data.ByteString.Base58.Internal" "base58-bytestring-0.1.0-5I8yhCRGEqbIIN0nBBsX7K" 'True) (C1 ('MetaCons "Alphabet" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlphabet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

b58 :: Alphabet -> Int -> Word8 Source #

Take i byte from alphabet

b58' :: Alphabet -> Word8 -> Maybe Int Source #

Lookup position of byte w in alphabet

bsToInteger :: ByteString -> Integer Source #

Decode a big endian Integer from a bytestring

integerToBS :: Integer -> ByteString Source #

Encode an Integer to a bytestring as big endian