摘要
针对B/S架构以服务器作为中心存在安全隐患的问题,提出一种真实网络环境下共识区块链方案。方案基于网络中存在的多个节点,利用区块链去中心化机制存储交易数据,利用共识机制完成记账权校验。为了保护交易数据的隐私,方案对交易数据进行了哈希加密运算,同时,为了解决网络中不同节点数据同步的问题,根据最长区块链来更新网络中的节点。为了验证模型,使用Python语言编写仿真程序,通过flask框架搭建3个节点的Web框架。实验表明,提出方案能实现交易数据上链及多个节点数据同步,并实现网络中任何节点发送并存储数据,能有效对交易数据进行加密,可以解决B/S架构对中心节点过于依赖等问题。
In this paper,the structure of B/S is a problem of security hidden problem in the center,and a real network environment is proposed. The scheme is based on the multiple nodes in the network,using the block chain to the centralized mechanism to store the transaction data,and the verification of the right of account is obtained by using the consensus mechanism. In order to protect the privacy of transaction data,the scheme has carried out the hash encryption operation for the transaction data,while the problem of different node data in the network is proposed,and the nodes in the network are put forward according to the longest block chain. Through the Python language,the experimental simulation program has set up three Web models of the nodes through the flask framework. The experiment shows that the scheme can realize the chain of transaction data and realize multiple node data synchronization.The block chain technology can be used to send the data in any node in the network,and it can effectively encrypt the transaction data,and can effectively solve the problem of the B/S architecture to rely too much on the central nodes.
作者
刘敏娜
尹成
张伟
LIU Minna;YIN Cheng;ZHANG Wei(Xianyang Normal University,Xiangyang 712000,China;Microsoft-Tsinghua University Joint Laboratory,Beijing 100000,China)
出处
《电子设计工程》
2022年第5期12-16,共5页
Electronic Design Engineering
基金
2021年度国家自然科学基金(62073218)
2021年度陕西省提升公众科学素养计划项目(2021PSL40)
陕西省2020年社会科学基金项目(2020P037)
文旅部2020年度文化艺术和旅游研究项目信息化发展专项项目(MCT2020XZ07)。
关键词
区块链
节点
区块
交易数据
哈希加密
block chain
node
block
trading data
Hash encryption