为广大币圈朋友提供币圈基础入门专业知识!
当前位置首页 > 比特币基础> 正文

区块链开发怎么挖矿的,区块链开发怎么挖矿赚钱

发布时间:2023-12-15-13:07:00 来源:网络 比特币基础 区块   挖矿

区块链开发怎么挖矿的,区块链开发怎么挖矿赚钱


请查看相关英文文档

㈠ What does blockchain mining mean?

In 2009, Satoshi Nakamoto invented Bitcoin and set a limit of 21 million Bitcoins. In the network, by participating in the production of blocks and providing proof of work (PoW), you can obtain rewards from the Bitcoin network. This process is mining.

The concept of "mining" is taken from the existing concepts in our real economic life, such as gold mining, silver mining, etc. Because minerals are valuable, people are driven to work hard. dig.

Another important point of Bitcoin mining is that the miners participating in mining recognize the value of Bitcoin, and there are people in the market who are willing to spend money on the Bitcoins they mine. So, Bitcoin mining makes sense.

(1) How to mine in blockchain development Extended reading

Bitcoin Currency Characteristics

1. Decentralization

Bitcoin is the first distributed virtual currency. The entire network is composed of users and there is no central bank. Decentralization is the guarantee of Bitcoin’s security and freedom.

2. Circulation around the world

Bitcoin can be managed on any computer connected to the Internet. Anyone can mine, buy, sell or receive Bitcoin regardless of location.

3. Exclusive ownership

Manipulating Bitcoin requires a private key, which can be isolated and stored in any storage medium. No one can obtain it except the user himself.

4. Low transaction fees

Bitcoins can be remitted for free, but a transaction fee of about 1 bit cent will ultimately be charged for each transaction to ensure faster transaction execution.

5. No hidden costs

As a means of payment from A to B, Bitcoin does not have cumbersome limits and procedures. You can make the payment by knowing the other party's Bitcoin address.

6. Cross-platform mining

Users can explore the computing capabilities of different hardware on many platforms.

㈡ How to mine Ethereum

Like all blockchain technologies, Ethereum uses an incentive-based security model. Any node claiming to be a miner in the network can attempt to create and block validation zones. Many miners around the world are creating and validating blocks simultaneously.

1. Basic principles of Ethereum mining

1. Like all blockchain technologies, Ethereum uses an incentive-based security model. Any node claiming to be a miner in the network can attempt to create and block validation zones. Many miners around the world are creating and validating blocks simultaneously. Each miner provides "proof" of the mathematical mechanism by sending a block to the blockchain. This test is like a guarantee: if this test exists, this block must be valid.

2. For blocks to be added to the main chain, miners must provide this "test" faster than other miners. Mathematical machines provided by minersThe verification process of each block is called a work test. Once confirmed, miners within the new block will receive certain rewards. What is a reward? Ethereum uses an intrinsic digital token - ether - as rewards. Every time a miner attempts a new block, a new Ethereum is generated and given to the miner.

Second, the difference between Ethereum and Bitcoin

1. Similar points: Bitcoin and Ethereum are both successful blockchain technology applications. People know blockchain technology through Bitcoin. With Ethereum, people realized that blockchains could be independent. All are based on blockchain, where transactions are publicly recorded, currency and asset transactions are more convenient and concessionary, and cumbersome middlemen are eliminated.

2. Difference: Bitcoin is a decentralized peer-to-peer digital payment system, similar to a global clearing bank. And this bank is not a member of a centralized organization, it has no CEO, it has no administrators, only the basic principles and consensus of the code. Transfer value from peers and no other third parties or fiduciaries.

3. The total amount of Bitcoin is 21 million. For every 21W block generated, the number of Bitcoins generated by the block is reduced by half, with a block generated every 10 minutes. Generally speaking, it is a deflationary electronic currency. Ethereum is defined as a decentralized peer-to-peer virtual machine, which can be understood as a platform that uses tokens to perform value distribution and attract all parties to build an ecosystem. There is no upper limit on the total amount of Ethereum.

3. Smart contracts and protocols ERC20

1. Smart contracts are first and foremost contracts, which stipulate the parties involved in transaction execution in the form of code and stipulate certain activation conditions for the execution of the contract. . Once these conditions are activated, the agreed-upon transaction, usually a number of transactions, is automatically executed. These transactions will be mined by miners and eventually merged into the public chain, which is undeniable and irreversible.

2. Smart contracts in Ethereum are basically open source on the Internet. Any user can see the definition and activation time of the relevant interface. Without a unified standard, many smart contracts will be difficult for everyone to understand. What exactly does this smart contract do? At this time, the ERC20 protocol has been launched.

