HomePhabricator

[Cashtab] Create and test new wallet creation and validation functions

Description

[Cashtab] Create and test new wallet creation and validation functions

Summary:
T3445

Cashtab's wallet creation needs to be cleaned up before we can get wallet handling into the new standardized state and db management.

Duplicate existing functionality of Cashtab wallet creation engines in a function outside of the useWallet hook. Create a unified isValidCashtabWallet function that will replace isLegacyMigrationRequired and isValidStoredWallet functions.

Create new createCashtabWallet function in wallet/ that matches current Cashtab behavior. Add an integration test to confirm this.

None of the created functions are implemented in this diff.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Mar 1 2024, 21:09
bytesofmanPushed on Mar 2 2024, 13:33
Reviewer
Restricted Project
Differential Revision
D15604: [Cashtab] Create and test new wallet creation and validation functions
Parents
rABC413363a24d14: [Cashtab] Remove references to legacy ticker
Branches
Unknown
Tags
Unknown