Technical reserve of Nantian information blockchain
in the Internet era, there is a database behind every system. This database can be regarded as a large account book. In the past, the person who maintained the system was responsible for managing the database and recording the user's behavior, that is, bookkeeping. However, the blockchain is "decentralized", which allows every member of the system to participate in it, not only everyone bookkeeping, but also through links, Everyone can have a complete account book
"blockchain is essentially a collective recording mode. What's special is that it adopts a set of techniques in an ingenious way to realize the authenticity and credibility of the recorded results, which is difficult to destroy and tamper with. " Zhang Xiaorong said, "first, everyone has the right to record and authenticate with each other to distinguish the true from the false, which is called consensus mechanism; Second, no one can tamper with the records, because there are cryptographic signatures; Third, everyone has a , so even if some account books are damaged, the whole will not be affected. This is called distributed storage. The information recorded in this way is presented in block mode according to the time chain, so it is called blockchain. "
various cryptocurrencies represented by bitcoin are originally an application of blockchain technology, which can be described as blockchain version 1.0. However, around 2014, the instry began to realize the important value of blockchain technology. Blockchain graally separated from digital currency and applied to various economic and social fields other than digital currency
it has broad application prospects
blockchain technology is considered as a disruptive innovation after steam engine, electric power and Internet. If the steam engine and electricity liberate the proctivity, and the Internet has changed the way of information transmission, the blockchain, as a machine for building trust, may change the way of value transmission
for example, in the financial field, the cost of reconciliation, clearing and settlement between financial institutions, especially cross-border financial institutions, has always been very high, and there are complex manual processes. The application of blockchain technology can help rece the cost of reconciliation and dispute resolution between financial institutions, and significantly improve the processing speed and efficiency of payment business, It also makes small cross-border payments possible. In December 2017, China Merchants Bank completed the RMB position transfer business from Hongkong Wing Lung Bank to Shenzhen Branch of Wing Lung Bank. This is the world's first interbank cross-border RMB clearing business based on blockchain technology
in addition, according to the white paper 2016 on China's blockchain technology and application development issued by the Ministry of instry and information technology of China, the application of blockchain has been extended to medical and health, ecation, charity, social management and other fields. Taking the cultural instry as an example, the low cost of reproction, the high cost of safeguarding rights, and the difficulty of providing evidence make the protection of intellectual property rights a pain point for the instry. With blockchain, the proction, dissemination and transaction records of cultural procts are true, transparent and reliable, and the problem can be solved
Zhang Xiaorong said that blockchain technology has solved two major problems in the era of Digital Economy: one is the visible flow direction, and the other is zero trust cost. In the past, the circulation of physical paper money was invisible, but the flow of all digital assets had a "chain" to check. Yang Yanchao, a researcher at the intellectual property center of the Chinese Academy of Social Sciences, also believes that the biggest advantage of blockchain is that it has truly completed the credit construction in an anonymous society, bringing new opportunities to many fields, thus making various innovative applications possible
there is a long way to go in the future development
in terms of technology promotion, there is no big barrier to blockchain, which has been confirmed in the global practice of bitcoin, and its main resistance comes from the obstacles in concept and implementation
"on the one hand, the society may be very concerned about the" naked "state in the blockchain. Blockchain has built a "Skynet" for the commercial society. The company's economic activities are all recorded, so there is no secret to speak of. In this way, some business strategies may not be implemented under the blockchain. "
"on the other hand, the current legal system lags behind the development of information technology, so how to put the emerging blockchain technology under the legal supervision needs to be studied." Duan Yongchao said
the core of blockchain is decentralization, which will have an impact on the long-standing central management model. In addition to the law, how to establish a regulatory environment that can promote the application of blockchain technology, so that the technology can benefit the society and not be used to do evil, is also an urgent problem to be solved.
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.
- original title: market analysis of China's blockchain instry in 2019: enabling various instries to accelerate the application landing, there will be two opportunities for future applications
2019 - blockchain "mainstream application year"
since August 2018, the electronic invoice of blockchain was issued for the first time in Shenzhen. So far, it has issued more than 6 million electronic invoices, with an amount of 4 billion yuan, and has access to more than 5300 enterprises, Covering more than 110 detailed instries. In addition to the field of electronic invoice, blockchain has also been successfully implemented in many project scenarios, such as supply chain finance, legal deposit, cross-border payment, etc.
at the recent "thousands of people watching fire" conference of blockchain instry, the reporter of economic daily learned that in 2019, the technology implementation and application has brought blockchain into the "mainstream application year". On the one hand, many Internet giants have a solid technical foundation, on the other hand, they actively explore more valuable scenarios to find development opportunities in the enabling real economy
"blockchain technology can play the role of anchoring, sharing and increasing trust in the whole social information flow, making the chaotic information credible. Compared with the past, this is a" qualitative leap. " Zhang Kaixiang, chief architect of Weizhong bank's blockchain, said, "risk control and business rules design based on trusted data can improve efficiency, rece risks and rece operating costs." He pointed out that as a connector, it is not meaningful for a single enterprise to operate the blockchain, and it is more meaningful to share it as an open source solution to realize the ecological co construction of the instry
"we have been exploring and practicing open source, starting from the underlying technology platform and combining with the scenes of finance, instry, Internet of things, culture and entertainment, to jointly build an open, transparent and efficient technology and instrial community. Open source ecology helps to activate the creativity of the instry. We will continue to start from the open source community and improve a complete set of systems such as system construction and skills training, so as to benefit more people. "
in 2019, the market scale of China's blockchain instry will exceed 100 million yuan
China's blockchain instry is still in its infancy, but with the continuous support of national policies, the continuous progress of instry technology and the increasing demand of downstream application fields, China's blockchain instry is expected to continue to maintain high-speed growth. According to the statistical data of in depth analysis report on business model innovation and investment opportunities of China's blockchain instry published by foresight Instry Research Institute, the market scale of China's blockchain instry was less than 6 million yuan in 2011, and the market scale of China's blockchain instry increased by 32 million yuan by 2017, By 2018, the market scale of China's blockchain instry has reached 67 million yuan, always maintaining a rapid growth rate of more than 80%. It is predicted that the market scale of China's blockchain instry will exceed 100 million yuan in 2019, and that in 2022, driven by policy support and downstream demand, the market scale of China's blockchain instry is expected to exceed 450 million yuan
market size statistics and growth forecast of China's blockchain instry from 2015 to 2022
data source: the audited enterprise asset confirmation, registration and circulation records, etc., sorted out by foresight Instry Research Institute, are stored on the platform in the form of traceability. Based on this, banks can carry out fast financing and loan business, save the cost of guarantee and other links, greatly improve the efficiency, and make the risk of financing and loan controllable as a whole
electronic data storage is an important application field of blockchain technology.
the provisions of the Supreme People's Court on Several Issues concerning the trial of cases by Internet courts, which came into effect in September 2018, clearly states that electronic data storage can be solved by blockchain and other technical means. Xiang Dan, vice president of bibox digital asset trading platform, said that electronic data deposit is an important application field of blockchain technology“ Blockchain technology has the characteristics of preventing tampering, leaving traces in the event, post audit and security protection, which is concive to improving the credibility and authenticity of electronic evidence. The combination of blockchain and electronic data storage can rece the cost of electronic data storage, improve judicial efficiency and enable judicial business. For example, the contract management based on blockchain has been applied in many Internet courts. "
according to Zhou Jianrui, co founder of coinword, a trusted content community, the application of electronic data storage based on blockchain can also help deepen the reform of "release management and service" and improve administrative efficiency. In Beijing Haidian District and other pilot areas, blockchain technology is playing the role of efficient data sharing, secure transmission and credit support. When applied in the field of government affairs, it can realize real-time data sharing of various departments and effectively assist window personnel and examination and approval personnel to quickly verify the authenticity of materials. For example, the public security, civil affairs, housing management and other departments "on the chain", in dealing with real estate transactions can be fast and accurate, "one key" verification of multi-party information, greatly saving social costs
there will be two opportunities for the application of blockchain
because the social recognition of blockchain is not high, the people who understand and use blockchain are still very limited, and the penetration of blockchain into the real economy still needs a graal process. " Yuan Yuming, CEO of fire coin China, introced that they used the open, transparent and tamper proof characteristics of blockchain to explore a new path of art traceability and anti-counterfeiting by means of high-precision full pixel scanning and archiving; By constructing the trust mechanism in the multi-party cooperation scenario, the integral information platform for multi-party participation and resource sharing is developed“ Next, there will be two opportunities for blockchain application:
one is training. With the entry of enterprise giants one after another and the continuous penetration of the real instry, more people will learn about blockchain through training, which will become a new market demand
the second is to provide consulting and technical solutions to more traditional enterprises to help them penetrate the blockchain into more traditional fields and promote the consumption rection, efficiency enhancement, transformation and upgrading of the real instry. "
in the fault diagnosis of electronic control engine, if the fault light is not on, first check and remove the mechanical fault, oil and gas circuit fault as the engine without electronic control system. It's not that the electric control vehicle has to use the computer detector and fault code to diagnose and repair, otherwise, the sensor, actuator and its circuit will be overhauled for the fault that has nothing to do with the electronic control system, which will take time and effort, but the real fault is not found in time. For example, there is a Fukang 988ex-1 car, the fault is that the engine acceleration is poor, the fuel consumption increases, the emission exceeds the standard, and the engine fault light is not on. During the maintenance in the repair shop, the repairman first detected the oil pressure of the fuel system, which showed that it was normal, but still replaced the fuel filter and cleaned the fuel injector, and the fault still existed. Then the self diagnosis test was carried out, and the code adjustment display was normal. The repairman still thought that the electronic control component was faulty. He tested the water temperature sensor and the air flow meter successively, and made a comparison experiment between the new and old parts. After that, he also checked and replaced the spark plug, and the fault remained. After asking the car owner, he said that the fault occurred after a few days of windy and sandy weather. When checking the air filter, it is found that the filter has been covered by soil. Clean it with clean water and dry it. After reassembly, test run and troubleshooting.