3. Developers can easily understand the role of relevant interfaces by viewing other smart contracts and then calling their own contracts. Standardization is very beneficial, it means that these assets can be used across different platforms and projects, otherwise they can only be used in specific situations.

4. Why Ethereum can be used to send coins

Because of the existence of smart contracts, the contract can be used to arrange currency fundraising and finally deposit it into the account of the user, and because 0x7D0 is used The same standard ERC20 as direct exchange 0x7D0 and FAD supports the Ethereum ecosystem which will be easier.

5. Ethereum trade restrictions

1. For each transaction, the initiator of the transaction must set the Gas limit and Gas price of the transaction. Different operations willGenerate different Gas, Gas cost. When the miner is finished, the miner will stop running and the used Gas will be rewarded to the miner.

2. If some gas still exists, if the user declares that the limit value is too low or the intermediate account Eth is not enough to cover the Gas consumption, it will be returned to the initiator of the transaction or the creator of the smart contract, due to If there is insufficient Gas, the agreement will be cancelled, and the Gas used for calculation will not be returned to the account.

6. The network computing power is the total computing power of all Ethereum mining machines. The current mining cluster calculates the difficulty of the current block based on this value.

7. Ethereum Extraction Difficulty

The difficulty of the block is used to improve the consistency of the block verification area. The difficulty of the Genesis block is 131,072, and there is a special formula used to calculate the difficulty of each subsequent block. If a block is checked faster than the previous block, the Ethereum protocol will increase the difficulty of the block. By adjusting the difficulty of a block, you can adjust the time it takes to verify a block, known as the burst speed. Check that the time adjusts itself to continue generating new blocks at a constant rate.

8. The relationship between the computing power of a single card and mining income

The greater the computing power of a single card, the more checks can be performed, and the probability of obtaining formula results Yes, the greater the situation, the greater the number of shares offered and the greater the revenue from mining if mine groups are used.

㈢How Ethereum is mined

Ethereum’s tokens are generated through the mining process, and the mining rate per block is 5 Ethereum coins. The mining process for Ethereum is almost the same as for Bitcoin, for each transaction, miners use computers to run the block's unique header metadata through a hash function, guessing the answer repeatedly and quickly until one of them wins.

Many new users believe that the only purpose of mining is to generate ether in a way that does not require a central issuer (see our guide "What is Ether?"). This is real. Ethereum tokens are generated through the mining process, with a mining rate of 5 Ethereum per block. But mining has a role that is at least as important. Typically, banks are responsible for keeping accurate records of transactions. They ensure that funds are not created out of thin air and that users do not cheat and spend their money multiple times. However, blockchain introduces a completely new way of record-keeping, where the entire network, rather than intermediaries, verifies transactions and adds them to a public ledger.

Ethereum Mining

Although a “trustless” or “trust-minimized” currency system is the goal, there are still people who need to keep financial records secure and ensure no one cheats. Mining is one of the innovations that makes decentralized records possible. Miners reach consensus on transaction history in terms of preventing fraud (especially double spending of ether) – an interesting problem that decentralized currencies have not solved before working blockchains. While Ethereum is working on other ways toThere is consensus on the validity of transactions, but mining currently holds the platform together.

How Mining Works
Today, the mining process for Ethereum is almost the same as for Bitcoin. For each transaction, miners can use computers to guess the answer repeatedly and quickly until one of them wins. More specifically, the miner will run the block's unique header metadata (including timestamp and software version) through a hash function (which will return a fixed-length, scrambled string of numbers and letters that will appear random) , only changes the 'nonce value', which affects the resulting hash value.

If a miner finds a hash that matches the current target, the miner is awarded ether and broadcasts the block throughout the network for each node to verify and add to their own copy of the ledger. If Miner B finds the hash, Miner A will stop working on the current block and repeat the process for the next block. It is difficult for miners to cheat in this game. There is no way to fake this work and come up with the correct answers to the puzzles. That's why the puzzle-solving method is called "proof of work."

On the other hand, there is little time for others to verify that the hash value is correct, which is exactly what each node does. Approximately every 12-15 seconds, a miner discovers a stone. If the miner starts solving the puzzle faster or slower than that, the algorithm automatically rescales the difficulty of the problem so that the miner bounces back to a solution time of about 12 seconds.

Miners earn this ether randomly, and their profitability depends on luck and the amount of computing power they invest. The specific proof-of-work algorithm used by Ethereum is called ‘ethash’ and is designed to require more memory, making it difficult to mine using expensive ASICs – special mining chips that are now the only profitable way to mine Bitcoin.

