HomePhabricator

[chronik] add scripthash option to the various script endpoints

Description

[chronik] add scripthash option to the various script endpoints

Summary:
After this diff, all the existing script endpoints have a new script_type=scripthash option, except for the utxo scripthash endpoint will be dealt with in a separate diff, as it requires decompression of the script which is not trivial (decompressing p2pk scripts may require secp256k1)

A user can now fetch a script's history and utxo's by querying it's sha256 hash.

Depends on D16827

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, tobias_ruck

Reviewed By: #bitcoin_abc, tobias_ruck

Subscribers: Fabien, tobias_ruck

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

Details

Provenance
PiRKAuthored on Sat, Nov 2, 19:30
PiRKPushed on Sat, Nov 2, 22:43
Reviewer
Restricted Project
Differential Revision
D16937: [chronik] add scripthash option to the various script endpoints
Parents
rABC7a59b64e4ccc: [new lokad] Add spec for onchain trollbox for tokens
Branches
Unknown
Tags
Unknown