What you describe is how fedimints / chaumian mints work.
it is not how current custodial wallets work today, but i would hope that all custodial wallets become chaumian mints in the future.