sealed abstract class ScriptGenerators extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptGenerators
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def assignedWitnessScriptPubKey: Gen[(WitnessScriptPubKey, Seq[ECPrivateKey])]
  6. def chooseSignedScriptSig: Gen[(ScriptSignature, ScriptPubKey, Seq[ECPrivateKey])]

    This function chooses a random signed ScriptSignature that is NOT a P2SHScriptSignature, CSVScriptSignature, CLTVScriptSignature, or any witness type

    This function chooses a random signed ScriptSignature that is NOT a P2SHScriptSignature, CSVScriptSignature, CLTVScriptSignature, or any witness type

    returns

    the signed ScriptSignature, the ScriptPubKey it is spending, and the sequence of ECPrivateKey used to sign it

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def cltvScriptPubKey(num: ScriptNumber, maxDepth: Int): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
  9. def cltvScriptPubKey(maxDepth: Int): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
  10. def cltvScriptPubKey: Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
  11. def cltvScriptSignature: Gen[CLTVScriptSignature]
  12. 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.

  13. def conditionalScriptSignature: Gen[ConditionalScriptSignature]
  14. def csvScriptPubKey(maxDepth: Int): Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
  15. def csvScriptPubKey(num: ScriptNumber, maxDepth: Int): Gen[(CSVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
  16. def csvScriptPubKey: Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
  17. def csvScriptSignature: Gen[CSVScriptSignature]
  18. val defaultMaxDepth: Int
  19. def emptyScriptPubKey: Gen[(EmptyScriptPubKey.type, Seq[ECPrivateKey])]
  20. def emptyScriptSignature: Gen[EmptyScriptSignature.type]
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def lockTimeScriptPubKey(maxDepth: Int): Gen[(LockTimeScriptPubKey, Seq[ECPrivateKey])]
  28. def lockTimeScriptSig: Gen[LockTimeScriptSignature]
  29. def multiSigScriptPubKey: Gen[(MultiSignatureScriptPubKey, Seq[ECPrivateKey])]
  30. def multiSignatureScriptSignature: Gen[MultiSignatureScriptSignature]
  31. def multiSignatureWithTimeoutScriptPubKey: Gen[(MultiSignatureWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def nonConditionalCltvScriptPubKey(num: ScriptNumber): Gen[(CLTVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
  34. def nonConditionalCltvScriptPubKey: Gen[(CLTVScriptPubKey, Seq[ECPrivateKey])]
  35. def nonConditionalCsvScriptPubKey: Gen[(CSVScriptPubKey, Seq[ECPrivateKey])]
  36. def nonConditionalCsvScriptPubKey(num: ScriptNumber): Gen[(CSVScriptPubKey, Seq[ECPrivateKey], ScriptNumber)]
  37. def nonConditionalLockTimeScriptPubKey: Gen[(LockTimeScriptPubKey, Seq[ECPrivateKey])]
  38. def nonConditionalNonLocktimeRawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
  39. def nonConditionalRawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
  40. def nonLockTimeConditionalScriptSignature: Gen[ConditionalScriptSignature]
  41. def nonLocktimeConditionalScriptPubKey(maxDepth: Int): Gen[(ConditionalScriptPubKey, Seq[ECPrivateKey])]

    Creates a ConditionalScriptPubKey with keys for the true case

  42. def nonLocktimeRawScriptPubKey(maxDepth: Int): Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
  43. def nonWitnessScriptPubKey: Gen[(NonWitnessScriptPubKey, Seq[ECPrivateKey])]
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. def p2pkScriptPubKey: Gen[(P2PKScriptPubKey, ECPrivateKey)]
  47. def p2pkScriptSignature: Gen[P2PKScriptSignature]
  48. def p2pkWithTimeoutScriptPubKey: Gen[(P2PKWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
  49. def p2pkWithTimeoutScriptSignature: Gen[ConditionalScriptSignature]
  50. def p2pkhScriptPubKey: Gen[(P2PKHScriptPubKey, ECPrivateKey)]
  51. def p2pkhScriptSignature: Gen[P2PKHScriptSignature]
  52. def p2shScriptPubKey: Gen[(P2SHScriptPubKey, Seq[ECPrivateKey], ScriptPubKey)]

    Generates a random P2SHScriptPubKey as well as it's corresponding private keys and redeem script

  53. def p2shScriptSignature: Gen[P2SHScriptSignature]

    Generates a P2SH script signature

    Generates a P2SH script signature

    Note

    the redeem script and the script signature DO NOT evaluate to true if executed by org.bitcoins.core.script.interpreter.ScriptInterpreter

  54. def p2wpkhSPKV0: Gen[(P2WPKHWitnessSPKV0, Seq[ECPrivateKey])]

    Creates a basic version 0 P2WPKH scriptpubkey

  55. def p2wshSPKV0: Gen[(P2WSHWitnessSPKV0, Seq[ECPrivateKey], ScriptPubKey)]

    Generates a random P2WSHWitnessSPKV0 as well as it's corresponding private keys and redeem script

  56. def randomNonLockTimeScriptSig: Gen[ScriptSignature]
  57. def randomNonP2SHScriptPubKey: Gen[(ScriptPubKey, Seq[ECPrivateKey])]
  58. def randomScriptSig: Gen[(ScriptSignature, ScriptPubKey, Seq[ECPrivateKey])]

    Generates a random ScriptSignature, the ScriptPubKey it is spending, and the ECPrivateKey needed to spend it.

  59. def rawScriptPubKey(maxDepth: Int): Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
  60. def rawScriptPubKey: Gen[(RawScriptPubKey, Seq[ECPrivateKey])]
  61. def rawScriptSignature: Gen[ScriptSignature]
  62. def scriptPubKey: Gen[(ScriptPubKey, Seq[ECPrivateKey])]

    Generates an arbitrary ScriptPubKey

  63. def scriptSignature: Gen[ScriptSignature]

    Generates an arbitrary ScriptSignature

  64. def signedCLTVScriptSignature: Gen[(CLTVScriptSignature, CLTVScriptPubKey, Seq[ECPrivateKey])]
  65. def signedCLTVScriptSignature(cltvLockTime: ScriptNumber, lockTime: UInt32, sequence: UInt32): Gen[(CLTVScriptSignature, CLTVScriptPubKey, Seq[ECPrivateKey])]

    returns

    the signed CLTVScriptSignature, the CLTVScriptPubKey it spends, and the sequences of ECPrivateKey used to sign the scriptSig

  66. def signedCSVScriptSignature: Gen[(CSVScriptSignature, CSVScriptPubKey, Seq[ECPrivateKey])]
  67. def signedCSVScriptSignature(csvScriptNum: ScriptNumber, sequence: UInt32): Gen[(CSVScriptSignature, CSVScriptPubKey, Seq[ECPrivateKey])]

    Generates a signed CLTVScriptSignature that spends from a CLTVScriptSignature correctly

    Generates a signed CLTVScriptSignature that spends from a CLTVScriptSignature correctly

    returns

    the signed CSVScriptSignature, the CSVScriptPubKey it spends, and the sequences of ECPrivateKey used to sign the scriptSig

  68. def signedConditionalScriptSignature: Gen[(ConditionalScriptSignature, ConditionalScriptPubKey, Seq[ECPrivateKey])]
  69. def signedLockTimeScriptSignature: Gen[(LockTimeScriptSignature, LockTimeScriptPubKey, Seq[ECPrivateKey])]

    Generates a LockTimeScriptSignature and LockTimeScriptPubKey pair that are valid when run through the interpreter

  70. def signedMultiSignatureScriptSignature: Gen[(MultiSignatureScriptSignature, MultiSignatureScriptPubKey, Seq[ECPrivateKey])]

    Generates a signed MultiSignatureScriptSignature that spends the MultiSignatureScriptPubKey correctly ti

    Generates a signed MultiSignatureScriptSignature that spends the MultiSignatureScriptPubKey correctly ti

    returns

    the signed MultiSignatureScriptSignature, the MultiSignatureScriptPubKey it spends and the sequence of ECPrivateKey used to sign the scriptSig

  71. def signedMultiSignatureWithTimeoutScriptSignature: Gen[(ConditionalScriptSignature, MultiSignatureWithTimeoutScriptPubKey, Seq[ECPrivateKey])]
  72. def signedP2PKHScriptSignature: Gen[(P2PKHScriptSignature, P2PKHScriptPubKey, ECPrivateKey)]

    Generates a signed P2PKHScriptSignature that spends the P2PKHScriptPubKey correctly

    Generates a signed P2PKHScriptSignature that spends the P2PKHScriptPubKey correctly

    returns

    the signed P2PKHScriptSignature, the P2PKHScriptPubKey it spends, and the ECPrivateKey used to sign the scriptSig

  73. def signedP2PKScriptSignature: Gen[(P2PKScriptSignature, P2PKScriptPubKey, ECPrivateKey)]

    Generates a signed P2PKScriptSignature that spends the P2PKScriptPubKey correctly

    Generates a signed P2PKScriptSignature that spends the P2PKScriptPubKey correctly

    returns

    the signed P2PKScriptSignature, the P2PKScriptPubKey it spends, and the ECPrivateKey used to sign the scriptSig

  74. def signedP2PKWithTimeoutScriptSignature: Gen[(ConditionalScriptSignature, P2PKWithTimeoutScriptPubKey, ECPrivateKey)]
  75. def signedP2SHP2WPKHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey], TransactionWitness, CurrencyUnit)]
  76. def signedP2SHP2WSHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey], TransactionWitness, CurrencyUnit)]
  77. def signedP2SHScriptSignature: Gen[(P2SHScriptSignature, P2SHScriptPubKey, Seq[ECPrivateKey])]

    Generates a signed P2SHScriptSignature that spends from a P2SHScriptPubKey correctly

    Generates a signed P2SHScriptSignature that spends from a P2SHScriptPubKey correctly

    returns

    the signed P2SHScriptSignature, the P2SHScriptPubKey it spends, and the sequence of ECPrivateKey used to sign the scriptSig

  78. def smallMultiSigScriptPubKey: Gen[(MultiSignatureScriptPubKey, Seq[ECPrivateKey])]
  79. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  80. val timeout: FiniteDuration
  81. def toString(): String
    Definition Classes
    AnyRef → Any
  82. 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

  83. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  86. def witnessCommitment: Gen[(WitnessCommitment, Seq[ECPrivateKey])]
  87. def witnessScriptPubKey: Gen[(WitnessScriptPubKey, Seq[ECPrivateKey])]

    Generates an arbitrary WitnessScriptPubKey

  88. def witnessScriptPubKeyV0: Gen[(WitnessScriptPubKeyV0, Seq[ECPrivateKey])]
  89. def witnessScriptPubKeyV1: Gen[(TaprootScriptPubKey, Seq[ECPrivateKey])]

Inherited from AnyRef

Inherited from Any

Ungrouped