The technology could have far-reaching benefits for the future of our species both on Earth and in outer space.