Operation mode of blockchain
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.
Well, I'm a blockchain operator
Yes, I am engaged in operation work in blockchain technology instry, covering community operation, user operation and content operation
is there any doubt that the blockchain technology is developing steadily, but the blockchain instry seems to be ups and downs? Blockchain operation is also exploring in constant changes. Me too
here is my confession
1.1. Not sad or happy, token is not all
operating in the blockchain instry, and the price is inevitable to talk about. Ups and downs are common, and ups and downs are daily. If you don't have a mind to see the strange, I'm afraid you can't bear such changes in the blockchain instry
2.2. Work or work, no change
what is operation? Compared with the early Internet instry, when most of the operations in the instry are still relatively shallow community operations, what we can do is to exceed the average level in the instry. Operation is still those operations, and because it is a blockchain instry, the nature of operation will change
3.3. Although it's exploration, there are also routines
in the process of operation in the blockchain instry, you will find that some operations still stay at the level of simple community operation or user operation, and even can't be called user operation, while some operations can be transformed from Zhonghua Li, upgrade and iterate their own operation routines, and have their own views on the development of the instry, We have explored our own methodology of blockchain operation
4.4. Professional level, top matching ability
what is professional? Ten points, twelve points. If the operation in the classical Internet era is traceable and the methodology of operation has a way to go, then the operation of the blockchain instry is based on the classical Internet operation. The changes in the blockchain instry are no less than those in the early years of the Internet, and even more than those in the early years of mobile Internet, o2o and other procts. What we need is not only the professional level of operation, but also the top allocation ability
5.5. To understand what you want to do
to enter the operation of the blockchain instry, most of you are interested in the infinite opportunities contained in this instry, or even directly cross-border from unrelated instries. No matter what your professional background is before you become a blockchain operator, I believe this instry will bring you what you want. But the question is, before you enter the instry, do you really want to understand what you want
6.6. Your core competitiveness and how to continue to advance
whether you operate in the classical Internet instry or in the blockchain instry, we must continue to explore, strengthen and continue to advance your core competitiveness. If you're good at it, dig deep. In the starting line and no big difference, the heart is the only key
the development of a new thing still needs to go through many detours, and the development of an emerging instry will also go through many key nodes
when eating crabs, you have to eat your own skills, don't you
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
01, the core operation mechanism of blockchain public certificate
the operation mechanism of blockchain public certificate is composed of two moles: "Notarization management" and "intelligent assistance". After the applicant submits the application, the blockchain notarization system relies on AI technology to audit the identity and information of the applicant. At the same time, the system will review the content of notarial evidence, and then issue a notarial certificate, at the same time on the chain filing. At the same time, the public certificate of blockchain has been formally formed, which immediately meets the online verification needs of users
the core of the operation mechanism of the notarial certificate of the blockchain lies in the application of the blockchain technology. No matter audio, video, photo or document, as long as it is stamped with a time stamp and then put on the chain, it can become an unchangeable and indestructible evidence document
the second important support in the operation mechanism of the notarial certificate of blockchain is the application of artificial intelligence. The application of this technology greatly saves the applicant's application and waiting time, and also greatly improves the speed and accuracy of the notarial office's document confirmation, eliminating the time delay of manual confirmation and possible operational errors<
02, analysis of the characteristics of the operation mechanism of the notarial certificate of blockchain
through the detailed disassembly of the operation mechanism diagram of the notarial certificate of blockchain, it is not difficult to find that compared with the operation mechanism of the traditional notarial certificate, the operation mechanism of the notarial certificate of blockchain has many noteworthy characteristics
the first is synchronization. In the process of generating the public certificate of blockchain, the actions of the applicant and the notary organization are almost synchronous, and the applicant's application and the notary organization's examination, certificate preparation and certificate issuance are almost synchronous. However, in traditional notarization, there is a time interval between the actions of all parties, which is prone to usurpation. Moreover, e to manual operation, a large amount of time cost will be generated, It further causes the delay of the process. The actions of all parties of blockchain notarization are synchronized online, and the action traces and data are generated instantaneously, thus recing the possibility of tampering and ensuring the authenticity and judicial effect of data files
the second is interactivity. In the process of generating the public certificate of blockchain, the actions of the applicant and the notarization institution are interactive - the applicant submits the application, the notarization institution's artificial intelligence audit, the certificate preparation, the certificate issuance, the data archiving, and the applicant's query are carried out alternately. Different from the traditional notarization, the applicant is more in a passive waiting state after submitting the application, which reces the participation of the applicant
dynamic again. In the process of generating the public certificate of blockchain, the evidence file is a dynamic generation process. The process of applying for the notarial certificate is the process of generating the notarial evidence, and this process itself is a part of the notarial certificate. The traditional notarization is that before the notarization, the evidence documents have been basically finalized. What the notary office does is just a process of confirmation and seal, and the dispute prevention function of notarization is weakened
it is precisely because the operation mechanism of the block chain notarial certificate is quite different from that of the traditional notarial certificate, which determines its absolute advantage over the traditional notarial certificate. On the one hand, it meets the people's requirements for efficiency in the digital age; On the other hand, it also strengthens the authenticity and legal validity of notarial documents. Its interactive feature adapts to the Internet era thinking of emphasizing interaction, which makes all parties involved in notarization enter a positive interactive state. Finally, the dynamic nature of the generation of the public certificate of the blockchain greatly gives play to the initiative of the notary organization, rather than passively confirming the existing evidence documents, which can give full play to the original preventive function of the notary.