CN114723567B - Financial data information distributed transaction system based on block chain technology - Google Patents
Financial data information distributed transaction system based on block chain technology Download PDFInfo
- Publication number
- CN114723567B CN114723567B CN202210653426.1A CN202210653426A CN114723567B CN 114723567 B CN114723567 B CN 114723567B CN 202210653426 A CN202210653426 A CN 202210653426A CN 114723567 B CN114723567 B CN 114723567B
- Authority
- CN
- China
- Prior art keywords
- blockchain
- data
- data information
- financial
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000005516 engineering process Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 46
- 230000003993 interaction Effects 0.000 claims abstract description 25
- 230000008569 process Effects 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims abstract description 18
- 238000004422 calculation algorithm Methods 0.000 claims description 86
- 238000013500 data storage Methods 0.000 claims description 65
- 230000004927 fusion Effects 0.000 claims description 35
- 241001441724 Tetraodontidae Species 0.000 claims description 29
- 238000005457 optimization Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000011156 evaluation Methods 0.000 claims description 3
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000007635 classification algorithm Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000003066 decision tree Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003064 k means clustering Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Software Systems (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Technology Law (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及金融数据交互安全技术领域,具体涉及一种基于区块链技术的金融数据化信息分布式交易系统。The invention relates to the technical field of financial data interaction security, in particular to a distributed transaction system for financial data-based information based on blockchain technology.
背景技术Background technique
数据库作为企业核心应用系统的重要组成部分,从其出现伊始就逐渐占据可观地位,目前几乎所有的关键应用都无法离开数据库系统提供的底层支撑,金融行业尤其如此。最近几年,随着越来越多金融企业的数据规模不断增加、数据使用复杂度也在提高,对底层数据库的能力要求也“水涨船高”,传统集中式数据库已不能满足需要,因此具备高性能、可扩展、高可用和高容错特性的分布式数据库,就成为了目前金融行业数字化转型中的首要选择,可以说金融行业走向分布式数据库已是大势所趋。As an important part of the core application system of an enterprise, the database has gradually occupied a considerable position since its appearance. At present, almost all key applications cannot leave the underlying support provided by the database system, especially in the financial industry. In recent years, as more and more financial enterprises continue to increase the scale of data and the complexity of data usage, the capability requirements for the underlying database are also "rising". The traditional centralized database can no longer meet the needs, so it has high performance , scalable, highly available and highly fault-tolerant distributed databases have become the first choice in the digital transformation of the financial industry. It can be said that the financial industry is moving towards distributed databases.
在金融数据信息的交易终端中,金融终端呈分布式分布趋势严重,在不同时空和区域的交易范围内,如何实现分布式交易,仍旧存在一些技术风险,比如数据交易过程中漏洞较大,数据传输过程不安全,容易被篡改,数据交互不便利等诸多问题。In the trading terminal of financial data information, the financial terminal has a serious distributed distribution trend. In the trading range of different time, space and regions, there are still some technical risks in how to realize distributed trading. The transmission process is insecure, easy to be tampered with, and data interaction is inconvenient.
发明内容SUMMARY OF THE INVENTION
针对上述技术的不足,本发明公开一种基于区块链技术的金融数据化信息分布式交易系统,旨在解决分布式交易问题,通过区块链技术提高了数据交易过程中的安全能力。In view of the deficiencies of the above technologies, the present invention discloses a distributed transaction system of financial data information based on blockchain technology, aiming at solving the problem of distributed transactions, and improving the security capability in the process of data transaction through blockchain technology.
为了实现上述技术效果,本发明采用以下技术方案:In order to realize above-mentioned technical effect, the present invention adopts following technical scheme:
一种基于区块链技术的金融数据化信息分布式交易系统,其中包括:A distributed transaction system for financial data-based information based on blockchain technology, including:
金融数据终端,在不同的区域或者位置产生各种金融交易数据信息,所述金融数据终端设置有区块链节点,通过区块链节点能够实现不同数据信息的交互和应用;The financial data terminal generates various financial transaction data information in different areas or locations, and the financial data terminal is provided with a blockchain node, and the interaction and application of different data information can be realized through the blockchain node;
数据存储模块;用于实现不同金融交易数据信息的存储,所述数据存储模块包括HBASE+HIVE+SPARK存储模块、云端数据库、区块链接口、区块链节点、分布式数据存储区块和搜索引擎,其中所述HBASE+HIVE+SPARK存储模块包含HBASE数据库、HIVE数据库和SPARK数据库,所述HBASE数据库、云端数据库、HIVE数据库和SPARK数据库的输出端通过区块链接口与区块链节点连接,所述区块链节点与分布式数据存储区块连接,所述分布式数据存储区块内设置有搜索引擎;Data storage module; used to realize the storage of different financial transaction data information, the data storage module includes HBASE+HIVE+SPARK storage module, cloud database, blockchain interface, blockchain node, distributed data storage block and search engine, wherein the HBASE+HIVE+SPARK storage module includes the HBASE database, the HIVE database and the SPARK database, and the outputs of the HBASE database, the cloud database, the HIVE database and the SPARK database are connected to the blockchain nodes through the blockchain interface, The blockchain node is connected to a distributed data storage block, and a search engine is provided in the distributed data storage block;
分布式数据融合模块;用于实现不同金融数据终端数据信息的融合,将不同金融交易数据类型数据进行汇总和计算,所述分布式数据融合模块设置有区块链数据节点;Distributed data fusion module; used to realize the fusion of data information of different financial data terminals, and to aggregate and calculate data of different financial transaction data types, the distributed data fusion module is provided with blockchain data nodes;
区块链网络;作为多个区块构成的数据区块链条,在区块中保存金融数据信息,按照各自产生的金融数据信息时间顺序连接成链条,将这些链条存储在区块链服务器中,为整个区块链系统提供存储空间和算力支持;Blockchain network; as a data blockchain chain composed of multiple blocks, financial data information is stored in the blocks, and the financial data information generated by each is connected to form a chain in time sequence, and these chains are stored in the blockchain server, Provide storage space and computing power support for the entire blockchain system;
区块链节点;作为区域的服务器,设置有共识机制,能够实现不同金融数据终端的数据连接;Blockchain node; as a regional server, there is a consensus mechanism, which can realize data connection between different financial data terminals;
加密模块;能够实现金融数据终端数据发送时加密和接收数据信息的数据解密,当数据在传输过程中遇到危险时,能够自动预警并将发送过程中的数据信息清零;Encryption module; it can realize the encryption of financial data terminal data when it is sent and the data decryption of received data information. When the data encounters danger during the transmission process, it can automatically warn and clear the data information in the sending process;
其中金融数据终端、数据存储模块、分布式数据融合模块和加密模块设置在区块链网络中,所述金融数据终端的输出端与数据存储模块的输入端连接,所述数据存储模块的输出端与分布式数据融合模块的输入端连接,所述分布式数据融合模块的输出端与加密模块的输入端连接。The financial data terminal, data storage module, distributed data fusion module and encryption module are set in the blockchain network, the output end of the financial data terminal is connected with the input end of the data storage module, and the output end of the data storage module It is connected with the input end of the distributed data fusion module, and the output end of the distributed data fusion module is connected with the input end of the encryption module.
作为本发明进一步的技术方案,所述数据存储模块实现存储的方法为:As a further technical solution of the present invention, the method for realizing storage by the data storage module is:
(1)接收金融数据终端发送的数据信息,并将接收到的数据信息写入,调用函数实现不同数据库信息之间的信息交互;(1) Receive the data information sent by the financial data terminal, write the received data information, and call the function to realize the information interaction between different database information;
(2)读取金融数据信息,在分布式金融数据终端,通过调用open函数,向区块链节点的数据信息发送调用函数,通过各个数据库内设置的区块链节点,获取各个分布式金融数据终端数据块信息;(2) Reading financial data information, in the distributed financial data terminal, by calling the open function, the calling function is sent to the data information of the blockchain node, and each distributed financial data is obtained through the blockchain nodes set in each database. terminal data block information;
(3)金融数据信息存储,调取区块链存储的数据程序。(3) Financial data information storage, calling the data program stored in the blockchain.
作为本发明进一步的技术方案,所述搜索引擎为贝叶斯算法搜索引擎或者K-means算法搜索引擎或者贝叶斯算法搜索引擎和K-means算法搜索引擎的结合,其中贝叶斯算法搜索引擎或者K-means算法搜索引擎均设置有区块链接口。As a further technical solution of the present invention, the search engine is a Bayesian algorithm search engine or a K-means algorithm search engine or a combination of a Bayesian algorithm search engine and a K-means algorithm search engine, wherein the Bayesian algorithm search engine Or the K-means algorithm search engine is equipped with a blockchain interface.
作为本发明进一步的技术方案,分布式数据融合模块包括区块链融合接口、融合模块和Nash均衡算法模块,其中所述区块链融合接口用于通过区块链网络接收分布式数据信息,融合模块用于融合不同类型的金融数据信息,Nash均衡算法模块用于调节不同存储模块,实现区块链不同数据信息的调度。As a further technical solution of the present invention, the distributed data fusion module includes a blockchain fusion interface, a fusion module and a Nash equalization algorithm module, wherein the blockchain fusion interface is used to receive distributed data information through a blockchain network, and the fusion The module is used to integrate different types of financial data information, and the Nash equalization algorithm module is used to adjust different storage modules to realize the scheduling of different data information in the blockchain.
作为本发明进一步的技术方案,所述Nash均衡算法模块通过以下方法实现不同区块链节点金融数据信息的平衡和调节:As a further technical solution of the present invention, the Nash balance algorithm module realizes the balance and adjustment of financial data information of different blockchain nodes by the following methods:
步骤一、设置数据存储模块的存储函数,表示式为:Step 1. Set the storage function of the data storage module, the expression is:
(1) (1)
式(1)中,表示数据存储模块存储的区块链金融数据类型函数,表示第个区 块链存储节点数据信息分析速率,表示不同类型的区块链节点兼容交易数据信息存储 参数,表示HBASE数据库数据存储,表示HIVE数据库数据存储,表示SPARK数据库 数据存储,、、表示HBASE数据库、HIVE数据库和SPARK数据库区块链存储信息函 数式,表示数据库,表示数据库下标标识,表示HBASE数据库的数据类型,表示 HIVE数据库的数据类型,表示SPARK数据库的数据类型; In formula (1), Represents the blockchain financial data type function stored by the data storage module, means the first The data information analysis rate of each blockchain storage node, Indicates that different types of blockchain nodes are compatible with transaction data information storage parameters, Represents the HBASE database data store, Represents HIVE database data storage, represents the SPARK database data store, , , Represents HBASE database, HIVE database and SPARK database blockchain storage information function, represents the database, Represents the database subscript identifier, Represents the data type of the HBASE database, Represents the data type of the HIVE database, Represents the data type of the SPARK database;
步骤二、调节数据存储模块的存储金融数据信息;Step 2, adjusting the stored financial data information of the data storage module;
根据数据存储模块中存储金融数据信息区块链的参数进行Nash均衡调节,调节函数表示为:According to the parameters of the blockchain that stores financial data information in the data storage module, Nash balance adjustment is performed, and the adjustment function is expressed as:
(2) (2)
式(2)中,表示存储金融数据信息区块内区块链数据的均衡值,表示存储 金融数据信息区块中区块链金融数据信息状态,表示区块链金融数据信息调度的均衡速 度,表示不同类型的区块链存储参数,n区块链存储参数的个数,i表示区块链区块数; 表示区块链数据均衡值参数; In formula (2), Represents the equilibrium value of the blockchain data in the storage financial data information block, Indicates the state of blockchain financial data information in the storage financial data information block, Represents the equilibrium speed of blockchain financial data information scheduling, Represents different types of blockchain storage parameters, n is the number of blockchain storage parameters, and i represents the number of blockchain blocks; Represents the blockchain data balance value parameter;
步骤三、调节区块链储存指标,标准化处理;Step 3. Adjust the storage indicators of the blockchain and standardize the processing;
经过Nash均衡之后,数据存储模块中的区块链金融数据信息储存指标标准化处理为:After Nash balancing, the standardized processing of blockchain financial data information storage indicators in the data storage module is as follows:
(3) (3)
式(3),表示标准化处理后的区块链储存指标,中的表示为区块链储 存指标的种类,中的表示为区块链储存指标的长度;表示数据存储模块中具 有区块链输入表示的数值,其中中的表示区块链数据符号,中的表示区块 链金融数据信息调度的均衡速度,中的表示区块链金融数据信息调度后的数据标 识,中的表示区块链存储节点,表示区块链金融数据信息存储后的数据指标,表示金融交易数据信息在区块链网络中实现调度的时间差; Formula (3), Represents the standardized blockchain storage index, middle Represented as the type of blockchain storage indicator, middle Expressed as the length of the blockchain storage indicator; Represents a numeric value in a data storage module with a blockchain input representation, where middle Represents the blockchain data symbol, middle Represents the equilibrium speed of blockchain financial data information scheduling, middle Represents the data identifier after the scheduling of blockchain financial data information, middle Represents a blockchain storage node, Represents the data indicators after the blockchain financial data information is stored, Represents the time difference between financial transaction data information scheduling in the blockchain network;
步骤四、通过更新最优化算法实现区块链金融数据信息输入更新;Step 4. Realize the input and update of blockchain financial data information by updating the optimization algorithm;
对于均衡后的区块链数据存储模块,若进行区块链金融数据信息交互,需保证区 块链金融数据信息输入更新最优化,通过函数评估: For the balanced blockchain data storage module, if the blockchain financial data information is exchanged, it is necessary to ensure that the input and update of the blockchain financial data information is optimized. Function evaluation:
(4) (4)
式(4)中,表示最优区块链金融数据信息交互方法函数, 中的表示均 衡状态下的区块链金融数据信息交互变化, 中的表示不同区块链节点数据信息的 交互次数,表示区块链金融数据信息交互过程有效率,表示初始区块链金融数据 信息输出量,表示区块链数据信息更新最优化算法过程指标系数,表示存储金融数 据信息区块随时间的变化状态,表示非均衡状态下的区块链金融数据信息交互函 数。 In formula (4), Represents the optimal blockchain financial data information interaction method function, middle Represents the interactive changes of blockchain financial data and information in an equilibrium state, middle Represents the number of interactions between data information of different blockchain nodes, Indicates that the blockchain financial data information exchange process is efficient, Indicates the output amount of initial blockchain financial data information, Represents the index coefficient of the process of updating the optimization algorithm of the blockchain data information, Represents the changing state of the block storing financial data information over time, Represents the information interaction function of blockchain financial data in a non-equilibrium state.
有效率差函数为:The effective rate difference function is:
(5) (5)
式(5)中,表示区块链金融交易有效数据更新差值,表示均衡状态下的区 块链金融数据信息交互有效率,表示未达均衡状态的区块链金融数据信息交互有效 率,表示区块链网络中整个区块允许的最大数据更新量。 In formula (5), Represents the difference between valid data updates of blockchain financial transactions, Indicates that the blockchain financial data information exchange efficiency in a balanced state, Indicates that the exchange of financial data and information on the blockchain that has not reached an equilibrium state is efficient, Represents the maximum amount of data updates allowed for the entire block in the blockchain network.
作为本发明进一步的技术方案,所述加密模块为改进型Blowfish加密算法模块,所述改进型Blowfish加密算法模块包含加密单元、区块链节点和解密单元,其中所述加密单元的输出端与区块链节点的输入端连接,所述区块链节点的输出端和解密单元的输入端连接。As a further technical solution of the present invention, the encryption module is an improved Blowfish encryption algorithm module, and the improved Blowfish encryption algorithm module includes an encryption unit, a blockchain node and a decryption unit, wherein the output end of the encryption unit is the same as the region The input end of the block chain node is connected, and the output end of the block chain node is connected with the input end of the decryption unit.
作为本发明进一步的技术方案,所述加密单元中设置有预警函数和清零函数,加密单元在加密过程中通过Blowfish加密算法对传递过程中的数据信息进行加密,加密后的数据信息遇到风险数据信息时,自动启动预警函数,提示传输过程中有风险出现,当预警级别达到设置的最高级时,自动启动清零函数,将传递过程中的高风险金融数据信息清零,并将清零前的金融数据信息原路返回。As a further technical solution of the present invention, an early warning function and a zero-clearing function are set in the encryption unit, and the encryption unit encrypts the data information in the transmission process through the Blowfish encryption algorithm during the encryption process, and the encrypted data information encounters risks. When the data information is sent, the warning function is automatically started to indicate that there is a risk in the transmission process. When the warning level reaches the highest level set, the clearing function is automatically started to clear the high-risk financial data information in the transmission process, and it will be cleared to zero. The previous financial data information returns the same way.
作为本发明进一步的技术方案,解密单元工作方法为:As a further technical scheme of the present invention, the working method of the decryption unit is:
使用MD5算法公钥对签名块进行解密,通过哈希函数摘要实现公文密文进行比较,如果来源相同,并且未发现漏洞,则视为文件完整,不需要重新发送,如果MD5算法公钥无法实现数据解密,再启动RSA解密密算法对文件数据信息进行解密,然后输出Blowfish加密算法的密钥;最后再通过Blowfish加密算法的密钥对公文密文进行解密,则输出解密后的电子文件M。Use the MD5 algorithm public key to decrypt the signature block, and compare the official document ciphertext through the hash function digest. If the source is the same and no loopholes are found, the file is considered complete and does not need to be resent. If the MD5 algorithm public key cannot be implemented Data decryption, then start the RSA decryption encryption algorithm to decrypt the file data information, and then output the key of the Blowfish encryption algorithm; finally, decrypt the ciphertext of the official document through the key of the Blowfish encryption algorithm, and output the decrypted electronic file M.
本发明有益的积极效果在于:The beneficial positive effects of the present invention are:
区别于常规技术,本发明通过数据存储模块能够实现不同金融交易数据信息的存储,采用的数据存储模块为HBASE+HIVE+SPARK存储模块、云端数据库,通过在这些存储模块中设置区块链接口、区块链节点、分布式数据存储区块和搜索引擎,提高了数据存储能力和数据搜索能力。通过设置分布式数据融合模块能够实现不同金融数据终端数据信息的融合,通过区块链网络能够保存金融数据信息,通过设置区块链节点能够实现不同金融数据终端的数据连接;通过加密模块能够实现金融数据终端数据发送时加密和接收数据信息的数据解密,当数据在传输过程中遇到危险时,能够自动预警并将发送过程中的数据信息清零;Different from the conventional technology, the present invention can realize the storage of different financial transaction data information through the data storage module. The adopted data storage module is the HBASE+HIVE+SPARK storage module and the cloud database. Blockchain nodes, distributed data storage blocks and search engines improve data storage capabilities and data search capabilities. By setting the distributed data fusion module, the fusion of data information of different financial data terminals can be realized, the financial data information can be saved through the blockchain network, and the data connection of different financial data terminals can be realized by setting the blockchain nodes; the encryption module can realize When the data of the financial data terminal is sent, it encrypts and decrypts the data of the received data information. When the data encounters danger during the transmission process, it can automatically warn and clear the data information during the sending process;
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图,其中:In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor, wherein:
图1为本发明整体结构示意图;Fig. 1 is the overall structure schematic diagram of the present invention;
图2为本发明中数据存储模块原理结构示意图;Fig. 2 is a schematic diagram of the principle structure of a data storage module in the present invention;
图3为本发明中加密方法一种实施例示意图;3 is a schematic diagram of an embodiment of an encryption method in the present invention;
图4为本发明中加密方法一种实施例示意图;4 is a schematic diagram of an embodiment of an encryption method in the present invention;
图5为本发明中解密方法一种实施例示意图。FIG. 5 is a schematic diagram of an embodiment of a decryption method in the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
如图1和图2所示,一种基于区块链技术的金融数据化信息分布式交易系统,包括:As shown in Figure 1 and Figure 2, a distributed transaction system for financial data-based information based on blockchain technology includes:
金融数据终端,在不同的区域或者位置产生各种金融交易数据信息,所述金融数据终端设置有区块链节点,通过区块链节点能够实现不同数据信息的交互和应用;The financial data terminal generates various financial transaction data information in different areas or locations, and the financial data terminal is provided with a blockchain node, and the interaction and application of different data information can be realized through the blockchain node;
数据存储模块;用于实现不同金融交易数据信息的存储,所述数据存储模块包括HBASE+HIVE+SPARK存储模块、云端数据库、区块链接口、区块链节点、分布式数据存储区块和搜索引擎,其中所述HBASE+HIVE+SPARK存储模块包含HBASE数据库、HIVE数据库和SPARK数据库,所述HBASE数据库、云端数据库、HIVE数据库和SPARK数据库的输出端通过区块链接口与区块链节点连接,所述区块链节点与分布式数据存储区块连接,所述分布式数据存储区块内设置有搜索引擎;Data storage module; used to realize the storage of different financial transaction data information, the data storage module includes HBASE+HIVE+SPARK storage module, cloud database, blockchain interface, blockchain node, distributed data storage block and search engine, wherein the HBASE+HIVE+SPARK storage module includes the HBASE database, the HIVE database and the SPARK database, and the outputs of the HBASE database, the cloud database, the HIVE database and the SPARK database are connected to the blockchain nodes through the blockchain interface, The blockchain node is connected to a distributed data storage block, and a search engine is provided in the distributed data storage block;
分布式数据融合模块;用于实现不同金融数据终端数据信息的融合,将不同金融交易数据类型数据进行汇总和计算,所述分布式数据融合模块设置有区块链数据节点;Distributed data fusion module; used to realize the fusion of data information of different financial data terminals, and to aggregate and calculate data of different financial transaction data types, the distributed data fusion module is provided with blockchain data nodes;
区块链网络;作为多个区块构成的数据区块链条,在区块中保存金融数据信息,按照各自产生的金融数据信息时间顺序连接成链条,将这些链条存储在区块链服务器中,为整个区块链系统提供存储空间和算力支持;Blockchain network; as a data blockchain chain composed of multiple blocks, financial data information is stored in the blocks, and the financial data information generated by each is connected to form a chain in time sequence, and these chains are stored in the blockchain server, Provide storage space and computing power support for the entire blockchain system;
区块链节点;作为区域的服务器,设置有共识机制,能够实现不同金融数据终端的数据连接;Blockchain node; as a regional server, there is a consensus mechanism, which can realize data connection between different financial data terminals;
加密模块;能够实现金融数据终端数据发送时加密和接收数据信息的数据解密,当数据在传输过程中遇到危险时,能够自动预警并将发送过程中的数据信息清零;Encryption module; it can realize the encryption of financial data terminal data when it is sent and the data decryption of received data information. When the data encounters danger during the transmission process, it can automatically warn and clear the data information in the sending process;
其中金融数据终端、数据存储模块、分布式数据融合模块和加密模块设置在区块链网络中,所述金融数据终端的输出端与数据存储模块的输入端连接,所述数据存储模块的输出端与分布式数据融合模块的输入端连接,所述分布式数据融合模块的输出端与加密模块的输入端连接。The financial data terminal, data storage module, distributed data fusion module and encryption module are set in the blockchain network, the output end of the financial data terminal is connected with the input end of the data storage module, and the output end of the data storage module It is connected with the input end of the distributed data fusion module, and the output end of the distributed data fusion module is connected with the input end of the encryption module.
在上述实施例中,所述数据存储模块实现存储的方法为:In the above-mentioned embodiment, the method for realizing storage by the data storage module is:
(1)接收金融数据终端发送的数据信息,并将接收到的数据信息写入,调用函数实现不同数据库信息之间的信息交互;(1) Receive the data information sent by the financial data terminal, write the received data information, and call the function to realize the information interaction between different database information;
在具体实施例中,比如调用 Distributed File System函数中的create()程序,在经过初始化之后,将接收到的中压设备不同文件信息输出到HBASE、HIVE或者SPARK数据库中,此时的区块链网络架构节点会接收上述数据信息并根据数据内容通过搜索引擎查询数据信息,当数据接口接收数据信息时,根据接收数据之前用户设置的创建文件的权限,输出数据接收情况,当数据接收后, FSData Output Stream 能够将接收到的文件信息分成若干个小包,在不同数据库的数据节点之间实现数据信息的交互,借助于 write packet方案将接收到的数据信息写到数据节点中。数据写入成功后,则表示数据局库信息能够接收该数据信息,通过调用 ack packet 程序员给客户端,人工操作指令,实现数据信息的关闭,然后可以将数据完成的信息返回给不同的区块链架构节点。In a specific embodiment, for example, the create() program in the Distributed File System function is called, and after initialization, the received information on different files of the medium voltage device is output to the HBASE, HIVE or SPARK database. At this time, the blockchain The network architecture node will receive the above data information and query the data information through the search engine according to the data content. When the data interface receives the data information, it will output the data reception status according to the permission set by the user to create a file before receiving the data. After the data is received, FSData Output Stream can divide the received file information into several small packets, realize the interaction of data information between data nodes of different databases, and write the received data information to the data nodes with the help of the write packet scheme. After the data is written successfully, it means that the data bureau information can receive the data information. By calling the ack packet programmer to the client and manually operating the instruction, the data information can be closed, and then the data completed information can be returned to different areas. Blockchain architecture node.
(2)读取金融数据信息,在分布式金融数据终端,通过调用open函数,向区块链节点的数据信息发送调用函数,通过各个数据库内设置的区块链节点,获取各个分布式金融数据终端数据块信息。(2) Reading financial data information, in the distributed financial data terminal, by calling the open function, the calling function is sent to the data information of the blockchain node, and each distributed financial data is obtained through the blockchain nodes set in each database. Terminal block information.
在用户客户端处,通过调用read()函数,实现数据信息的获取,最终在DFSInputStream识别获取的数据信息。At the user client, the data information is obtained by calling the read() function, and the obtained data information is finally identified in the DFSInputStream.
最后的数据信息返回到用户客户端(3)金融数据信息存储,调取区块链存储的数据程序。The final data information is returned to the user client (3) Financial data information storage, and the data program stored in the blockchain is called.
在具体实施例中,一旦当前的区块链数据流断开后,通过选择区块链数据节点获取数据块。然后调取close函数阻断当前的数据流。其中一种形式的通过上述方式完成数据存储。本研究中,为了提高数据存储的功能,采用了云存储技术,在云平台中融合了数据安全管理、云数据监控以及区块链调度、云数据共享与交互、资源调度等多方面服务。In a specific embodiment, once the current blockchain data stream is disconnected, the data block is obtained by selecting a blockchain data node. Then call the close function to block the current data flow. One of the forms of data storage is accomplished in the manner described above. In this research, in order to improve the function of data storage, cloud storage technology is adopted, which integrates data security management, cloud data monitoring, blockchain scheduling, cloud data sharing and interaction, resource scheduling and other services in the cloud platform.
在具体实施例中,通过该存储模块能够实现多种数据信息的存储,本发明兼容HBASE+HIVE+SPARK的数据接口,提高了多种数据的存存储力,使得不同数据库下的金融数据能够实现互通。在具体实施例中,还引入云存储技术方法,使得不同位置或者环境下的金融数据能够自动化实现存储、计算与传递,提高了数据共享能力和存存储力。In a specific embodiment, the storage module can realize the storage of various data information, the present invention is compatible with the data interface of HBASE+HIVE+SPARK, improves the storage and storage capacity of various data, and enables financial data under different databases to be realized. Intercommunication. In a specific embodiment, a cloud storage technology method is also introduced, so that financial data in different locations or environments can be automatically stored, calculated and transmitted, and the data sharing capability and storage and storage capability are improved.
在具体实施例中,上述方法还能够实现数据加密和解密的功能。In a specific embodiment, the above method can also implement the functions of data encryption and decryption.
在上述实施例中,所述搜索引擎为贝叶斯算法搜索引擎或者K-means算法搜索引擎或者贝叶斯算法搜索引擎和K-means算法搜索引擎的结合,其中贝叶斯算法搜索引擎或者K-means算法搜索引擎均设置有区块链接口。In the above embodiment, the search engine is a Bayesian algorithm search engine or a K-means algorithm search engine or a combination of a Bayesian algorithm search engine and a K-means algorithm search engine, wherein the Bayesian algorithm search engine or K-means algorithm search engine -means algorithm search engines are equipped with blockchain interfaces.
在具体实施例中,实现分布式存储的方法还可以采用数据查询引擎技术,该技术能够在不同的数据库之间或者数据节点进行特定属性的数据查询和检索。在索引数据信息时,充分考虑了元数据标准,该标准根据元数据数据存储模块和与该数据数据存储模块相关技术的研究进行的定义。在组织架构中,将搜索引擎划分为区块链网络爬虫Crawler、索引器、检索器以及用户接口,通过这些部件实现数据的搜索。在进行数据检索时,区块链网络爬虫Crawler通过Web区块链网络实现数据检索。索引器的主要作用是通过下载的内容实现数据分析,在分析数据时,根据数据存储方法、检索词语、目标函数分类、文档匹配等情况进行。分析后的结果通过用户接口与用户进行数据交互。In a specific embodiment, the method for realizing distributed storage may also adopt a data query engine technology, which can perform data query and retrieval of specific attributes between different databases or data nodes. When indexing data information, full consideration is given to the metadata standard, which is defined according to the research on the metadata data storage module and related technologies of the data data storage module. In the organizational structure, the search engine is divided into block chain web crawler Crawler, indexer, retriever and user interface, and data search is realized through these components. During data retrieval, the blockchain web crawler Crawler realizes data retrieval through the web blockchain network. The main function of the indexer is to realize data analysis through the downloaded content. When analyzing the data, it is carried out according to the data storage method, search terms, objective function classification, document matching and so on. The analyzed results interact with the user through the user interface.
在具体实施例中,贝叶斯分类算法是统计学的一种分类方法,它是一类利用概率统计知识进行分类的算法。在许多场合,朴素贝叶斯(Naïve Bayes,NB)分类算法可以与决策树和神经网络分类算法相媲美,该算法能运用到大型数据库中,而且方法简单、分类准确率高、速度快。k均值聚类算法(k-means clustering algorithm)是一种迭代求解的聚类分析算法,其步骤是,预将数据分为K组,则随机选取K个对象作为初始的聚类中心,然后计算每个对象与各个种子聚类中心之间的距离,把每个对象分配给距离它最近的聚类中心。聚类中心以及分配给它们的对象就代表一个聚类。每分配一个样本,聚类的聚类中心会根据聚类中现有的对象被重新计算。这个过程将不断重复直到满足某个终止条件。终止条件可以是没有(或最小数目)对象被重新分配给不同的聚类,没有(或最小数目)聚类中心再发生变化,误差平方和局部最小。In a specific embodiment, the Bayesian classification algorithm is a classification method of statistics, which is a class of algorithms for classification using knowledge of probability and statistics. In many cases, the Naïve Bayes (NB) classification algorithm can be compared with the decision tree and neural network classification algorithm. This algorithm can be applied to large databases, and the method is simple, high classification accuracy and fast. The k-means clustering algorithm is an iterative clustering analysis algorithm. The steps are: pre-divide the data into K groups, randomly select K objects as the initial clustering centers, and then calculate The distance between each object and each seed cluster center, assigning each object to the cluster center closest to it. Cluster centers and the objects assigned to them represent a cluster. Each time a sample is assigned, the cluster center of the cluster is recalculated based on the existing objects in the cluster. This process will repeat until a certain termination condition is met. Termination conditions can be that no (or a minimum number) of objects are reassigned to different clusters, no (or a minimum number) of cluster centers change again, and the sum of squared errors is locally minimized.
在上述实施例中,分布式数据融合模块包括区块链融合接口、融合模块和Nash均衡算法模块,其中所述区块链融合接口用于通过区块链网络接收分布式数据信息,融合模块用于融合不同类型的金融数据信息,Nash均衡算法模块用于调节不同存储模块,实现区块链不同数据信息的调度。In the above embodiment, the distributed data fusion module includes a blockchain fusion interface, a fusion module and a Nash equalization algorithm module, wherein the blockchain fusion interface is used to receive distributed data information through the blockchain network, and the fusion module uses In order to integrate different types of financial data information, the Nash equalization algorithm module is used to adjust different storage modules to realize the scheduling of different data information in the blockchain.
在上述实施例中,Nash均衡算法模块通过以下方法实现不同区块链节点金融数据信息的平衡和调节In the above embodiment, the Nash balance algorithm module realizes the balance and adjustment of financial data information of different blockchain nodes through the following methods
纳什均衡(Nash equilibrium)主要对存在关联的金融交易数据信息形成博弈局面,在博弈过程中金融交易数据信息间的变化会导致整体金融交易数据的变动,而若个体金融交易数据信息改变状态,则博弈中的其它金融交易数据信息个体均不会发生改变,即在金融交易数据群体性管理中必存在Nash平衡。Nash equilibrium mainly forms a game situation for related financial transaction data information. During the game, changes in financial transaction data information will lead to changes in the overall financial transaction data. If the individual financial transaction data information changes state, then Other financial transaction data information individuals in the game will not change, that is, there must be Nash balance in the group management of financial transaction data.
在区块链数据存储模块中,在存储时间内,金融交易数据信息能够根据区块链类型进行自适应调节,使数据存储模块能够根据需求制定出相应的存储过程。In the blockchain data storage module, within the storage time, financial transaction data information can be adaptively adjusted according to the type of blockchain, so that the data storage module can formulate a corresponding storage process according to requirements.
步骤一、设置数据存储模块的存储函数,表示式为:Step 1. Set the storage function of the data storage module, the expression is:
(1) (1)
式(1)中,表示数据存储模块存储的区块链金融数据类型函数,表示第个区 块链存储节点数据信息分析速率,表示不同类型的区块链节点兼容交易数据信息存储 参数,表示HBASE数据库数据存储,表示HIVE数据库数据存储,表示SPARK数据 库数据存储,、、表示HBASE数据库、HIVE数据库和SPARK数据库区块链存储信息 函数式,表示数据库,表示数据库下标标识,表示HBASE数据库的数据类型,表 示HIVE数据库的数据类型,表示SPARK数据库的数据类型; In formula (1), Represents the blockchain financial data type function stored by the data storage module, means the first The data information analysis rate of each blockchain storage node, Indicates that different types of blockchain nodes are compatible with transaction data information storage parameters, Represents the HBASE database data store, Represents HIVE database data storage, represents the SPARK database data store, , , Represents HBASE database, HIVE database and SPARK database blockchain storage information function, represents the database, Represents the database subscript identifier, Represents the data type of the HBASE database, Represents the data type of the HIVE database, Represents the data type of the SPARK database;
步骤二、调节数据存储模块的存储金融数据信息;Step 2, adjusting the stored financial data information of the data storage module;
根据数据存储模块中存储金融数据信息区块链的参数进行Nash均衡调节,调节函数表示为:According to the parameters of the blockchain that stores financial data information in the data storage module, Nash balance adjustment is performed, and the adjustment function is expressed as:
(2) (2)
式(2)中,表示存储金融数据信息区块内区块链数据的均衡值,表示存 储金融数据信息区块中区块链金融数据信息状态,表示区块链金融数据信息调度的均 衡速度,表示不同类型的区块链存储参数,n区块链存储参数的个数,i表示区块链区块 数;表示区块链数据均衡值参数; In formula (2), Represents the equilibrium value of the blockchain data in the storage financial data information block, Indicates the state of blockchain financial data information in the storage financial data information block, Represents the equilibrium speed of blockchain financial data information scheduling, Represents different types of blockchain storage parameters, n is the number of blockchain storage parameters, and i represents the number of blockchain blocks; Represents the blockchain data balance value parameter;
步骤三、调节区块链储存指标,标准化处理;Step 3. Adjust the storage indicators of the blockchain and standardize the processing;
经过Nash均衡之后,数据存储模块中的区块链金融数据信息储存指标标准化处理为:After Nash balancing, the standardized processing of blockchain financial data information storage indicators in the data storage module is as follows:
(3) (3)
式(3),表示标准化处理后的区块链储存指标,中的表示为区块链储 存指标的种类,中的表示为区块链储存指标的长度;表示数据存储模块中具 有区块链输入表示的数值,其中中的表示区块链数据符号,中的表示区块 链金融数据信息调度的均衡速度,中的表示区块链金融数据信息调度后的数据标 识,中的表示区块链存储节点,表示区块链金融数据信息存储后的数据指标,表示金融交易数据信息在区块链网络中实现调度的时间差; Formula (3), Represents the standardized blockchain storage index, middle Represented as the type of blockchain storage indicator, middle Expressed as the length of the blockchain storage indicator; Represents a numeric value in a data storage module with a blockchain input representation, where middle Represents the blockchain data symbol, middle Represents the equilibrium speed of blockchain financial data information scheduling, middle Represents the data identifier after the scheduling of blockchain financial data information, middle Represents a blockchain storage node, Represents the data indicators after the blockchain financial data information is stored, Represents the time difference between financial transaction data information scheduling in the blockchain network;
步骤四、通过更新最优化算法实现区块链金融数据信息输入更新;Step 4. Realize the input and update of blockchain financial data information by updating the optimization algorithm;
对于均衡后的区块链数据存储模块,若进行区块链金融数据信息交互,需保证区 块链金融数据信息输入更新最优化,通过函数评估: For the balanced blockchain data storage module, if the blockchain financial data information is exchanged, it is necessary to ensure that the input and update of the blockchain financial data information is optimized. Function evaluation:
(4) (4)
式(4)中,表示最优区块链金融数据信息交互方法函数, 中的表示均 衡状态下的区块链金融数据信息交互变化, 中的表示不同区块链节点数据信息 的交互次数,表示区块链金融数据信息交互过程有效率,表示初始区块链金融数 据信息输出量,表示区块链数据信息更新最优化算法过程指标系数,表示存储金融 数据信息区块随时间的变化状态,表示非均衡状态下的区块链金融数据信息交互函 数。 In formula (4), Represents the optimal blockchain financial data information interaction method function, middle Represents the interactive changes of blockchain financial data and information in an equilibrium state, middle Represents the number of interactions between data information of different blockchain nodes, Indicates that the blockchain financial data information exchange process is efficient, Indicates the output amount of initial blockchain financial data information, Represents the index coefficient of the process of updating the optimization algorithm of the blockchain data information, Represents the changing state of the block storing financial data information over time, Represents the information interaction function of blockchain financial data in a non-equilibrium state.
对于上述数据函数,相同字母不再做重复说明。For the above data functions, the same letters will not be repeated.
最优区块链金融数据信息交互过程进行分析,通过对比不同状态下有效率差确定制定过程函数的优越性,有效率差函数为:The optimal blockchain financial data information interaction process is analyzed, and the superiority of the formulating process function is determined by comparing the effective rate difference under different states. The effective rate difference function is:
(5) (5)
式(5)中,表示区块链金融交易有效数据更新差值,表示均衡状态下的区 块链金融数据信息交互有效率,表示未达均衡状态的区块链金融数据信息交互有效 率,表示区块链网络中整个区块允许的最大数据更新量。 In formula (5), Represents the difference between valid data updates of blockchain financial transactions, Indicates that the blockchain financial data information exchange efficiency in a balanced state, Indicates that the exchange of financial data and information on the blockchain that has not reached an equilibrium state is efficient, Represents the maximum amount of data updates allowed for the entire block in the blockchain network.
Nash均衡算法能够保证数据存储模块中区块链数据不停地发生更新,这意味着不 同节点的金融区块链数据信息可以即时发生数据交互和数据更新,体现了不同区块链数据 信息共享的数据信息特性,使得分布式金融终端能够通过区块链网络实现交互,并使区块 链金融数据信息交互效率最大化。在算法中利用公式确定区块链金融数据信息 交互的有效性,从而确保区块链数据存储模块运行的可靠性。大大提高了金融数据信息交 互能力。 The Nash balancing algorithm can ensure that the blockchain data in the data storage module is continuously updated, which means that the financial blockchain data information of different nodes can exchange data and update data in real time, which reflects the sharing of data and information between different blockchains. The characteristics of data information enable distributed financial terminals to interact through the blockchain network, and maximize the efficiency of blockchain financial data information interaction. use in the algorithm The formula determines the effectiveness of the blockchain financial data information interaction, thereby ensuring the reliability of the blockchain data storage module operation. It greatly improves the ability of financial data and information interaction.
在上述实施例中,所述加密模块为改进型Blowfish加密算法模块,所述改进型Blowfish加密算法模块包含加密单元、区块链节点和解密单元,其中所述加密单元的输出端与区块链节点的输入端连接,所述区块链节点的输出端和解密单元的输入端连接。In the above embodiment, the encryption module is an improved Blowfish encryption algorithm module, and the improved Blowfish encryption algorithm module includes an encryption unit, a blockchain node and a decryption unit, wherein the output end of the encryption unit is connected to the blockchain The input end of the node is connected, and the output end of the blockchain node is connected with the input end of the decryption unit.
在上述实施例中,所述加密单元中设置有预警函数和清零函数,加密单元在加密过程中通过Blowfish加密算法对传递过程中的数据信息进行加密,加密后的数据信息遇到风险数据信息时,自动启动预警函数,提示传输过程中有风险出现,当预警级别达到设置的最高级时,自动启动清零函数,将传递过程中的高风险金融数据信息清零,并将清零前的金融数据信息原路返回。In the above embodiment, the encryption unit is provided with an early warning function and a zero-clearing function, and the encryption unit encrypts the data information in the transmission process through the Blowfish encryption algorithm during the encryption process, and the encrypted data information encounters risk data information. When the pre-warning function is activated, the warning function will be automatically activated to indicate that there is a risk in the transmission process. When the pre-warning level reaches the highest level set, the clearing function will be activated automatically to clear the high-risk financial data information in the transmission process, and the data before the clearing will be cleared. Financial data information returns the same way.
在具体实施例中,Blowfish算法是通过进行64位分组的一种算法,该种加密算法的密钥能够改变其的长度,并且这是一种对称加密的算法,该种算法能够迅速的对64比特长度的字符串进行加密。Blowfish加密算法能够快速的进行加解密,并且密钥长度可变,正是因为这些特点而被人们熟知。运用Blowfish加密算法对数据进行加解密需要把整个操作过程分成两步来进行:操作进行的第一步是需要对加密算法的密钥进行预先处理,在Blowfish加密算法的设计中,它会提供Blowfish算法的源密钥-pbox和sbox,它所提供的源密钥-pbox和sbox是固定的,每个用户使用时通采用同一套的源密钥-pbox和sbox。In a specific embodiment, the Blowfish algorithm is an algorithm that performs 64-bit grouping, and the key of this encryption algorithm can change its length, and this is a symmetric encryption algorithm, which can quickly Bit-length string to encrypt. The Blowfish encryption algorithm can perform fast encryption and decryption, and the key length is variable, which is well known because of these characteristics. Using the Blowfish encryption algorithm to encrypt and decrypt data needs to divide the entire operation process into two steps: the first step of the operation is to pre-process the key of the encryption algorithm. In the design of the Blowfish encryption algorithm, it will provide Blowfish The source keys of the algorithm - pbox and sbox, the source keys - pbox and sbox provided by it are fixed, and each user uses the same set of source keys - pbox and sbox.
因此如果希望对数据进行加密,如图3所示,需要准备一个进行加密的密钥,使用这个密钥与源密钥-pbox和sbox进行相互组合,生成子密钥key_pbox和key_sbox。第二步就是通过key_pbox和key_sbox对数据进行加密。Blowfish加密算法的加密流程如图3所示。由于Blowfish是对称性加密算法,所以在解密是同样需要通过密钥预处理生成子密钥key_pbox和key_sbox,只不过利用子密钥进行加密和解密的顺序是相反的。在Blowfish加密算法中,由于其的加密密钥长度是不确定的,可以变化其的长短,虽然这给用户设计密钥时带来很大的便利,但是同时也对数据的安全性带来很大隐患。由于Blowfish加密算法在加密和解密的核心在于密钥的选择和保密上,所以需要在Blowfish加密算法密钥的选择和保密上进行改进。Therefore, if you want to encrypt the data, as shown in Figure 3, you need to prepare an encryption key, and use this key to combine with the source key-pbox and sbox to generate sub-keys key_pbox and key_sbox. The second step is to encrypt the data through key_pbox and key_sbox. The encryption process of the Blowfish encryption algorithm is shown in Figure 3. Since Blowfish is a symmetric encryption algorithm, it is also necessary to generate subkeys key_pbox and key_sbox through key preprocessing during decryption, but the order of encryption and decryption using subkeys is reversed. In the Blowfish encryption algorithm, since the length of the encryption key is uncertain, its length can be changed. Although this brings great convenience to the user when designing the key, it also brings great harm to the security of the data. big hazard. Since the core of encryption and decryption of Blowfish encryption algorithm lies in the selection and secrecy of the key, it is necessary to improve the selection and secrecy of the key of the Blowfish encryption algorithm.
如图4所示,用户A向用户B发送数据信息M需要准备Blowfish加密算法、MD5算法和用户B的RSA加密算法的公钥,准备好三种工具才能完成接下来的工作。用户A发送端需要先通过使用Blowfish加密算法对电子文件进行加密,得到公文密文;再把Blowfish加密算法的密钥通过公网接收到的RSA加密算法公钥进行加密,就会得到Blowfish密钥密文;最后通过MD5算法对公文密文进行数字签名,可以验证数据传输是否完整,由于加密的是公文密文,既是用暴力破解MD5算法,依然只能得到公文密文,依然需要在进行破解,有很大安全性。As shown in Figure 4, when user A sends data information M to user B, he needs to prepare the public key of Blowfish encryption algorithm, MD5 algorithm and user B's RSA encryption algorithm, and prepare three tools to complete the next work. The sender of user A needs to encrypt the electronic file by using the Blowfish encryption algorithm to obtain the ciphertext of the official document; then encrypt the key of the Blowfish encryption algorithm with the public key of the RSA encryption algorithm received from the public network, and then the Blowfish key will be obtained. Ciphertext; Finally, digitally sign the ciphertext of the official document through the MD5 algorithm, which can verify the integrity of the data transmission. Since the encryption is the ciphertext of the official document, even if the MD5 algorithm is brute-forced, only the ciphertext of the official document can still be obtained, and it still needs to be cracked. , with great security.
在上述实施例中,如图5所示,在上述解密单元工作方法为:In the above-mentioned embodiment, as shown in FIG. 5, the working method of the above-mentioned decryption unit is:
使用MD5算法公钥对签名块进行解密,通过哈希函数摘要实现公文密文进行比较,如果来源相同,并且未发现漏洞,则视为文件完整,不需要重新发送,如果MD5算法公钥无法实现数据解密,再启动RSA解密密算法对文件数据信息进行解密,然后输出Blowfish加密算法的密钥;最后再通过Blowfish加密算法的密钥对公文密文进行解密,则输出解密后的电子文件M。Use the MD5 algorithm public key to decrypt the signature block, and compare the official document ciphertext through the hash function digest. If the source is the same and no loopholes are found, the file is considered complete and does not need to be resent. If the MD5 algorithm public key cannot be implemented Data decryption, then start the RSA decryption encryption algorithm to decrypt the file data information, and then output the key of the Blowfish encryption algorithm; finally, decrypt the ciphertext of the official document through the key of the Blowfish encryption algorithm, and output the decrypted electronic file M.
虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这些具体实施方式仅是举例说明,本领域的技术人员在不脱离本发明的原理和实质的情况下,可以对上述方法和系统的细节进行各种省略、替换和改变。例如,合并上述方法步骤,从而按照实质相同的方法执行实质相同的功能以实现实质相同的结果则属于本发明的范围。因此,本发明的范围仅由所附权利要求书限定。Although the specific embodiments of the present invention are described above, those skilled in the art should understand that these specific embodiments are only examples, and those skilled in the art can Various omissions, substitutions and changes have been made to the details of the method and system. For example, it is within the scope of the present invention to combine the above-described method steps to perform substantially the same functions in substantially the same way to achieve substantially the same results. Accordingly, the scope of the present invention is to be limited only by the appended claims.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210653426.1A CN114723567B (en) | 2022-06-10 | 2022-06-10 | Financial data information distributed transaction system based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210653426.1A CN114723567B (en) | 2022-06-10 | 2022-06-10 | Financial data information distributed transaction system based on block chain technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114723567A CN114723567A (en) | 2022-07-08 |
CN114723567B true CN114723567B (en) | 2022-09-20 |
Family
ID=82232977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210653426.1A Active CN114723567B (en) | 2022-06-10 | 2022-06-10 | Financial data information distributed transaction system based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114723567B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114996362B (en) * | 2022-08-04 | 2023-03-21 | 河南云帆电子科技有限公司 | Data processing and storing method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459461A (en) * | 2020-04-24 | 2020-07-28 | 上海积成能源科技有限公司 | Energy use right verification and transaction system and method based on Internet of things and block chain technology |
CN111654364A (en) * | 2020-07-06 | 2020-09-11 | 重庆知翔科技有限公司 | Method for realizing data safety communication by using block chain encryption technology |
CN111770190A (en) * | 2020-07-06 | 2020-10-13 | 夏正键 | Block chain distributed real-time fire fighting monitoring alarm system based on 5G and Internet of things mode |
CN112905965A (en) * | 2021-02-01 | 2021-06-04 | 胡文旭 | Financial big data processing system based on block chain |
CN113672992A (en) * | 2021-08-16 | 2021-11-19 | 成都民航空管科技发展有限公司 | Multi-source heterogeneous data safety protection and fusion method and system for global air traffic control operation |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991164A (en) * | 2017-03-31 | 2017-07-28 | 北京京东金融科技控股有限公司 | Method, device and electronic equipment that finance data is handled are used for based on block chain |
CA3088610A1 (en) * | 2018-01-17 | 2019-07-25 | Geeq Corporation | Blockchain methods, nodes, systems and products |
SG11202107662TA (en) * | 2019-01-18 | 2021-08-30 | Uppsala Pte Ltd | Apparatus and method for cybersecurity |
US11880349B2 (en) * | 2019-04-30 | 2024-01-23 | Salesforce, Inc. | System or method to query or search a metadata driven distributed ledger or blockchain |
CN111163178B (en) * | 2020-01-10 | 2021-03-30 | 中国地质大学(武汉) | Game theory-based service deployment and task unloading method in edge computing |
CN113987543A (en) * | 2021-11-02 | 2022-01-28 | 北京中海闻达信息技术有限公司 | An online data monitoring method and device |
-
2022
- 2022-06-10 CN CN202210653426.1A patent/CN114723567B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459461A (en) * | 2020-04-24 | 2020-07-28 | 上海积成能源科技有限公司 | Energy use right verification and transaction system and method based on Internet of things and block chain technology |
CN111654364A (en) * | 2020-07-06 | 2020-09-11 | 重庆知翔科技有限公司 | Method for realizing data safety communication by using block chain encryption technology |
CN111770190A (en) * | 2020-07-06 | 2020-10-13 | 夏正键 | Block chain distributed real-time fire fighting monitoring alarm system based on 5G and Internet of things mode |
CN112905965A (en) * | 2021-02-01 | 2021-06-04 | 胡文旭 | Financial big data processing system based on block chain |
CN113672992A (en) * | 2021-08-16 | 2021-11-19 | 成都民航空管科技发展有限公司 | Multi-source heterogeneous data safety protection and fusion method and system for global air traffic control operation |
Also Published As
Publication number | Publication date |
---|---|
CN114723567A (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7499852B2 (en) | Random Node Selection for Permissioned Blockchains | |
CN111026788B (en) | A multi-keyword ciphertext sorting and retrieval method based on homomorphic encryption in hybrid cloud | |
Daniel et al. | LDAP: a lightweight deduplication and auditing protocol for secure data storage in cloud environment | |
US20210234683A1 (en) | Performing map iterations in a blockchain-based system | |
US10609010B2 (en) | System, methods and software application for sending secured messages on decentralized networks | |
US8769302B2 (en) | Encrypting data and characterization data that describes valid contents of a column | |
CN118764496B (en) | Terminal interactive data storage security management method and system for instant messaging | |
CN113157778B (en) | Proxiable query method, system, device and medium for distributed data warehouse | |
WO2016168027A1 (en) | Customized trusted computer for secure data processing and storage | |
CN115134087B (en) | A client-side secure data deduplication method for decentralized cloud storage | |
CN115062323A (en) | Multi-center federal learning method for enhancing privacy protection and computer equipment | |
CA3098649A1 (en) | Performing map iterations in a blockchain-based system | |
US20240113729A1 (en) | System and method for data compression with homomorphic encryption | |
CN114723567B (en) | Financial data information distributed transaction system based on block chain technology | |
Kabir et al. | A dynamic searchable encryption scheme for secure cloud server operation reserving multi-keyword ranked search | |
CN116933299A (en) | Tax electric data safety fusion method, tax electric node, equipment and medium | |
US11494351B2 (en) | Deduplication of encrypted data | |
Baligodugula et al. | A comparative study of secure and efficient data duplication mechanisms for cloud-based iot applications | |
Swami et al. | A new secure data retrieval system based on ECDH and hierarchical clustering with Pearson correlation | |
Xiong et al. | Searchable Encryption Scheme for Large Data Sets in Cloud Storage Environment. | |
CN109412754B (en) | Data storage, distribution and access method of coding cloud | |
Zhang et al. | Multi-level caching and data verification based on ethereum blockchain | |
CN107329911B (en) | Cache replacement method based on CP-ABE attribute access mechanism | |
Liu et al. | HASG: Security and efficient frame for accessing cloud storage | |
CN112507357B (en) | Multi-stage interface design method based on key generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241219 Address after: Room 5014, 2nd Floor, Building 3, No.9 Derun South Road, Fangshan District, Beijing 102400 Patentee after: Beijing June Spring Information Technology Co.,Ltd. Country or region after: China Address before: 518102 U6, Junxiang U8 Intelligent Manufacturing Industrial Park, guxing community, Xixiang street, Bao'an District, Shenzhen, Guangdong Province Building 7 239 Patentee before: Shenzhen runjingyuan Information Technology Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |