Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports settings for different Bitcoin networks.
Synopsis
- data Settings = Settings {}
- newtype PrefixP2PKH = PrefixP2PKH {}
- newtype PrefixP2SH = PrefixP2SH {}
- data PrefixSegWit
- prefixSegWit :: ByteString -> Maybe PrefixSegWit
- unPrefixSegWit :: PrefixSegWit -> ByteString
Settings
PrefixP2PKH
newtype PrefixP2PKH Source #
The byte prefix used in P2PKH
addresses.
Instances
Eq PrefixP2PKH Source # | |
Defined in Bitcoin.Address.Settings (==) :: PrefixP2PKH -> PrefixP2PKH -> Bool # (/=) :: PrefixP2PKH -> PrefixP2PKH -> Bool # | |
Ord PrefixP2PKH Source # | |
Defined in Bitcoin.Address.Settings compare :: PrefixP2PKH -> PrefixP2PKH -> Ordering # (<) :: PrefixP2PKH -> PrefixP2PKH -> Bool # (<=) :: PrefixP2PKH -> PrefixP2PKH -> Bool # (>) :: PrefixP2PKH -> PrefixP2PKH -> Bool # (>=) :: PrefixP2PKH -> PrefixP2PKH -> Bool # max :: PrefixP2PKH -> PrefixP2PKH -> PrefixP2PKH # min :: PrefixP2PKH -> PrefixP2PKH -> PrefixP2PKH # | |
Show PrefixP2PKH Source # | |
Defined in Bitcoin.Address.Settings showsPrec :: Int -> PrefixP2PKH -> ShowS # show :: PrefixP2PKH -> String # showList :: [PrefixP2PKH] -> ShowS # |
PrefixP2SH
newtype PrefixP2SH Source #
The byte prefix used in P2SH
addresses.
Instances
Eq PrefixP2SH Source # | |
Defined in Bitcoin.Address.Settings (==) :: PrefixP2SH -> PrefixP2SH -> Bool # (/=) :: PrefixP2SH -> PrefixP2SH -> Bool # | |
Ord PrefixP2SH Source # | |
Defined in Bitcoin.Address.Settings compare :: PrefixP2SH -> PrefixP2SH -> Ordering # (<) :: PrefixP2SH -> PrefixP2SH -> Bool # (<=) :: PrefixP2SH -> PrefixP2SH -> Bool # (>) :: PrefixP2SH -> PrefixP2SH -> Bool # (>=) :: PrefixP2SH -> PrefixP2SH -> Bool # max :: PrefixP2SH -> PrefixP2SH -> PrefixP2SH # min :: PrefixP2SH -> PrefixP2SH -> PrefixP2SH # | |
Show PrefixP2SH Source # | |
Defined in Bitcoin.Address.Settings showsPrec :: Int -> PrefixP2SH -> ShowS # show :: PrefixP2SH -> String # showList :: [PrefixP2SH] -> ShowS # |
PrefixSegWit
data PrefixSegWit Source #
The Human Readable Part of a P2WPKH
or P2WSH
address (e.g., the “bc” in “bc1…”)
Instances
Eq PrefixSegWit Source # | |
Defined in Bitcoin.Address.Settings (==) :: PrefixSegWit -> PrefixSegWit -> Bool # (/=) :: PrefixSegWit -> PrefixSegWit -> Bool # | |
Ord PrefixSegWit Source # | |
Defined in Bitcoin.Address.Settings compare :: PrefixSegWit -> PrefixSegWit -> Ordering # (<) :: PrefixSegWit -> PrefixSegWit -> Bool # (<=) :: PrefixSegWit -> PrefixSegWit -> Bool # (>) :: PrefixSegWit -> PrefixSegWit -> Bool # (>=) :: PrefixSegWit -> PrefixSegWit -> Bool # max :: PrefixSegWit -> PrefixSegWit -> PrefixSegWit # min :: PrefixSegWit -> PrefixSegWit -> PrefixSegWit # | |
Show PrefixSegWit Source # | |
Defined in Bitcoin.Address.Settings showsPrec :: Int -> PrefixSegWit -> ShowS # show :: PrefixSegWit -> String # showList :: [PrefixSegWit] -> ShowS # |
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
.