HomePhabricator

[alias-server] [p6] outputScriptToAddress function and unit tests

Description

[alias-server] [p6] outputScriptToAddress function and unit tests

Summary:
T2922

Depends on D13078

Add a function to get P2SH or P2PKH ecash: address from an outputScript. Add unit tests.

The next diff in this stack will implement this function in getAliases and add unit tests there.

Test Plan:
Review function and unit tests
npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Jan 31 2023, 00:27
bytesofmanPushed on Feb 28 2023, 22:45
Reviewer
Restricted Project
Differential Revision
D13079: [alias-server] [p6] outputScriptToAddress function and unit tests
Parents
rABCe0b928a3face: [alias-server] [p5] Commenced getAliases function
Branches
Unknown
Tags
Unknown