Copyright | No rights reserved |
---|---|
License | MIT |
Maintainer | jprupp@protonmail.ch |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Support for legacy Base58
addresses. Superseded by Bech32 for Bitcoin SegWit
(BTC) and CashAddr for Bitcoin Cash (BCH).
Synopsis
- type Base58 = Text
- encodeBase58 :: ByteString -> Base58
- decodeBase58 :: Base58 -> Maybe ByteString
- encodeBase58Check :: ByteString -> Base58
- decodeBase58Check :: Base58 -> Maybe ByteString
Base58
encodeBase58 :: ByteString -> Base58 Source #
Encode an arbitrary ByteString
into a its Base58
representation,
preserving leading zeroes.
decodeBase58 :: Base58 -> Maybe ByteString Source #
Decode a Base58
-encoded Text
to a ByteString
.
encodeBase58Check :: ByteString -> Base58 Source #
Computes a checksum for the input ByteString
and encodes the input and
the checksum as Base58
.