HomePhabricator

[Chronik] Add `ScriptVariant` and `ScriptType`

Description

[Chronik] Add ScriptVariant and ScriptType

Summary:
This allows us parsing which kind of script the user wants to query, and the associated payload, like a hash or pubkey.

We currently only support P2PKH, P2SH and P2PK, as these are the only ones widely used. Other types of scripts can be queried using the Other script type.

There's no OP_RETURN variant, as we don't index the tx history nor the UTXOs of OP_RETURN scripts.

Depends on D13537.

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 3 2023, 13:02
tobias_ruckPushed on Apr 3 2023, 17:10
Reviewer
Restricted Project
Differential Revision
D13533: [Chronik] Add `ScriptVariant` and `ScriptType`
Parents
rABC41da7aa36f15: test: Use self.wait_until over wait_until_helper
Branches
Unknown
Tags
Unknown