Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
PubKeyAddress | pay to public key hash (regular) |
| |
ScriptAddress | pay to script hash |
| |
WitnessPubKeyAddress | pay to witness public key hash |
| |
WitnessScriptAddress | pay to witness script hash |
|