Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports hash constructions used by Bitcoin addresses.
Synopsis
- data PubHash160
- unPubHash160 :: PubHash160 -> ByteString
- parsePubHash160 :: ByteString -> Maybe PubHash160
- pubHash160 :: Pub -> PubHash160
- pubUncompressedHash160 :: Pub -> PubHash160
- data ScriptHash160
- unScriptHash160 :: ScriptHash160 -> ByteString
- parseScriptHash160 :: ByteString -> Maybe ScriptHash160
- scriptHash160 :: Script -> ScriptHash160
- data ScriptSHA256
- unScriptSHA256 :: ScriptSHA256 -> ByteString
- parseScriptSHA256 :: ByteString -> Maybe ScriptSHA256
- scriptSHA256 :: Script -> ScriptSHA256
PubHash160
data PubHash160 Source #
Instances
Eq PubHash160 Source # | |
Defined in Bitcoin.Address.Hash (==) :: PubHash160 -> PubHash160 -> Bool # (/=) :: PubHash160 -> PubHash160 -> Bool # | |
Ord PubHash160 Source # | |
Defined in Bitcoin.Address.Hash compare :: PubHash160 -> PubHash160 -> Ordering # (<) :: PubHash160 -> PubHash160 -> Bool # (<=) :: PubHash160 -> PubHash160 -> Bool # (>) :: PubHash160 -> PubHash160 -> Bool # (>=) :: PubHash160 -> PubHash160 -> Bool # max :: PubHash160 -> PubHash160 -> PubHash160 # min :: PubHash160 -> PubHash160 -> PubHash160 # | |
Show PubHash160 Source # | Base-16 encoded. |
Defined in Bitcoin.Address.Hash showsPrec :: Int -> PubHash160 -> ShowS # show :: PubHash160 -> String # showList :: [PubHash160] -> ShowS # |
unPubHash160 :: PubHash160 -> ByteString Source #
Get the 20 bytes in PubHash160
.
parsePubHash160 :: ByteString -> Maybe PubHash160 Source #
Create a PubHash160
from its 20 raw bytes.
pubHash160 :: Pub -> PubHash160 Source #
ScriptHash160
data ScriptHash160 Source #
Instances
Eq ScriptHash160 Source # | |
Defined in Bitcoin.Address.Hash (==) :: ScriptHash160 -> ScriptHash160 -> Bool # (/=) :: ScriptHash160 -> ScriptHash160 -> Bool # | |
Ord ScriptHash160 Source # | |
Defined in Bitcoin.Address.Hash compare :: ScriptHash160 -> ScriptHash160 -> Ordering # (<) :: ScriptHash160 -> ScriptHash160 -> Bool # (<=) :: ScriptHash160 -> ScriptHash160 -> Bool # (>) :: ScriptHash160 -> ScriptHash160 -> Bool # (>=) :: ScriptHash160 -> ScriptHash160 -> Bool # max :: ScriptHash160 -> ScriptHash160 -> ScriptHash160 # min :: ScriptHash160 -> ScriptHash160 -> ScriptHash160 # | |
Show ScriptHash160 Source # | Base-16 encoded. |
Defined in Bitcoin.Address.Hash showsPrec :: Int -> ScriptHash160 -> ShowS # show :: ScriptHash160 -> String # showList :: [ScriptHash160] -> ShowS # |
unScriptHash160 :: ScriptHash160 -> ByteString Source #
Get the 20 bytes in ScriptHash160
.
parseScriptHash160 :: ByteString -> Maybe ScriptHash160 Source #
Create a ScriptHash160
from its 20 raw bytes.
scriptHash160 :: Script -> ScriptHash160 Source #
ScriptSHA256
data ScriptSHA256 Source #
Instances
Eq ScriptSHA256 Source # | |
Defined in Bitcoin.Address.Hash (==) :: ScriptSHA256 -> ScriptSHA256 -> Bool # (/=) :: ScriptSHA256 -> ScriptSHA256 -> Bool # | |
Ord ScriptSHA256 Source # | |
Defined in Bitcoin.Address.Hash compare :: ScriptSHA256 -> ScriptSHA256 -> Ordering # (<) :: ScriptSHA256 -> ScriptSHA256 -> Bool # (<=) :: ScriptSHA256 -> ScriptSHA256 -> Bool # (>) :: ScriptSHA256 -> ScriptSHA256 -> Bool # (>=) :: ScriptSHA256 -> ScriptSHA256 -> Bool # max :: ScriptSHA256 -> ScriptSHA256 -> ScriptSHA256 # min :: ScriptSHA256 -> ScriptSHA256 -> ScriptSHA256 # | |
Show ScriptSHA256 Source # | Base-16 encoded. |
Defined in Bitcoin.Address.Hash showsPrec :: Int -> ScriptSHA256 -> ShowS # show :: ScriptSHA256 -> String # showList :: [ScriptSHA256] -> ShowS # |
unScriptSHA256 :: ScriptSHA256 -> ByteString Source #
Get the 32 bytes in ScriptSHA256
.
parseScriptSHA256 :: ByteString -> Maybe ScriptSHA256 Source #
Create a ScriptSHA256
from its 32 raw bytes.
scriptSHA256 :: Script -> ScriptSHA256 Source #