| Blockchain technology has attracted extensive attention due to its features of non-tampering,decentralization and non-forgery.Blockchain is a distributed ledger that can be securely stored.However,in the face of the safe storage of massive data,how to ensure the security and efficiency of data processing on the blockchain has become a major pain point in the research of blockchain technology.This paper takes the six-layer architecture of the blockchain as the research object,and studies the algorithm mechanism of the data layer,the consensus mechanism of the consensus layer and the expansion mechanism of the contract layer and other key technologies in the blockchain.The main research subjects are as follows:1.Aiming at the problems of low security caused by back-end algorithm and slow efficiency caused by slow algorithm,the blockchain based on national secret algorithm is implemented,and SM2 algorithm is based on the algorithm of encryption and signature integration.Compared with the RSA algorithm,the algorithm has a shorter signature digest,faster signature and higher security by the experimental results.2.Aiming at the problem that the consensus mechanisms in the consensus layer have security,efficiency and non-expansion "impossible triangle",an improved DPOS+PBFT supervised hierarchical consensus mechanism is proposed.Firstly,the consensus mechanisms are classified into transaction consensus,accounting consensus and verification consensus according to the scope;then the DPOS consensus mechanism with supervision mechanism is used in the transaction consensus and accounting consensus module to solve the efficiency problem,and the verification mechanism module uses the PBFT consensus mechanism to solve the consistency issues;Finally,the performance between the program and some typical scenarios is compared.3.Aiming at the problems that network traffic congestion and low security of a single-channel in the expansion mechanism.Traditional expansion schemes usually use multi-channel technology for fast transaction processing or lightning networks with instant payment,low handling fees and high scalability.However,the multi-channel scheme based on chain expansion is inefficient,and the lightning network scheme based on chain expansion exists of risks.In this paper,a multi-channel lightning network model is proposed based on the above two technologies.This solution is priority to previous schemes in terms of transaction delay caused by network congestion and resisting man-in-the-middle attack and camouflage attack caused by single channel. |