Expand description
Functions for parsing, serialization, and value accounting of the transparent components of a transaction.
Functionsยง
- read_
outpoint - Reads an [
OutPoint] from its transaction encoding: a 32-byte txid followed by the output index as a little-endianu32. - read_
script - Reads a CompactSize-prefixed script.
- read_
txin - Reads a transparent input: an outpoint, a
scriptSig, and a little-endianu32sequence number. - read_
txout - Reads a transparent output: an 8-byte little-endian value followed by a
scriptPubKey. - script_
serialized_ size - Returns the length of
scriptas encoded, including its CompactSize length prefix. - value_
balance - Returns the amount of value that
bundleadds to or removes from the transparent pool. - write_
outpoint - Writes
outpointin its transaction encoding: a 32-byte txid followed by the output index as a little-endianu32. - write_
script - Writes
scriptwith a CompactSize length prefix. - write_
txin - Writes a transparent input: an outpoint, a
scriptSig, and a little-endianu32sequence number. - write_
txout - Writes a transparent output: an 8-byte little-endian value followed by a
scriptPubKey.