Internet cluster blockchain Technology
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
1 - Decentralization: because the blockchain relies on each node to achieve system maintenance and ensure the authenticity of information transmission, it is based on distributed data storage without centralized management by a certain center, Therefore, the attack and tampering of a node will not affect the healthy operation of the whole network
2-DE Trust: the establishment of a connection between any two nodes does not need to trust each other's identity, and the data exchange between the two sides does not need the basis of mutual trust. Since all nodes in the network can act as "supervisors", there is no need to worry about fraud
3 - extensible: blockchain is an underlying open source technology, on which various kinds of extension, decentralized and distrusted applications can be realized<
4 - anonymization: the two sides of data exchange can be anonymous, and the nodes in the network can exchange data without knowing each other's identity and personal information
5 - Security and reliability: because the activities between any nodes are supervised by the whole network, and the database adopts distributed storage, for hackers, first, they can't disguise and cheat, Second, we can't control the network only by conquering a node.
1. Lianzhuang data block structure based on blocks
2. Network wide shared ledger
3. Asymmetric encryption
4. Source code open source
blockchain 2.0 era technical basis:
1. Smart contract; It is an application in the blockchain system. It is a business logic that can run automatically by coding. It usually has its own token and special development language
2. DAPP: it includes the user's applications, including but not limited to various cryptocurrencies, such as Ethereum wallet
3. Virtual machine: used to execute the compiled code of smart contract. Virtual machine is Turing complete
with the application and deepening of blockchain technology, the era of blockchain 3.0 has come. The mode of blockchain cooperation can be seen from behind the operation of all walks of life. Therefore, blockchain will change the way of human life widely and profoundly, so the whole life service will enter the era of blockchain. In the process of Internet development, blockchain + physical instry, blockchain e-commerce and blockchain community operation can be applied to blockchain technology
of course, 3.0 came into being with the development of modern cryptography. Today's applied cryptography is the result of cryptography 20 years ago. Therefore, in order to apply blockchain technology to more participation scenarios, especially in Internet economy and other aspects, more verification is needed to verify whether the existing encryption technology can meet the demand, and more in-depth integration of cryptographic frontier technology and continuous innovation are needed.
in a narrow sense, blockchain is a kind of chained data structure composed of data blocks connected in sequence according to the time sequence, and it can not be tampered with and forged by cryptography
broadly speaking, blockchain technology is a new distributed infrastructure and computing paradigm, which uses blockchain data structure to verify and store data, uses distributed node consensus algorithm to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses intelligent contract composed of automated script code to program and operate data
Application of blockchain:
1. The art instry
ascribe allows artists to declare their ownership by using blockchain technology, issue numbered and limited edition works, and aim at digital forms of any type of artwork. It even includes a trading market where artists can buy and sell through their websites without any intermediary services
2. Bitproof is the most advanced application of document timestamps in recent years, which will make the traditional notarization method a thing of the past. Bitproof offers more services than free versions including blocksgin and originstaemp, including one for intellectual property. Interestingly, bitproof recently cooperated with an it school in San Francisco to put their students' academic certificates on the blockchain, completely redefining how to handle and use diplomas and student certificates
3. Development instry
colu is the first enterprise to allow other enterprises to issue digital assets. They can "token" all kinds of assets, which has a profound impact on many people. Although the free bitcoin wallet couperparty also allows simple tokens to be issued and traded among other wallet holders, the tokens of colu can be set with various states and types, can be detached from or returned to the system, and can be stored on BitTorrent's network when the data stored on the blockchain is too large.