HomePhabricator

[Cashtab] Support parsing p2sh addresses in tx history

Description

[Cashtab] Support parsing p2sh addresses in tx history

Summary:
T2865 and pre-req for T2945

Add new function outputScriptToAddress that converts a given outputScript to the correct address type.

Note: a later diff (not stack) will add P2SH support to the hash160ToAddress function.

Test Plan:
grep -r originatingHash160 src/ to confirm its omission only impacted unit tests and not any app functionality
npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Feb 24 2023, 23:57
bytesofmanPushed on Feb 27 2023, 00:21
Reviewer
Restricted Project
Differential Revision
D13173: [Cashtab] Support parsing p2sh addresses in tx history
Parents
rABCe74e9572cd5f: [Cashtab] [Alias] pt 12 - Upgrade tx history to recognize alias registration txs
Branches
Unknown
Tags
Unknown