Understanding Cryptocurrency Mining: Basics, Hardware, and How It Works