To cut through some of the confusion surrounding bitcoin, we need to separate it into two components. On the one hand, you have bitcoin-the-token, a snippet of code that represents ownership of a digital concept – sort of like a virtual IOU. On the other hand, you have bitcoin-the-protocol, a distributed network that maintains a ledger of balances of bitcoin-the-token. Both are referred to as "bitcoin."
How do they find this number? By guessing at random. The hash function makes it impossible to predict what the output will be. So, miners guess the mystery number and apply the hash function to the combination of that guessed number and the data in the block. The resulting hash has to start with a pre-established number of zeroes. There's no way of knowing which number will work, because two consecutive integers will give wildly varying results. What's more, there may be several nonces that produce the desired result, or there may be none (in which case the miners keep trying, but with a different block configuration).

Several news outlets have asserted that the popularity of bitcoins hinges on the ability to use them to purchase illegal goods.[128][224] Nobel-prize winning economist Joseph Stiglitz says that bitcoin's anonymity encourages money laundering and other crimes, "If you open up a hole like bitcoin, then all the nefarious activity will go through that hole, and no government can allow that." He's also said that if "you regulate it so you couldn’t engage in money laundering and all these other [crimes], there will be no demand for Bitcoin. By regulating the abuses, you are going to regulate it out of existence. It exists because of the abuses."[225][226]

Bitcoin is the first cryptocurrency, a concept that was discussed in the late 90s. The first Bitcoin specification and proof of concept was published in 2009 in a cryptography mailing list. The concept was presented by a person or group known as Satoshi Nakamoto. The real identity of Nakamoto has been a mystery since that time, with various theories on who the individual or group may be.
A hard fork of a cryptocurrency is a change to the protocol that makes previously invalid blocks/transactions valid (or vice-versa). This requires all the nodes to upgrade to the latest version of the protocol software. In other words, a hard fork is a permanent divergence from the previous version of the blockchain, and nodes running previous versions will no longer be accepted by the newest version. This, in turn, creates a fork in the blockchain: one path follows the new, upgraded blockchain, and the other path continues along the old path.

The proof-of-work system, alongside the chaining of blocks, makes modifications of the blockchain extremely hard, as an attacker must modify all subsequent blocks in order for the modifications of one block to be accepted.[81] As new blocks are mined all the time, the difficulty of modifying a block increases as time passes and the number of subsequent blocks (also called confirmations of the given block) increases.[64]

What would it take for a competitor to nudge into the fray? For starters, it has to be willing to put a lot of money on the line. Several million dollars can go into chip design before a single prototype is produced. “It takes the willingness to pull the trigger and pay the money,” says Hanke. But he’s confident it will happen. “People will see it’s profitable, and they will jump in.”
Early Bitcoin client versions allowed users to use their CPUs to mine. The advent of GPU mining made CPU mining financially unwise as the hashrate of the network grew to such a degree that the amount of bitcoins produced by CPU mining became lower than the cost of power to operate a CPU. The option was therefore removed from the core Bitcoin client's user interface.

The best mining sites were the old fruit warehouses—the basin is as famous for its apples as for its megawatts—but those got snapped up early. So Miehe, a tall, gregarious 38-year-old who would go on to set up a string of mines here, learned to look for less obvious solutions. He would roam the side streets and back roads, scanning for defunct businesses that might have once used a lot of power. An old machine shop, say. A closed-down convenience store. Or this: Miehe slows the Land Rover and points to a shuttered carwash sitting forlornly next to a Taco Bell. It has the space, he says. And with the water pumps and heaters, “there’s probably a ton of power distributed not very far from here,” Miehe tells me. “That could be a bitcoin mine.”
Bloomberg reported that the largest 17 crypto merchant-processing services handled $69 million in June 2018, down from $411 million in September 2017. Bitcoin is "not actually usable" for retail transactions because of high costs and the inability to process chargebacks, according to Nicholas Weaver, a researcher quoted by Bloomberg. High price volatility and transaction fees make paying for small retail purchases with bitcoin impractical, according to economist Kim Grauer. However, bitcoin continues to be used for large-item purchases on sites such as, and for cross-border payments to freelancers and other vendors.[136]
In the earliest days of Bitcoin, mining was done with CPUs from normal desktop computers.  Graphics cards, or graphics processing units (GPUs), are more effective at mining than CPUs and as Bitcoin gained popularity, GPUs became dominant.  Eventually, hardware known as an ASIC, which stands for Application-Specific Integrated Circuit, was designed specifically for mining bitcoin.  The first ones were released in 2013 and have been improved upon since, with more efficient designs coming to market.  Mining is competitive and today can only be done profitably with the latest ASICs.  When using CPUs, GPUs, or even the older ASICs, the cost of energy consumption is greater than the revenue generated.
The place was relatively easy to find. Less than three hours east of Seattle, on the other side of the Cascade Mountains, you could buy electricity for around 2.5 cents per kilowatt, which was a quarter of Seattle’s rate and around a fifth of the national average. Carlson’s dream began to fall into place. He found an engineer in Poland who had just developed a much faster, more energy-efficient server, and whom he persuaded to back Carlson’s new venture, then called Mega-BigPower. In late 2012, Carlson found some empty retail space in the city of Wenatchee, just a few blocks from the Columbia River, and began to experiment with configurations of servers and cooling systems until he found something he could scale up into the biggest bitcoin mine in the world. The boom here had officially begun.
Full clients verify transactions directly by downloading a full copy of the blockchain (over 150 GB As of January 2018).[90] They are the most secure and reliable way of using the network, as trust in external parties is not required. Full clients check the validity of mined blocks, preventing them from transacting on a chain that breaks or alters network rules.[91] Because of its size and complexity, downloading and verifying the entire blockchain is not suitable for all computing devices.

In addition to being the means of generating new bitcoin, bitcoin mining creates the blockchain that verifies bitcoin transactions. The block reward is gleaned by placing a new block on the blockchain, which acts as an advancing public ledger of verified transaction. This is an essential function for bitcoin's operation as it enables the currency to be safely and predictably created without the centralized regulation in the form of a bank or federal government. Blocks must to be a validated by a proof-of-work (Bitcoin uses Hashcash), which can only be obtained by expending a great deal of processing power. Once a block is obtained a message is broadcast to the mining network and verified by all recipients. 
But Bolz, a longtime critic of cryptocurrency, says local concerns go beyond economics: Many residents he hears from aren’t keen to see so much public power sold to an industry whose chief product is, in their minds, of value only to speculators and criminals. “I mean, this is a conservative community, and they’re like, ‘What the hell’s wrong with dollars?’” says Bolz. “If you just went out and did a poll of Chelan County, and asked people, ‘Do you want us to be involved in the bitcoin industry, they would say not only ‘No,’ but ‘Hell no.’”
In January 2009, the bitcoin network was created when Nakamoto mined the first block of the chain, known as the genesis block.[18][19] Embedded in the coinbase of this block was the following text: "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks."[10] This note has been interpreted as both a timestamp and a comment on the instability caused by fractional-reserve banking.[20]:18