> As part of an effort to split rpcwallet as per #23622, this moves rpcdump.cpp into the new wallet/rpc directory as well as moving backup and encryption RPCs out of rpcwallet.
This is a backport of core#23647
Depends on D12777
Note the differences introduced by D45.In the spirit of that diff, I added a `Span<const CRPCCommand> GetWalletEncryptRPCCommands()` function in encrypt.cpp rather than using forward declarations in rpcwallet.cpp.