bitcoin-address-0.1.2: Bitcoin address generation and rendering. Parsing coming soon.
Safe HaskellNone
LanguageHaskell2010

Bitcoin.Address.Settings

Description

This module exports settings for different Bitcoin networks.

Synopsis

Settings

data Settings Source #

Bitcoin network settings

For examples, see btc or btcTestnet in Bitcoin.Address.

Instances

Instances details
Eq Settings Source # 
Instance details

Defined in Bitcoin.Address.Settings

Show Settings Source # 
Instance details

Defined in Bitcoin.Address.Settings

PrefixP2PKH

newtype PrefixP2PKH Source #

The byte prefix used in P2PKH addresses.

Constructors

PrefixP2PKH 

Fields

PrefixP2SH

newtype PrefixP2SH Source #

The byte prefix used in P2SH addresses.

Constructors

PrefixP2SH 

Fields

PrefixSegWit

data PrefixSegWit Source #

The Human Readable Part of a P2WPKH or P2WSH address (e.g., the “bc” in “bc1…”)

prefixSegWit :: ByteString -> Maybe PrefixSegWit Source #

Construct a PrefixSegWit from the Bech32 Human Readable Part.

unPrefixSegWit :: PrefixSegWit -> ByteString Source #

Obtain the Bech32 Human Readable Part inside PrefixSegWit.