object ScriptGenerators extends ScriptGenerators
- Alphabetic
- By Inheritance
- ScriptGenerators
- ScriptGenerators
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assignedWitnessScriptPubKey: Gen[(WitnessScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def chooseSignedScriptSig: Gen[(ScriptSignature, ScriptPubKey, Seq[ECPrivateKey])]
This function chooses a random signed
ScriptSignature
that is NOT aP2SHScriptSignature
,CSVScriptSignature
,CLTVScriptSignature
, or any witness typeThis function chooses a random signed
ScriptSignature
that is NOT aP2SHScriptSignature
,CSVScriptSignature
,CLTVScriptSignature
, or any witness type- returns
the signed
ScriptSignature
, theScriptPubKey
it is spending, and the sequence ofECPrivateKey
used to sign it
- Definition Classes
- ScriptGenerators
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cltvScriptPubKey(num: ScriptNumber, maxDepth: Int): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
- Definition Classes
- ScriptGenerators
- def cltvScriptPubKey(maxDepth: Int): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def cltvScriptPubKey: Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def cltvScriptSignature: Gen[CLTVScriptSignature]
- Definition Classes
- ScriptGenerators
- def conditionalScriptPubKey(maxDepth: Int): Gen[(ConditionalScriptPubKey, Seq[ECPrivateKey])]
Creates a ConditionalScriptPubKey with keys for the true case
Creates a ConditionalScriptPubKey with keys for the true case
- maxDepth
The maximum level of nesting allowed within this conditional.
- Definition Classes
- ScriptGenerators
- def conditionalScriptSignature: Gen[ConditionalScriptSignature]
- Definition Classes
- ScriptGenerators
- def csvScriptPubKey(maxDepth: Int): Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def csvScriptPubKey(num: ScriptNumber, maxDepth: Int): Gen[(CSVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
- Definition Classes
- ScriptGenerators
- def csvScriptPubKey: Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def csvScriptSignature: Gen[CSVScriptSignature]
- Definition Classes
- ScriptGenerators
- val defaultMaxDepth: Int
- Definition Classes
- ScriptGenerators
- def emptyScriptPubKey: Gen[(EmptyScriptPubKey.type, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def emptyScriptSignature: Gen[EmptyScriptSignature.type]
- Definition Classes
- ScriptGenerators
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lockTimeScriptPubKey(maxDepth: Int): Gen[(LockTimeScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def lockTimeScriptSig: Gen[LockTimeScriptSignature]
- Definition Classes
- ScriptGenerators
- def multiSigScriptPubKey: Gen[(MultiSignatureScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def multiSignatureScriptSignature: Gen[MultiSignatureScriptSignature]
- Definition Classes
- ScriptGenerators
- def multiSignatureWithTimeoutScriptPubKey: Gen[(MultiSignatureWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonConditionalCltvScriptPubKey(num: ScriptNumber): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
- Definition Classes
- ScriptGenerators
- def nonConditionalCltvScriptPubKey: Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonConditionalCsvScriptPubKey: Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonConditionalCsvScriptPubKey(num: ScriptNumber): Gen[(CSVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
- Definition Classes
- ScriptGenerators
- def nonConditionalLockTimeScriptPubKey: Gen[(LockTimeScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonConditionalNonLocktimeRawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonConditionalRawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonLockTimeConditionalScriptSignature: Gen[ConditionalScriptSignature]
- Definition Classes
- ScriptGenerators
- def nonLocktimeConditionalScriptPubKey(maxDepth: Int): Gen[(ConditionalScriptPubKey, Seq[ECPrivateKey])]
Creates a ConditionalScriptPubKey with keys for the true case
Creates a ConditionalScriptPubKey with keys for the true case
- Definition Classes
- ScriptGenerators
- def nonLocktimeRawScriptPubKey(maxDepth: Int): Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def nonWitnessScriptPubKey: Gen[(NonWitnessScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def p2pkScriptPubKey: Gen[(P2PKScriptPubKey, ECPrivateKey)]
- Definition Classes
- ScriptGenerators
- def p2pkScriptSignature: Gen[P2PKScriptSignature]
- Definition Classes
- ScriptGenerators
- def p2pkWithTimeoutScriptPubKey: Gen[(P2PKWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def p2pkWithTimeoutScriptSignature: Gen[ConditionalScriptSignature]
- Definition Classes
- ScriptGenerators
- def p2pkhScriptPubKey: Gen[(P2PKHScriptPubKey, ECPrivateKey)]
- Definition Classes
- ScriptGenerators
- def p2pkhScriptSignature: Gen[P2PKHScriptSignature]
- Definition Classes
- ScriptGenerators
- def p2shScriptPubKey: Gen[(P2SHScriptPubKey, Seq[ECPrivateKey], ScriptPubKey)]
Generates a random P2SHScriptPubKey as well as it's corresponding private keys and redeem script
Generates a random P2SHScriptPubKey as well as it's corresponding private keys and redeem script
- Definition Classes
- ScriptGenerators
- def p2shScriptSignature: Gen[P2SHScriptSignature]
Generates a P2SH script signature
Generates a P2SH script signature
- Definition Classes
- ScriptGenerators
- Note
the redeem script and the script signature DO NOT evaluate to true if executed by org.bitcoins.core.script.interpreter.ScriptInterpreter
- def p2wpkhSPKV0: Gen[(P2WPKHWitnessSPKV0, Seq[ECPrivateKey])]
Creates a basic version 0 P2WPKH scriptpubkey
Creates a basic version 0 P2WPKH scriptpubkey
- Definition Classes
- ScriptGenerators
- def p2wshSPKV0: Gen[(P2WSHWitnessSPKV0, Seq[ECPrivateKey], ScriptPubKey)]
Generates a random P2WSHWitnessSPKV0 as well as it's corresponding private keys and redeem script
Generates a random P2WSHWitnessSPKV0 as well as it's corresponding private keys and redeem script
- Definition Classes
- ScriptGenerators
- def randomNonLockTimeScriptSig: Gen[ScriptSignature]
- Definition Classes
- ScriptGenerators
- def randomNonP2SHScriptPubKey: Gen[(ScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def randomScriptSig: Gen[(ScriptSignature, ScriptPubKey, Seq[ECPrivateKey])]
Generates a random
ScriptSignature
, theScriptPubKey
it is spending, and theECPrivateKey
needed to spend it.Generates a random
ScriptSignature
, theScriptPubKey
it is spending, and theECPrivateKey
needed to spend it.- Definition Classes
- ScriptGenerators
- def rawScriptPubKey(maxDepth: Int): Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def rawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def rawScriptSignature: Gen[ScriptSignature]
- Definition Classes
- ScriptGenerators
- def scriptPubKey: Gen[(ScriptPubKey, Seq[ECPrivateKey])]
Generates an arbitrary
ScriptPubKey
Generates an arbitrary
ScriptPubKey
- Definition Classes
- ScriptGenerators
- def scriptSignature: Gen[ScriptSignature]
Generates an arbitrary
ScriptSignature
Generates an arbitrary
ScriptSignature
- Definition Classes
- ScriptGenerators
- def signedCLTVScriptSignature: Gen[(CLTVScriptSignature, CLTVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def signedCLTVScriptSignature(cltvLockTime: ScriptNumber, lockTime: UInt32, sequence: UInt32): Gen[(CLTVScriptSignature, CLTVScriptPubKey, Seq[ECPrivateKey])]
- returns
the signed
CLTVScriptSignature
, theCLTVScriptPubKey
it spends, and the sequences ofECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def signedCSVScriptSignature: Gen[(CSVScriptSignature, CSVScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def signedCSVScriptSignature(csvScriptNum: ScriptNumber, sequence: UInt32): Gen[(CSVScriptSignature, CSVScriptPubKey, Seq[ECPrivateKey])]
Generates a signed
CLTVScriptSignature
that spends from aCLTVScriptSignature
correctlyGenerates a signed
CLTVScriptSignature
that spends from aCLTVScriptSignature
correctly- returns
the signed
CSVScriptSignature
, theCSVScriptPubKey
it spends, and the sequences ofECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def signedConditionalScriptSignature: Gen[(ConditionalScriptSignature, ConditionalScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def signedLockTimeScriptSignature: Gen[(LockTimeScriptSignature, LockTimeScriptPubKey, Seq[ECPrivateKey])]
Generates a
LockTimeScriptSignature
andLockTimeScriptPubKey
pair that are valid when run through the interpreterGenerates a
LockTimeScriptSignature
andLockTimeScriptPubKey
pair that are valid when run through the interpreter- Definition Classes
- ScriptGenerators
- def signedMultiSignatureScriptSignature: Gen[(MultiSignatureScriptSignature, MultiSignatureScriptPubKey, Seq[ECPrivateKey])]
Generates a signed
MultiSignatureScriptSignature
that spends theMultiSignatureScriptPubKey
correctly tiGenerates a signed
MultiSignatureScriptSignature
that spends theMultiSignatureScriptPubKey
correctly ti- returns
the signed
MultiSignatureScriptSignature
, theMultiSignatureScriptPubKey
it spends and the sequence ofECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def signedMultiSignatureWithTimeoutScriptSignature: Gen[(ConditionalScriptSignature, MultiSignatureWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def signedP2PKHScriptSignature: Gen[(P2PKHScriptSignature, P2PKHScriptPubKey, ECPrivateKey)]
Generates a signed
P2PKHScriptSignature
that spends theP2PKHScriptPubKey
correctlyGenerates a signed
P2PKHScriptSignature
that spends theP2PKHScriptPubKey
correctly- returns
the signed
P2PKHScriptSignature
, theP2PKHScriptPubKey
it spends, and theECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def signedP2PKScriptSignature: Gen[(P2PKScriptSignature, P2PKScriptPubKey, ECPrivateKey)]
Generates a signed
P2PKScriptSignature
that spends theP2PKScriptPubKey
correctlyGenerates a signed
P2PKScriptSignature
that spends theP2PKScriptPubKey
correctly- returns
the signed
P2PKScriptSignature
, theP2PKScriptPubKey
it spends, and theECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def signedP2PKWithTimeoutScriptSignature: Gen[(ConditionalScriptSignature, P2PKWithTimeoutScriptPubKey, ECPrivateKey)]
- Definition Classes
- ScriptGenerators
- def signedP2SHP2WPKHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey], TransactionWitness, CurrencyUnit)]
- Definition Classes
- ScriptGenerators
- def signedP2SHP2WSHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey], TransactionWitness, CurrencyUnit)]
- Definition Classes
- ScriptGenerators
- def signedP2SHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey])]
Generates a signed
P2SHScriptSignature
that spends from aP2SHScriptPubKey
correctlyGenerates a signed
P2SHScriptSignature
that spends from aP2SHScriptPubKey
correctly- returns
the signed
P2SHScriptSignature
, theP2SHScriptPubKey
it spends, and the sequence ofECPrivateKey
used to sign the scriptSig
- Definition Classes
- ScriptGenerators
- def smallMultiSigScriptPubKey: Gen[(MultiSignatureScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timeout: FiniteDuration
- Definition Classes
- ScriptGenerators
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unassignedWitnessScriptPubKey: Gen[(UnassignedWitnessScriptPubKey, Seq[ECPrivateKey])]
Creates an unassigned witness scriptPubKey.
Creates an unassigned witness scriptPubKey. Currently this is any witness script pubkey besides WitnessScriptPubKeyV0
- Definition Classes
- ScriptGenerators
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def witnessCommitment: Gen[(WitnessCommitment, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def witnessScriptPubKey: Gen[(WitnessScriptPubKey, Seq[ECPrivateKey])]
Generates an arbitrary
WitnessScriptPubKey
Generates an arbitrary
WitnessScriptPubKey
- Definition Classes
- ScriptGenerators
- def witnessScriptPubKeyV0: Gen[(WitnessScriptPubKeyV0, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators
- def witnessScriptPubKeyV1: Gen[(TaprootScriptPubKey, Seq[ECPrivateKey])]
- Definition Classes
- ScriptGenerators