Understanding Hardware Wallets: A Comprehensive Guide