HomePhabricator

[tg bot] port outputScriptToAddress function

Description

[tg bot] port outputScriptToAddress function

Summary:
T2972

Port outputScriptToAddress function from alias-server to enable parsing txs for send and receive addresses. No unit tests are added as the existing bot output parsing unit tests will cover this sufficiently once tg msgs include this data (and bc unit tests exist in alias-server, so it wouldn't make sense to just duplicate them).

If I start needing to do this with other util functions, would eventually make sense to put them all together in a tree-shakeable library. Not yet though.

Test Plan: Review function and confirm it's copy pasted from alias-server

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Mar 16 2023, 22:21
bytesofmanPushed on Mar 20 2023, 17:12
Reviewer
Restricted Project
Differential Revision
D13362: [tg bot] port outputScriptToAddress function
Parents
rABC464b30bdf7ec: Bump version to 0.27.1
Branches
Unknown
Tags
Unknown