WO2023159827A1 - 一种基于跨链通信和多链融合的信息处理系统 - Google Patents

一种基于跨链通信和多链融合的信息处理系统 Download PDF

Info

Publication number
WO2023159827A1
WO2023159827A1 PCT/CN2022/100964 CN2022100964W WO2023159827A1 WO 2023159827 A1 WO2023159827 A1 WO 2023159827A1 CN 2022100964 W CN2022100964 W CN 2022100964W WO 2023159827 A1 WO2023159827 A1 WO 2023159827A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
communication
transfer
block
unit
Prior art date
Application number
PCT/CN2022/100964
Other languages
English (en)
French (fr)
Inventor
张卫平
隋银雪
李显阔
张伟
Original Assignee
环球数科集团有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 环球数科集团有限公司 filed Critical 环球数科集团有限公司
Publication of WO2023159827A1 publication Critical patent/WO2023159827A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD

Definitions

  • the invention relates to the field of information processing. Specifically, it involves an information processing system based on cross-chain communication and multi-chain fusion.
  • Blockchain is a distributed shared ledger and database, which has the characteristics of decentralization, non-tampering, traceability throughout the process, traceability, collective maintenance, and openness and transparency. These characteristics ensure the "honesty" and “transparency” of the blockchain, and lay the foundation for the creation of trust in the blockchain.
  • the rich application scenarios of the blockchain are basically based on the fact that the blockchain can solve the problem of information asymmetry and realize collaborative trust and concerted action among multiple subjects.
  • more and more systems used in various scenarios have established their own blockchains. For example, multiple information agencies, financial units, exchanges, etc. have established their own alliance chains. However, when multiple blockchains need to communicate with each other, due to their respective data types, communication protocols, or differences in user authority rules, the efficiency of cross-chain communication and multi-chain information fusion is affected.
  • the technical solution with the publication number WO2021217939 proposes a data processing method for blockchain to solve the problems of slow data processing and low privacy of data information on the chain; open
  • the technical solution No. US2021328791 (A1) proposes a blockchain data processing method based on cloud computing, which provides security for the data processing process by using cloud servers for information processing in a secure environment; the publication number is CN109691013 (A ) technical solution proposes a communication method between blockchain nodes, through the combination of public key and private key between two nodes, using Double Ratchet protocol for encrypted communication.
  • the present invention proposes an information processing system that is more suitable for cross-chain communication and multi-chain integration, and improves the efficiency and security of information processing among multiple chains.
  • the purpose of the present invention is to realize high concurrency and independence of information processing by performing multi-layer processing on information, isolating the information itself, the target address of information and multiple processing steps on information.
  • the present invention adopts following technical scheme:
  • An information processing system based on cross-chain communication and multi-chain fusion includes: a first block chain, a second block chain, and a transfer unit; the first block chain is a sending node of communication information The block chain where it is located; the second block chain is the block chain where the receiving node of the communication information is located; the transfer unit is used to perform transfer processing according to the sending destination address of the communication information;
  • the first block chain includes a first processing unit, a first encapsulation unit, and a first communication unit; the first processing unit is used to obtain the communication information and the processing method for the communication information, and generate Based on the event information of the communication information, after binding the communication information and the processing method with the event information, an event package is generated, and an event sequence number is assigned to the event package; the first package After the unit encapsulates the event package, the target block chain address of the communication information and the target node address, a package package is generated; the first communication unit is used to combine multiple package packages into one communication package;
  • the second block chain includes a second verification unit, a second encapsulation unit, and a second processing unit;
  • the second verification unit is used to receive the transfer information sent by the transfer unit to the second block chain, And verify the transfer information;
  • the second encapsulation unit is used to unpack the transfer information, and read the communication information and the processing method of the communication information;
  • the second processing unit is used to execute the A method for processing the communication information, and sending the communication information to a target node;
  • the transfer unit communicates with at least one node of the first block chain; the transfer unit communicates with at least one node of the second block chain; or, the transfer unit communicates with at least one node through an intermediary node
  • the nodes of the first block chain are communicatively connected, and at the same time, the transfer unit is communicatively connected with at least one node of the second block chain through an intermediary node.
  • the processing system includes a method of information processing, including:
  • Step S1 the transfer unit extracts the communication packet when confirming that the communication packet is generated
  • Step S2 the transfer unit verifies the communication packet, and verifies the encapsulation information in the block communication packet; generates transfer information according to the target network address, and sends the transfer information to the second blockchain;
  • Step S3 The second blockchain responds and receives the transfer information, reads the address of the encapsulation information in the transfer information, and sends the communication information to the target node according to the address of the target node;
  • step S1 including:
  • the first processing unit acquires the communication information and a processing method for the communication information, generates event information based on the communication information, and compares the communication information, the processing method and the event information After binding, an event package is generated, and an event sequence number is assigned to the event package;
  • the first encapsulation unit encapsulates the event packet, the target blockchain address of the communication information, and the target node address, and generates an encapsulation packet;
  • step S101 comprising: the sending node writes the communication information into a block of the first blockchain, and extracts it by the first processing unit;
  • step S2 the transfer unit extracts a plurality of encapsulated packets in the communication packet, reads a plurality of the event sequence numbers, and writes the processed event sequence numbers into one in the first area In the transit block of the block chain;
  • step S2 the transfer unit needs to confirm whether the height X of the transfer block to be generated is greater than the height Y of the block storing the communication information;
  • the transfer unit needs to verify all the blocks from height X+1 to height Y Describe the Merkle tree information of the first block chain to confirm that all blocks from height X+1 to height Y have passed the consensus verification of all nodes on the first block chain, and confirm Whether the block with block height Y is on the longest chain; if the block with block height Y is on the longest chain, then generate the transfer information in the transfer block with block height X;
  • the transfer information is generated in the transfer block based on the Merkle tree information of the first block chain;
  • step S3 the following steps are also included:
  • S301 Receive the transfer information sent by the transfer unit to the second blockchain, and verify the transfer information
  • S302 Decapsulate the transfer information, and read the communication information and the processing method of the communication information
  • S303 Execute the method for processing the communication information, and send the communication information to the target node.
  • the information processing system of the present invention can first package and package the information to be processed according to the event requirements on the blockchain that sends out the information, and the destination address is displayed outside the package, which is conducive to rapid positioning and processing on the chain;
  • the information to be processed in the present invention is first stored in the block of the first blockchain, which ensures the consistency of the original information and is not tampered with during the processing;
  • the processing method of the present invention uses the transfer node as an intermediary in the cross-chain channel, and the transfer node can be flexibly arranged according to specific information processing requirements, which is conducive to meeting various communication processing requirements in multi-chain communication;
  • the software and hardware layout requirements of the present invention are based on the modular design, which can be conveniently switched and upgraded during the technology update and modification stages, which is beneficial to the optimization and upgrade of future technical solutions.
  • Fig. 1 is a schematic diagram of the processing flow of the processing system
  • Fig. 2 is a schematic diagram of the relationship between the transfer unit and the block chain
  • Fig. 3 is a schematic flow chart of the information sending process performed by the processing system
  • Fig. 4 is a schematic diagram of the communication information
  • Fig. 5 is the schematic diagram of described package
  • Fig. 6 is a schematic diagram of a blockchain with a single-chain structure
  • FIG. 7 is a schematic diagram of a forked blockchain.
  • An information processing system based on cross-chain communication and multi-chain fusion includes: a first block chain, a second block chain, and a transfer unit; the first block chain is a sending node of communication information The block chain where it is located; the second block chain is the block chain where the receiving node of the communication information is located; the transfer unit is used to perform transfer processing according to the sending destination address of the communication information;
  • the first block chain includes a first processing unit, a first encapsulation unit, and a first communication unit; the first processing unit is used to obtain the communication information and the processing method for the communication information, and generate Based on the event information of the communication information, after binding the communication information and the processing method with the event information, an event package is generated, and an event sequence number is assigned to the event package; the first package After the unit encapsulates the event package, the target block chain address of the communication information and the target node address, a package package is generated; the first communication unit is used to combine multiple package packages into one communication package;
  • the second block chain includes a second verification unit, a second encapsulation unit, and a second processing unit; the second verification unit is used to receive the transfer information sent by the transfer unit to the second block chain, And verify the transfer information; the second encapsulation unit is used to unpack the transfer information, and read the communication information and the processing method of the communication information; the second processing unit is used to execute the The method for processing the communication information, and sending the communication information to the target node; the transfer unit communicates with at least one node of the first block chain; the transfer unit communicates with at least one node of the second block chain or, the transit unit communicates with at least one of the first block chains through an intermediary node; or, the transit unit communicates with at least one node of the second block chain through an intermediary node.
  • the processing system includes a method for information processing, including:
  • Step S1 the transfer unit extracts the communication packet when confirming that the communication packet is generated
  • Step S2 the transfer unit verifies the communication packet, and verifies the encapsulation information in the block communication packet; generates transfer information according to the target network address, and sends the transfer information to the second blockchain;
  • Step S3 The second blockchain responds and receives the transfer information, reads the address of the encapsulation information in the transfer information, and sends the communication information to the target node according to the address of the target node;
  • step S1 including:
  • the first processing unit acquires the communication information and a processing method for the communication information, generates event information based on the communication information, and compares the communication information, the processing method and the event information After binding, an event package is generated, and an event sequence number is assigned to the event package;
  • the first encapsulation unit encapsulates the event packet, the target blockchain address of the communication information, and the target node address, and generates an encapsulation packet;
  • step S101 comprising: the sending node writes the communication information into a block of the first blockchain, and extracts it by the first processing unit;
  • step S2 the transfer unit includes extracting a plurality of the encapsulated packets in the communication packet, reading a plurality of the event sequence numbers, and writing the processed event sequence numbers into a In the transit block of the first blockchain mentioned above;
  • step S3 the following steps are also included:
  • S301 Receive the transfer information sent by the transfer unit to the second blockchain, and verify the transfer information
  • S302 Decapsulate the transfer information, and read the communication information and the processing method of the communication information
  • S303 Execute the method for processing the communication information, and send the communication information to a target node;
  • FIG. 2 it is a schematic diagram of an implementation form of the information processing system, which includes the first block chain 101, the transfer unit 102 and the second block chain 103; in more implementations
  • one of the processing systems may include more than two blockchains, and this embodiment is only to illustrate an implementation of the processing system;
  • the first blockchain 101 includes a node 111, a node 112, and a node 113;
  • the second blockchain 103 includes a node 131, a node 132, and a node 133; wherein, the node 113 and the node 133 are connected to the The transfer unit 102;
  • the transfer unit 102 can be a cloud computing system, or a distributed computing system, or a distributed system running an alliance chain, which is not specified here;
  • first block chain 101 and the second block chain 103 include an external program interface to provide a connection channel between the user and the block chain node, for receiving the user's information processing requirements, and receiving the processed information; when the user connects to the node of the first blockchain 101 and sends information, the user uses the application program to provide the communication information through the external program interface; wherein the communication information may include the communication information processing method;
  • step S1 a schematic diagram of the processing flow of the communication information in the first blockchain 101; wherein the first processing unit, the first encapsulation unit and the second A communication unit may be an automated application running on the application layer of the first blockchain 101, or may be a smart contract program running on the contract layer of the first blockchain 101;
  • the communication information 301 can be processed as shown in FIG. 4 of the format:
  • the communication information 301 includes:
  • Type that is, the type of service to be processed by the communication information
  • Timestamp which is the time when the communication information is sent
  • the processing method for the communication information 301 includes, responding to the smart contract on the second blockchain 103, obtaining specified transaction address information, etc.;
  • step S101 process the communication information 301 so as to obtain the event package 302; generate the event sequence number for the event package 302, which can be used to verify the authenticity and integrity of the event package 302 in the future verification, including in the verification link of the transfer unit and the second verification unit;
  • step S101 it may include using the private key of the sending node to encrypt the event packet 302, thereby preventing the event packet from being illegally read;
  • the method of generating the event sequence number includes obtaining a fixed-length first hash code after performing hash function calculation on the complete code of the event package 302; any node or block After obtaining one of the event packages 302, the chain organization can use the same hash function to perform a hash operation on the event package 302 to obtain a second hash code, by combining the second hash code with the first A hash code is compared to confirm whether the transmitted event package 302 is completely consistent;
  • the first encapsulation unit processes the event packet 302, and the network address of the block chain where the target node is located, in this embodiment, the second block The network address of the chain 103; and add the node address of the target node in the second blockchain 103; encapsulate the event package 302, the network address of the target blockchain and the node address of the target node to obtain the Encapsulation package 303;
  • step S103 a plurality of said packaging packets are merged into one said communication packet 304; wherein, one said communication packet can be sent to the said packaging package;
  • the content and processing method of the information, the receiver information of the information, and multiple information are processed hierarchically, effectively isolating each link of the information processing process, and improving the efficiency and security of information processing.
  • first block chain there are several transfer nodes maintained by the transfer unit; ordinary nodes on the first block chain are used for general information records on the first block chain;
  • the transfer node maintained by the transfer node is used to record the transfer information that the transfer node has completed the transfer, so as to confirm that the processing and sending of the communication information has been processed according to the user's needs;
  • the fork of the blockchain refers to when the consensus mechanism in the blockchain changes and is incompatible with the original protocol. , some nodes that oppose the new agreement follow the consensus of the original old agreement, so they cannot reach the block ledger of the new agreement; then each party continues the blockchain they think is correct, so it is divided into two chains; this situation includes benign Fork of the blockchain, for example, the originating organization of the blockchain releases a new consensus mechanism agreement, due to the requirement of decentralization, the nodes choose whether to implement the new agreement; or, the blockchain is attacked, and the attacker initiates a vicious Fork, so as to tamper with the previous data of the blockchain and generate new data blocks; especially for blockchains with fewer maintenance nodes, the probability of computing power attacks is relatively high, and the fault tolerance rate is low; therefore, this implementation Examples include optimizing the process of generating the transfer information by the transfer node, including verification of the block height of the first blockchain;
  • step S2 the transfer unit needs to confirm whether the height X of the transfer block to be generated is greater than the height Y of the block storing the communication information;
  • the transfer unit needs to verify all the blocks from height X+1 to height Y Describe the Merkle tree information of the first block chain to confirm that all blocks from height X+1 to height Y have passed the consensus verification of all nodes on the first block chain, and confirm Whether the block with block height Y is on the longest chain; if the block with block height Y is on the longest chain, then generate the transfer information in the transfer block with block height X;
  • the transfer information is generated in the transfer block based on the Merkle tree information of the first block chain;
  • the transit information is generated according to the network address of the target blockchain, so the multiple encapsulated packets contained in the same transit information all have the same blockchain network address, but may have multiple different node address;
  • the second verification unit includes verifying whether the transfer information has passed the block verification process of step S2 by the transfer unit;
  • the second verification unit also includes verifying whether all target node addresses in the transfer information are node addresses of the second blockchain;
  • the second verification unit further includes feeding back to the transfer unit the part that fails the verification during the verification process, for example, the encapsulated packet with the wrong destination node address;
  • the second verification unit After the second verification unit passes the verification of the transfer information, submit the transfer information to the second encapsulation unit for decapsulation and read the events contained in the multiple internal encapsulation packages 303 package 302 content;
  • the second processing unit executes a method for processing the communication information 301 according to the contents of the plurality of event packets 302, and sends the communication information 301 to the target node.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种基于跨链通信和多链融合的信息处理系统,所述信息处理系统从用户处接收待处理的信息以及信息的处理方法,并生成事件包;将事件包与信息的目标发送地址封装后,生成封装包;将多个封装包打包后成为通信包;将所述通信包发送到中转单元,并由所述中转单元基于具体的目标地址生成多个面向相同区块链的中转信息;将所述中转信息发送到目标区块链进行解封并处理。

