Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Alphabet = Alphabet {}
- bitcoinAlphabet :: Alphabet
- rippleAlphabet :: Alphabet
- flickrAlphabet :: Alphabet
- encodeBase58 :: Alphabet -> ByteString -> ByteString
- decodeBase58 :: Alphabet -> ByteString -> Maybe ByteString
- encodeBase58I :: Alphabet -> Integer -> ByteString
- decodeBase58I :: Alphabet -> ByteString -> Maybe Integer
Alphabet
Encoding and decoding bytestrings
encodeBase58 :: Alphabet -> ByteString -> ByteString Source
Encode a bytestring to a base 58 representation.
decodeBase58 :: Alphabet -> ByteString -> Maybe ByteString Source
Decode a base 58 encoded bytestring. This can fail if the input bytestring contains invalid base 58 characters such as 0,O,l,I
Encoding and decoding integers
encodeBase58I :: Alphabet -> Integer -> ByteString Source
decodeBase58I :: Alphabet -> ByteString -> Maybe Integer Source