The difficulty is the measure of how difficult it is to find a new block compared to the easiest it can ever be. The rate is recalculated every 2,016 blocks to a value such that the previous 2,016 blocks would have been generated in exactly one fortnight (two weeks) had everyone been mining at this difficulty. This is expected yield, on average, one block every ten minutes.
Various potential attacks on the bitcoin network and its use as a payment system, real or theoretical, have been considered. The bitcoin protocol includes several features that protect it against some of those attacks, such as unauthorized spending, double spending, forging bitcoins, and tampering with the blockchain. Other attacks, such as theft of private keys, require due care by users.[13][14][15][16][17][18][19]

This bizarre process might not seem like it would need that much electricity—and in the early years, it didn’t. When he first started in 2012, Carlson was mining bitcoin on his gaming computer, and even when he built his first real dedicated mining rig, that machine used maybe 1,200 watts—about as much as a hairdryer or a microwave oven. Even with Seattle’s electricity prices, Carlson was spending around $2 per bitcoin, which was then selling for around $12. In fact, Carlson was making such a nice profit that he began to dream about running a bunch of servers and making some serious money. He wasn’t alone. Across the expanding bitcoin universe, lots of miners were thinking about scaling up, turning their basements and spare bedrooms into jury-rigged data centers. But most of these people were thinking small, like maybe 10 kilowatts, about what four normal households might use. Carlson’s idea was to leapfrog the basement phase and go right to a commercial-scale bitcoin mine that was huge: 1,000 kilowatts. “I started to have this dream, that I was posting on online forums, ‘I think I could build the first megawatt-scale mine.’”
More broadly, the region is watching uneasily as one of its biggest natural resources—a gigantic surplus of hydroelectric power—is inhaled by a sector that barely existed five years ago and which is routinely derided as the next dot-com bust, or this century’s version of the Dutch tulip craze, or, as New York Times columnist Paul Krugman put it in January, a Ponzi scheme. Indeed, even as Miehe was demonstrating his prospecting chops, bitcoin’s price was already in a swoon that would touch $5,900 and rekindle widespread doubts about the future of virtual currencies.
Volatility. This very reason many speculators are attracted to Bitcoin is the same reason many potential users are hesitant to get involved. Users that look at Bitcoin as a speculative investment option are essentially gambling on the process, and the future price of Bitcoin is largely unknown. There are estimates that Bitcoin will both be worth pennies in a few years, while some predict that a single bitcoin will be worth $500k in three years. As new investors continue to invest and the market cap grows, Bitcoin’s price could become more stable.
Keeping your Bitcoin wallet safe is essential as Bitcoin wallets represent high-value targets for hackers. Some safeguards include: encrypting the wallet with a strong password, and choosing the cold storage option i.e. storing it offline. It's also advisable to frequently back up your desktop and mobile wallets, as problems with the wallet software on your computer or mobile device could erase your holdings. 
Nor was it simply the deep pockets. At these prices, even smaller operators have been able to make real money running a few machines in home-based, under-the-radar mines. Take the 20-something Wenatchee man we’ll call “Benny”—he didn’t want to be identified—who last July bought three mining servers, set them up in his house (one in the master bedroom and two in the living room)—and began mining Ethereum, bitcoin’s closest cryptocurrency rival. As Ethereum climbed from $165 in July to nearly $1,200 in January, Benny had not only repaid his $7,000 investment but was making enough to pay his mortgage. As a side benefit, this winter, Benny’s power bill went down: The waste heat from the three churning servers kept the house at a toasty 78 degrees. “We actually have to open the windows,” he told me in January. His servers, meanwhile, pretty much run themselves—although, when he’s at work, clerking at a grocery, he monitors the machines, and the Ethereum price, on his phone. “It’s just basically free money,” Benny says. “All I have to do is wake up in the morning and make sure nothing crashed during the night.”
Bitcoin is a peer-to-peer version of electronic cash that allows payments to be sent directly from one party to another without going through a financial institution. The network timestamps transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. – Satoshi Nakamoto

