haskoin-core-0.5.2: Bitcoin & Bitcoin Cash library for Haskell

Safe HaskellNone
LanguageHaskell2010

Network.Haskoin.Address.Base58

Synopsis

Documentation

type Base58 = Text Source #

Base58 classic Bitcoin address format.

encodeBase58 :: ByteString -> Base58 Source #

Encode an arbitrary ByteString into a its Base58 representation, preserving leading zeroes.

encodeBase58Check :: ByteString -> Base58 Source #

Computes a checksum for the input ByteString and encodes the input and the checksum as Base58.

decodeBase58Check :: Base58 -> Maybe ByteString Source #

Decode a Base58-encoded string that contains a checksum. This function returns Nothing if the input string contains invalid Base58 characters or if the checksum fails.