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

CopyrightNo rights reserved
LicenseUNLICENSE
Maintainerxenog@protonmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.Haskoin.Address.Base58

Description

Support for legacy Base58 addresses. Superseded by Bech32 for Bitcoin SegWit (BTC) and CashAddr for Bitcoin Cash (BCH).

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.