Description

一种基于跨链通信和多链融合的信息处理系统 技术领域
本发明涉及信息处理领域。具体而言,涉及一种基于跨链通信和多链融合的信息处理系统。
背景技术
区块链是一个分布式的共享账本和数据库,具有去中心化、不可篡改、全程留痕、可以追溯、集体维护、公开透明等特点。这些特点保证了区块链的“诚实”与“透明”,为区块链创造信任奠定基础。而区块链丰富的应用场景,基本上都基于区块链能够解决信息不对称问题,实现多个主体之间的协作信任与一致行动。基于区块链的技术优势,越来越多应用于各种场景的系统都建立了自有的区块链,例如多个信息机构、金融单位、交易所等都建立了自有的联盟链。然而当多条区块链之间需要相互通信时,则由于各自的数据类型、通信协议,或者用户权限规则的差异,影响了跨链间的通信以及多链信息融合的效率。
查阅相关已公开技术方案,公开号为WO2021217939(A1)的技术方案提出一种用于区块链的数据处理方法,用于解决链上数据的处理速度慢以及数据信息私密性低的问题;公开号为US2021328791(A1)的技术方案提出一种基于云计算的区块链数据处理方法,通过使用云服务器进行安全环境内的信息处理环节,为数据处理过程提供安全保障;公开号为CN109691013(A)的技术方案提出一种区块链节点间的通信方法,通过两个节点之间的公钥与私钥结合,采用Double Ratchet协议进行加密通信。本发明提出一种更适合基于跨链通信与多链融合的信息处理系统,提高信息在多链间的处理效率和安全性。
技术解决方案
本发明的目的在于,利用将信息进行多层处理,隔离信息本身,信息的目标地址以及多个对信息的处理步骤,实现对信息处理的高并发性与独立性。
本发明采用如下技术方案:
一种基于跨链通信和多链融合的信息处理系统,所述信息处理系统包括:第一区块链、第二区块链以及中转单元;所述第一区块链是通信信息的发送节点所在的区块链;所述第二区块链是通信信息的接收节点所在的区块链;所述中转单元用于根据通信信息的发送目标地址进行中转处理;
其中,所述第一区块链包括第一处理单元、第一封装单元以及第一通信单元;所述第一处理单元用于获取所述通信信息以及对所述通信信息的处理方法,并生成基于地所述通信信息的事件信息,将所述通信信息和所述处理方法与所述事件信息进行绑定后,生成一个事件包,赋予所述事件包一个事件序列号;所述第一封装单元将所述事件包、通信信息的目标区块链地址以及目标节点地址进行封装后,生成封装包;所述第一通信单元用于将多个所述封装包合并为一个通信包;
所述第二区块链包括第二验证单元、第二封装单元以及第二处理单元;所述第二验证单元用于接收由所述中转单元发到所述第二区块链的中转信息,并验证所述中转信息;所述第二封装单元用于对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;所述第二处理单元用于执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点;
所述中转单元与至少一个所述第一区块链的节点通信连接;所述中转单元与至少一个所述第二区块链的节点通信连接;或者,所述中转单元通过中介节点与至少一个所述第一区块链的节点通信连接,同时所述中转单元通过中介节点与至少一个所述第二区块链的节点通信连接。
所述处理系统包括一种信息处理的方法,包括:
步骤S1:所述中转单元当确认所述通信包生成时,提取所述通信包;
步骤S2:中转单元验证所述通信包,并且验证所述区块通信包内的封装信息;根据目标网络地址生成 中转信息,并将所述中转信息发送到所述第二区块链;
步骤S3:所述第二区块链响应并接收所述中转信息,读取所述中转信息内的封装信息地址,并根据目标节点地址将所述通信信息发送到所述目标节点;
步骤S1中,包括:
S101:所述第一处理单元获取所述通信信息以及对所述通信信息的处理方法,并生成基于所述通信信息的事件信息,将所述通信信息、所述处理方法与所述事件信息进行绑定后,生成一个事件包,赋予所述事件包一个事件序列号;
S102:所述第一封装单元将所述事件包、通信信息的目标区块链地址以及目标节点地址进行封装后,生成封装包;
S103:将多个所述封装包合并为一个通信包后,写入到所述第一区块链的区块中;
其中,在步骤S101中,包括:发送节点将所述通信信息写入所述第一区块链的区块中,并由所述第一处理单元进行提取;
在步骤S2中,所述中转单元包括提取所述通信包内的多个封装包,并读取多个所述事件序列号,并将处理后的事件序列号写入一个在所述第一区块链的中转区块中;
在步骤S2中,所述中转单元需要确认当前待生成的所述中转区块的高度X,是否大于保存所述通信信息的区块高度Y;
若所述中转区块的高度X小于高度Y,即保存所述通信信息的区块保存于所述这,则所述中转单元需要验证所有从高度X+1到高度Y的所有区块的所述第一区块链的默克尔树信息,以确认区块从高度X+1到高度Y之间的所有区块已通过所述第一区块链上的所有节点的共识验证,并确认区块高度为Y的区块是否在最长链上;若区块高度为Y的区块为最长链上,则在区块高度为X的所述中转区块中生成所述中转信息;
若中转区块的高度X大于所述高度Y,则基于所述第一区块链的默克尔树信息,在所述中转区块生成所述中转信息;
在步骤S3中,还包括以下步骤:
S301:接收由所述中转单元发到所述第二区块链的所述中转信息,并验证所述中转信息;
S302:对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;
S303:执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点。
有益效果
1. 本发明的信息处理系统能够在发出信息的区块链上先将待处理的信息按照事件要求进行封装和打包,封装包的外部显示目的地址,有利于链上的快速定位和处理;
2. 本发明的待处理的信息先储存于第一区块链的区块上,保证了原始信息的一致性以及在处理过程中不被篡改;
3. 本发明的处理方法通过中转节点作为跨链通道中的中介,中转节点可以根据具体的信息处理要求进行灵活布置,有利于多链通信中满足各种通信处理需求;
本发明的软、硬件布局需求基于模块化设计,可在技术更新和修改阶段方便地进行切换和升级,有利于今后技术方案的优化和升级。
附图说明
从以下结合附图的描述可以进一步理解本发明。图中的部件不一定按比例绘制,而是将重点放在示出实施例的原理上。在不同的视图中,相同的附图标记指定对应的部分。
图1为所述处理系统的处理流程示意图;
图2为所述中转单元与区块链的关系示意图;
图3为所述处理系统进行信息发送处理的流程示意图;
图4为所述通信信息的示意图;
图5为所述封装包的示意图;
图6为具有单链结构的区块链的示意图;
图7为分叉后的区块链的示意图。
附图编号说明:101-第一区块链;102-中转单元;103-第二区块链;111、112、113-第一块链链上的节点;131、132、133-第二块链链上的节点;121-第一处理单元;122-第一封装单元;123-第一通信单元;301-通信信息;302-事件包;303-封装包;304-通信包。
本发明的实施方式
为了使得本发明的目的技术方案及优点更加清楚明白,以下结合其实施例,对本发明进行进一步详细说明;应当理解,此处所描述的具体实施例仅用于解释本发明,并不用于限定本发明。对于本领域技术人员而言,在查阅以下详细描述之后,本实施例的其它系统、方法和/或特征将变得显而易见。旨在所有此类附加的系统、方法、特征和优点都包括在本说明书、本发明的范围内,并且受所附权利要求书的保护。在以下详细描述描述了所公开的实施例的另外的特征,并且这些特征根据以下将详细描述将是显而易见的。
本发明实施例的附图中相同或相似的标号对应相同或相似的部件;在本发明的描述中,需要理解的是,若有术语“上”、“下”、“左”、“右”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或组件必须具有特定的方位.以特定的方位构造和操作,因此附图中描述位置关系的用语仅用于示例性说明,不能理解为对本专利的限制,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。
实施例一:
一种基于跨链通信和多链融合的信息处理系统,所述信息处理系统包括:第一区块链、第二区块链以及中转单元;所述第一区块链是通信信息的发送节点所在的区块链;所述第二区块链是通信信息的接收节点所在的区块链;所述中转单元用于根据通信信息的发送目标地址进行中转处理;
其中,所述第一区块链包括第一处理单元、第一封装单元以及第一通信单元;所述第一处理单元用于获取所述通信信息以及对所述通信信息的处理方法,并生成基于地所述通信信息的事件信息,将所述通信信息和所述处理方法与所述事件信息进行绑定后,生成一个事件包,赋予所述事件包一个事件序列号;所述第一封装单元将所述事件包、通信信息的目标区块链地址以及目标节点地址进行封装后,生成封装包;所述第一通信单元用于将多个所述封装包合并为一个通信包;
所述第二区块链包括第二验证单元、第二封装单元以及第二处理单元;所述第二验证单元用于接收由所述中转单元发到所述第二区块链的中转信息,并验证所述中转信息;所述第二封装单元用于对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;所述第二处理单元用于执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点;所述中转单元与至少一个所述第一区块链的节点通信连接;所述中转单元与至少一个所述第二区块链的节点通信连接;或者,所述中转单元通过中介节点与至少一个所述第一区块链;或者,所述中转单元通过中介节点与至少一个所述第二区块链的节点通信连接。
如附图1,所述处理系统包括一种信息处理的方法,包括:
步骤S1:所述中转单元当确认所述通信包生成时,提取所述通信包;
步骤S2:中转单元验证所述通信包,并且验证所述区块通信包内的封装信息;根据目标网络地址生成中转信息,并将所述中转信息发送到所述第二区块链;
步骤S3:所述第二区块链响应并接收所述中转信息,读取所述中转信息内的封装信息地址,并根据目标节点地址将所述通信信息发送到所述目标节点;
在步骤S1中,包括:
S101:所述第一处理单元获取所述通信信息以及对所述通信信息的处理方法,并生成基于所述通信信息的事件信息,将所述通信信息、所述处理方法与所述事件信息进行绑定后,生成一个事件包,赋予所述事件包一个事件序列号;
S102:所述第一封装单元将所述事件包、通信信息的目标区块链地址以及目标节点地址进行封装后,生成封装包;
S103:将多个所述封装包合并为一个通信包后,写入到所述第一区块链的区块中;
其中,在步骤S101中,包括:发送节点将所述通信信息写入所述第一区块链的区块中,并由所述第一处理单元进行提取;
在步骤S2中,所述中转单元包括提取所述通信包内的多个所述封装包,并读取多个所述事件序列号,并将处理后的所述事件序列号写入一个在所述第一区块链的中转区块中;
在步骤S3中,还包括以下步骤:
S301:接收由所述中转单元发到所述第二区块链的所述中转信息,并验证所述中转信息;
S302:对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;
S303:执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点;
如附图2,为所述信息处理系统的一种实施形式的示意图,其中包括所述第一区块链101、所述中转单元102以及所述第二区块链103;在更多的实施形式中,一个所述处理系统可以包括多于两条区块链,本实施例仅为说明所述处理系统的一种实施方式;
其中,所述第一区块链101包括节点111、节点112以及节点113;所述第二区块链103包括节点131、节点132以及节点133;其中,所述节点113与节点133连接到所述中转单元102;所述中转单元102可以为一个云端的计算系统,或者一个分布式计算系统,或者是一个运行有联盟链的分布式系统,在此不作规定;
进一步的,所述第一区块链101以及所述第二区块链103包括使用外部程序接口,提供用户与区块链节点的连接通道,用于接收用户的信息处理需求,以及接收处理后的信息;当用户连接到所述第一区块链101的节点并进行信息发送时,用户使用应用程序通过所述外部程序接口提供所述通信信息;其中所述通信信息可以包括所述通信信息的处理方法;
进一步的,如附图3,在步骤S1中,所述通信信息在所述第一区块链101中的处理流程示意图;其中所述第一处理单元、所述第一封装单元以及所述第一通信单元可以为运行于所述第一区块链101应用层上的自动化应用程序,或者可以为运行于所述第一区块链101合约层上的智能合约程序;
当在所述第一区块链101上的用户A需要与所述第二区块链103的某用户B进行通证的交易,则所述通信信息301可以被处理为如附图4所示的格式:
所述通信信息301包括:
源,即发送节点在所述第一区块链101中的地址;
类型,即该通信信息待处理的服务的类型;
时间戳,即所述通信信息发出的时间;    
数据,即待处理的通证的区块链地址;
进一步的,对所述通信信息301的处理方法包括,响应在所述第二区块链103上的智能合约,获取指定的交易地址信息等;
进一步的,在步骤S101中,处理所述通信信息301从而获得所述事件包302;对所述事件包302生成所述事件序列号,可以用于今后对所述事件包302的真实性和完整性进行验证,包括用于在所述中转单元以及所述第二验证单元的验证环节中;
在步骤S101中,可以包括使用发送节点的私钥对所述事件包302进行加密,从而防止所述事件包被非法读取;
所述事件序列号的生成方式,在其中一些实施例中,包括通过将所述事件包302的完整代码进行哈希函数计算后,获得一个固定长度的第一哈希码;任何节点或者区块链组织可以在获得一个所述事件包302后,采用相同的哈希函数对所述事件包302进行哈希运算得到的第二哈希码,通过将所述第二哈希码与所述第一哈希码作比较,从而确认被传达的所述事件包302是否前后完全一致;
如附图5,进一步的,在步骤S102中,所述第一封装单元处理所述事件包302,将目标节点所在的区块链的网络地址,在本实施例中即所述第二区块链103的网络地址;并且加入目标节点在所述第二区块链103中的节点地址;将所述事件包302、目标区块链的网络地址以及目标点节的节点地址封装,获得所述封装包303;
如附图6,进一步的,在步骤S103中,将多个所述封装包合并在一个所述通信包304内;其中,一个所述通信包内可以发送到多个目标区块链的所述封装包;
通过以上实施方式,将信息的内容以及处理方式、信息的接收方信息以及多个信息进行分层次处理,有效隔离了信息在处理过程的各个环节,提高了信息处理的效率和安全程度。
实施例二:
本实施例应当理解为至少包含前述任意一个实施例的全部特征,并在其基础上进一步改进;
在所述第一区块链,由所述中转单元维护有若干个中转节点;所述第一区块链上的普通节点用于所述第一区块链上的一般信息记录;而由所述中转节点维护的所述中转节点,则用于记录所述中转节点已经完成中转的所述中转信息,以确认所述通信信息的处理和发送已经按照用户的需求进行处理;
其中,由于区块链的技术的原理,决定了区块链存在分叉的情况;区块链的分叉是指当由区块链内的共识机制发生改变时,与原生协议不相容时,部分反对新协议的节点遵循原有旧协议的共识,从而无法达成新协议的区块账本;然后各方各自延续自己认为正确的区块链,所以分成了两条链;该情况包括良性的区块链分叉,例如区块链的发起组织发布新的共识机制协议,由于非中心化的要求,节点进行选择是否执行新协议;或者,是区块链受到攻击,由攻击者发起了恶性分叉,从而窜改区块链以往数据并由此生成新的数据的区块;尤其对于维护节点较少的区块链,发生算力攻击的概率比较大,容错率也较低;因此本实施例包括优化所述中转节点生成所述中转信息的流程,其中包括对所述第一区块链的区块高度的验证;
由于区块的生成是按照特定时间周期性地生成新的区块,然而因为需要对区块数据进行共识认证,所以如附图6所示,在新的区块A生成后,并不是等待区块A被区块链完全确认完毕才生成后面的区块B、区块C……,而是在生成区块A的特定时间后即马上生成区块B;区块B的区块头内记录所述区块A的哈希信息;待区块A完成全链共识认证后,再去对区块B进行全链共识认证;
因此,如附图7若在区块B中发生分叉,后续生成了包括区块C和区块D所在的旧链,以及包括区块C´和区块D´的新链;后续的区块的生成则需要验证区块B中的区块账本数据,并以此决定跟随旧链或者新链;
因此提出在步骤S2中,所述中转单元需要确认当前待生成的所述中转区块的高度X,是否大于保存所述通信信息的区块高度Y;
若所述中转区块的高度X小于高度Y,即保存所述通信信息的区块保存于所述这,则所述中转单元需要验证所有从高度X+1到高度Y的所有区块的所述第一区块链的默克尔树信息,以确认区块从高度X+1到高度Y之间的所有区块已通过所述第一区块链上的所有节点的共识验证,并确认区块高度为Y的区块是否在最长链上;若区块高度为Y的区块为最长链上,则在区块高度为X的所述中转区块中生成所述中转信息;
若中转区块的高度X大于所述高度Y,则基于所述第一区块链的默克尔树信息,在所述中转区块生成所述中转信息;
使用以上验证方式,保证所述中转信息所传达的所述通信信息都通过所述第一区块链的共识认证,避免了由于分叉所造成的,传达了被窜改或者无法通过共识认证的通信信息。
实施例三:
本实施例应当理解为至少包含前述任意一个实施例的全部特征,并在其基础上进一步改进;
所述中转信息是根据目标区块链的网络地址从而生成的,因此同一个所述中转信息内包含的多个所述封装包都具有同一个区块链网络地址,而可能具有多个不同的节点地址;
因此,进一步的,在所述步骤S301中,所述第二验证单元包括验证所述中转信息是否由所述中转单元通过了步骤S2的区块验证过程;
进一步的,所述第二验证单元还包括验证所述中转信息中的所有目标节点地址是否均为所述第二区块链的节点地址;
进一步的,所述第二验证单元还包括向所述中转单元反馈验证过程中没有通过验证的部分,例如,具有错误目标节点地址的所述封装包;
在所述第二验证单元通过对所述中转信息的验证后,将所述中转信息提交到所述第二封装单元进行解封并读取内部多个所述封装包303所包含的所述事件包302内容;
所述第二处理单元执行根据多个所述事件包302的内容,执行所述通信信息301的处理方法,以及将所述通信信息301发送到目标节点。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
虽然上面已经参考各种实施例描述了本发明,但是应当理解,在不脱离本发明的范围的情况下,可以进行许多改变和修改。也就是说上面讨论的方法,系统和设备是示例。各种配置可以适当地省略,替换或添加各种过程或组件。例如,在替代配置中,可以以与所描述的顺序不同的顺序执行方法,和/或可以添加,省略和/或组合各种部件。而且,关于某些配置描述的特征可以以各种其他配置组合,如可以以类似的方式组合配置的不同方面和元素。此外,随着技术发展其中的元素可以更新,即许多元素是示例,并不限制本公开或权利要求的范围。
在说明书中给出了具体细节以提供对包括实现的示例性配置的透彻理解。然而,可以在没有这些具体细节的情况下实践配置例如,已经示出了众所周知的电路,过程,算法,结构和技术而没有不必要的细节,以避免模糊配置。该描述仅提供示例配置,并且不限制权利要求的范围,适用性或配置。相反,前面对配置的描述将为本领域技术人员提供用于实现所描述的技术的使能描述。在不脱离本公开的精神或范围的情况下,可以对元件的功能和布置进行各种改变。
综上,其旨在上述详细描述被认为是例示性的而非限制性的,并且应当理解,以上这些实施例应理解为仅用于说明本发明而不用于限制本发明的保护范围。在阅读了本发明的记载的内容之后,技术人员可以对本发明作各种改动或修改,这些等效变化和修饰同样落入本发明权利要求所限定的范围。

