HomePhabricator

[Cashtab] Extend alias validation to include any input

Description

[Cashtab] Extend alias validation to include any input

Summary: Function was created to validate user input, which we can safely assume is always a string. However, we will also want to use this function to validate aliases for creating alias registration txs. In this case, the dev "should" always pass a string. But we can't really be sure without asserting it.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
bytesofmanAuthored on Dec 21 2023, 00:05
bytesofmanPushed on Dec 21 2023, 17:33
Reviewer
Restricted Project
Differential Revision
D15022: [Cashtab] Extend alias validation to include any input
Parents
rABCc306f3fd417f: [Cashtab] Move extension-specific functions to conditionally loaded component
Branches
Unknown
Tags
Unknown