Digital Currencies: Principles, Trends, Opportunities, and Risks