Claims (2)

  1. 一种基于跨链通信和多链融合的信息处理系统,其特征在于,所述信息处理系统包括:第一区块链、第二区块链以及中转单元;所述第一区块链是通信信息的发送节点所在的区块链;所述第二区块链是通信信息的接收节点所在的区块链;所述中转单元用于根据通信信息的发送目标地址进行中转处理;
    其中,所述第一区块链包括第一处理单元、第一封装单元以及第一通信单元;所述第一处理单元用于获取所述通信信息以及对所述通信信息的处理方法,并生成基于所述通信信息的事件信息,将所述通信信息和所述处理方法与所述事件信息进行绑定后,生成一个事件包,赋予所述事件包一个事件序列号;所述第一封装单元将所述事件包、通信信息的目标区块链地址以及目标节点地址进行封装后,生成封装包;所述第一通信单元用于将多个所述封装包合并为一个通信包;
    所述第二区块链包括第二验证单元、第二封装单元以及第二处理单元;所述第二验证单元用于接收由所述中转单元发到所述第二区块链的中转信息,并验证所述中转信息;所述第二封装单元用于对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;所述第二处理单元用于执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点;所述中转单元与至少一个所述第一区块链的节点通信连接;所述中转单元与至少一个所述第二区块链的节点通信连接;或者,所述中转单元通过中介节点与至少一个所述第一区块链的节点通信连接,同时所述中转单元通过中介节点与至少一个所述第二区块链的节点通信连接;
    其中,所述处理系统包括一种信息处理的方法,包括:
    步骤S1:所述中转单元当确认所述通信包在所述第一区块链生成时,提取所述通信包;
    步骤S2:中转单元验证所述通信包,并且验证所述通信包内的所述封装包;根据目标地址生成所述中转信息,并将所述中转信息发送到所述第二区块链;
    步骤S3:所述第二区块链响应并接收所述中转信息,提取所述中转信息内的所述封装包的信息,并根据目标节点地址将所述通信信息发送到所述目标节点;
    在步骤S1中,包括:
    S101:所述第一处理单元获取所述通信信息以及对所述通信信息的处理方法,并生成基于所述通信信息的事件信息,将所述通信信息、所述处理方法与所述事件信息进行绑定后,生成一个所述事件包,赋予所述事件包一个事件序列号;
    S102:所述第一封装单元将所述事件包、所述通信信息的目标区块链地址以及目标节点地址进行封装后,生成所述封装包;
    S103:将多个所述封装包合并为一个所述通信包后,写入到所述第一区块链的区块中;
    步骤S101中,包括:发送节点将所述通信信息写入所述第一区块链的区块中,并由所述第一处理单元进行提取;
    在所述步骤S2中,所述中转单元包括提取所述通信包内的多个所述封装包,并读取多个所述事件序列号,并将处理后的事件序列号写入一个在所述第一区块链的中转区块中;
    在所述步骤S2中,所述中转单元需要确认当前待生成的所述中转区块的高度X,是否大于保存所述通信信息的区块高度Y;
    若高度X小于所述高度Y,则所述中转单元需要验证所有从高度X+1到高度Y的所有区块的所述第一区块链的默克尔树信息,以确认区块从高度X+1到高度Y之间的所有区块已通过所述第一区块链上的所有节点的共识验证,确认区块高度为Y的区块是否在最长链上;若区块高度为Y的区块为最长链上,则在区块高度为X的所述中转区块中生成所述中转信息;
    若中转区块的高度X大于所述高度Y,则基于所述第一区块链的默克尔树信息,在所述中转区块生成所述中转信息。
  2. 根据权利要求1所述一种基于跨链通信和多链融合的信息处理系统,其特征在于,在所述步骤S3中,还包括以下步骤:
    S301:接收由所述中转单元发到所述第二区块链的所述中转信息,并验证所述中转信息;
    S302:对所述中转信息进行解封,并读取所述通信信息以及所述通信信息的处理方法;
    S303:执行所述通信信息的处理方法,以及将所述通信信息发送到目标节点。
