Treasury Secretary Janet Yellen has recommended that the U.S. explore the adoption of a digital dollar.