How cryptocurrency, once a niche technology, grew into a huge market with murky oversight, political entanglements, illicit activity, and systemic risk.