OutPoint

data class OutPoint(val hash: ByteVector32, val index: Long) : BtcSerializable<OutPoint>

an out point is a reference to a specific output in a specific transaction that we want to claim

Parameters

hash

reversed sha256(sha256(tx)) where tx is the transaction we want to refer to

index

index of the output in tx that we want to refer to

Constructors

Link copied to clipboard
fun OutPoint(hash: ByteArray, index: Long)
Link copied to clipboard
fun OutPoint(tx: Transaction, index: Long)
Link copied to clipboard
fun OutPoint(hash: ByteVector32, index: Long)

Types

Link copied to clipboard
object Companion : BtcSerializer<OutPoint>

Functions

Link copied to clipboard
open override fun serializer(): BtcSerializer<OutPoint>

Properties

Link copied to clipboard
val hash: ByteVector32
Link copied to clipboard
val index: Long
Link copied to clipboard
val isCoinbase: Boolean
Link copied to clipboard
val txid: ByteVector32