In a sense, ethash may have succeeded in achieving this, since dedicated ASICs are not available for Ethereum (at least not yet). Additionally, since Ethereum aims to move from proof-of-work mining to “proof-of-stake” (which we’ll discuss below), buying an ASIC may not be a wise choice as it may not prove useful long term.

Moving to Proof-of-Stake
Ethereum may never need miners, though. Developers plan to abandon proof-of-work, the algorithm currently used by the network to determine which transactions are valid and protect them from tampering, in favor of proof-of-stake, where the network is secured by token owners. If and when the algorithm is launched, proof-of-stake could be a means to achieve distributed consensus that uses fewer resources.

㈣ What is blockchain mining? How is blockchain mining?

What is blockchain mining? How is blockchain mining?
In blockchain Before the rise of coal mines, miners specifically referred to workers who dug coal, and the collective impression was that they were covered in coal dust., except for their clothes, they are all dark-skinned men. After the birth of the blockchain, miner is no longer just the abbreviation of coal miner, but has a new meaning: a person engaged in virtual currency mining.
For those who have not participated in mining, it may be difficult to understand blockchain mining, so today we will start with the most basic question: What is blockchain mining? How to mine blockchain?
What is blockchain mining?
There are two types of mining in the new era, the first is to mine Bitcoin. After each transaction occurs, it is not completed. The transaction data must be written into the database before it is established and the other party can actually receive the money. First, all transaction data will be sent to the miners, who are responsible for writing these transactions into the blockchain and completing mining to obtain profits.
The second type is to dig up copycats. Various “altcoins” such as Zcoin, Monero, Ethereum, Litecoin, and BitShares. After assembling a mining machine, connect to the designated mining pool and start computing at full load according to a specific algorithm. After completing one calculation cycle, you can obtain "one" virtual currency. Then put "this" currency on the online trading platform and cash out.

How to mine blockchain?
In the beginning, Bitcoin could be mined using a computer CPU. The founder of Bitcoin, Satoshi Nakamoto, used his computer CPU to mine it. The world’s first genesis block. However, the era of CPU mining has long passed, and now Bitcoin mining is the era of ASIC mining and large-scale cluster mining.
If you want to become a miner, it is actually relatively simple. You can just buy a special mining equipment and start mining. Mining does not require you to do it yourself. The computer actually performs specific calculations. For miners, it is enough to ensure the power supply and network connection of the mining machine.
Can blockchain mining still make money?
In the beginning, some people did get rich through blockchain mining, but as the number of miners increased, there was also great competition among miners. , profit margins are being compressed smaller and smaller. In addition, a machine that mines Bitcoin costs tens of thousands of dollars, and cannot dig out a single coin in a year. The input cost is high and the output is low. If the market conditions are unfavorable again, miners will Basically losing money.

Therefore, in addition to mining, more and more investors choose to invest in foreign exchange to make money. Unlike mining, the investment cost of foreign exchange is extremely low. For example, Juhui ggfx can be traded with a minimum of 8 US dollars. With long and short two-way operations, investors can make profits regardless of whether the market is rising or falling. It is also very convenient for people who are busy and want to invest and make money. If you download Juhui ggfx’s MT4 trading software to your mobile phone, you can learn about the latest market conditions and participate in transactions through your mobile phone at any time, and complete orders as quickly as seconds. It is simple and fast. , the efficiency of making money is extremely high, so in addition to mining, this is also a good way to get rich.
Mining is not an easy task. Mining consumes resources very much, because the calculation difficulty of generating virtual currency is very high and it is constantly changing. Every generation around the worldAfter reaching 2016 data blocks, the difficulty of mining virtual currency will increase once, so ordinary people should consider all aspects before joining the ranks of miners.

5 What is the principle of Bitcoin and blockchain and what is mining (3)


Continuing from the previous issue "Bitcoin and What is the principle of blockchain? What's going on with mining? (2)》

Before I start, let me share with you an interesting thing I saw yesterday.


(On the gate of a community in Shenyang, 66 locks are hung one after another, and it is known as the "cheapest access control system".

It turns out that there were always foreign vehicles coming in and out of this community, so the owners spontaneously built this "access control system". Each lock has a number, and the car owners in the community only need to take the key to open the corresponding lock to open the door. Residents said that this This method saves money and effort, and is especially easy to use.)



This is equivalent to the technical materialization of blockchain :


Specific features: Decentralization (no need for unified management); traceability (whoever has the lock can find it); non-tamperability (one person has one lock) One key), this is the most thorough understanding I have ever had of blockchain.


"Let's stop talking and get back to the story." We said before that there is a difficulty setting of N bits. How to determine this N bit? Obviously, the previous 0, The more there are, the more difficult the problem becomes.

