HomePhabricator

[Cashtab] [ECPair from wif p1/3] Add local method

Description

[Cashtab] [ECPair from wif p1/3] Add local method

Summary:
T2730

Part 1 of a 3-part stacked diff to deprecate BCH.ECPair.fromWIF function

This diff adds a local method, getECPairFromWIF, and compares this method with the existing method in the signUtxosByAddress function

Test Plan:
Review new unit test and npm test
npm start, send a transaction, look for local method matches legacy method in the dev log

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Nov 25 2022, 09:38
bytesofmanPushed on Nov 25 2022, 12:43
Reviewer
Restricted Project
Differential Revision
D12616: [Cashtab] [ECPair from wif p1/3] Add local method
Parents
rABC679d9d8d9fed: [Cashtab] [BCH deprecation] [TxBuilder] Pt 8/8 - Deprecate remaining BCH.
Branches
Unknown
Tags
Unknown
Reverted By
D12630: Revert "[Cashtab] [ECPair from wif p1/3] Add local method"