The coating could be applied on future spacecraft designed to block light from distant stars hosting exoplanets.