trait TransactionTestUtil extends BitcoinSLogger
Created by chris on 2/12/16.
- Alphabetic
- By Inheritance
- TransactionTestUtil
- BitcoinSLogger
- Logging
- 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 buildCreditingTransaction(scriptPubKey: ScriptPubKey, amount: Option[CurrencyUnit] = None): (Transaction, UInt32)
Mimics this test utility found in bitcoin core https://github.com/bitcoin/bitcoin/blob/605c17844ea32b6d237db6d83871164dc7d59dab/src/test/script_tests.cpp#L57
Mimics this test utility found in bitcoin core https://github.com/bitcoin/bitcoin/blob/605c17844ea32b6d237db6d83871164dc7d59dab/src/test/script_tests.cpp#L57
- returns
the transaction and the output index of the scriptPubKey
- def buildSpendingTransaction(creditingTx: Transaction, scriptSignature: ScriptSignature, outputIndex: UInt32, witness: Option[(ScriptWitness, CurrencyUnit)] = None): (Transaction, UInt32)
Builds a spending transaction according to bitcoin core
Builds a spending transaction according to bitcoin core
- returns
the built spending transaction and the input index for the script signature
- def buildTransactionTo(output: TransactionOutput): Transaction
Builds a dummy transaction that sends money to the given output
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- 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()
- def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def isDebugEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isErrorEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isInfoEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isWarnEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
- def multiSignatureScriptPubKey: ScriptPubKey
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def p2pkhTransactionWithCreditingScriptPubKey: (Transaction, UInt32, ScriptPubKey)
Returns a valid transaction that spends a p2pkh output at the inputIndex
- def p2sh2Of3CreditingTransaction: Transaction
- def p2sh2Of3Transaction: Transaction
- def p2sh2Of3TransactionWithSpendingInputAndCreditingOutput: (Transaction, TransactionInput, UInt32, TransactionOutput)
Returns a p2sh transaction that has 2 of 3 signatures with the creiditing output
- def p2shTransactionWithSpendingInputAndCreditingOutput: (Transaction, TransactionInput, UInt32, TransactionOutput)
Returns a p2sh transaction with its corresponding crediting output
- def rawMultiSignatureScriptPubKey: String
Raw multisignature script pub key output
- def rawP2sh2Of3CreditingTransaction: String
- def rawP2sh2Of3Transaction: String
- def rawSignedMultiSignatureTx: String
First input of this raw tx is a spending a multisignature output the first input is signed for this tx
- def signedMultiSignatureTransaction: (Transaction, Int, ScriptPubKey, Seq[ECPublicKey])
- def signedMultiSignatureTx: Transaction
First input of this raw tx is a spending a multisignature output the first input is signed for this tx
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def testTransaction: Transaction
This transaction has one input which is set to EmptyTransactionInput The purpose of this transaction is a base transaction that can be used to manipulate the scriptSignature to be whatever we need it to be
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def transactionWithNonStrictDerSignature: (Transaction, UInt32)
Builds a transaction with a non strict der encoded signature
Builds a transaction with a non strict der encoded signature
- returns
the transaction and the inputIndex of the non strict der encoded signature
- def transactionWithSpendingInputAndCreditingOutput: (Transaction, TransactionInput, UInt32, TransactionOutput)
Returns a transaction, the input that is spending the output, and the inputIndex inside of the tx
- 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 warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging