Bitcoin is a peer-to-peer electronic payments system and the first cryptocurrency—that is, a digital medium of exchange that relies on cryptography.