Why is it difficult to count more? Let's imagine that in this problem you can't back-calculate, you can only try randomly one by one. The probability of 0 appearing and the probability of 1 appearing on each digit are both 50%, so what is the probability of the first 0? The probability is 1/2. If the second digit is 0, what is the probability? The probability is also 1/2, the third digit is 0, the probability is also 1/2, until the last digit is 0, the probability is also 1/2, so when multiplied, the result is the nth power of (1/2).

Obviously, the larger n is, the higher the difficulty is, and the smaller n is, the smaller the difficulty is.



When Satoshi Nakamoto was designing it, he ensured that he would produce a block and package it every ten minutes. With thousands of pieces of information, how can we guarantee it? That is to say, adjust the difficulty of this n?


Let’s take an example. For example, there are 10,000 mining machines in the world. The computer power of each of these 10,000 mining machines is 14 T per second. , that is, 14T hash operations can be calculated per minute. So what is 14T?


First of all, 1T is 10 to the 12th power, so this number is (1.4*10) to the 13th power per second. This is calculated by each mining machine in one second, and then multiplied by 10 to the 4th power, this It means there are 10,000 mining machines, and then you have to multiply it by 10 minutes, which is about 600 seconds. This number is about (8*10) to the 19th power, which means that you can perform so many operations in ten minutes.



Then let’s think about it again. If the probability is (1/2) raised to the nth power, what do you think? If you come up with this block, the number of calculations you need to make is 2 to the nth power. If your probability is 1/64, you will have to calculate this block 64 times on average.

By the same token, if you have calculated it so many times, then it is roughly equal to the power of 2. We can find through calculation that if n is equal to 66, the probability of your appearance at this time can be calculated. It is the 66th power of (1/2), and then the average number of times you need to calculate is 266, which is about the 19th power of (8*10), so in this case the miner will set the difficulty to n equal to 66, so the first person who can purchase and calculate that the first 66 bits are all 0 will successfully package the block and successfully mine the mine.

You have no way to make your luck better. All you can do is buy more mining machines and mine as hard as you can, so that you may get this Bitcoin.


This is probably the principle.

㈥ What conditions are required for mining in blockchain technology

Miners need to configure mining machines. There are two ways to configure mining machines:
The first method It is a cutting-edge mining machine equipped to gain performance advantages in guessing games. The advantages of new mining machines are high computing power, low power consumption, high gross profit, and low shutdown price; the disadvantage of new mining machines is high fixed costs and the need to fill in the pits of this cycle first. Novice mining machines are suitable for new mining machines. The second way is to configure second-hand old-model mining machines at a low price. The advantage of old-model mining machines is that they are low-priced and can easily reach the return line; the disadvantages of old-model mining machines are that their performance is relatively poor and their life cycle is short. Veterans often play with older models of mining rigs.

㈦ How to make money by investing in blockchain mining

"Mining" in the blockchain is the accounting process, and you can purchase computing power equipment, that is, " Mining machine" performs "mining" to obtain accounting rewards.
However, as accounting competition becomes increasingly fierce and the representative equity mechanism (DPOS) gradually emerges, ordinary computing equipment can no longer meet mining needs.
Purchasing more professional mining machines or joining a large mining pool has become a necessary condition for mining. Therefore, the threshold for mining is slightly higher.
Where there is demand, there is a market.
As the market demand for professional mining machines gradually increases, more and more chip companies are increasing investment in chip research and development and starting research and development.Mining machines with higher computing power and lower energy consumption can make profits.
When currency prices rose sharply in 2017, the supply of such mining machines exceeded demand.
As the computing power level of the entire network is getting higher and higher, it is difficult for a single mining machine to seize the accounting rights and obtain accounting rewards. Therefore, the method of merging a small amount of computing power and joint operation has emerged to improve the accounting efficiency. Competitiveness.
Websites built in this way are called "mining pools".
The profit model of mining pools is to charge handling fees. The more people participate in the mining pool, the higher the handling fee collection ratio, and the higher the income of the mining pool company.
Blockchain is the core supporting technology of the digital cryptocurrency system represented by Bitcoin. The core advantage of blockchain technology is decentralization. It can realize point-to-point transactions based on decentralized credit in a distributed system where nodes do not need to trust each other by using data encryption, timestamps, distributed consensus and economic incentives. Coordination and collaboration thus provide solutions to the common problems of high cost, low efficiency and insecure data storage in centralized institutions.
The application fields of blockchain include digital currency, certificates, finance, anti-counterfeiting and traceability, privacy protection, supply chain, entertainment, etc. With the popularity of blockchain and Bitcoin, many related top domain names have been registered. , which has had a relatively large impact on the domain name industry.

