The Securities and Exchange Commission has notified the cryptocurrency exchange Coinbase that it plans to bring an enforcement action against the company—a move that sparked an open letter loaded with frustration and exasperation from its chief legal officer, Paul Grewal.