PCT/CN2022/100964 2022-02-24 2022-06-24 一种基于跨链通信和多链融合的信息处理系统 WO2023159827A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210169307.9A CN114244537B (zh) 2022-02-24 2022-02-24 一种基于跨链通信和多链融合的信息处理系统
CN202210169307.9 2022-02-24

Publications (1)

Publication Number Publication Date
WO2023159827A1 true WO2023159827A1 (zh) 2023-08-31

Family

ID=80747918

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100964 WO2023159827A1 (zh) 2022-02-24 2022-06-24 一种基于跨链通信和多链融合的信息处理系统

Country Status (2)

Country Link
CN (1) CN114244537B (zh)
WO (1) WO2023159827A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244537B (zh) * 2022-02-24 2022-05-06 环球数科集团有限公司 一种基于跨链通信和多链融合的信息处理系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960837A (zh) * 2018-06-05 2018-12-07 上海和数软件有限公司 区块链共识验证方法、装置及计算机可读存储介质
US20190058581A1 (en) * 2017-08-03 2019-02-21 Gavin Wood Methods and Systems for a Heterogeneous Multi-Chain Framework
CN111489256A (zh) * 2019-01-25 2020-08-04 京东数字科技控股有限公司 用于多链区块链系统中的跨链处理方法、设备及系统
CN113676546A (zh) * 2021-03-30 2021-11-19 支付宝(杭州)信息技术有限公司 一种基于中继设备网络跨链中转数据的方法和装置
CN114244537A (zh) * 2022-02-24 2022-03-25 环球数科集团有限公司 一种基于跨链通信和多链融合的信息处理系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231299A (zh) * 2017-06-07 2017-10-03 众安信息技术服务有限公司 一种链路由及实现区块链跨链通信的系统
CN111914021B (zh) * 2020-07-02 2022-12-02 众连智能科技有限公司 一种跨区块链的交互方法、系统、计算机设备及存储介质
CN112615915B (zh) * 2020-12-10 2022-05-24 浙商银行股份有限公司 一种在私有链之间构建联盟链的方法
CN113965329A (zh) * 2021-10-25 2022-01-21 浙江师范大学 一种跨链互操作系统、方法、介质及数据处理终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190058581A1 (en) * 2017-08-03 2019-02-21 Gavin Wood Methods and Systems for a Heterogeneous Multi-Chain Framework
CN108960837A (zh) * 2018-06-05 2018-12-07 上海和数软件有限公司 区块链共识验证方法、装置及计算机可读存储介质
CN111489256A (zh) * 2019-01-25 2020-08-04 京东数字科技控股有限公司 用于多链区块链系统中的跨链处理方法、设备及系统
CN113676546A (zh) * 2021-03-30 2021-11-19 支付宝(杭州)信息技术有限公司 一种基于中继设备网络跨链中转数据的方法和装置
CN114244537A (zh) * 2022-02-24 2022-03-25 环球数科集团有限公司 一种基于跨链通信和多链融合的信息处理系统