The other reason is safety. Looking at 2009 alone, 32,489 blocks were mined; at the then-reward rate of 50 BTC per block, the total payout in 2009 was 1,624,500 BTC, which at today’s prices is over $900 million. One may conclude that only Satoshi and perhaps a few other people were mining through 2009, and that they possess a majority of that $900 million worth of BTC. Someone in possession of that much BTC could become a target of criminals, especially since bitcoins are less like stocks and more like cash, where the private keys needed to authorize spending could be printed out and literally kept under a mattress. While it's likely the inventor of Bitcoin would take precautions to make any extortion-induced transfers traceable, remaining anonymous is a good way for Satoshi to limit exposure.

According to the Internet Watch Foundation, a UK-based charity, bitcoin is used to purchase child pornography, and almost 200 such websites accept it as payment. Bitcoin isn't the sole way to purchase child pornography online, as Troels Oertling, head of the cybercrime unit at Europol, states, "Ukash and paysafecard... have [also] been used to pay for such material." However, the Internet Watch Foundation lists around 30 sites that exclusively accept bitcoins.[31] Some of these sites have shut down, such as a deep web crowdfunding website that aimed to fund the creation of new child porn.[47][better source needed] Furthermore, hyperlinks to child porn websites have been added to the blockchain as arbitrary data can be included when a transaction is made.[48][49]

Bitcoin has been criticized for the amount of electricity consumed by mining. As of 2015, The Economist estimated that even if all miners used modern facilities, the combined electricity consumption would be 166.7 megawatts (1.46 terawatt-hours per year).[129] At the end of 2017, the global bitcoin mining activity was estimated to consume between one and four gigawatts of electricity.[202] Politico noted that the even high-end estimates of bitcoin's total consumption levels amount to only about 6% of the total power consumed by the global banking sector, and even if bitcoin's consumption levels increased 100 fold from today's levels, bitcoin's consumption would still only amount to about 2% of global power consumption.[203]
In 2013 and 2014, the European Banking Authority[144] and the Financial Industry Regulatory Authority (FINRA), a United States self-regulatory organization,[145] warned that investing in bitcoins carries significant risks. Forbes named bitcoin the best investment of 2013.[146] In 2014, Bloomberg named bitcoin one of its worst investments of the year.[147] In 2015, bitcoin topped Bloomberg's currency tables.[148]
But not everyone is going along for the ride. Back in East Wenatchee, Miehe is giving me an impromptu tour of the epicenter of the basin’s boom. We drive out to the industrial park by the regional airport, where the Douglas County Port Authority has created a kind of mining zone. We roll past Carlson’s construction site, which is swarming with equipment and men. Not far away, we can see a cluster of maybe two dozen cargo containers that Salcido has converted into mines, with transformers and cooling systems. Across the highway, near the new, already-tapped out substation, Salcido has another crew working a much larger mine. “A year ago, none of this was here,” Miehe says. “This road wasn’t here.”
One of Bitcoin’s most appealing features is its ruthless verification process, which greatly minimizes the risk of fraud. Since Bitcoin is decentralized, volunteers—referred to as “miners”—constantly verify and update the blockchain. Once a specific amount of transactions are verified, another block is added to the blockchain and business continues per usual.

Transactions are defined using a Forth-like scripting language.[3]:ch. 5 Transactions consist of one or more inputs and one or more outputs. When a user sends bitcoins, the user designates each address and the amount of bitcoin being sent to that address in an output. To prevent double spending, each input must refer to a previous unspent output in the blockchain.[67] The use of multiple inputs corresponds to the use of multiple coins in a cash transaction. Since transactions can have multiple outputs, users can send bitcoins to multiple recipients in one transaction. As in a cash transaction, the sum of inputs (coins used to pay) can exceed the intended sum of payments. In such a case, an additional output is used, returning the change back to the payer.[67] Any input satoshis not accounted for in the transaction outputs become the transaction fee.[67]