HomePhabricator

[Chronik] Add `Script::iter_ops` and `ScriptOpIter`

Description

[Chronik] Add Script::iter_ops and ScriptOpIter

Summary:
Iterates over the operations in a Script. This can either be a single opcode, or an opcode which pushes some data following it in the bytecode.

This is important for parsing scripts, e.g. for SLP.

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D13791

Details

Provenance
tobias_ruckAuthored on Apr 26 2023, 14:35
tobias_ruckPushed on Apr 29 2023, 17:06
Reviewer
Restricted Project
Differential Revision
D13791: [Chronik] Add `Script::iter_ops` and `ScriptOpIter`
Parents
rABCac3f0a95ef44: [herald] Parse XEC send txs
Branches
Unknown
Tags
Unknown