As mentioned in #11070, I wanted to be able to use HD addresses in my legacy wallet.
Is a change along these lines acceptable? What needs changing?
I’m aware it’s missing tests. I’ll add those if there’s a chance this could be merged. If not, my wallet now uses HD addresses, so that’s good enough for me.