HomePhabricator

[Cashtab] Add new helper function to generate to-spec targetOutputs for alias…

Description

[Cashtab] Add new helper function to generate to-spec targetOutputs for alias registration txs

Summary:
In order to fully deprecate legacy transaction building functions, need to also use the new sendXec function to broadcast alias registrations.

Currently this is done with an ad hoc custom function, registerNewAlias, in src/utils/transactions.js.

Follow existing logic for creating an OP_RETURN output. Implementation to broadcast alias txs will be in a separate diff.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
bytesofmanAuthored on Dec 20 2023, 23:58
bytesofmanPushed on Dec 21 2023, 17:40
Reviewer
Restricted Project
Differential Revision
D15021: [Cashtab] Add new helper function to generate to-spec targetOutputs for alias registration txs
Parents
rABCf4de892f684e: [Cashtab] Extend alias validation to include any input
Branches
Unknown
Tags
Unknown