haskoin-core 0.13.2 → 0.13.3
raw patch · 25 files changed
+70/−77 lines, 25 files
Files
- CHANGELOG.md +4/−0
- haskoin-core.cabal +2/−2
- src/Haskoin.hs +1/−13
- src/Haskoin/Address.hs +3/−5
- src/Haskoin/Address/Base58.hs +2/−1
- src/Haskoin/Address/Bech32.hs +2/−1
- src/Haskoin/Address/CashAddr.hs +2/−1
- src/Haskoin/Block.hs +0/−2
- src/Haskoin/Block/Common.hs +2/−1
- src/Haskoin/Block/Headers.hs +5/−4
- src/Haskoin/Block/Merkle.hs +2/−2
- src/Haskoin/Constants.hs +2/−1
- src/Haskoin/Crypto.hs +1/−4
- src/Haskoin/Crypto/Signature.hs +2/−2
- src/Haskoin/Keys.hs +0/−2
- src/Haskoin/Network/Common.hs +0/−1
- src/Haskoin/Script.hs +6/−4
- src/Haskoin/Script/Common.hs +2/−1
- src/Haskoin/Script/SigHash.hs +23/−22
- src/Haskoin/Script/Standard.hs +2/−1
- src/Haskoin/Transaction.hs +0/−3
- src/Haskoin/Transaction/Builder.hs +1/−1
- src/Haskoin/Transaction/Common.hs +2/−1
- src/Haskoin/Transaction/Partial.hs +2/−1
- src/Haskoin/Transaction/Segwit.hs +2/−1
CHANGELOG.md view
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.13.3+### Changed+- Improve code and documentation organisation.+ ## 0.13.2 ### Changed - Move all packages from Network.Haskoin namespace to Haskoin namespace.
haskoin-core.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: bd9822c23e8579ff68357d7e634d820b25e23e1d6ce81b019ebb8e96bc872370+-- hash: 68a2e91c88690c0a8574a9151c0fd55c9a9a6d0ae9693909ebc8f1716eacb5d5 name: haskoin-core-version: 0.13.2+version: 0.13.3 synopsis: Bitcoin & Bitcoin Cash library for Haskell description: Haskoin Core is a complete Bitcoin and Bitcoin Cash library of functions and data types for Haskell developers. category: Bitcoin, Finance, Network
src/Haskoin.hs view
@@ -11,25 +11,14 @@ specialized address and block-related functions. -} module Haskoin- ( -- * Address (Base58, Bech32, CashAddr)- module Address- -- * Network Messages+ ( module Address , module Network- -- * Network Constants , module Constants- -- * Blocks , module Block- -- * Transactions , module Transaction- -- * Partially Signed Bitcoin Transactions- , module Partial- -- * Scripts , module Script- -- * Cryptographic Keys , module Keys- -- * Cryptographic Primitives , module Crypto- -- * Various Utilities , module Util ) where @@ -41,5 +30,4 @@ import Haskoin.Network as Network import Haskoin.Script as Script import Haskoin.Transaction as Transaction-import Haskoin.Transaction.Partial as Partial import Haskoin.Util as Util
src/Haskoin/Address.hs view
@@ -14,7 +14,8 @@ Base58, CashAddr, Bech32 address and WIF private key serialization support. -} module Haskoin.Address- ( Address(..)+ ( -- * Addresses+ Address(..) , isPubKeyAddress , isScriptAddress , isWitnessPubKeyAddress@@ -41,14 +42,11 @@ , payToNestedScriptAddress , scriptToAddress , scriptToAddressBS- -- * Private Key Wallet Import Format (WIF)+ -- ** Private Key Wallet Import Format (WIF) , fromWif , toWif- -- * Base58 , module Haskoin.Address.Base58- -- * Bech32 , module Haskoin.Address.Bech32- -- * CashAddr , module Haskoin.Address.CashAddr ) where
src/Haskoin/Address/Base58.hs view
@@ -11,7 +11,8 @@ (BTC) and CashAddr for Bitcoin Cash (BCH). -} module Haskoin.Address.Base58- ( Base58+ ( -- * Base58+ Base58 , encodeBase58 , decodeBase58 , encodeBase58Check
src/Haskoin/Address/Bech32.hs view
@@ -11,7 +11,8 @@ version of Marko Bencun's reference implementation. -} module Haskoin.Address.Bech32- ( HRP+ ( -- * Bech32+ HRP , Bech32 , Data , bech32Encode
src/Haskoin/Address/CashAddr.hs view
@@ -10,7 +10,8 @@ Support for Bitcoin Cash (BCH) CashAddr format. -} module Haskoin.Address.CashAddr- ( CashPrefix+ ( -- * CashAddr+ CashPrefix , CashVersion , CashAddr , Cash32
src/Haskoin/Block.hs view
@@ -10,9 +10,7 @@ -} module Haskoin.Block ( module Haskoin.Block.Common- -- * Block Header Chain , module Haskoin.Block.Headers- -- * Merkle Blocks , module Haskoin.Block.Merkle ) where
src/Haskoin/Block/Common.hs view
@@ -11,7 +11,8 @@ Common data types and functions to handle blocks from the block chain. -} module Haskoin.Block.Common- ( Block(..)+ ( -- * Blocks+ Block(..) , BlockHeight , Timestamp , BlockHeader(..)
src/Haskoin/Block/Headers.hs view
@@ -15,14 +15,15 @@ Block chain header synchronization and proof-of-work consensus functions. -} module Haskoin.Block.Headers- ( BlockNode(..)+ ( -- * Block Headers+ BlockNode(..) , BlockHeaders(..) , BlockWork , genesisNode , genesisBlock , isGenesis , chooseBest- -- * Header Chain Storage Functions+ -- ** Header Store , parentBlock , getParents , getAncestor@@ -30,14 +31,14 @@ , connectBlocks , connectBlock , blockLocator- -- * In-Memory Header Chain Store+ -- ** Header Memory Store , HeaderMemory(..) , ShortBlockHash , BlockMap , shortBlockHash , initialChain , genesisMap- -- * Helper Functions+ -- ** Helper Functions , appendBlocks , validBlock , validCP
src/Haskoin/Block/Merkle.hs view
@@ -11,14 +11,14 @@ Function to deal with Merkle trees inside blocks. -} module Haskoin.Block.Merkle- ( MerkleBlock(..)+ ( -- * Merkle Blocks+ MerkleBlock(..) , MerkleRoot , FlagBits , PartialMerkleTree , buildMerkleRoot , merkleBlockTxs , testMerkleRoot- -- * Helper functions , buildPartialMerkle , decodeMerkleFlags , encodeMerkleFlags
src/Haskoin/Constants.hs view
@@ -13,7 +13,8 @@ Cash (BCH), and corresponding public test and private regression test networks. -} module Haskoin.Constants- ( Network(..)+ ( -- * Constants+ Network(..) , btc , btcTest , btcRegTest
src/Haskoin/Crypto.hs view
@@ -9,11 +9,8 @@ Hashing functions and ECDSA signatures. -} module Haskoin.Crypto- ( -- * Hashes- module Hash- -- * Signatures+ ( module Hash , module Signature- -- * Secp256k1 (re-exported) , module Secp256k1 ) where
src/Haskoin/Crypto/Signature.hs view
@@ -11,7 +11,8 @@ library. -} module Haskoin.Crypto.Signature- ( putSig+ ( -- * Signatures+ putSig , getSig , signHash , verifyHashSig@@ -27,7 +28,6 @@ import Data.ByteString.Short (toShort) import Data.Maybe (fromMaybe) import Data.Serialize as S-import Data.Serialize.Put (Putter, putByteString) import Haskoin.Crypto.Hash import Numeric (showHex)
src/Haskoin/Keys.hs view
@@ -11,9 +11,7 @@ -} module Haskoin.Keys ( module Haskoin.Keys.Common- -- * Extended Keys , module Haskoin.Keys.Extended- -- * Mnemonic , module Haskoin.Keys.Mnemonic ) where
src/Haskoin/Network/Common.hs view
@@ -34,7 +34,6 @@ , VarString(..) , Version(..) , MessageCommand(..)- -- ** Useful Functions , reject , nodeNone , nodeNetwork
src/Haskoin/Script.hs view
@@ -11,9 +11,11 @@ deconstructing all of the standard input and output script types. -} module Haskoin.Script- ( module X+ ( module Common+ , module Standard+ , module SigHash ) where -import Haskoin.Script.Common as X-import Haskoin.Script.SigHash as X-import Haskoin.Script.Standard as X+import Haskoin.Script.Common as Common+import Haskoin.Script.SigHash as SigHash+import Haskoin.Script.Standard as Standard
src/Haskoin/Script/Common.hs view
@@ -12,7 +12,8 @@ Common script-related functions and data types. -} module Haskoin.Script.Common- ( ScriptOp(..)+ ( -- * Scripts+ ScriptOp(..) , Script(..) , PushDataType(..) , ScriptOutput(..)
src/Haskoin/Script/SigHash.hs view
@@ -12,28 +12,29 @@ Transaction signatures and related functions. -} module Haskoin.Script.SigHash-( SigHash-, SigHashFlag(..)-, sigHashAll-, sigHashNone-, sigHashSingle-, hasAnyoneCanPayFlag-, hasForkIdFlag-, setAnyoneCanPayFlag-, setForkIdFlag-, isSigHashAll-, isSigHashNone-, isSigHashSingle-, isSigHashUnknown-, sigHashAddForkId-, sigHashGetForkId-, sigHashAddNetworkId-, txSigHash-, txSigHashForkId-, TxSignature(..)-, encodeTxSig-, decodeTxSig-) where+ ( -- * Script Signatures+ SigHash+ , SigHashFlag(..)+ , sigHashAll+ , sigHashNone+ , sigHashSingle+ , hasAnyoneCanPayFlag+ , hasForkIdFlag+ , setAnyoneCanPayFlag+ , setForkIdFlag+ , isSigHashAll+ , isSigHashNone+ , isSigHashSingle+ , isSigHashUnknown+ , sigHashAddForkId+ , sigHashGetForkId+ , sigHashAddNetworkId+ , txSigHash+ , txSigHashForkId+ , TxSignature(..)+ , encodeTxSig+ , decodeTxSig+ ) where import Control.DeepSeq import Control.Monad
src/Haskoin/Script/Standard.hs view
@@ -13,7 +13,8 @@ pay-to-script-hash, pay-to-multisig and corresponding SegWit variants. -} module Haskoin.Script.Standard- ( ScriptInput(..)+ ( -- * Standard Scripts+ ScriptInput(..) , SimpleInput(..) , RedeemScript , encodeInput
src/Haskoin/Transaction.hs view
@@ -10,11 +10,8 @@ -} module Haskoin.Transaction ( module Common- -- * Builder , module Builder- -- * Segwit , module Segwit- -- * Partial , module Partial ) where
src/Haskoin/Transaction/Builder.hs view
@@ -12,7 +12,7 @@ selection. -} module Haskoin.Transaction.Builder- ( -- * Transaction Creation & Signing+ ( -- * Transaction Builder buildAddrTx , buildTx , buildInput
src/Haskoin/Transaction/Common.hs view
@@ -12,7 +12,8 @@ Code related to transactions parsing and serialization. -} module Haskoin.Transaction.Common- ( Tx(..)+ ( -- * Transactions+ Tx(..) , TxIn(..) , TxOut(..) , OutPoint(..)
src/Haskoin/Transaction/Partial.hs view
@@ -14,7 +14,8 @@ Code related to PSBT parsing and serialization. -} module Haskoin.Transaction.Partial- ( PartiallySignedTransaction (..)+ ( -- * Partially-Signed Transactions+ PartiallySignedTransaction (..) , Input (..) , Output (..) , UnknownMap (..)
src/Haskoin/Transaction/Segwit.hs view
@@ -15,7 +15,8 @@ details. -} module Haskoin.Transaction.Segwit- ( WitnessProgram (..)+ ( -- * Segwit+ WitnessProgram (..) , WitnessProgramPKH (..) , WitnessProgramSH (..) , isSegwit