Companion

object Companion : BtcSerializer<TxIn>

Functions

Link copied to clipboard
fun coinbase(script: ByteArray): TxIn
fun coinbase(script: List<ScriptElt>): TxIn
Link copied to clipboard
fun read(input: Input): TxIn
open fun read(input: ByteArray): TxIn
open fun read(input: String): TxIn

fun read(input: ByteArray, protocolVersion: Long): TxIn

read a message from a byte array

fun read(input: String, protocolVersion: Long): TxIn

read a message from a hex string

open override fun read(input: Input, protocolVersion: Long): TxIn

read a message from a stream

Link copied to clipboard
open override fun validate(input: TxIn)
Link copied to clipboard
fun weight(txIn: TxIn, protocolVersion: Long = PROTOCOL_VERSION): Int
Link copied to clipboard
open fun write(message: TxIn): ByteArray
fun write(message: TxIn, out: Output)

fun write(message: TxIn, protocolVersion: Long): ByteArray

write a message to a byte array

open override fun write(    message: TxIn,     out: Output,     protocolVersion: Long)

write a message to a stream

Properties

Link copied to clipboard
const val SEQUENCE_FINAL: Long = 4294967295
Link copied to clipboard
const val SEQUENCE_LOCKTIME_DISABLE_FLAG: Long
Link copied to clipboard
const val SEQUENCE_LOCKTIME_GRANULARITY: Long = 9
Link copied to clipboard
const val SEQUENCE_LOCKTIME_MASK: Long = 65535
Link copied to clipboard
const val SEQUENCE_LOCKTIME_TYPE_FLAG: Long