Safe Haskell | None |
---|---|
Language | Haskell98 |
This package provides test types for Network.Haskoin
- data ArbitraryByteString = ArbitraryByteString ByteString
- data ArbitraryNotNullByteString = ArbitraryNotNullByteString ByteString
- newtype ArbitraryUTCTime = ArbitraryUTCTime UTCTime
- newtype ArbitraryHash512 = ArbitraryHash512 Hash512
- newtype ArbitraryHash256 = ArbitraryHash256 Hash256
- newtype ArbitraryHash160 = ArbitraryHash160 Hash160
- newtype ArbitraryCheckSum32 = ArbitraryCheckSum32 CheckSum32
- newtype ArbitraryPrvKey = ArbitraryPrvKey PrvKey
- newtype ArbitraryPrvKeyC = ArbitraryPrvKeyC PrvKeyC
- newtype ArbitraryPrvKeyU = ArbitraryPrvKeyU PrvKeyU
- data ArbitraryPubKey = ArbitraryPubKey PrvKey PubKey
- data ArbitraryPubKeyC = ArbitraryPubKeyC PrvKeyC PubKeyC
- data ArbitraryPubKeyU = ArbitraryPubKeyU PrvKeyU PubKeyU
- newtype ArbitraryAddress = ArbitraryAddress Address
- newtype ArbitraryPubKeyAddress = ArbitraryPubKeyAddress Address
- newtype ArbitraryScriptAddress = ArbitraryScriptAddress Address
- data ArbitrarySignature = ArbitrarySignature Hash256 PrvKey Signature
- data ArbitraryXPrvKey = ArbitraryXPrvKey XPrvKey
- data ArbitraryXPubKey = ArbitraryXPubKey XPrvKey XPubKey
- data ArbitraryHardPath = ArbitraryHardPath HardPath
- data ArbitrarySoftPath = ArbitrarySoftPath SoftPath
- data ArbitraryDerivPath = ArbitraryDerivPath DerivPath
- data ArbitraryParsedPath = ArbitraryParsedPath ParsedPath
- newtype ArbitraryVarInt = ArbitraryVarInt VarInt
- newtype ArbitraryVarString = ArbitraryVarString VarString
- newtype ArbitraryNetworkAddress = ArbitraryNetworkAddress NetworkAddress
- newtype ArbitraryNetworkAddressTime = ArbitraryNetworkAddressTime (Word32, NetworkAddress)
- newtype ArbitraryInvType = ArbitraryInvType InvType
- newtype ArbitraryInvVector = ArbitraryInvVector InvVector
- newtype ArbitraryInv = ArbitraryInv Inv
- newtype ArbitraryVersion = ArbitraryVersion Version
- newtype ArbitraryAddr = ArbitraryAddr Addr
- newtype ArbitraryAlert = ArbitraryAlert Alert
- newtype ArbitraryReject = ArbitraryReject Reject
- newtype ArbitraryRejectCode = ArbitraryRejectCode RejectCode
- newtype ArbitraryGetData = ArbitraryGetData GetData
- newtype ArbitraryNotFound = ArbitraryNotFound NotFound
- newtype ArbitraryPing = ArbitraryPing Ping
- newtype ArbitraryPong = ArbitraryPong Pong
- data ArbitraryBloomFlags = ArbitraryBloomFlags BloomFlags
- data ArbitraryBloomFilter = ArbitraryBloomFilter Int Double BloomFilter
- data ArbitraryFilterLoad = ArbitraryFilterLoad FilterLoad
- data ArbitraryFilterAdd = ArbitraryFilterAdd FilterAdd
- newtype ArbitraryMessageCommand = ArbitraryMessageCommand MessageCommand
- newtype ArbitraryMessageHeader = ArbitraryMessageHeader MessageHeader
- newtype ArbitraryMessage = ArbitraryMessage Message
- newtype ArbitraryScriptOp = ArbitraryScriptOp ScriptOp
- newtype ArbitraryScript = ArbitraryScript Script
- newtype ArbitraryIntScriptOp = ArbitraryIntScriptOp ScriptOp
- newtype ArbitraryPushDataType = ArbitraryPushDataType PushDataType
- data ArbitraryTxSignature = ArbitraryTxSignature TxHash PrvKey TxSignature
- newtype ArbitrarySigHash = ArbitrarySigHash SigHash
- newtype ArbitraryValidSigHash = ArbitraryValidSigHash SigHash
- data ArbitraryMSParam = ArbitraryMSParam Int Int
- newtype ArbitraryScriptOutput = ArbitraryScriptOutput ScriptOutput
- newtype ArbitrarySimpleOutput = ArbitrarySimpleOutput ScriptOutput
- newtype ArbitraryPKOutput = ArbitraryPKOutput ScriptOutput
- newtype ArbitraryPKHashOutput = ArbitraryPKHashOutput ScriptOutput
- newtype ArbitraryMSOutput = ArbitraryMSOutput ScriptOutput
- newtype ArbitraryMSCOutput = ArbitraryMSCOutput ScriptOutput
- newtype ArbitrarySHOutput = ArbitrarySHOutput ScriptOutput
- newtype ArbitraryScriptInput = ArbitraryScriptInput ScriptInput
- newtype ArbitrarySimpleInput = ArbitrarySimpleInput ScriptInput
- newtype ArbitraryPKInput = ArbitraryPKInput ScriptInput
- newtype ArbitraryPKHashInput = ArbitraryPKHashInput ScriptInput
- newtype ArbitraryPKHashCInput = ArbitraryPKHashCInput ScriptInput
- newtype ArbitraryMSInput = ArbitraryMSInput ScriptInput
- newtype ArbitrarySHInput = ArbitrarySHInput ScriptInput
- newtype ArbitraryMulSigSHCInput = ArbitraryMulSigSHCInput ScriptInput
- newtype ArbitrarySatoshi = ArbitrarySatoshi Word64
- newtype ArbitraryTx = ArbitraryTx Tx
- newtype ArbitraryTxHash = ArbitraryTxHash TxHash
- newtype ArbitraryTxIn = ArbitraryTxIn TxIn
- newtype ArbitraryTxOut = ArbitraryTxOut TxOut
- newtype ArbitraryOutPoint = ArbitraryOutPoint OutPoint
- newtype ArbitraryCoinbaseTx = ArbitraryCoinbaseTx CoinbaseTx
- newtype ArbitraryAddrOnlyTx = ArbitraryAddrOnlyTx Tx
- newtype ArbitraryAddrOnlyTxIn = ArbitraryAddrOnlyTxIn TxIn
- newtype ArbitraryAddrOnlyTxOut = ArbitraryAddrOnlyTxOut TxOut
- data ArbitrarySigInput = ArbitrarySigInput SigInput [PrvKey]
- data ArbitraryPKSigInput = ArbitraryPKSigInput SigInput PrvKey
- data ArbitraryPKHashSigInput = ArbitraryPKHashSigInput SigInput PrvKey
- data ArbitraryMSSigInput = ArbitraryMSSigInput SigInput [PrvKey]
- data ArbitrarySHSigInput = ArbitrarySHSigInput SigInput [PrvKey]
- data ArbitrarySigningData = ArbitrarySigningData Tx [SigInput] [PrvKey]
- data ArbitraryPartialTxs = ArbitraryPartialTxs [Tx] [(ScriptOutput, OutPoint, Int, Int)]
- newtype ArbitraryBlock = ArbitraryBlock Block
- newtype ArbitraryBlockHeader = ArbitraryBlockHeader BlockHeader
- newtype ArbitraryBlockHash = ArbitraryBlockHash BlockHash
- newtype ArbitraryGetBlocks = ArbitraryGetBlocks GetBlocks
- newtype ArbitraryGetHeaders = ArbitraryGetHeaders GetHeaders
- newtype ArbitraryHeaders = ArbitraryHeaders Headers
- newtype ArbitraryMerkleBlock = ArbitraryMerkleBlock MerkleBlock
Util Arbitrary instances
data ArbitraryByteString Source
Arbitrary strict ByteString
data ArbitraryNotNullByteString Source
Arbitrary strict ByteString that is not empty
newtype ArbitraryUTCTime Source
Arbitrary UTCTime that generates dates after 01 Jan 1970 01:00:00 CET
newtype ArbitraryHash512 Source
newtype ArbitraryHash256 Source
newtype ArbitraryHash160 Source
newtype ArbitraryCheckSum32 Source
Crypto Arbitrary instances
newtype ArbitraryPrvKey Source
Arbitrary private key (can be both compressed or uncompressed)
newtype ArbitraryPrvKeyC Source
Arbitrary compressed private key
newtype ArbitraryPrvKeyU Source
Arbitrary uncompressed private key
data ArbitraryPubKey Source
Arbitrary public key (can be both compressed or uncompressed) with its corresponding private key.
data ArbitraryPubKeyC Source
Arbitrary compressed public key with its corresponding private key.
data ArbitraryPubKeyU Source
Arbitrary uncompressed public key with its corresponding private key.
newtype ArbitraryAddress Source
Arbitrary address (can be a pubkey or script hash address)
newtype ArbitraryPubKeyAddress Source
Arbitrary public key hash address
newtype ArbitraryScriptAddress Source
Arbitrary script hash address
data ArbitrarySignature Source
Arbitrary message hash, private key, nonce and corresponding signature. The signature is generated with a random message, random private key and a random nonce.
data ArbitraryXPrvKey Source
Arbitrary extended private key.
data ArbitraryXPubKey Source
Arbitrary extended public key with its corresponding private key.
data ArbitraryHardPath Source
data ArbitrarySoftPath Source
data ArbitraryDerivPath Source
Node Arbitrary instances
newtype ArbitraryVarInt Source
Arbitrary VarInt
newtype ArbitraryVarString Source
Arbitrary VarString
newtype ArbitraryNetworkAddress Source
Arbitrary NetworkAddress
newtype ArbitraryNetworkAddressTime Source
Arbitrary NetworkAddressTime
newtype ArbitraryInvType Source
Arbitrary InvType
newtype ArbitraryInvVector Source
Arbitrary InvVector
newtype ArbitraryInv Source
Arbitrary non-empty Inv
newtype ArbitraryVersion Source
Arbitrary Version
newtype ArbitraryAddr Source
Arbitrary non-empty Addr
newtype ArbitraryAlert Source
Arbitrary alert with random payload and signature. Signature is not valid.
newtype ArbitraryReject Source
Arbitrary Reject
newtype ArbitraryRejectCode Source
Arbitrary RejectCode
newtype ArbitraryGetData Source
Arbitrary non-empty GetData
newtype ArbitraryNotFound Source
Arbitrary NotFound
newtype ArbitraryPing Source
Arbitrary Ping
newtype ArbitraryPong Source
Arbitrary Pong
data ArbitraryBloomFlags Source
Arbitrary bloom filter flags
data ArbitraryBloomFilter Source
Arbitrary bloom filter with its corresponding number of elements and false positive rate.
data ArbitraryFilterLoad Source
Arbitrary FilterLoad
data ArbitraryFilterAdd Source
Arbitrary FilterAdd
newtype ArbitraryMessageCommand Source
Arbitrary MessageCommand
Message Arbitrary instances
newtype ArbitraryMessageHeader Source
Arbitrary MessageHeader
newtype ArbitraryMessage Source
Arbitrary Message
Script Arbitrary instances
newtype ArbitraryScriptOp Source
Arbitrary ScriptOp (push operations have random data)
newtype ArbitraryScript Source
Arbitrary Script with random script ops
newtype ArbitraryIntScriptOp Source
Arbtirary ScriptOp with a value in [OP_1 .. OP_16]
newtype ArbitraryPushDataType Source
Arbitrary PushDataType
data ArbitraryTxSignature Source
Arbitrary message hash, private key and corresponding TxSignature. The signature is generated deterministically using a random message and a random private key.
newtype ArbitrarySigHash Source
Arbitrary SigHash (including invalid/unknown sighash codes)
newtype ArbitraryValidSigHash Source
Arbitrary valid SigHash
data ArbitraryMSParam Source
Arbitrary m of n parameters
newtype ArbitraryScriptOutput Source
Arbitrary ScriptOutput (Can by any valid type)
newtype ArbitrarySimpleOutput Source
Arbitrary ScriptOutput of type PayPK, PayPKHash or PayMS (Not PayScriptHash)
newtype ArbitraryPKOutput Source
Arbitrary ScriptOutput of type PayPK
newtype ArbitraryPKHashOutput Source
Arbitrary ScriptOutput of type PayPKHash
newtype ArbitraryMSOutput Source
Arbitrary ScriptOutput of type PayMS
newtype ArbitraryMSCOutput Source
Arbitrary ScriptOutput of type PayMS containing only compressed keys
newtype ArbitrarySHOutput Source
Arbitrary ScriptOutput of type PayScriptHash
newtype ArbitraryScriptInput Source
Arbitrary ScriptInput
newtype ArbitrarySimpleInput Source
Arbitrary ScriptInput of type SpendPK, SpendPKHash or SpendMulSig (not ScriptHashInput)
newtype ArbitraryPKInput Source
Arbitrary ScriptInput of type SpendPK
newtype ArbitraryPKHashInput Source
Arbitrary ScriptInput of type SpendPK
newtype ArbitraryPKHashCInput Source
Arbitrary ScriptInput of type SpendPK with a compressed public key
newtype ArbitraryMSInput Source
Arbitrary ScriptInput of type SpendMulSig
newtype ArbitrarySHInput Source
Arbitrary ScriptInput of type ScriptHashInput
newtype ArbitraryMulSigSHCInput Source
Arbitrary ScriptInput of type ScriptHashInput containing a RedeemScript of type PayMulSig and an input of type SpendMulSig. Only compressed keys are used.
Transaction Arbitrary instances
newtype ArbitrarySatoshi Source
Arbitrary amount of Satoshi as Word64 (Between 1 and 21e14)
newtype ArbitraryTx Source
Arbitrary Tx
newtype ArbitraryTxHash Source
newtype ArbitraryTxIn Source
Arbitrary TxIn
newtype ArbitraryTxOut Source
Arbitrary TxOut
newtype ArbitraryOutPoint Source
Arbitrary OutPoint
newtype ArbitraryCoinbaseTx Source
Arbitrary CoinbaseTx
newtype ArbitraryAddrOnlyTx Source
Arbitrary Tx containing only inputs of type SpendPKHash, SpendScriptHash (multisig) and outputs of type PayPKHash and PaySH. Only compressed public keys are used.
newtype ArbitraryAddrOnlyTxIn Source
Arbitrary TxIn that can only be of type SpendPKHash or SpendScriptHash (multisig). Only compressed public keys are used.
newtype ArbitraryAddrOnlyTxOut Source
Arbitrary TxOut that can only be of type PayPKHash or PaySH
data ArbitrarySigInput Source
Arbitrary SigInput with the corresponding private keys used to generate the ScriptOutput or RedeemScript
data ArbitraryPKSigInput Source
Arbitrary SigInput with a ScriptOutput of type PayPK
data ArbitraryPKHashSigInput Source
Arbitrary SigInput with a ScriptOutput of type PayPKHash
data ArbitraryMSSigInput Source
Arbitrary SigInput with a ScriptOutput of type PayMulSig
data ArbitrarySHSigInput Source
Arbitrary SigInput with ScriptOutput of type PaySH and a RedeemScript
data ArbitrarySigningData Source
Arbitrary Tx (empty TxIn), SigInputs and PrvKeys that can be passed to signTx or detSignTx to fully sign the Tx.
data ArbitraryPartialTxs Source
ArbitraryPartialTxs [Tx] [(ScriptOutput, OutPoint, Int, Int)] |
Block Arbitrary instances
newtype ArbitraryBlock Source
Arbitrary Block
newtype ArbitraryBlockHeader Source
Arbitrary BlockHeader
newtype ArbitraryBlockHash Source
newtype ArbitraryGetBlocks Source
Arbitrary GetBlocks
newtype ArbitraryGetHeaders Source
Arbitrary GetHeaders
newtype ArbitraryHeaders Source
Arbitrary Headers