Outpoint

class riemann.tx.Outpoint(tx_id: bytes, index: bytes)

An outpoint. A pointer to the previous output being consumed by the associated input. It specifies the prevout by transaction id and index within that transaction’s output vector

NB: Args must be little-endian

Parameters
  • tx_id – the 32-byte LE hash of the previous transaction

  • index – the 4-byte LE encoded index of the prevout in its transaction

tx_id

the 32-byte LE hash of the previous transaction

index

the 4-byte LE encoded index of the prevout in its transaction

copy(tx_id: Optional[bytes] = None, index: Optional[bytes] = None) → riemann.tx.tx.Outpoint

Make a new copy of the object with optional modifications.

classmethod from_bytes(byte_string: bytes) → riemann.tx.tx.Outpoint

Parse an Outpoint from a bytestring. Also available as from_hex

classmethod null() → riemann.tx.tx.Outpoint

Make a null outpoing, as found in coinbase transactions