Blockchain completely private chain
blockchain includes public blockchain, joint (instry) blockchain and private blockchain. Public chain point-to-point e-cash system: bitcoin, smart contract and decentralized application platform: Ethereum
blockchain is a new application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies
blockchain is an important concept of bitcoin. In essence, it is a decentralized database. At the same time, as the underlying technology of bitcoin, it is a series of data blocks generated by using cryptographic methods. Each data block contains a batch of bitcoin network transaction information, Used to verify the validity of its information (anti-counterfeiting) and generate the next block
extended data
according to the different degree of blockchain network centralization, three kinds of blockchains under different application scenarios are differentiated:
1. The blockchain with the whole network open and without user authorization mechanism is called public chain
2. The authorized nodes are allowed to join the network, and the information can be viewed according to the authority. It is often used in the inter agency blockchain, which is called alliance chain or instry chain
3. All the nodes in the network are in the hands of one organization, which is called private chain
alliance chain and private chain are also called licensing chain, and public chain is called non licensing chain
blockchain features
1, decentralization. Blockchain technology does not rely on additional third-party management institutions or hardware facilities, and there is no central control. In addition to the self-contained blockchain itself, each node realizes information self verification, transmission and management through distributed accounting and storage. Decentralization is the most prominent and essential feature of blockchain
2. Openness. Blockchain technology is based on open source. In addition to the private information of all parties involved in the transaction is encrypted, the data of blockchain is open to everyone. Anyone can query blockchain data and develop related applications through the open interface, so the information of the whole system is highly transparent
3. Independence. Based on consensus specifications and Protocols (similar to various mathematical algorithms such as hash algorithm used by bitcoin), the whole blockchain system does not rely on other third parties, and all nodes can automatically and safely verify and exchange data in the system without any human intervention
4. Safety. As long as 51% of all data nodes cannot be controlled, the network data cannot be arbitrarily manipulated and modified, which makes the blockchain itself relatively safe and avoids subjective and artificial data changes
5. Anonymity. Unless there are legal requirements, technically speaking, the identity information of each block node does not need to be disclosed or verified, and the information can be transferred anonymously
From the perspective of technology and architecture, I will tell you my understanding of blockchain in common language
what is blockchain? In a word, blockchain is a storage system. To be more specific, blockchain is a distributed storage system without an administrator and each node has all the data
What are the common storage systems like
first, how to ensure high availability
the common storage system usually uses "rendancy" to solve the problem of high availability. As shown in the figure above, if the data can be copied into several copies and rendant to multiple places, high availability can be guaranteed. The data in one place is hung, and there is data in other places. For example, the master-slave cluster of MySQL is the same principle, and the raid of disk is also the same principle
two points need to be emphasized in this place are: data rendancy often leads to consistency problems
1. For example, in the master-slave cluster of MySQL, there is actually a delay in reading and writing, which means there is a inconsistency in reading and writing in a short period of time. This is a side effect of data rendancy
The second point is that data rendancy often reces the efficiency of writing, because data synchronization also consumes resources. If you add two slave libraries, the write efficiency will be affected. The common storage system is to use rendancy to ensure the high availability of dataso the second question, ordinary storage system, can write more
the answer is yes, for example, take this graph as an example:
in fact, MySQL can do a master-slave synchronization of al masters, master-slave synchronization of al masters, two nodes can be written at the same time. If you want to do a multi room multi live data center, in fact, multi room multi live data synchronization. What we should emphasize here is that multi-point writing often leads to the consistency problem of writing conflicts. Take MySQL as an example, suppose that the attribute of a table is self incrementing ID, then the data in the database is 1234 now. If one of the nodes writes and inserts a piece of data, it may become 5, and then these 5 pieces of data are synchronized to another master node, Before synchronization, if another write node inserts a piece of data, a piece of data with self incrementing ID of 5 will be generated. Then, after the generation, synchronize to another node, and the synchronized data will conflict with the two local 5's after it arrives, which will lead to synchronization failure and write consistency conflict. This problem will occur in the case of multi-point writing
how to ensure consistency in multi-point writing
the reform "Swan class" gives you more technical work
Public chain, also known as "public chain", refers to the blockchain that anyone in the world can enter the system at any time to read data, send confirmatory transactions and compete for bookkeeping. The public chain is generally considered to be "completely decentralized", because no indivial or institution can control or tamper with the reading and writing of data in it. In terms of application, blockchain public chain mainly includes bitcoin, Ethereum, super ledger, most counterfeit currencies and smart contracts. The ancestor of blockchain public chain is bitcoin blockchain, which has the following characteristics:
1, open source code
upload the code to GitHub, and everyone can get complete blockchain data by downloading, Accept the test of the public
2, complete decentralization
anyone can become a node, each node is open, everyone can participate in the calculation of the blockchain, any node is not permanent, but phased, and any center is not mandatory for nodes. Anyone can read and send transactions, and transactions can be effectively confirmed on the blockchain. Anyone can participate in the consensus process. The consensus process determines whether a block can be added to the blockchain and the exact current state. Everyone can get financial reward from it, which is proportional to their contribution to the consensus process. These public chains are generally considered to be "completely decentralized"
3. Developing decentralized applications
through this public chain, developers can easily develop centralized applications. Public chain can protect the rights and interests of users from the influence of program developers
public chain: open to all, anyone can participate
private chain: open to indivial indivials or entities
alliance chain: open to specific organizations
(1) distributed ledger, that is, transaction bookkeeping is completed by multiple nodes distributed in different places, and each node records complete accounts, so they can participate in monitoring the legitimacy of transactions, At the same time, they can testify together
different from traditional distributed storage, the uniqueness of distributed storage of blockchain is mainly reflected in two aspects: one is that each node of blockchain stores complete data according to block chain structure, while traditional distributed storage generally stores data in multiple copies according to certain rules. Second, the storage of each node in the blockchain is independent and has the same status, which relies on the consensus mechanism to ensure the consistency of storage, while the traditional distributed storage generally synchronizes data from the central node to other backup nodes[ 8]
no single node can record the account data separately, so as to avoid the possibility that a single bookkeeper is controlled or bribed to record false accounts. In theory, unless all the nodes are destroyed, the accounts will not be lost, so as to ensure the security of the account data
(2) asymmetric encryption and authorization technology, the transaction information stored on the blockchain is public, but the account identity information is highly encrypted, which can only be accessed under the authorization of the data owner, thus ensuring the data security and personal privacy
(3) consensus mechanism is how to reach a consensus among all accounting nodes to determine the validity of a record, which is not only a means of identification, but also a means of preventing tampering. Blockchain proposes four different consensus mechanisms, which are suitable for different application scenarios and achieve a balance between efficiency and security
the consensus mechanism of blockchain has the characteristics of "the minority is subordinate to the majority" and "everyone is equal", in which "the minority is subordinate to the majority" does not completely refer to the number of nodes, but also can be the computing power, the number of shares or other characteristics that can be compared by computers“ "Everyone is equal" means that when the nodes meet the conditions, all nodes have the right to put forward the consensus results first, and then directly recognized by other nodes, and finally may become the final consensus results. Taking bitcoin as an example, the workload proof is adopted. Only when more than 51% of the accounting nodes in the whole network are controlled can a nonexistent record be forged. When there are enough nodes in the blockchain, this is basically impossible, thus eliminating the possibility of fraud.
(4) smart contract, which is based on these trusted and tamperable data, can automatically execute some pre-defined rules and terms. Take insurance as an example. If everyone's information (including medical information and risk occurrence information) is true and reliable, it is easy to carry out automatic claim settlement in some standardized insurance procts
Blockchain is strictly divided into three types: public chain, private chain and alliance chain. The core difference between these three types of blockchains is the degree of openness or decentralization of access rights. Generally speaking, the higher the degree of decentralization, trust and security, the lower the transaction efficiency
generally speaking, each type of blockchain has its own specific mode and value, which is better than others. As long as the demand is solved, the blockchain is valuable
Since 2018, the blockchain instry has been booming. The exploration and application of blockchain is not limited to the underlying platform. Internet giants and financial giants have strengthened the application of blockchain in finance, public welfare, commodity traceability and other fields, especially in the financial field. The application with blockchain technology as the core has been accelerated
the blockchain instry is in the stage of rapid development. According to the data of in-depth analysis report on business model innovation and investment opportunities of blockchain instry published by foresight Instry Research Institute, , by the end of March 2018, 456 blockchain companies mainly engaged in blockchain business in China, from upstream hardware manufacturing, platform services, security services to downstream instrial technology application services, To ensure the development of the instry investment and financing, media, talent services, companies in various fields have been basically complete
analysis on the trend of the number of newly established companies and financing events in China's blockchain instry from 2013 to 2018, The application scenarios of blockchain have been graally enriched. According to the distribution of instry segments, there are 7 instry application companies, mainly Internet companies (Alibaba, Jingdong, Tencent) used in public welfare and commodity traceability, and innovative financial technology applications evolved by financial enterprises (Ping An, CMB, BOC), such as supply chain finance, bills and transaction clearing
because the blockchain can realize the non tampering of information, the possibility of data falsification is eliminated from the root, especially the financial instry, which has high requirements for real data, will embrace the blockchain more actively
analysis on the development trend of blockchain
Secondly, blockchain has become a new hot spot for innovation and entrepreneurship, and technology integration will expand new application space Thirdly, blockchain will be widely implemented in the real economy in the next three years, and become an important support for the construction of Digital China Fourthly, blockchain creates a new platform economy and opens a new era of sharing economy Fifthly, blockchain accelerates the process of "credible digitization" and drives finance to "move from virtual to real" to serve the real economy Sixth, the blockchain supervision and standard system will be further improved, and the instrial development foundation will continue to be consolidatedin addition, as an emerging technology, there are still many technical difficulties in the application of blockchain in the actual proction environment of the financial instry, such as throughput, scalability, consensus mechanism, privacy and security, manageability, etc
technological innovation such as blockchain is of great significance to the financial instry, which is expected to accelerate the process of "credible digitization" and continue to drive the financial "from virtual to real"
the openness and decentralization of alliance chain are limited. Its participants are screened out in advance or specified directly. The read permission of the database may be public, or it may be limited to the participants of the system just like the write permission. Currency exchange of digital currency
2. Public chain
public chain is that every node in the blockchain is open, everyone can participate in the calculation of blockchain, and everyone can download complete blockchain data, also known as blockchain ledger
public chain refers to the process that anyone in the world can read and send transactions, and transactions can be effectively confirmed on the blockchain, and anyone can participate in the consensus process. The consensus process determines whether a block can be added to the blockchain and the exact current state
3. Private chain
202. What is private chain
private chain refers to the blockchain whose write permission is only in the hands of one organization. Read access is either open to the public or restricted to any extent. Related applications include database management, auditing, and even a company. Although in some cases, we hope it can have public auditability, in many cases, public readability is not necessary. It can be said that each of the three chains has its own advantages.
It can be understood as the LAN of Internet bar H2 >
a few people use it by themselves, more people use it, and more open people still need license, that is, the alliance chain
there is no need for license at all. Anyone can use the public chain