Also Published As

Publication number Publication date
CN114244537A (zh) 2022-03-25
CN114244537B (zh) 2022-05-06

Similar Documents

Publication Publication Date Title
CN108876370B (zh) 一种异构多链架构下跨区块链共享开放数据的体系架构
US20220231869A1 (en) Cross-blockchain mutual data storage
CN110933108B (zh) 基于区块链网络的数据处理方法、装置、电子设备及存储介质
Alvarenga et al. Securing configuration management and migration of virtual network functions using blockchain
WO2022193985A1 (zh) 一种数据处理方法、装置、设备及存储介质
CN112685505B (zh) 一种交易数据处理方法、装置、计算机设备及存储介质
CN112837160A (zh) 基于区块链的跨链交易方法、装置和计算机可读存储介质
JP2019536380A (ja) ブロックチェーンのクロスチェーン通信を実現する方法、装置及びシステム
CN112686668B (zh) 联盟链跨链系统及方法
WO2022143798A1 (zh) 跨链交易的验证方法、终端设备及可读存储介质
CN109245894B (zh) 一种基于智能合约的分布式云存储系统
CN112804354B (zh) 跨链进行数据传输的方法、装置、计算机设备和存储介质
CN114868359B (zh) 多区块链间轻量通讯协定装置及方法
CN110852745A (zh) 一种区块链分布式动态网络密钥自动更新方法
CN109936620B (zh) 基于区块链的存储方法及装置、系统与存储介质
CN111275555A (zh) 区块链交易处理方法、交易节点以及区块链系统
CN111899019A (zh) 一种黑名单多方交叉验证和共享的方法及系统
WO2023159827A1 (zh) 一种基于跨链通信和多链融合的信息处理系统
CN114301912A (zh) 基于区块链的信息交互方法和装置
CN112416981A (zh) 基于区块链的数据处理方法、装置、电子设备及存储介质
CN117032998B (zh) 一种基于区块链的数据处理方法、装置以及可读存储介质
CN112866341B (zh) 用于环锭纺纱cpps的信息传输方法、装置、计算机可读介质
KR102462998B1 (ko) Bft 합의 방식을 이용한 멀티 체인 간의 교차 인증 장치 및 방법
CN108768932A (zh) 一种轻量级sdn交换机与控制器的安全连接方法
CN115730934A (zh) 基于区块链的数据处理方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22928097

Country of ref document: EP

Kind code of ref document: A1