Does single-wire wiring work if you want to use a dynamo plus battery-powered lamps?

I'd like to power my bike with a dynamo. However, I also want the lights to illuminate when I stop (eg, at a red light). For this, I need lights with a battery that can be continuously recharged by the dynamo. My question is whether a two-wire wiring system (for positive and negative) is absolutely…