Block chain algorithm principle
blockchain refers to the technical solution of collective maintenance of a reliable database through centralization and distrust in the past, and it is a technical way for the whole people to participate in bookkeeping. Previous bookkeeping methods were all centralized and needed centralized intermediary, whether it was traditional government, financial institutions, notarization institutions or emerging e-commerce platform and online payment platform
in economic hypothesis, information is sufficient. In fact, it is precisely because of insufficient information that there are very large intermediaries. The existence of intermediaries increases the transaction cost and raises the transaction threshold. In essence, blockchain technology is a large-scale collaboration tool. It makes direct value transfer possible by using pure technology for the first time, and continues the trend of Internet decentralization and disintermediation. Disintermediated blockchain technology will greatly subvert the information intermediary instry
blockchain technology is the basic technology for building bitcoin data structure and encrypted transmission of transaction information, which realizes the issue and transaction of bitcoin. The core of blockchain technology is that all the current participating nodes jointly maintain the transaction and database, so that the transaction is based on the principle of cryptography rather than trust, so that any agreed parties can directly carry out payment transactions without the participation of a third party
technically, a block is a data structure for recording transactions, reflecting the capital flow of a transaction. In the system, the transaction blocks are connected to form a main chain, and all the nodes participating in the calculation record the main chain or part of the main chain
a block contains the following three parts: transaction information, hash formed by the previous block and random number. Transaction information is the task data carried by the block, including the private keys of both parties, the number of transactions, the digital signature of electronic currency, etc; The hash hash formed by the previous block is used to connect the blocks and realize the sequence of past transactions; Random number is the core of the transaction. All nodes compete to calculate the answer of the random number. The node that gets the answer the fastest generates a new block and broadcasts it to all nodes for updating, so as to complete a transaction.
Blockchain is an important concept of bitcoin. It is essentially a disintermediated 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 the information of a bitcoin network transaction, which is used to verify the effectiveness of its information (anti-counterfeiting) and generate the next block
blockchain is a new application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies
in a narrow sense, blockchain is a kind of chain data structure that combines data blocks in a sequential way according to the time sequence, and it can not be tampered with and forged by cryptography
broadly speaking, blockchain technology uses blockchain data structure to verify and store data, uses distributed node consensus algorithm to generate and update data, and uses cryptography to ensure the security of data transmission and access It is a new distributed infrastructure and computing method to program and operate data by using intelligent contract composed of automated script code
extended data:
the evolution mode of blockchain is as follows:
& 9642; Blockchain 1.0 - digital currency
▪ Blockchain 2.0 - digital assets and smart contracts
▪ Blockchain 3.0 - Implementation of distributed applications in various instries
blockchain features:
1. Disintermediation. Due to the use of Distributed Accounting and storage, there is no centralized hardware or management organization in the system, the rights and obligations of any node are equal, and the data blocks in the system are jointly maintained by the nodes with maintenance function in the whole system
2. Openness. The system is open. In addition to the private information of all parties to the transaction is encrypted, the data of the blockchain is open to all. Anyone can query the blockchain data and develop related applications through the open interface, so the information of the whole system is highly transparent
3. Autonomy. Blockchain adopts consensus based specifications and Protocols (such as a set of open and transparent algorithms) to enable all nodes in the whole system to exchange data freely and safely in a de trusted environment, so that the trust in "people" is changed into the trust in machines, and any human intervention does not work
The information can not be tampered with. Once the information is verified and added to the blockchain, it will be stored permanently. Unless more than 51% of the nodes in the system can be controlled at the same time, the modification of the database on a single node is invalid. Therefore, the data stability and reliability of the blockchain are extremely high5. Anonymity. Because the exchange between nodes follows a fixed algorithm, the data interaction does not need to be trusted (the program rules in the blockchain will judge whether the activity is effective). Therefore, the counterparties do not need to make the other party trust themselves by disclosing their identities, which is very helpful for the accumulation of credit
Seeing some answers to the debate on the definition of blockchain, I suddenly realize that my answer to this explanation principle has always been directed at bitcoin. There is no specific and unique answer in the instry between the definition of blockchain. Here I first summarize the characteristics of "blockchain" according to the papers I read:
1; Hash chain & quot There are several nodes participating in the system operation (distributed)
3. Reach a consensus on the consistency of basic data (consensus agreement / algorithm) through a certain protocol or algorithm
since bitcoin is currently one of the most typical and influential applications of blockchain, it will be much easier to understand how bitcoin uses blockchain before understanding other forms of blockchain applications
Before you go abroad, you need to exchange RMB for foreign currency. There is also a quota. With the blockchain, you can take a U-disk to go out and exchange it for local currency. The quota is unimaginable
Block is a record in the blockchain, which contains and confirms the transactions to be processed< br />
mining refers to the formation of new blocks through calculation. It is a process in which the supporters of the transaction use their own computer hardware to do mathematical calculation for the network to confirm the transaction and improve the security. Take bitcoin as an example: the transaction supporter (miner) runs bitcoin software on the computer and constantly calculates the complex cryptography problems provided by the software to ensure the transaction. As a reward for their service, miners can get the Commission included in the transaction they confirm, as well as the newly created bitcoin< br />
Peer to peer network is a system that allows a single node to interact directly with other nodes, so that the whole system can operate like an organized collective. Take bitcoin: the network is built in such a way that each user is spreading the transactions of other users. And importantly, banks or other financial institutions are not required as third parties< br />
Hash is a classical technology in cryptography, which transforms the input of any length into the output of fixed length composed of letters and numbers through Hassi algorithm< br />
Digital signature is a mathematical mechanism that allows people to prove ownership< br />
Private key is a secret data block that proves that you have the right to consume e-money from a specific wallet. It is realized by digital signature< br />
Dual consumption refers to the user's illegal attempt to pay e-money to two different payees at the same time, which is one of the biggest risks of e-money< br />
?< br />
The origin of blockchain: an underlying technology supporting bitcoin
The concept of blockchain was first proposed in bitcoin: a peer-to-peer electronic cash system by Satoshi Nakamoto in late 2008. In this paper, block chain technology is the basic technology to build bitcoin data structure and transaction information encryption transmission, which realizes the mining and transaction of bitcoin. Nakamoto believes that: first, the mode of using third-party organizations to process information has the inherent weakness of lack of trust between points. In order to guard against their customers, businesses will ask customers for completely unnecessary information, but still can not avoid certain fraud; Second, the existence of intermediaries increases the transaction cost and limits the practical minimum transaction scale; Third, digital signature itself can solve the problem of e-money identity. If the third party support is needed to prevent double consumption, the system will lose value. Based on the above three existing problems, Nakamoto Cong has created bitcoin on the basis of blockchain technology< br />
On January 3, 2009, Nakamoto proced the first bitcoin block in the world, genesis block, and excavated 50 bitcoins< br />
On May 21, 2010, Florida programmers bought $25 worth of pizza coupons with 10000 bitcoin, which gave birth to the first fair exchange rate of bitcoin< br />
In July 2010, the first bitcoin platform was established, with a surge in new users and prices< br />
In February 2011, the price of bitcoin reached US $1 for the first time. Since then, exchange trading platforms with British pound, Brazilian real and Polish zloty have opened< br />
In 2012, ripple released that as a digital currency, it uses blockchain to transfer foreign exchange of various countries< br />
In 2013, bitcoin soared. The U.S. Treasury Department has issued the regulations on the personal management of virtual currency to clarify the definition of virtual currency for the first time< br />
In 2014, the mining machinery instry chain represented by China became more and more mature. In the same year, the U.S. it community realized the cross era innovation significance of blockchain in the digital field< br />
In 2015, the US Nasdaq Stock Exchange launched LINQ, a digital ledger technology based on blockchain, to record trading and issue stocks
the principle of blockchain can be understood clearly from each application case, and the application of blockchain principle is becoming more and more popular. Recently, Citigroup, Mitsubishi UFJ Financial Group, UBS and Deutsche Bank will also apply "blockchain" technology to build a fast, convenient and efficient blockchain Low cost trading system. In addition to the financial field, blockchain technology has also begun to be applied to the protection of intellectual property rights, notarization by lawyers, online games and other fields where there is a need for transparent information disclosure and permanent records.