Page MenuHomePhabricator

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

Authored by bytesofman on Jan 31 2023, 00:28.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
alias-node-app
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21898
Build 43431: Build Diff
Build 43430: arc lint + arc unit

Event Timeline

Add unit test for outputScriptToAddress failure cases

This revision is now accepted and ready to land.Feb 24 2023, 00:46