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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Add unit test for outputScriptToAddress failure cases

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