Calculation method of nonce in blockchain
blockchain is a term in the field of information technology. In essence, it is a shared database. The data or information stored in it is characterized by "unforgeability", "trace in the whole process", "traceability", "openness and transparency" and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid "trust" foundation, created a reliable "cooperation" mechanism, and has broad application prospects
on January 10, 2019, the state Internet Information Office issued the regulations on the management of blockchain information services. In October 24, 2019, ring the eighteenth collective learning of the Central Political Bureau, general secretary Xi Jinping stressed that "block chain as an important breakthrough in core technology and independent innovation", "accelerating the development of block chain technology and instrial innovation". "Blockchain" has entered the public field of vision and become the focus of social attention
on December 2, 2019, the word was selected into the top ten catchwords of "biting words" in 2019
extended data:
Application of blockchain Finance:
since 2016, the major financial giants have also carried out blockchain innovation projects to explore the possibility of applying blockchain Technology in various financial scenarios. In particular, Puyin group took the lead in creating a "blockchain +" standard digital currency
standard digital currency refers to the process of assets identification, evaluation, right confirmation and insurance completed by a third party organization, which is written into the blockchain through careful digital algorithm to form the standard corresponding relationship between assets and digital currency, which is called standard digital currency
in order to realize the great leap forward development of blockchain finance, promote the new development of China's economy, accelerate the circulation of global assets, and realize the dream of rejuvenation that has been struggling for generations, Puyin group will hold the Guiyang strategic development ceremony of Puyin blockchain finance in Guizhou on December 9, 2016
the meeting will discuss the realization of digital circulation of assets by blockchain, the financial transaction mode of blockchain, and the application of blockchain services and social public instry. This conference will mark the beginning of the application of blockchain finance and the change and development of the new financial ecology
1. Blockchain links
as the name suggests, blockchain is a chain composed of blocks. Each block is divided into block head and block body (including transaction data). The block head includes the prevhash value (also known as hash value) of the previous block used to realize the block link and the random number (nonce) used to calculate the mining difficulty. The hash value of the previous block is actually the hash value of the head of the previous block, and the random number calculation rule determines which miner can obtain the right to record the block
2. Consensus mechanism
blockchain is accompanied by the birth of bitcoin, which is the basic technology architecture of bitcoin. Blockchain can be understood as an Internet-based decentralized accounting system. A decentralized digital currency system like bitcoin requires the consistency of accounting of honest nodes without a central node, which needs blockchain to complete. Therefore, the core of blockchain technology is a consensus mechanism to reach a consensus on the legitimacy of transactions between indivials without mutual trust without central control
there are four main types of consensus mechanisms in blockchain: pow, POS, dpos and distributed consistency algorithm
3. Unlocking script
script is an important technology to realize automatic verification and contract execution on blockchain. Every output of every transaction does not point to an address in the strict sense, but to a script. A script is like a set of rules that constrain how the receiver can spend the asset locked on the output
the validation of transactions also depends on scripts. At present, it depends on two kinds of scripts: Lock script and unlock script. Locking script is a condition added to the output transaction, which is realized by a script language and located in the output of the transaction. The unlocking script corresponds to the locking script. Only when the conditions required by the locking script are met can the assets corresponding to the script be spent, which is located in the input of the transaction. Many flexible conditions can be expressed by script language. Interpretation script is similar to the "virtual machine" in our programming field, which runs in every node of the blockchain network in a distributed way
4. Transaction rules
blockchain transaction is not only the basic unit of a block, but also the actual effective content recorded by the blockchain. A blockchain transaction can be a transfer, or the deployment of smart contracts and other transactions
as far as bitcoin is concerned, a transaction refers to a single payment transfer. The transaction rules are as follows:
1) the input and output of the transaction cannot be empty
2) for each input of a transaction, if its corresponding utxo output can be found in the current transaction pool, the transaction will be rejected. Because the current transaction pool is the transaction not recorded in the blockchain, and each input of the transaction should come from the confirmed utxo. If it is found in the current trading pool, it is Shuanghua trading
3) for each input in a transaction, the corresponding output must be utxo
4) each input unlocking script must verify the compliance of the transaction together with the corresponding output locking script
5. Transaction priority
the priority of blockchain transaction is determined by the blockchain protocol rules. For bitcoin, the priority of a transaction to be included in a block is determined by the time when the transaction is broadcast to the network and the amount of the transaction. With the increase of transaction broadcast time on the network and the increase of transaction chain age, the priority of transaction will be improved and eventually be included by the block. For Ethereum, the priority of the transaction is also related to the transaction fee that the publisher is willing to pay. The higher the transaction fee that the publisher is willing to pay, the higher the priority that the transaction is included in the block
6. Merkle proof
the original application of Merkle proof is bitcoin, which was described and created by Satoshi Nakamoto in 2009. Bitcoin blockchain uses Merkle proof to store transactions in each block. So that the transaction can not be tampered with, but also easy to verify whether the transaction is included in a specific block
7. RLP
RLP (recursive length prefix) is one of the main encoding methods of object serialization in Ethereum. Its purpose is to encode the sequence of arbitrary nested binary data.
At the end of March this year, bitmainland launched an ant miner X3 based on ASIC, which is mainly aimed at Monroe coin (XmR) and cryptonight algorithm dependent cryptocurrency. Monroe coin immediately issued a counter statement that it will change the core algorithm to fight against the invasion of ASIC computing power
what would be the result if it appeared in the world of digital cryptocurrency? That is, the wrong calculation results may be brought into the whole network without being discovered
More importantly, if a "calculator manufacturer" monopolizes the calculator market, it can also deliberately proce this kind of calculator with errors to change the mathematical rulesafter all, the "calculation" in the field of crypto digital currency is not as simple as 1 + 2 + 3. You can't compare paper currency with special currency by hand
the practical significance of computing power monopoly in mainland China
we have learned about attacks based on 51% computing power in various articles P>
but the reality is that although the global power of 78% was in Chinese mainland, fortunately, they were scattered in different pools and controlled by different people. p>
although all POW based cryptocurrencies have the risk of being attacked by 51%, few people can really launch attacks e to the dispersion of computing power
but what if the miners themselves don't want to attack, but the mining machinery manufacturers attack
still using the analogy just now, although each miner subjectively wants to do the problem checking independently, their calculator is manipulated remotely and gives consistent wrong answers. This may pose a great threat to digital cryptocurrency
however, the manufacturer with the absolute voice of mining machinery had such a problem in mainland China
in April 2017, the back door of antbled came out. Although this is described as a "vulnerability" in Chinese, antbled is more like a function that has been implemented and designed
anonymous people found that after an ant miner made by bitmainland was connected to the network, it would communicate with a domain name held by bitmainland on a regular basis and return the miner's serial number, MAC address and IP address to bitmainland's server. If the server of bitcontinent gives a negative signal, the miner will stop running
although bitcontinental responded that they could not shut down any mining machines that did not belong to them. However, the bitcoin core team has proved in experiments that this function has no verification. Anyone can shut down mining machines by forging DNS - but it also means that bitcoin mainland has the ability to shut down any sold mining machines
After, bitcontinent fixed this "loophole", but it caused heated discussion in the community. This has also set the tone that almost all pow blockchain communities are biased against mainland China
a few months later, under the leadership of bitcontinent, viabtc g out the first block and made a hard bifurcation with the blockchain of bitcoin. From then on, bitcoin BCH (bitcoin cash) appeared in the world
will the monopoly of mining machinery destroy the distributed system
facing this problem, we should have a clear answer now. That is, the monopoly of mining machinery will certainly affect the safe operation of pow digital cryptocurrency
the problem is not whether bitcontinental and its founder Wu Jihan are trustworthy, but that one of the values of any blockchain system is to operate safely without trust in any single company or indivial
even if the ASIC miner is not monopolized by bitmainland, the ASIC miner itself will increase the concentration of computing power
the ASIC used for mining has great requirements for ventilation, power and site, and has no use except for mining. At the same time, the calculation difficulty of the whole network is increased e to the powerful computing power
as a result, it is very difficult for external players to start mining in the next software on the computer as they did five years ago. And the recent centralized exchange is caused by frequent black incidents, which also proves that concentration in this unregulated market will definitely lead to insecurity
assuming that the bitcoin network runs on top of one million miners, no one can shut it down. And if the bitcoin network runs on 20 large mines, it's much easier to shut it down P>
and by the end of 2017, 78% of the effort was concentrated in mainland China, which led to a real possibility of Chinese mainland regulators' launching a deadly attack against the special currency. p>
moreover, most of the scenarios of using digital cryptocurrency are related to "decentralization". Once centralized, it means that these scenarios no longer exist. It turns a project that might have value into a pure waste of computing power
Then, what measures should we take in the face of this situationfirst of all, as the project side, it may be time to give up the pure POW mechanism. In fact, in many projects of issuing cryptocurrency, especially in asset securitization projects. Similar to the concept of stock in the real world, POS itself is more reasonable than pow
in the media that don't know about blockchain, we often hear such words as "bitcoin wastes a lot of computing power and has no value", which is reasonable to some extent. It is difficult for a POW based blockchain to bind the value of the project itself to the issued digital cryptocurrency - because the real value behind the price of the currency does not come from the project, but from the cost of maintaining computing power
and the hybrid mode of pow + POS is more like the future. In the hybrid mode, both coin holders and miners can participate in the major decisions of this community. If a decision is widely accepted, the blockchain will be soft forked to the latest state without excessive intervention of developers, and there will be almost no private resistance of miners or mining machines
secondly, as a retail miner, if you are still digging a pure POW mechanism currency, you should unconditionally support the bifurcation activities initiated by the community to resist the ASIC mining machine, even if it will lead to the failure of your mining machine
this may sound contradictory, but in the long run, it is better to promote the reform of the community and get more benefits in a currency controlled by the monopoly of computing power. Because in many conflicts between computing power and community in the past, the ultimate result is that the computing power owner will forcibly keep the old algorithm to hard fork the blockchain
just like Eth and etc, the classic Ethereum (etc), which belongs to the computing power master, has lost the support of developers and become an air coin with no vitality and impossible to develop applications
as a retail leek, you should be careful to trade the non mainstream digital currencies (except bitcoin) supported by bitmainland mining machinery, so as to avoid falling into a blockchain in which bitmainland controls the computing power completely
finally, if you are bitcontinent, what should you do
bitcontinent's goal is to become Intel, AMD and NVIDIA, make greater contributions to the whole computer instry, and become a great company, not just entangled in the immediate interests of mining
Wall Street financiers have long seen through the violence brought about by NVIDIA's video card mining. The rise and fall of the company's stock price has been consistent with the price of bitcoin, and even affected by the digital currency market. Citron, a well-known short seller, has recently been bearish on NVIDIA, arguing that the company has focused too much on providing services for digital currency miners rather than on serious businesses such as artificial intelligence, games and driverless driving
the mission of chip manufacturers is to provide more powerful chips to drive more intelligent services, and finally contribute to the real world, rather than become monopoly tycoons in the virtual world. When we no longer enter the gate of the virtual world, the only thing left is a deserted land
in an interview with US media last year, Wu Jihan disclosed that he would make an IPO with a market value of billions of dollars. As a company about to go public, bitmainland should not only be responsible to investors, but also accept investors' questions about the sustainability of its business. "If your mining machinery goes public, it will encounter a fork, what should you do?"
and this question, which needs to be asked after the listing, has already appeared: the current price of the split coin xmo after the Monroe team split is $7.50, while the current price of the real Monroe coin XmR is $194, and the split coin is completely abandoned by the Monroe community
before bitcontinent becomes the name of all blockchain communities, we can rely on the huge amount of capital accumulated in recent years to transform into an artificial intelligence chip company along the previous plan, rather than continue to develop a variety of digital currency mining machines to extract the last drop of oil before the ecological collapse
content source: phoenix.com
1. Regularly clean the st in the computer, turn off the computer, open the chassis, use a hair dryer and blow with cold air< At ordinary times, 360 guard, Jinshan guard and other tools should be used to clean up the system garbage and temporary files generated by the Internet, and check and kill malicious
Italian software
3. The computer configuration is poor, so try to set the virtual memory as large as possible, and install anti-virus software with less resources, such as NOD32, or only one
auxiliary anti-virus software
4. Try to set the IP to static IP, which can rece the startup time of the computer
5. Don't put too many files and icons on the computer desktop, which will slow down the reaction of the computer. Try not to install the software on disk C
6. Regularly defragment the disk. Open the drive of my computer to defragment - properties - tools
select the disk to be defragmented. Open the "disk defragmenter" window - Analysis - defragmentation - the system will start to defragment
.
Bitcoin is actually a useless string of numbers, but it is recognized as useful, just like diamonds, antiques, calligraphy and paintings, game skin and so on. They can't be eaten or used, but we will recognize their value
"mining" just allows more people to participate in the construction of blockchain network. Is it really good that so many electricity charges are used to "calculate" a series of virtual values? Bitcoin is not a hedge. The price of bitcoin fluctuates greatly. Speculation on bitcoin may become rich overnight or become poor overnight. Bitcoin is not as safe as it claims. In 2014, the world's largest bitcoin trading website, mtgox, was hacked and went bankrupt, and the $467 million worth of bitcoin evaporated instantly. Criminals use it to launder money, evade taxes and so on. It is also quite difficult for the government to investigate. The above personal opinions are welcome to be criticized and corrected. Agree with me, please click like before you go, thank you! Like me, please pay attention to me, thank you again
As for this question, I suggest you go to lobby the community to have a look (web link), where there are big guys and big V to answer for you. Here I share with you an article by Mr. Ruan Yifeng, which should be able to answer your questions
I. what is the essence of blockchain? In a word, it is a special distributed database
the current rule is that new nodes always use the longest blockchain. If there is a fork in the blockchain, we will see which branch is behind the fork point and reach six new blocks first (called & quot; Six confirmations. According to the calculation of a block in 10 minutes, it can be confirmed in one hour
since the generation speed of new blocks is determined by computing power, this rule means that the branch with most computing power is the authentic blockchain
9. As an unmanaged distributed database, blockchain has been running for 8 years since 2009, and there is no big problem. This proves that it is feasible However, in order to ensure the reliability of data, blockchain has its own costs. One is efficiency. When data is written to the blockchain, it takes at least ten minutes. If all nodes synchronize data, it takes more time; The second is energy consumption. The generation of blocks requires countless meaningless calculations by miners, which is very energy consumingtherefore, the application scenarios of blockchain are very limited
there is no management authority trusted by all members
the data written by
does not require real-time use of
the benefits of mining can make up for its own costs
if the above conditions cannot be met, then the traditional database is a better solution
at present, the biggest application scenario (and possibly the only one) of blockchain is cryptocurrency represented by bitcoin
