haskoin-core-0.3.0: Implementation of the core Bitcoin protocol features.

Safe HaskellNone
LanguageHaskell98

Network.Haskoin.Test

Contents

Description

This package provides test types for Network.Haskoin

Synopsis

Util Arbitrary instances

newtype ArbitraryUTCTime Source

Arbitrary UTCTime that generates dates after 01 Jan 1970 01:00:00 CET

Crypto Arbitrary instances

newtype ArbitraryPrvKey Source

Arbitrary private key (can be both compressed or uncompressed)

Constructors

ArbitraryPrvKey PrvKey 

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)

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 ArbitraryXPubKey Source

Arbitrary extended public key with its corresponding private key.

Node Arbitrary instances

newtype ArbitraryAlert Source

Arbitrary alert with random payload and signature. Signature is not valid.

Constructors

ArbitraryAlert Alert 

data ArbitraryBloomFilter Source

Arbitrary bloom filter with its corresponding number of elements and false positive rate.

Message Arbitrary instances

Script Arbitrary instances

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 ArbitrarySimpleOutput Source

Arbitrary ScriptOutput of type PayPK, PayPKHash or PayMS (Not PayScriptHash)

newtype ArbitraryMSCOutput Source

Arbitrary ScriptOutput of type PayMS containing only compressed keys

newtype ArbitrarySimpleInput Source

Arbitrary ScriptInput of type SpendPK, SpendPKHash or SpendMulSig (not 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 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.

Constructors

ArbitraryAddrOnlyTx Tx 

newtype ArbitraryAddrOnlyTxIn Source

Arbitrary TxIn that can only be of type SpendPKHash or SpendScriptHash (multisig). Only compressed public keys are used.

data ArbitrarySigInput Source

Arbitrary SigInput with the corresponding private keys used to generate the ScriptOutput or RedeemScript

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.

Block Arbitrary instances