Bitcoin is a digital currency that allows for anonymous and instant peer-to-peer payments through a shared public ledger called a blockchain. Bitcoins are created through a process called mining, where computers on the Bitcoin network compete to solve complex mathematical problems and the first to solve it is awarded new bitcoins. There will ultimately only be 21 million bitcoins created. Bitcoins can be exchanged for real money through computer programs and used to purchase goods and services from retailers accepting bitcoin, providing benefits like lower transaction fees compared to credit cards. Government and regulatory bodies have differing views on bitcoin and digital currencies.