Enzymatic photosynthesis of formate from carbon dioxide coupled with highly efficient photoelectrochemical regeneration of nicotinamide cofactors