haskoin-core-0.21.2: Bitcoin & Bitcoin Cash library for Haskell
CopyrightNo rights reserved
LicenseMIT
Maintainerjprupp@protonmail.ch
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Haskoin.Util.Arbitrary.Script

Description

 
Synopsis

Documentation

arbitraryScript :: Gen Script Source #

Arbitrary Script with random script ops.

arbitraryScriptOp :: Gen ScriptOp Source #

Arbitrary ScriptOp (push operations have random data).

arbitraryIntScriptOp :: Gen ScriptOp Source #

Arbtirary ScriptOp with a value in [OP_1 .. OP_16].

arbitrarySigHash :: Gen SigHash Source #

Arbitrary SigHash (including invalid/unknown sighash codes).

arbitraryTxSignature :: Network -> Gen (TxHash, SecKey, TxSignature) Source #

Arbitrary message hash, private key and corresponding TxSignature. The signature is generated deterministically using a random message and a random private key.

arbitraryTxSignatureEmpty :: Network -> Gen TxSignature Source #

Arbitrary transaction signature that could also be empty.

arbitraryMSParam :: Gen (Int, Int) Source #

Arbitrary m of n parameters.

arbitraryScriptOutput :: Network -> Gen ScriptOutput Source #

Arbitrary ScriptOutput (Can by any valid type).

arbitraryMSOutputC :: Gen ScriptOutput Source #

Arbitrary ScriptOutput of type PayMS, only using compressed keys.

arbitraryPKHashInputFullC :: Network -> Gen ScriptInput Source #

Like above but only compressed.

arbitraryMulSigSHInput :: Network -> Gen ScriptInput Source #

Arbitrary ScriptInput of type ScriptHashInput containing a RedeemScript of type PayMulSig and an input of type SpendMulSig.

arbitraryMulSigSHInputC :: Network -> Gen ScriptInput Source #

Arbitrary ScriptInput of type ScriptHashInput containing a RedeemScript of type PayMulSig and an input of type SpendMulSig.

arbitraryMulSigSHInputFull :: Network -> Gen ScriptInput Source #

Like arbitraryMulSigSHCInput with no empty signatures.

arbitraryMulSigSHInputFullC :: Network -> Gen ScriptInput Source #

Like arbitraryMulSigSHCInput with no empty signatures.