Companion
Functions
Link copied to clipboard
Link copied to clipboard
fun correctlySpends( tx: Transaction, parent: Transaction, scriptFlags: Int)
Content copied to clipboard
fun correctlySpends( tx: Transaction, inputs: List<Transaction>, scriptFlags: Int)
Content copied to clipboard
fun correctlySpends( tx: Transaction, previousOutputs: Map<OutPoint, TxOut>, scriptFlags: Int)
Content copied to clipboard
Link copied to clipboard
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int): ByteArray
Content copied to clipboard
hash a tx for signing (pre-segwit)
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, amount: Satoshi, signatureVersion: Int): ByteArray
Content copied to clipboard
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, amount: Satoshi, signatureVersion: Int): ByteArray
Content copied to clipboard
hash a tx for signing
Link copied to clipboard
fun hashForSigningSchnorr( tx: Transaction, inputIndex: Int, inputs: List<TxOut>, sighashType: Int, sigVersion: Int, executionData: Script.ExecutionData = Script.ExecutionData.empty): ByteVector32
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun prepareForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int): Transaction
Content copied to clipboard
prepare a transaction for signing a specific input
Link copied to clipboard
Link copied to clipboard
read a message from a byte array
read a message from a hex string
read a message from a stream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteVector, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteVector, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
sign a tx input
Link copied to clipboard
Link copied to clipboard
fun weight(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int
Content copied to clipboard
Link copied to clipboard
write a message to a byte array
open override fun write( tx: Transaction, out: Output, protocolVersion: Long)
Content copied to clipboard
write a message to a stream