WitnessStackItem

class riemann.tx.WitnessStackItem(item: bytes)

A witness stack item. Each input witness is composed of an initial stack to be evaluated by the witness program. Witnesses for P2WSH inputs have a serialized script as the last stack element.

Parameters

item – the raw data to be placed on the stack

item

the raw data to be placed on the stack

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

Parse a WitnessStackItem from a bytestring. Also available as from_hex