HomePhabricator

[ecash-coinselect] Update getInputUtxos to support N x p2pkh outputs

Description

[ecash-coinselect] Update getInputUtxos to support N x p2pkh outputs

Summary:
T3225

As per feedback from D14417, this diff forms part of a series of diffs to incrementally implement the key concepts from D14417:

1. Get a working API for N x p2pkh outputs (this diff)
2. Extend with N x op_return
3. Extend with N x slp outputs
4. Extend with N x p2sh outputs

Unlike D14417 however, this API is more aligned with the existing coinselect module in passing an object array of outputs rather than using a singular output ammount.

Note: the scriptType gating logic between p2pkh and p2sh will be added when we get to the p2sh diff.

Test Plan: npm test

Reviewers: Fabien, bytesofman, #bitcoin_abc

Reviewed By: Fabien, bytesofman, #bitcoin_abc

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

Details

Provenance
emackAuthored on Sep 13 2023, 10:39
emackPushed on Sep 14 2023, 22:33
Reviewer
Restricted Project
Differential Revision
D14475: [ecash-coinselect] Update getInputUtxos to support N x p2pkh outputs
Parents
rABCfa3a71769bb2: [Cashtab] Check if user has browser extension installed
Branches
Unknown
Tags
Unknown