Consensus mechanism. There is no centralized management system in the blockchain network. All nodes involved in bookkeeping play a key role. How to make the interaction between nodes form a simple, easy-to-use, low overhead and grouping manageable storage system is the problem to be solved by blockchain technology. Whether the data consistency and data availability can be guaranteed in the data sharing network system are the two factors to be selected in the system construction. The pow consensus mechanism is adopted in bitcoin to ensure the consistency of data, that is, the method of "mining" calculation is adopted: the nodes participating in the calculation exit a random number according to certain hash rules by traversing the calculation method, and the random number meets the requirement to make the hash calculation result of the current block header less than a certain number. The node that obtains the random number obtains the accounting right, and the calculation process ensures the security of the consensus and the consistency of the data. The blockchain system in this study will adopt a more reasonable POS mechanism, that is, the integrity of the block information recorded by the node will determine the difficulty of calculation in the consensus process. As long as the node has relatively complete blockchain data, the computational power consumption in the consensus process will be greatly reduced to avoid the interference of learners in the calculation of the learning part.