| Blockchain is a new kind of decentralized protocol.As all data on blockchain is highly transparent,it is necessary to protect the privacy of traders during transactions.Consensus algorithm,as the core technology of the underlying blockchain,is designed to solve unpredictable Byzantine problems such as hardware failure,network congestion and even malicious attacks in the peer-to-peer network.However,at present,the Byzantine fault-tolerant consensus algorithm is not secure enough in the consensus process,and it is easy to select the master node,which makes it easy to be subjected to DDo S attacks and difficult to resist adaptive attacks.Moreover,it has problems such as poor scalability,static network type,high communication complexity and poor practicability.Therefore,this paper studies the underlying architecture and consensus algorithm of blockchain technology,mainly including the following contents:(1)The underlying architecture and key technologies of blockchain technology are briefly analyzed,including cryptography algorithm principle and consensus algorithm principle.(2)In this paper,a Byzantine fault-tolerant consensus algorithm based on proxy ring signature is designed to resist adaptive attacks,and most Byzantine fault-tolerant consensus algorithms are difficult to resist adaptive attacks and have poor scalability and robustness.Firstly,the proxy ring signature algorithm is optimized.Through analysis,it is proved that the security and efficiency of the algorithm are improved and it is suitable for Byzantine fault-tolerant consensus algorithm.By applying digital signature algorithm to blockchain,consensus algorithm can resist adaptive attack.The analysis shows that the scalability and robustness of the system are improved,the activity of the system before and after the proposal is ensured.(3)In order to improve transaction efficiency and provide privacy protection in blockchain consensus,a Byzantine fault-tolerant consensus algorithm based on traceable ring signature is designed.Privacy protection is provided for users participating in the consensus process,and the application scenarios are enriched by the method of node classification.Through the optimization and improvement of Byzantine fault-tolerant consensus algorithm,the performance of consensus algorithm is greatly improved,and the transaction confirmation delay is reduced.After the performance analysis of the algorithm,the security and anonymity of the algorithm are improved. |