㈧ How does blockchain mining make money

The principle of making money from mining: PoW and mining.

In the beginning, Bitcoin could be mined using graphics cards, but in 2013, it was no longer possible to mine Bitcoin BTC using general-purpose computing programs for graphics cards. Bitcoins are now all mined using ASIC mining machines. ".

Similarly, the launch of Litecoin ASIC mining machines in 2014 also ended the history of Litecoin mining using graphics cards. The current digital currencies that graphics cards can "mine" are Ethereum ETH, Ethereum Classic ETC, and Zcash Zerocoin ZEC.

Graphics card "mining" is not a profitable business. In fact, the earlier you start, the higher the income will be, and the income will decrease as more miners and graphics cards are added.

To put it bluntly, buying a high-priced graphics card to enter "mining" will definitely kill you. Purchasing a professional mining machine is a more cost-effective choice. Nowadays, the essential tool for personal mining is a mining pool. The function of a mining pool is to gather a large number of mining machine computing power to increase your chances of mining coins. At the same time, the coins you can mine in the future are evenly distributed to your account in advance.

Take Bitcoin as an example. If the entire Bitcoin network now generates a block every 10 minutes, this block contains 25 Bitcoins. Assuming that there are 10,000 people in the world participating in mining, then within these 10 minutes, only one lucky person will take away the 25 Bitcoins.

Others have nothing to gain. The principle of the mining pool is that everyone forms a team to mine andDistribution according to the agreed distribution method stabilizes miners' mining returns and reduces miners' risks.

In order to enhance the cost performance, you can also purchase some practical mining machines like Wanke Cloud, which can be used as ordinary hardware products and can also be used for mining, killing two birds with one stone.

(8) How to mine in blockchain development and further reading

There are several core operations of blockchain transactions and digital currencies:

The transaction network connected by decentralized databases is called the blockchain. All our clients (including mining machines) keep accounts together, confirm transfer transactions, and issue a certain amount of digital currency according to time.

Because the winner takes all, small and medium-sized retail miners have to unite to form a "mining pool" and record the cumulative workload in Shares. The higher the joint computing power, the greater the probability that the mining pool consortium will find the digital currency first. Large, increase the probability of finding newly issued digital currencies, and divide the mined digital currencies. This is called the PoW workload proof mechanism.

㈨ What is blockchain and how to make money with blockchain

Blockchain is a new application of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. model. The so-called consensus mechanism is a mathematical algorithm that establishes trust and obtains rights and interests between different nodes in the blockchain system.

How to make money in the blockchain:

1. Earn commissions through promotion.

The blockchain method is to first register an exchange account, generate your own invitation link, and then promote it. If someone registers the exchange through your link and generates transactions, you will get a commission.

2. Coin speculation.

Speculating in currencies is like speculating in stocks. Coin speculation is a way to make money on the Blockchain with the lowest threshold.

3. Mining.

"Mining" in Bitcoin is the accounting process. This process requires grabbing, and if you grab the opportunity to bookkeeping rights, you will be rewarded, and the reward is Bitcoin. This behavior is "mining".

4. Develop wallet.

The wallet is the infrastructure of the blockchain, just like the "Alipay Zheng Xinque" or "WeChat Pay" of the blockchain.

Extended information:

1. Blockchain is an important concept of Bitcoin. It is essentially a decentralized database and serves as the bottom layer of Bitcoin. technology. Blockchain is a series of data blocks generated using cryptographic methods. Each data block contains information about a Bitcoin network transaction and is used to verify the validity of its information (anti-counterfeiting) and generate the next block. piece.

2. Blockchain was born from Satoshi Nakamoto’s Bitcoin. Since 2009, various Bitcoin-like digital currencies have appeared, all based on public blockchains.

3. On January 20, 2016, the Digital Currency Seminar of the People’s Bank of China announced that it had achieved phased results in digital currency research. meetingIt determined the value of digital currency in reducing the issuance of traditional currency, and stated that the central bank is exploring the issuance of digital currency. The expression of the People’s Bank of China’s Digital Currency Seminar has greatly enhanced the confidence of the digital currency industry. This is the first time that the five central bank ministries and commissions have expressed a clear attitude towards digital currencies since they issued a notice on preventing Bitcoin risks on December 5, 2013.

Blockchain - Network

博客主人唯心底涂
男,单身,无聊上班族,闲着没事喜欢研究股票,无时无刻分享股票入门基础知识,资深技术宅。
  • 38631 文章总数
  • 3637394访问次数
  • 3087建站天数