| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Haskoin.Address
Synopsis
- data Address
- = PubKeyAddress {
- getAddrHash160 :: !Hash160
- getAddrNet :: !Network
- | ScriptAddress {
- getAddrHash160 :: !Hash160
- getAddrNet :: !Network
- | WitnessPubKeyAddress {
- getAddrHash160 :: !Hash160
- getAddrNet :: !Network
- | WitnessScriptAddress {
- getAddrHash256 :: !Hash256
- getAddrNet :: !Network
- = PubKeyAddress {
- addrToString :: Address -> Maybe Text
- stringToAddr :: Network -> Text -> Maybe Address
- addrFromJSON :: Network -> Value -> Parser Address
- pubKeyAddr :: Network -> PubKeyI -> Address
- fromWif :: Network -> Base58 -> Maybe SecKeyI
- toWif :: Network -> SecKeyI -> Base58
Documentation
Address format for Bitcoin and Bitcoin Cash.
Constructors
| PubKeyAddress | pay to public key hash (regular) |
Fields
| |
| ScriptAddress | pay to script hash |
Fields
| |
| WitnessPubKeyAddress | pay to witness public key hash |
Fields
| |
| WitnessScriptAddress | pay to witness script hash |
Fields
| |