i understand the basics of Bitcoin (purely digital virtual coins with no middle man for exchange) but can someone explain some of the details like why only 21M cap and what mining vs buying entails (eg can anyone with right hardware mine?). Also what roll do the exchanges play and is there compatibility between different currencies on the Bitcoin protocol? Would love a simple primer on some of the nuances.
21M was built-in to the specification. I don't know the entirety of the reason, but presumably to help prevent decreasing the value of existing bitcoins for all time. (If you kept minting them, there'd always be new ones devaluing existing ones, like how the US gov't does with dollars).<p>Buying means you buy already-minted bitcoins. You can buy them privately or on exchanges. Then they're yours. The exchanges' role is to facilitate trading between users, and they operate at a profit (they charge you a % to buy). Basically, it'd be hard to sell your bitcoin if you didn't have exchanges. You'd be posting on craigslist or something. And people would be scamming you for the money. Stuff like that.<p>Anyone can mine on virtually any hardware, however due to competition, it's hard to mine profitably. You have to have specialty equipment that is both very good and very efficient (power-wise). You can mine on your own or as part of a pool, but you essentially have to 'get lucky' on your own, and it's very unlikely that'll happen. My advice is to not think about mining until you've done a lot of research and for some reason decide you want to do it. It's a bad idea for almost every non-expert at this point.
Mining requires expending computing power to solve a puzzle. The puzzle is to get the hash of a bunch of transactions below a certain number. The first to solve it receives a number of bitcoins.<p>Mining is based on a network agreed difficulty level. So as more miners participate and get better hardware the difficulty of the puzzle increases (by lowering the bar).<p>Currently it requires dedicated custom-built hardware (built solely for mining bitcoins) to make any kind of money mining Bitcoin. Even then you have little chance of winning the reward - so you normally would join a mining pool to pool computing power and share rewards with other miners.<p>The mining acts as a proof of work. It helps solves the problem that in a peer-peer system you can't trust anyone, because in a democratic system an attacker can run up any number of nodes they like at little cost. However with mining this is not possible, such nodes will not be trusted.<p>This is a very simplified view of things and there are more complexities but it gives you an idea.
To add to this question, I'd love a simple primer on how the blockchain works. I understand that mining Bitcoin is the process of bruteforcing a hash function which is derived from a previous part of the blockchain. To transfer ownership / spend Bitcoin I simply have to send this string to somebody. But how does this work with Bitcoin being de-centralised? What if two or more people mine the same Bitcoin (succeed in bruteforcing the hash function) at the same time. How do you decide who is the real owner with no central authority to confirm ownership?