bitcoin-types 0.9.0 → 0.9.1
raw patch · 2 files changed
+11/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Bitcoin.Types: type BlockHash = HexString
Files
- bitcoin-types.cabal +1/−1
- src/Data/Bitcoin/Types.hs +10/−3
bitcoin-types.cabal view
@@ -1,6 +1,6 @@ name: bitcoin-types category: Network, Finance -version: 0.9.0 +version: 0.9.1 license: MIT license-file: LICENSE copyright: (c) 2015 Leon Mergen
src/Data/Bitcoin/Types.hs view
@@ -1,4 +1,5 @@ module Data.Bitcoin.Types ( TransactionId + , BlockHash , PrivateKey , Address , Account @@ -9,12 +10,14 @@ import Data.Word ( Word64 ) import Data.Binary ( Binary, get, put ) -import Data.Binary.Get ( getWord8 +import Data.Binary.Get ( getByteString + , getWord8 , getWord16le , getWord32le , getWord64le ) -import Data.Binary.Put ( putWord8 +import Data.Binary.Put ( putByteString + , putWord8 , putWord16le , putWord32le , putWord64le ) @@ -24,9 +27,13 @@ import qualified Data.Base58String as B58S import qualified Data.Text as T --- | Per Bitcoin documentation, An identifier used to uniquely identify a +-- | Per Bitcoin documentation, an identifier used to uniquely identify a -- particular transaction; specifically, the sha256d hash of the transaction. type TransactionId = HS.HexString + +-- | Per Bitcoin document, an identifier used to uniquely identify a block +-- by its header. +type BlockHash = HS.HexString -- | A base58 private key to sign transactions type PrivateKey = B58S.Base58String