Copyright | No rights reserved |
---|---|
License | MIT |
Maintainer | jprupp@protonmail.ch |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- arbitraryScript :: Gen Script
- arbitraryScriptOp :: Gen ScriptOp
- arbitraryIntScriptOp :: Gen ScriptOp
- arbitraryPushDataType :: Gen PushDataType
- arbitrarySigHash :: Gen SigHash
- arbitraryValidSigHash :: Network -> Gen SigHash
- arbitrarySigHashFlag :: Gen SigHashFlag
- arbitraryTxSignature :: Network -> Ctx -> Gen (TxHash, SecKey, TxSignature)
- arbitraryTxSignatureEmpty :: Network -> Ctx -> Gen TxSignature
- arbitraryMSParam :: Gen (Int, Int)
- arbitraryScriptOutput :: Network -> Ctx -> Gen ScriptOutput
- arbitrarySimpleOutput :: Ctx -> Gen ScriptOutput
- arbitraryPKOutput :: Ctx -> Gen ScriptOutput
- arbitraryPKHashOutput :: Gen ScriptOutput
- arbitraryWPKHashOutput :: Gen ScriptOutput
- arbitraryWSHOutput :: Gen ScriptOutput
- arbitraryWitOutput :: Gen ScriptOutput
- arbitraryMSOutput :: Ctx -> Gen ScriptOutput
- arbitraryMSOutputC :: Ctx -> Gen ScriptOutput
- arbitrarySHOutput :: Gen ScriptOutput
- arbitraryDCOutput :: Gen ScriptOutput
- arbitraryScriptInput :: Network -> Ctx -> Gen ScriptInput
- arbitrarySimpleInput :: Network -> Ctx -> Gen ScriptInput
- arbitraryPKInput :: Network -> Ctx -> Gen ScriptInput
- arbitraryPKHashInput :: Network -> Ctx -> Gen ScriptInput
- arbitraryPKHashInputFull :: Network -> Ctx -> Gen ScriptInput
- arbitraryPKHashInputFullC :: Network -> Ctx -> Gen ScriptInput
- arbitraryMSInput :: Network -> Ctx -> Gen ScriptInput
- arbitrarySHInput :: Network -> Ctx -> Gen ScriptInput
- arbitraryMulSigSHInput :: Network -> Ctx -> Gen ScriptInput
- arbitraryMulSigSHInputC :: Network -> Ctx -> Gen ScriptInput
- arbitraryMulSigSHInputFull :: Network -> Ctx -> Gen ScriptInput
- arbitraryMulSigSHInputFullC :: Network -> Ctx -> Gen ScriptInput
Documentation
arbitraryPushDataType :: Gen PushDataType Source #
Arbitrary PushDataType
.
arbitrarySigHash :: Gen SigHash Source #
Arbitrary SigHash
(including invalid/unknown sighash codes).
arbitraryTxSignature :: Network -> Ctx -> 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 -> Ctx -> Gen TxSignature Source #
Arbitrary transaction signature that could also be empty.
arbitraryScriptOutput :: Network -> Ctx -> Gen ScriptOutput Source #
Arbitrary ScriptOutput
(Can by any valid type).
arbitrarySimpleOutput :: Ctx -> Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayPK
, PayPKHash
or PayMS
(Not PayScriptHash
, DataCarrier
, or SegWit)
arbitraryPKOutput :: Ctx -> Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayPK
arbitraryPKHashOutput :: Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayPKHash
arbitraryWPKHashOutput :: Gen ScriptOutput Source #
Arbitrary PayWitnessPKHash
output.
arbitraryWSHOutput :: Gen ScriptOutput Source #
Arbitrary PayWitnessScriptHash
output.
arbitraryMSOutput :: Ctx -> Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayMS
.
arbitraryMSOutputC :: Ctx -> Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayMS
, only using compressed keys.
arbitrarySHOutput :: Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type PayScriptHash
.
arbitraryDCOutput :: Gen ScriptOutput Source #
Arbitrary ScriptOutput
of type DataCarrier
.
arbitraryScriptInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
.
arbitrarySimpleInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type SpendPK
, SpendPKHash
or SpendMulSig
(not ScriptHashInput
)
arbitraryPKInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type SpendPK
.
arbitraryPKHashInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type SpendPK
.
arbitraryPKHashInputFull :: Network -> Ctx -> Gen ScriptInput Source #
Like arbitraryPKHashInput
without empty signatures.
arbitraryPKHashInputFullC :: Network -> Ctx -> Gen ScriptInput Source #
Like above but only compressed.
arbitraryMSInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type SpendMulSig
.
arbitrarySHInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type ScriptHashInput
.
arbitraryMulSigSHInput :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type ScriptHashInput
containing a
RedeemScript
of type PayMulSig
and an input of type SpendMulSig
.
arbitraryMulSigSHInputC :: Network -> Ctx -> Gen ScriptInput Source #
Arbitrary ScriptInput
of type ScriptHashInput
containing a
RedeemScript
of type PayMulSig
and an input of type SpendMulSig
.
arbitraryMulSigSHInputFull :: Network -> Ctx -> Gen ScriptInput Source #
Like arbitraryMulSigSHCInput
with no empty signatures.
arbitraryMulSigSHInputFullC :: Network -> Ctx -> Gen ScriptInput Source #
Like arbitraryMulSigSHCInput
with no empty signatures.