This will interfere with #5993. if this makes sense (conceptual), i’ll rebase this after merging of @sipa’s #5993 or @jtimon’s #4793.
Next steps would be to add a argument pubkeyhash for generate to completely decouple.
generate could check over CMainSignals if a registered “device” can provide a pubkey in case of no given key over the rpc argument.
