WO2021082340A1 - Data processing method, apparatus, system, and storage medium - Google Patents

Data processing method, apparatus, system, and storage medium Download PDF

Info

Publication number
WO2021082340A1
WO2021082340A1 PCT/CN2020/080153 CN2020080153W WO2021082340A1 WO 2021082340 A1 WO2021082340 A1 WO 2021082340A1 CN 2020080153 W CN2020080153 W CN 2020080153W WO 2021082340 A1 WO2021082340 A1 WO 2021082340A1
Authority
WO
WIPO (PCT)
Prior art keywords
business system
blockchain
information
blockchain business
verification
Prior art date
Application number
PCT/CN2020/080153
Other languages
French (fr)
Chinese (zh)
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 WO2021082340A1 publication Critical patent/WO2021082340A1/en

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • 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/3247Cryptographic 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 involving digital signatures
    • 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/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Definitions

  • the present disclosure relates to the field of blockchain technology, and in particular to a data processing method, device, system and storage medium.
  • the notary mechanism needs to introduce a trusted third party recognized by both blockchain systems, and the trusted third party will confirm and verify blockchain transactions.
  • the mechanism based on side chains and relays requires the introduction of a new blockchain system.
  • the two blockchain systems participating in the cross-chain resource exchange need to lock the digital currency and confirm it within the set transaction time to complete the transaction.
  • the inventor found that the notary mechanism and the mechanism based on side chains and relays need to introduce other trusted systems or other blockchains to ensure the reliability of cross-chain operations, resulting in low execution efficiency and limited use.
  • the hash lock method has the problem of limited application scenarios. Therefore, the current cross-chain operation has poor flexibility and low efficiency.
  • a technical problem to be solved by the embodiments of the present disclosure is: how to improve the execution efficiency and flexibility of blockchain cross-chain operations.
  • a data processing method including: responding to a request of a first user to initiate resource exchange through a first blockchain business system, and a second user through a second blockchain
  • the business system sends a response to the consent request, and stores the resource exchange information sent by the first blockchain business system and the second blockchain business system; sends the storage address of the resource exchange information to the first blockchain business system
  • the verification node of the verification node and the verification node of the second blockchain business system are verified; the verification result sent by the verification node and the storage address of the resource exchange information are sent to the first blockchain business system and the second blockchain business system;
  • the resource exchange includes transferring the resources of the first user in the second blockchain to the second user's account in the second blockchain, and transferring the resources of the second user in the first blockchain to The account of the first user on the first blockchain.
  • the resource exchange information includes: first information sent by the first blockchain business system, and the first information includes transferring the resources of the first user in the second blockchain to the second user in the second area Information about the account of the blockchain; and, the second information sent by the second blockchain business system, the second information includes transferring the resources of the second user in the first blockchain to the first user in the first blockchain Account information.
  • the first information is generated by the first blockchain business system and includes at least one of the signature of the second user and the first valid time; and the second information is the second blockchain business system
  • the generated data includes at least one of the signature of the first user and the second valid time, where the second valid time is longer than the first valid time.
  • sending the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system includes: sending the storage address of the first information to the second The verification node of the blockchain business system, and the storage address of the second information is sent to the verification node of the first blockchain business system.
  • the storage address of the resource exchange information is sent to the verification node of the first blockchain business system, where the verification node of the first blockchain business system is randomly determined or determined by the first region. Designated by the blockchain business system; and, sending the storage address of the resource exchange information to the verification node of the second blockchain business system, where the verification node of the second blockchain business system is randomly determined, or Specified by the second blockchain business system.
  • the distributed file system is the Interplanetary File System IPFS.
  • the information exchanged by the resource is encoded in the XDR format expressed by external data.
  • a data processing device including: a storage module configured to respond to a request of a first user to initiate resource exchange through a first blockchain business system, and a second user Send the response of the consent request through the second blockchain business system, store the resource exchange information sent by the first blockchain business system and the second blockchain business system, and store the execution result of the resource exchange;
  • the storage address sending module is configured to send the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification;
  • the verification result sending module is configured to The verification result sent by the verification node and the address of the storage information of the resource exchange are sent to the first blockchain business system and the second blockchain business system;
  • the execution result obtaining module is configured to obtain the first blockchain service
  • the system and the second blockchain business system respectively send execution results of executing resource exchange in response to the verification being passed.
  • a data processing device including: a memory; and a processor coupled to the memory, the processor being configured to execute any of the foregoing based on instructions stored in the memory Data processing method.
  • a data processing system including: any one of the foregoing data processing devices; a first blockchain business system; and a second blockchain business system.
  • the data processing system further includes: a first verification node of the first blockchain business system, configured to obtain the second information according to the storage address of the second information, and to verify the second information; and, The second verification node of the second blockchain business system is configured to obtain the first information according to the storage address of the first information, and to verify the first information.
  • the first blockchain business system is further configured to obtain the verification result and the storage address of the second information, and if the verification is passed, generate a block based on the second information and store the corresponding block To the blockchain corresponding to the first blockchain business system; and, the second blockchain business system is further configured to obtain the verification result and the storage address of the first information, and if the verification is passed, according to the first The information generates a block and stores the corresponding block in the block chain corresponding to the second block chain business system.
  • the first blockchain business system and the second blockchain business system are both blockchain business systems based on the alliance chain.
  • the data processing system further includes a storage device configured to store the resource exchange information sent by the first blockchain business system and the second blockchain business system and the execution result of the resource exchange.
  • a computer-readable storage medium on which a computer program is stored, wherein the program is executed by a processor to implement any of the foregoing data processing methods.
  • the embodiments of the present disclosure can realize cross-chain resource exchange without using a third-party business system or a third-party blockchain, which improves execution efficiency and flexibility, and is suitable for multiple applications.
  • kind of application scenarios are possible.
  • Fig. 1 shows a schematic flowchart of a data processing method according to some embodiments of the present disclosure.
  • Fig. 2 shows a schematic flowchart of a method for verifying information exchanged by resources according to some embodiments of the present disclosure.
  • Fig. 3 shows a schematic flowchart of a method for performing resource exchange according to some embodiments of the present disclosure.
  • Fig. 4 shows a schematic structural diagram of a data processing device according to some embodiments of the present disclosure.
  • Fig. 5 shows a schematic structural diagram of a data processing system according to some embodiments of the present disclosure.
  • Fig. 6 shows a schematic structural diagram of a data processing device according to other embodiments of the present disclosure.
  • Fig. 7 shows a schematic structural diagram of a data processing device according to still other embodiments of the present disclosure.
  • any specific value should be construed as merely exemplary, and not as a limitation. Therefore, other examples of the exemplary embodiment may have different values.
  • Fig. 1 is a schematic flowchart of a data processing method according to some embodiments of the present disclosure.
  • the first blockchain business system is a business system based on the first blockchain
  • the second blockchain business system is a business system based on the second blockchain.
  • the business system may include blockchain nodes for performing blockchain-related operations, and servers for external business interactions. The functions of the server and the blockchain node can also be co-located on the same device.
  • Each of the first user and the second user has an account on the first blockchain and the second blockchain.
  • the data processing method of this embodiment includes steps S102 to S112.
  • step S102 the first user initiates a request for resource exchange through the first blockchain business system, and the second user sends a response agreeing to the request through the second blockchain business system.
  • the first user and the second user want to exchange resources, including transferring the resources of the first user in the second blockchain to the account of the second user in the second blockchain, and transferring the resources of the second user
  • the resources in the first blockchain are transferred to the first user's account in the first blockchain.
  • the first blockchain business system and the second blockchain business system are both blockchain business systems based on a consortium chain
  • the consortium chain may be a Stellar consortium chain, for example.
  • the requested information is notified to the second blockchain business system.
  • the requested information includes, for example, resources Exchange identification, transaction content, etc.; then, in response to the second user sending a response to the consent request through the second blockchain business system, the resource exchange is sent to the first blockchain business system and the second blockchain business system Corresponding verification node and other information, and can also send the identification of resource exchange.
  • step S104 the resource exchange information sent by the first blockchain business system and the second blockchain business system is stored.
  • the resource exchange information is encoded in an external data representation (External Data Representation, XDR for short) format.
  • external data representation Extra Data Representation, XDR for short
  • the information of the resource exchange includes the participants of the resource exchange, the name and quantity of the resource being exchanged, signature information, valid time, and so on.
  • the storage location of the information exchanged by the resource is the location that the verification node can access.
  • the resource exchange information sent by the first blockchain business system and the second blockchain business system is uploaded to the distributed file system for storage, so that the first blockchain business system and the second district The verification node of the blockchain business system can read it.
  • the distributed file system may be, for example, the InterPlanetary File System (IPFS).
  • step S106 the storage address of the resource exchange information is sent to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification.
  • the verification node can obtain the resource exchange information according to the obtained storage address for verification.
  • the content of the verification may include, for example, whether the remaining resources of the first user or the second user are sufficient for this resource exchange, whether the signature in the information of the resource exchange is legal, and so on.
  • the verification node is a blockchain node.
  • the information of the corresponding verification node may be sent to each of the first blockchain business system and the second blockchain business system.
  • the verification node is not fixed, but is specified for each resource exchange.
  • the verification nodes of the first blockchain business system and the second blockchain business system are randomly determined.
  • a block chain node designated by at least one of the first block chain business system and the second block chain business system is obtained as a verification node; the verification node is not specified in the first block chain business system
  • the verification node of the first blockchain business system is randomly determined; in the case that the second blockchain business system does not specify a verification node, the verification node of the second blockchain business system is randomly determined. That is, in the case where the user does not specify the verification node, the blockchain node in the blockchain business system is randomly determined as the verification node.
  • the storage address of the verification program is also sent to the verification node, so that the verification node performs verification by executing the verification program.
  • step S108 the storage address of the verification result and resource exchange information sent by the verification node is sent to the first blockchain business system and the second blockchain business system.
  • step S110 the execution results of executing resource exchange respectively sent by the first blockchain business system and the second blockchain business system in response to the verification passed are obtained.
  • first blockchain business system and the second blockchain business system can respectively generate corresponding blocks and record them in their own systems.
  • step S112 the execution result is stored.
  • cross-chain resource exchange when the cross-chain resource exchange between the two blockchain business systems is performed, the verification node in each blockchain business system can verify, and the information and execution results of the resource exchange can be verified Centralized storage for traceability and inquiries. Therefore, cross-chain resource exchange can be realized without the aid of a third-party business system or a third-party blockchain, which improves execution efficiency and flexibility, and is suitable for a variety of application scenarios.
  • the information of resource exchange includes the first information of resource exchange sent by the first user through the first blockchain business system and the second information of resource exchange sent by the second user through the second blockchain business system.
  • the first information includes the transfer of the resources of the first user in the second blockchain to the second user's account in the second blockchain
  • the second information includes the transfer of the resources of the second user in the first blockchain to The account information of the first user in the first blockchain.
  • the verification node can verify part of the operations involved in the resource exchange in the blockchain business system where the verification node is located. The following describes an embodiment of the method for verifying information exchanged by resources of the present disclosure with reference to FIG. 2.
  • Fig. 2 is a schematic flowchart of a method for verifying information exchanged by resources according to some embodiments of the present disclosure.
  • the method of this embodiment includes steps S202 to S220. These steps may be executed after the first user and the second user both agree to perform cross-chain resource transfer.
  • the execution subjects of steps S204, S206, S210, S212, S214, and S218 are shown in FIG. 2 by taking the "data processing device" as an example.
  • the execution subject may also be other devices, such as a message service device, a process control device, etc., which will not be repeated here.
  • step S202 the first blockchain business system generates first information for resource exchange.
  • the first blockchain service system adds at least one of the signature of the second user and the first valid time to the first information.
  • step S204 the first information of resource exchange sent by the first blockchain service system is acquired.
  • step S206 the first information is stored.
  • step S208 the second blockchain business system generates second information for resource exchange.
  • the second blockchain service system adds at least one of the signature of the first user and the second valid time to the second information, wherein the second valid time is longer than the first valid time.
  • step S210 the second information of resource exchange sent by the second blockchain service system is acquired.
  • step S212 the second information is stored.
  • step S214 the storage address of the first information is sent to the verification node of the second blockchain business system, which is referred to as the second verification node for short.
  • the second verification node obtains the first information according to the storage address of the first information, and verifies the first information. For example, verifying whether the signature in the first message is legal, whether the first message has timed out, whether the remaining resources of the first user's account in the second blockchain business system support this resource exchange, and so on.
  • step S218 the storage address of the second information is sent to the verification node of the first blockchain business system, which is referred to as the first verification node for short.
  • the first verification node obtains the second information according to the storage address of the second information, and verifies the second information. For example, verifying whether the signature in the second information is legal, whether the second information has timed out, whether the remaining resources of the second user's account in the first blockchain business system support this resource exchange, and so on.
  • the first blockchain business system and the second blockchain business system can use intermediate data processing devices and other devices to implement message transmission and process control.
  • the verification node can verify the information of the resource exchange involved in the blockchain business system to which it belongs, so that the verification efficiency and security can be improved.
  • Fig. 3 is a schematic flowchart of a method for performing resource exchange according to some embodiments of the present disclosure.
  • the method of this embodiment includes steps S302 to S316.
  • the execution subjects of steps S302, S306, S308, S310, S314, and S316 are shown in FIG. 3 by taking the "data processing device" as an example.
  • the execution subject may also be other devices, such as a message service device, a process control device, etc., which will not be repeated here.
  • step S302 the verification result and the address of the second information exchanged with the resource are sent to the first blockchain service system.
  • step S304 if the verification is passed, the first blockchain business system generates a block according to the second information, and stores the corresponding block in the blockchain corresponding to the first blockchain business system to execute Resource exchange.
  • the block generated by the first blockchain business system may include, for example, a description corresponding to the transfer of the resources of the second user in the first blockchain to the account of the first user in the first blockchain, and the identification of resource exchange, Time, information of the first user and the second user, etc.
  • the first blockchain business system can generate blocks through the corresponding blockchain nodes, and publish the blocks to the first blockchain business system, so that the first blockchain business system corresponds to the blockchain
  • the other blockchain nodes verify the block and process the block into the chain.
  • step S306 the execution result of the first blockchain business system is obtained.
  • step S308 the execution result of the first blockchain business system is stored.
  • the execution result can also be stored in a distributed file system such as IPFS.
  • step S310 the verification result and the address of the first information exchanged with the resource are sent to the second blockchain service system.
  • step S312 if the verification is passed, the second blockchain business system generates a block according to the first information, and stores the corresponding block in the blockchain corresponding to the second blockchain business system to execute Resource exchange.
  • the block generated by the second blockchain business system may include, for example, a description corresponding to the transfer of the resources of the first user in the second blockchain to the account of the second user in the second blockchain, as well as the identification of resource exchange, Time, information of the first user and the second user, etc.
  • the block processing method can refer to the description in step S304, which will not be repeated here.
  • step S314 the execution result of the second blockchain business system is obtained.
  • the execution result can also be stored in a distributed file system such as IPFS.
  • step S316 the execution result of the second blockchain business system is stored.
  • the storage information of the execution result can also be fed back to the first blockchain business system and the second blockchain business system.
  • the information involved in each blockchain business system in the resource exchange process can be recorded in each blockchain business system, thereby further making the process of resource exchange traceable, preventing tampering, and improving resource exchange Security.
  • Fig. 4 is a schematic structural diagram of a data processing device according to some embodiments of the present disclosure.
  • the data processing device 400 of this embodiment includes: a storage module 4100 configured to respond to a request of a first user to initiate resource exchange through the first blockchain business system, and a second user to pass through the second area
  • the block chain business system sends a response to the consent request, stores the resource exchange information sent by the first block chain business system and the second block chain business system, and stores the execution result of the resource exchange;
  • the storage address sending module 4200 configured to send the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification;
  • the verification result sending module 4300 is configured to verify The verification result sent by the node and the address of the storage information of the resource exchange are sent to the first blockchain business system and the second blockchain business system;
  • the execution result obtaining module 4400 is configured to obtain the first blockchain business system And the second blockchain business system respectively send the execution result of the resource exchange in response
  • the resource exchange includes transferring the resources of the first user in the second blockchain to the second user's account in the second blockchain, and transferring the resources of the second user in the first blockchain to The account of the first user on the first blockchain.
  • the resource exchange information includes: first information sent by the first blockchain business system, and the first information includes transferring the resources of the first user in the second blockchain to the second user in the second area Information about the account of the blockchain; and, the second information sent by the second blockchain business system, the second information includes transferring the resources of the second user in the first blockchain to the first user in the first blockchain Account information
  • the first information is generated by the first blockchain business system and includes at least one of the signature of the second user and the first valid time; and the second information is the second blockchain business system
  • the generated data includes at least one of the signature of the first user and the second valid time, where the second valid time is longer than the first valid time.
  • the storage address sending module 4200 is further configured to send the storage address of the first information to the verification node of the second blockchain business system, and send the storage address of the second information to the first blockchain The verification node of the business system.
  • the storage address sending module 4200 is further configured to send the storage address of the resource exchanged information to the verification node of the first blockchain business system, where the verification node of the first blockchain business system is Randomly determined or specified by the first blockchain business system; and sending the storage address of the resource exchange information to the verification node of the second blockchain business system, where the second blockchain business system The verification node is randomly determined or designated by the second blockchain business system.
  • the storage module 4200 is further configured to upload the resource exchange information sent by the first blockchain business system and the second blockchain business system to the distributed file system for storage; upload the execution result to Stored in a distributed file system.
  • the distributed file system is the Interplanetary File System IPFS.
  • the information exchanged by the resource is encoded in the XDR format expressed by external data.
  • Fig. 5 is a schematic structural diagram of a data processing system according to some embodiments of the present disclosure.
  • the data processing system 50 of this embodiment includes: a data processing device 510; a first blockchain business system 520; and a second blockchain business system 530.
  • the first blockchain business system 520 is further configured to obtain the verification result and the storage address of the second information, and in the case of passing the verification, generate a block according to the second information and transfer the corresponding block Stored in the blockchain corresponding to the first blockchain business system 520; and, the second blockchain business system 530 is further configured to obtain the verification result and the storage address of the first information, and if the verification is passed, A block is generated according to the first information, and the corresponding block is stored in the block chain corresponding to the second block chain business system 530.
  • the first blockchain service system 520 is further configured to generate first information for resource exchange, and add at least one of the signature of the second user and the first valid time to the first information; second The blockchain business system 530 is further configured to generate second information for resource exchange, and add at least one of the first user’s signature and a second valid time to the second information, wherein the second valid time is longer than the first valid time. time.
  • the data processing system 50 further includes: a first verification node 540 of the first blockchain business system 520, configured to obtain the second information according to the storage address of the second information, and to verify the second information
  • the second verification node 550 of the second blockchain business system 530 is configured to obtain the first information according to the storage address of the first information, and to verify the first information.
  • the first blockchain business system and the second blockchain business system are both blockchain business systems based on the alliance chain.
  • the data processing system 50 further includes: a storage device 560 configured to store the resource exchange information sent by the first blockchain business system 520 and the second blockchain business system 530 and perform the execution of the resource exchange result.
  • Fig. 6 is a schematic structural diagram of a data processing device according to other embodiments of the present disclosure.
  • the data processing device 60 of this embodiment includes a memory 610 and a processor 620 coupled to the memory 610.
  • the processor 620 is configured to execute any one of the foregoing implementations based on instructions stored in the memory 610.
  • the data processing method in the example is a schematic structural diagram of a data processing device according to other embodiments of the present disclosure.
  • the data processing device 60 of this embodiment includes a memory 610 and a processor 620 coupled to the memory 610.
  • the processor 620 is configured to execute any one of the foregoing implementations based on instructions stored in the memory 610.
  • the data processing method in the example is a schematic structural diagram of a data processing device according to other embodiments of the present disclosure.
  • the data processing device 60 of this embodiment includes a memory 610 and a processor 620 coupled to the memory 610.
  • the processor 620 is configured to execute any one of the foregoing implementations
  • the memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, and the like.
  • the system memory stores, for example, an operating system, an application program, a boot loader (Boot Loader), and other programs.
  • Fig. 7 is a schematic structural diagram of a data processing device according to still other embodiments of the present disclosure.
  • the data processing apparatus 70 of this embodiment includes a memory 710 and a processor 720, and may also include an input/output interface 730, a network interface 740, a storage interface 750, and the like. These interfaces 730, 740, 750, and the memory 710 and the processor 720 may be connected via a bus 760, for example.
  • the input and output interface 730 provides a connection interface for input and output devices such as a display, a mouse, a keyboard, and a touch screen.
  • the network interface 740 provides a connection interface for various networked devices.
  • the storage interface 750 provides a connection interface for external storage devices such as SD cards and U disks.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, any one of the aforementioned data processing methods is implemented.
  • the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. .
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present disclosure relates to the technical field of blockchains, and relates to a data processing method, an apparatus, a system, and a storage medium. The data processing method comprises: storing resource exchange information sent by a first blockchain service system and a second blockchain service system; sending the storage address of the resource exchange information to a verification node of the first blockchain service system and a verification node of the second blockchain service system so as to perform verification; sending verification results sent by the verification nodes and the storage address of the resource exchange information to the first blockchain service system and the second blockchain service system; obtaining execution results from executing resource exchange, which are separately sent by the first blockchain service system and the second blockchain service system in response to verification passing; and storing the execution results. Therefore, the execution efficiency and flexibility of cross-chain resource exchange are improved.

Description

数据处理方法、装置、系统和存储介质Data processing method, device, system and storage medium
相关申请的交叉引用Cross-references to related applications
本申请是以CN申请号为201911040777.X,申请日为2019年10月30日的申请为基础,并主张其优先权,该CN申请的公开内容在此作为整体引入本申请中。This application is based on the application whose CN application number is 201911040777.X and the application date is October 30, 2019, and claims its priority. The disclosure of this CN application is hereby incorporated into this application as a whole.
技术领域Technical field
本公开涉及区块链技术领域,特别涉及一种数据处理方法、装置、系统和存储介质。The present disclosure relates to the field of blockchain technology, and in particular to a data processing method, device, system and storage medium.
背景技术Background technique
在相关技术中,大多数基于区块链的资源转移是同一个区块链上的不同用户的账户之间的转移。也有一些跨链的技术和应用可以协助实现不同区块链之间的资源交换或转移,例如公证人机制、基于侧链和中继的机制、基于哈希锁定的机制的跨链技术。In related technologies, most blockchain-based resource transfers are transfers between accounts of different users on the same blockchain. There are also some cross-chain technologies and applications that can assist in the exchange or transfer of resources between different blockchains, such as the notary mechanism, the side-chain and relay-based mechanism, and the cross-chain technology based on the hash lock mechanism.
公证人机制需要引入两个区块链系统都认可的可信的第三方,并由可信第三方进行区块链交易的确认和验证。基于侧链和中继的机制需要引入新的区块链系统。在基于哈希锁定的机制中,参与跨链资源交换的两个区块链系统需要锁定数字货币,并在设定的交易时间内进行确认以完成交易。The notary mechanism needs to introduce a trusted third party recognized by both blockchain systems, and the trusted third party will confirm and verify blockchain transactions. The mechanism based on side chains and relays requires the introduction of a new blockchain system. In the mechanism based on hash locking, the two blockchain systems participating in the cross-chain resource exchange need to lock the digital currency and confirm it within the set transaction time to complete the transaction.
发明内容Summary of the invention
发明人经过分析后发现,公证人机制以及基于侧链和中继的机制需要引入其他可信系统或其他区块链来保证跨链操作的可靠性,导致执行效率低下、使用受限。而哈希锁定的方式则存在应用场景受限的问题。因此,目前跨链操作的灵活性较差、效率较低。After analysis, the inventor found that the notary mechanism and the mechanism based on side chains and relays need to introduce other trusted systems or other blockchains to ensure the reliability of cross-chain operations, resulting in low execution efficiency and limited use. The hash lock method has the problem of limited application scenarios. Therefore, the current cross-chain operation has poor flexibility and low efficiency.
本公开实施例所要解决的一个技术问题是:如何提高区块链跨链操作的执行效率和灵活性。A technical problem to be solved by the embodiments of the present disclosure is: how to improve the execution efficiency and flexibility of blockchain cross-chain operations.
根据本公开一些实施例的第一个方面,提供一种数据处理方法,包括:响应于第一用户通过第一区块链业务系统发起资源交换的请求、并且第二用户通过第二区块链业务系统发送同意请求的响应,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息进行存储;将资源交换的信息的存储地址发送给第一区块链业务系统 的验证节点和第二区块链业务系统的验证节点进行验证;将验证节点发送的验证结果和资源交换的信息的存储地址发送给第一区块链业务系统和第二区块链业务系统;获得第一区块链业务系统和第二区块链业务系统响应于验证通过而分别发送的、执行资源交换的执行结果;以及,将执行结果进行存储。According to a first aspect of some embodiments of the present disclosure, there is provided a data processing method, including: responding to a request of a first user to initiate resource exchange through a first blockchain business system, and a second user through a second blockchain The business system sends a response to the consent request, and stores the resource exchange information sent by the first blockchain business system and the second blockchain business system; sends the storage address of the resource exchange information to the first blockchain business system The verification node of the verification node and the verification node of the second blockchain business system are verified; the verification result sent by the verification node and the storage address of the resource exchange information are sent to the first blockchain business system and the second blockchain business system; Obtain the execution results of the execution resource exchange respectively sent by the first blockchain business system and the second blockchain business system in response to passing the verification; and store the execution results.
在一些实施例中,资源交换包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户、以及将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户。In some embodiments, the resource exchange includes transferring the resources of the first user in the second blockchain to the second user's account in the second blockchain, and transferring the resources of the second user in the first blockchain to The account of the first user on the first blockchain.
在一些实施例中,资源交换的信息包括:第一区块链业务系统发送的第一信息,第一信息包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户的信息;以及,第二区块链业务系统发送的第二信息,第二信息包括将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户的信息。In some embodiments, the resource exchange information includes: first information sent by the first blockchain business system, and the first information includes transferring the resources of the first user in the second blockchain to the second user in the second area Information about the account of the blockchain; and, the second information sent by the second blockchain business system, the second information includes transferring the resources of the second user in the first blockchain to the first user in the first blockchain Account information.
在一些实施例中,第一信息是第一区块链业务系统生成的,包括第二用户的签名、第一有效时间中的至少一种;以及,第二信息是第二区块链业务系统生成的,包括第一用户的签名、第二有效时间中的至少一种,其中,第二有效时间长于第一有效时间。In some embodiments, the first information is generated by the first blockchain business system and includes at least one of the signature of the second user and the first valid time; and the second information is the second blockchain business system The generated data includes at least one of the signature of the first user and the second valid time, where the second valid time is longer than the first valid time.
在一些实施例中,将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点和第二区块链业务系统的验证节点包括:将第一信息的存储地址发送给第二区块链业务系统的验证节点,并且将第二信息的存储地址发送给第一区块链业务系统的验证节点。In some embodiments, sending the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system includes: sending the storage address of the first information to the second The verification node of the blockchain business system, and the storage address of the second information is sent to the verification node of the first blockchain business system.
在一些实施例中,将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点,其中,第一区块链业务系统的验证节点是随机确定的、或者是由第一区块链业务系统所指定的;以及,将资源交换的信息的存储地址发送给第二区块链业务系统的验证节点,其中,第二区块链业务系统的验证节点是随机确定的、或者是由第二区块链业务系统所指定的。In some embodiments, the storage address of the resource exchange information is sent to the verification node of the first blockchain business system, where the verification node of the first blockchain business system is randomly determined or determined by the first region. Designated by the blockchain business system; and, sending the storage address of the resource exchange information to the verification node of the second blockchain business system, where the verification node of the second blockchain business system is randomly determined, or Specified by the second blockchain business system.
在一些实施例中,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息上传到分布式文件系统中进行存储;以及,将执行结果上传到分布式文件系统中进行存储。In some embodiments, upload the resource exchange information sent by the first blockchain business system and the second blockchain business system to the distributed file system for storage; and upload the execution result to the distributed file system Store it.
在一些实施例中,分布式文件系统为星际文件系统IPFS。In some embodiments, the distributed file system is the Interplanetary File System IPFS.
在一些实施例中,资源交换的信息是通过外部数据表示XDR格式进行编码的。In some embodiments, the information exchanged by the resource is encoded in the XDR format expressed by external data.
根据本发明一些实施例的第二个方面,提供一种数据处理装置,包括:存储模块,被配置为响应于第一用户通过第一区块链业务系统发起资源交换的请求、并且第二用 户通过第二区块链业务系统发送同意请求的响应,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息进行存储,以及将执行资源交换的执行结果进行存储;存储地址发送模块,被配置为将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点和第二区块链业务系统的验证节点进行验证;验证结果发送模块,被配置为将验证节点发送的验证结果和资源交换的存储信息的地址发送给第一区块链业务系统和第二区块链业务系统;以及,执行结果获得模块,被配置为获得第一区块链业务系统和第二区块链业务系统响应于验证通过而分别发送的、执行资源交换的执行结果。According to a second aspect of some embodiments of the present invention, a data processing device is provided, including: a storage module configured to respond to a request of a first user to initiate resource exchange through a first blockchain business system, and a second user Send the response of the consent request through the second blockchain business system, store the resource exchange information sent by the first blockchain business system and the second blockchain business system, and store the execution result of the resource exchange; The storage address sending module is configured to send the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification; the verification result sending module is configured to The verification result sent by the verification node and the address of the storage information of the resource exchange are sent to the first blockchain business system and the second blockchain business system; and the execution result obtaining module is configured to obtain the first blockchain service The system and the second blockchain business system respectively send execution results of executing resource exchange in response to the verification being passed.
根据本发明一些实施例的第三个方面,提供一种数据处理装置,包括:存储器;以及耦接至存储器的处理器,处理器被配置为基于存储在存储器中的指令,执行前述任意一种数据处理方法。According to a third aspect of some embodiments of the present invention, there is provided a data processing device, including: a memory; and a processor coupled to the memory, the processor being configured to execute any of the foregoing based on instructions stored in the memory Data processing method.
根据本发明一些实施例的第四个方面,提供一种数据处理系统,包括:前述任意一种数据处理装置;第一区块链业务系统;以及,第二区块链业务系统。According to a fourth aspect of some embodiments of the present invention, a data processing system is provided, including: any one of the foregoing data processing devices; a first blockchain business system; and a second blockchain business system.
在一些实施例中,数据处理系统还包括:第一区块链业务系统的第一验证节点,被配置为根据第二信息的存储地址获取第二信息,并对第二信息进行验证;以及,第二区块链业务系统的第二验证节点,被配置为根据第一信息的存储地址获取第一信息,并对第一信息进行验证。In some embodiments, the data processing system further includes: a first verification node of the first blockchain business system, configured to obtain the second information according to the storage address of the second information, and to verify the second information; and, The second verification node of the second blockchain business system is configured to obtain the first information according to the storage address of the first information, and to verify the first information.
在一些实施例中,第一区块链业务系统进一步被配置为获取验证结果和第二信息的存储地址,并且在验证通过的情况下,根据第二信息生成区块、并将相应区块存储到第一区块链业务系统对应的区块链中;以及,第二区块链业务系统进一步被配置为获取验证结果和第一信息的存储地址,并且在验证通过的情况下,根据第一信息生成区块、并将相应区块存储到第二区块链业务系统对应的区块链中。In some embodiments, the first blockchain business system is further configured to obtain the verification result and the storage address of the second information, and if the verification is passed, generate a block based on the second information and store the corresponding block To the blockchain corresponding to the first blockchain business system; and, the second blockchain business system is further configured to obtain the verification result and the storage address of the first information, and if the verification is passed, according to the first The information generates a block and stores the corresponding block in the block chain corresponding to the second block chain business system.
在一些实施例中,第一区块链业务系统和第二区块链业务系统均为基于联盟链的区块链业务系统。In some embodiments, the first blockchain business system and the second blockchain business system are both blockchain business systems based on the alliance chain.
在一些实施例中,数据处理系统还包括:存储装置,被配置为存储第一区块链业务系统和第二区块链业务系统发送的资源交换的信息以及执行资源交换的执行结果。In some embodiments, the data processing system further includes a storage device configured to store the resource exchange information sent by the first blockchain business system and the second blockchain business system and the execution result of the resource exchange.
根据本公开一些实施例的第五个方面,提供一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现前述任意一种数据处理方法。According to a fifth aspect of some embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, wherein the program is executed by a processor to implement any of the foregoing data processing methods.
上述公开中的一些实施例具有如下优点或有益效果:本公开的实施例可以不借助第三方业务系统或第三方区块链实现跨链资源交换,提高了执行效率和灵活性,并且 适用于多种应用场景。Some of the embodiments in the above disclosure have the following advantages or beneficial effects: The embodiments of the present disclosure can realize cross-chain resource exchange without using a third-party business system or a third-party blockchain, which improves execution efficiency and flexibility, and is suitable for multiple applications. Kind of application scenarios.
通过以下参照附图对本公开的示例性实施例的详细描述,本公开的其它特征及其优点将会变得清楚。Through the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings, other features and advantages of the present disclosure will become clear.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1示出了根据本公开一些实施例的数据处理方法的流程示意图。Fig. 1 shows a schematic flowchart of a data processing method according to some embodiments of the present disclosure.
图2示出了根据本公开一些实施例的验证资源交换的信息的方法的流程示意图。Fig. 2 shows a schematic flowchart of a method for verifying information exchanged by resources according to some embodiments of the present disclosure.
图3示出了根据本公开一些实施例的执行资源交换的方法的流程示意图。Fig. 3 shows a schematic flowchart of a method for performing resource exchange according to some embodiments of the present disclosure.
图4示出了根据本公开一些实施例的数据处理装置的结构示意图。Fig. 4 shows a schematic structural diagram of a data processing device according to some embodiments of the present disclosure.
图5示出了根据本公开一些实施例的数据处理系统的结构示意图。Fig. 5 shows a schematic structural diagram of a data processing system according to some embodiments of the present disclosure.
图6示出了根据本公开另一些实施例的数据处理装置的结构示意图。Fig. 6 shows a schematic structural diagram of a data processing device according to other embodiments of the present disclosure.
图7示出了根据本公开又一些实施例的数据处理装置的结构示意图。Fig. 7 shows a schematic structural diagram of a data processing device according to still other embodiments of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative, and in no way serves as any limitation to the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。Unless specifically stated otherwise, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the drawings are not drawn in accordance with actual proportional relationships.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为授权说明书的一部分。The technologies, methods, and equipment known to those of ordinary skill in the relevant fields may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be regarded as part of the authorization specification.
在这里示出和讨论的所有示例中,任何具体值应被解释为仅仅是示例性的,而不 是作为限制。因此,示例性实施例的其它示例可以具有不同的值。In all examples shown and discussed herein, any specific value should be construed as merely exemplary, and not as a limitation. Therefore, other examples of the exemplary embodiment may have different values.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters indicate similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
图1为根据本公开一些实施例的数据处理方法的流程示意图。在该实施例中,第一区块链业务系统是基于第一区块链运行的业务系统,第二区块链业务系统是基于第二区块链运行的业务系统。业务系统中可以包括用于执行区块链相关操作的区块链节点、以及用于对外进行业务交互的服务器。服务器和区块链节点的功能也可以合设在同一个设备上。第一用户和第二用户中的每一个在第一区块链和第二区块链上都具有账户。如图1所示,该实施例的数据处理方法包括步骤S102~S112。Fig. 1 is a schematic flowchart of a data processing method according to some embodiments of the present disclosure. In this embodiment, the first blockchain business system is a business system based on the first blockchain, and the second blockchain business system is a business system based on the second blockchain. The business system may include blockchain nodes for performing blockchain-related operations, and servers for external business interactions. The functions of the server and the blockchain node can also be co-located on the same device. Each of the first user and the second user has an account on the first blockchain and the second blockchain. As shown in Fig. 1, the data processing method of this embodiment includes steps S102 to S112.
在步骤S102中,第一用户通过第一区块链业务系统发起资源交换的请求,第二用户通过第二区块链业务系统发送同意该请求的响应。In step S102, the first user initiates a request for resource exchange through the first blockchain business system, and the second user sends a response agreeing to the request through the second blockchain business system.
在一些实施例中,第一用户和第二用户欲进行资源交换,包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户、以及将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户。In some embodiments, the first user and the second user want to exchange resources, including transferring the resources of the first user in the second blockchain to the account of the second user in the second blockchain, and transferring the resources of the second user The resources in the first blockchain are transferred to the first user's account in the first blockchain.
在一些实施例中,第一区块链业务系统和第二区块链业务系统均为基于联盟链的区块链业务系统,联盟链例如可以是Stellar联盟链。In some embodiments, the first blockchain business system and the second blockchain business system are both blockchain business systems based on a consortium chain, and the consortium chain may be a Stellar consortium chain, for example.
在一些实施例中,在获取第一区块链业务系统发送的、由第一用户发起进行资源交换的请求之后,将请求的信息通知给第二区块链业务系统,请求的信息例如包括资源交换的标识、交易内容等等;然后,响应于第二用户通过第二区块链业务系统发送同意请求的响应,向第一区块链业务系统和第二区块链业务系统发送该资源交换对应的验证节点等信息,并且还可以发送资源交换的标识。In some embodiments, after obtaining the request for resource exchange initiated by the first user sent by the first blockchain business system, the requested information is notified to the second blockchain business system. The requested information includes, for example, resources Exchange identification, transaction content, etc.; then, in response to the second user sending a response to the consent request through the second blockchain business system, the resource exchange is sent to the first blockchain business system and the second blockchain business system Corresponding verification node and other information, and can also send the identification of resource exchange.
在步骤S104中,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息进行存储。In step S104, the resource exchange information sent by the first blockchain business system and the second blockchain business system is stored.
在一些实施例中,资源交换的信息是通过外部数据表示(External Data Representation,简称:XDR)格式进行编码的。In some embodiments, the resource exchange information is encoded in an external data representation (External Data Representation, XDR for short) format.
在一些实施例中,资源交换的信息包括资源交换的参与方、被交换的资源的名称和数量、签名信息、有效时间等等。In some embodiments, the information of the resource exchange includes the participants of the resource exchange, the name and quantity of the resource being exchanged, signature information, valid time, and so on.
资源交换的信息的存储位置是验证节点能够访问的位置。在一些实施例中,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息上传到分布式文件系统中进行存储,以便第一区块链业务系统和第二区块链业务系统的验证节点能够读 取。分布式文件系统例如可以为星际文件系统(Inter Planetary File System,简称:IPFS)。The storage location of the information exchanged by the resource is the location that the verification node can access. In some embodiments, the resource exchange information sent by the first blockchain business system and the second blockchain business system is uploaded to the distributed file system for storage, so that the first blockchain business system and the second district The verification node of the blockchain business system can read it. The distributed file system may be, for example, the InterPlanetary File System (IPFS).
在步骤S106中,将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点和第二区块链业务系统的验证节点进行验证。In step S106, the storage address of the resource exchange information is sent to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification.
验证节点可以根据获取的存储地址获取资源交换的信息以进行验证。验证的内容例如可以包括第一用户或第二用户的剩余资源是否足以进行本次资源交换、资源交换的信息中的签名是否合法等等。在一些实施例中,验证节点为区块链节点。The verification node can obtain the resource exchange information according to the obtained storage address for verification. The content of the verification may include, for example, whether the remaining resources of the first user or the second user are sufficient for this resource exchange, whether the signature in the information of the resource exchange is legal, and so on. In some embodiments, the verification node is a blockchain node.
在一些实施例中,当第二用户同意该响应后,可以向第一区块链业务系统和第二区块链业务系统中的每一个发送相应的验证节点的信息。In some embodiments, after the second user agrees to the response, the information of the corresponding verification node may be sent to each of the first blockchain business system and the second blockchain business system.
在一些实施例中,验证节点不是固定的,而是针对每次资源交换进行指定。In some embodiments, the verification node is not fixed, but is specified for each resource exchange.
在一些实施例中,随机确定第一区块链业务系统以及第二区块链业务系统的验证节点。In some embodiments, the verification nodes of the first blockchain business system and the second blockchain business system are randomly determined.
在一些实施例中,获取第一区块链业务系统、第二区块链业务系统中的至少一个所指定的区块链节点作为验证节点;在第一区块链业务系统未指定验证节点的情况下,随机确定第一区块链业务系统的验证节点;在第二区块链业务系统未指定验证节点的情况下,随机确定第二区块链业务系统的验证节点。即,在用户未进行指定验证节点的情况下,随机确定区块链业务系统中的区块链节点作为验证节点。In some embodiments, a block chain node designated by at least one of the first block chain business system and the second block chain business system is obtained as a verification node; the verification node is not specified in the first block chain business system In this case, the verification node of the first blockchain business system is randomly determined; in the case that the second blockchain business system does not specify a verification node, the verification node of the second blockchain business system is randomly determined. That is, in the case where the user does not specify the verification node, the blockchain node in the blockchain business system is randomly determined as the verification node.
通过随机验证的方式,可以进一步提高校验的可信度,提升了跨链资源交换的安全性。Through random verification, the credibility of verification can be further improved, and the security of cross-chain resource exchange can be improved.
在一些实施例中,将验证程序的存储地址也发送给验证节点,以便验证节点通过执行验证程序进行验证。In some embodiments, the storage address of the verification program is also sent to the verification node, so that the verification node performs verification by executing the verification program.
在步骤S108中,将验证节点发送的验证结果和资源交换的信息的存储地址发送给第一区块链业务系统和第二区块链业务系统。In step S108, the storage address of the verification result and resource exchange information sent by the verification node is sent to the first blockchain business system and the second blockchain business system.
在步骤S110中,获得第一区块链业务系统和第二区块链业务系统响应于验证通过而分别发送的、执行资源交换的执行结果。In step S110, the execution results of executing resource exchange respectively sent by the first blockchain business system and the second blockchain business system in response to the verification passed are obtained.
例如,第一区块链业务系统和第二区块链业务系统可以分别在生成相应的区块并记录到自身系统中。For example, the first blockchain business system and the second blockchain business system can respectively generate corresponding blocks and record them in their own systems.
在步骤S112中,将执行结果进行存储。In step S112, the execution result is stored.
通过上述实施例的方法,可以在执行两个区块链业务系统之间的跨链资源交换时,由每个区块链业务系统中的验证节点进行验证,并将资源交换的信息和执行结果进行 集中存储以供追溯和查询。从而,可以不借助第三方业务系统或第三方区块链实现跨链资源交换,提高了执行效率和灵活性,并且适用于多种应用场景。Through the method of the above embodiment, when the cross-chain resource exchange between the two blockchain business systems is performed, the verification node in each blockchain business system can verify, and the information and execution results of the resource exchange can be verified Centralized storage for traceability and inquiries. Therefore, cross-chain resource exchange can be realized without the aid of a third-party business system or a third-party blockchain, which improves execution efficiency and flexibility, and is suitable for a variety of application scenarios.
在一些实施例中,资源交换的信息包括第一用户通过第一区块链业务系统发送的资源交换的第一信息和第二用户通过第二区块链业务系统发送的资源交换的第二信息。第一信息包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户的信息,第二信息包括将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户的信息。验证节点可以将验证节点所在的区块链业务系统中涉及的、资源交换中的部分操作进行验证。下面参考图2描述本公开验证资源交换的信息的方法的实施例。In some embodiments, the information of resource exchange includes the first information of resource exchange sent by the first user through the first blockchain business system and the second information of resource exchange sent by the second user through the second blockchain business system. . The first information includes the transfer of the resources of the first user in the second blockchain to the second user's account in the second blockchain, and the second information includes the transfer of the resources of the second user in the first blockchain to The account information of the first user in the first blockchain. The verification node can verify part of the operations involved in the resource exchange in the blockchain business system where the verification node is located. The following describes an embodiment of the method for verifying information exchanged by resources of the present disclosure with reference to FIG. 2.
图2为根据本公开一些实施例的验证资源交换的信息的方法的流程示意图。如图2所示,该实施例的方法包括步骤S202~S220。这些步骤可以是在第一用户和第二用户均同意进行跨链资源转移后执行的。为了便于在图中描述,步骤S204、S206、S210、S212、S214、S218的执行主体在图2中以“数据处理装置”为例示出。根据需要,执行主体也可以为其他装置,例如消息服务装置、流程控制装置等等,这里不再赘述。Fig. 2 is a schematic flowchart of a method for verifying information exchanged by resources according to some embodiments of the present disclosure. As shown in Figure 2, the method of this embodiment includes steps S202 to S220. These steps may be executed after the first user and the second user both agree to perform cross-chain resource transfer. In order to facilitate the description in the figure, the execution subjects of steps S204, S206, S210, S212, S214, and S218 are shown in FIG. 2 by taking the "data processing device" as an example. According to needs, the execution subject may also be other devices, such as a message service device, a process control device, etc., which will not be repeated here.
在步骤S202中,第一区块链业务系统生成资源交换的第一信息。In step S202, the first blockchain business system generates first information for resource exchange.
在一些实施例中,第一区块链业务系统向第一信息中添加第二用户的签名、第一有效时间中的至少一种。In some embodiments, the first blockchain service system adds at least one of the signature of the second user and the first valid time to the first information.
在步骤S204中,获取第一区块链业务系统发送的资源交换的第一信息。In step S204, the first information of resource exchange sent by the first blockchain service system is acquired.
在步骤S206中,将第一信息进行存储。In step S206, the first information is stored.
在步骤S208中,第二区块链业务系统生成资源交换的第二信息。In step S208, the second blockchain business system generates second information for resource exchange.
在一些实施例中,第二区块链业务系统向第二信息添加第一用户的签名、第二有效时间中的至少一种,其中,第二有效时间长于第一有效时间。In some embodiments, the second blockchain service system adds at least one of the signature of the first user and the second valid time to the second information, wherein the second valid time is longer than the first valid time.
在步骤S210中,获取第二区块链业务系统发送的资源交换的第二信息。In step S210, the second information of resource exchange sent by the second blockchain service system is acquired.
在步骤S212中,将第二信息进行存储。In step S212, the second information is stored.
在步骤S214中,将第一信息的存储地址发送给第二区块链业务系统的验证节点,该节点简称为第二验证节点。In step S214, the storage address of the first information is sent to the verification node of the second blockchain business system, which is referred to as the second verification node for short.
在步骤S216中,第二验证节点根据第一信息的存储地址获取第一信息,并对第一信息进行验证。例如,验证第一信息中的签名是否合法、第一信息是否超时、第二区块链业务系统中的第一用户的账户的剩余资源是否支持本次资源交换等等。In step S216, the second verification node obtains the first information according to the storage address of the first information, and verifies the first information. For example, verifying whether the signature in the first message is legal, whether the first message has timed out, whether the remaining resources of the first user's account in the second blockchain business system support this resource exchange, and so on.
在步骤S218中,将第二信息的存储地址发送给第一区块链业务系统的验证节点, 该节点简称为第一验证节点。In step S218, the storage address of the second information is sent to the verification node of the first blockchain business system, which is referred to as the first verification node for short.
在步骤S220中,第一验证节点根据第二信息的存储地址获取第二信息,并对第二信息进行验证。例如,验证第二信息中的签名是否合法、第二信息是否超时、第一区块链业务系统中的第二用户的账户的剩余资源是否支持本次资源交换等等。In step S220, the first verification node obtains the second information according to the storage address of the second information, and verifies the second information. For example, verifying whether the signature in the second information is legal, whether the second information has timed out, whether the remaining resources of the second user's account in the first blockchain business system support this resource exchange, and so on.
第一区块链业务系统和第二区块链业务系统可以借助中间的数据处理装置等装置来实现消息传递和流程控制。The first blockchain business system and the second blockchain business system can use intermediate data processing devices and other devices to implement message transmission and process control.
通过上述实施例的方法,可以令验证节点对其所属的区块链业务系统所涉及的资源交换的信息进行验证,从而可以提高验证效率和安全性。Through the method of the foregoing embodiment, the verification node can verify the information of the resource exchange involved in the blockchain business system to which it belongs, so that the verification efficiency and security can be improved.
下面参考图3描述本公开区块链业务系统执行资源交换的方法的实施例。The following describes an embodiment of a method for performing resource exchange in the blockchain business system of the present disclosure with reference to FIG. 3.
图3为根据本公开一些实施例的执行资源交换的方法的流程示意图。如图3所示,该实施例的方法包括步骤S302~S316。为了便于在图中描述,步骤S302、S306、S308、S310、S314、S316的执行主体在图3中以“数据处理装置”为例示出。根据需要,执行主体也可以为其他装置,例如消息服务装置、流程控制装置等等,这里不再赘述。Fig. 3 is a schematic flowchart of a method for performing resource exchange according to some embodiments of the present disclosure. As shown in Fig. 3, the method of this embodiment includes steps S302 to S316. In order to facilitate the description in the figure, the execution subjects of steps S302, S306, S308, S310, S314, and S316 are shown in FIG. 3 by taking the "data processing device" as an example. According to needs, the execution subject may also be other devices, such as a message service device, a process control device, etc., which will not be repeated here.
在步骤S302中,将验证结果和资源交换的第二信息的地址发送给第一区块链业务系统。In step S302, the verification result and the address of the second information exchanged with the resource are sent to the first blockchain service system.
在步骤S304中,在验证通过的情况下,第一区块链业务系统根据第二信息生成区块、并将相应区块存储到第一区块链业务系统对应的区块链中,以执行资源交换。In step S304, if the verification is passed, the first blockchain business system generates a block according to the second information, and stores the corresponding block in the blockchain corresponding to the first blockchain business system to execute Resource exchange.
第一区块链业务系统生成的区块中例如可以包括将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户对应的描述,以及资源交换的标识、时间、第一用户和第二用户的信息等等。第一区块链业务系统例如可以通过对应的区块链节点生成区块,并将区块发布到第一区块链业务系统中,以便由第一区块链业务系统对应的区块链中的其他区块链节点对该区块进行验证,并对该区块进行入链处理。The block generated by the first blockchain business system may include, for example, a description corresponding to the transfer of the resources of the second user in the first blockchain to the account of the first user in the first blockchain, and the identification of resource exchange, Time, information of the first user and the second user, etc. For example, the first blockchain business system can generate blocks through the corresponding blockchain nodes, and publish the blocks to the first blockchain business system, so that the first blockchain business system corresponds to the blockchain The other blockchain nodes verify the block and process the block into the chain.
在步骤S306中,获取第一区块链业务系统的执行结果。In step S306, the execution result of the first blockchain business system is obtained.
在步骤S308中,将第一区块链业务系统的执行结果进行存储。例如,可以将执行结果也存储在IPFS等分布式文件系统中。In step S308, the execution result of the first blockchain business system is stored. For example, the execution result can also be stored in a distributed file system such as IPFS.
在步骤S310中,将验证结果和资源交换的第一信息的地址发送给第二区块链业务系统。In step S310, the verification result and the address of the first information exchanged with the resource are sent to the second blockchain service system.
在步骤S312中,在验证通过的情况下,第二区块链业务系统根据第一信息生成区块、并将相应区块存储到第二区块链业务系统对应的区块链中,以执行资源交换。In step S312, if the verification is passed, the second blockchain business system generates a block according to the first information, and stores the corresponding block in the blockchain corresponding to the second blockchain business system to execute Resource exchange.
第二区块链业务系统生成的区块中例如可以包括将第一用户在第二区块链的资 源转移给第二用户在第二区块链的账户对应的描述,以及资源交换的标识、时间、第一用户和第二用户的信息等等。区块的处理方式可以参考步骤S304中的描述,这里不再赘述。The block generated by the second blockchain business system may include, for example, a description corresponding to the transfer of the resources of the first user in the second blockchain to the account of the second user in the second blockchain, as well as the identification of resource exchange, Time, information of the first user and the second user, etc. The block processing method can refer to the description in step S304, which will not be repeated here.
在步骤S314中,获取第二区块链业务系统的执行结果。例如,可以将执行结果也存储在IPFS等分布式文件系统中。In step S314, the execution result of the second blockchain business system is obtained. For example, the execution result can also be stored in a distributed file system such as IPFS.
在步骤S316中,将第二区块链业务系统的执行结果进行存储。In step S316, the execution result of the second blockchain business system is stored.
根据需要,还可以将执行结果的存储信息反馈给第一区块链业务系统和第二区块链业务系统。According to needs, the storage information of the execution result can also be fed back to the first blockchain business system and the second blockchain business system.
通过上述实施例的方法,可以在各个区块链业务系统内记录资源交换过程中每个区块链业务系统所涉及的信息,从而进一步使得资源交换的过程可追溯、防止篡改,提高了资源交换的安全性。Through the method of the above embodiment, the information involved in each blockchain business system in the resource exchange process can be recorded in each blockchain business system, thereby further making the process of resource exchange traceable, preventing tampering, and improving resource exchange Security.
下面参考图4描述本公开数据处理装置的实施例。The following describes an embodiment of the data processing device of the present disclosure with reference to FIG. 4.
图4为根据本公开一些实施例的数据处理装置的结构示意图。如图4所示,该实施例的数据处理装置400包括:存储模块4100,被配置为响应于第一用户通过第一区块链业务系统发起资源交换的请求、并且第二用户通过第二区块链业务系统发送同意请求的响应,将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息进行存储,以及将执行资源交换的执行结果进行存储;存储地址发送模块4200,被配置为将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点和第二区块链业务系统的验证节点进行验证;验证结果发送模块4300,被配置为将验证节点发送的验证结果和资源交换的存储信息的地址发送给第一区块链业务系统和第二区块链业务系统;以及,执行结果获得模块4400,被配置为获得第一区块链业务系统和第二区块链业务系统响应于验证通过而分别发送的、执行资源交换的执行结果。Fig. 4 is a schematic structural diagram of a data processing device according to some embodiments of the present disclosure. As shown in FIG. 4, the data processing device 400 of this embodiment includes: a storage module 4100 configured to respond to a request of a first user to initiate resource exchange through the first blockchain business system, and a second user to pass through the second area The block chain business system sends a response to the consent request, stores the resource exchange information sent by the first block chain business system and the second block chain business system, and stores the execution result of the resource exchange; the storage address sending module 4200, configured to send the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification; the verification result sending module 4300 is configured to verify The verification result sent by the node and the address of the storage information of the resource exchange are sent to the first blockchain business system and the second blockchain business system; and the execution result obtaining module 4400 is configured to obtain the first blockchain business system And the second blockchain business system respectively send the execution result of the resource exchange in response to the verification.
在一些实施例中,资源交换包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户、以及将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户。In some embodiments, the resource exchange includes transferring the resources of the first user in the second blockchain to the second user's account in the second blockchain, and transferring the resources of the second user in the first blockchain to The account of the first user on the first blockchain.
在一些实施例中,资源交换的信息包括:第一区块链业务系统发送的第一信息,第一信息包括将第一用户在第二区块链的资源转移给第二用户在第二区块链的账户的信息;以及,第二区块链业务系统发送的第二信息,第二信息包括将第二用户在第一区块链的资源转移给第一用户在第一区块链的账户的信息In some embodiments, the resource exchange information includes: first information sent by the first blockchain business system, and the first information includes transferring the resources of the first user in the second blockchain to the second user in the second area Information about the account of the blockchain; and, the second information sent by the second blockchain business system, the second information includes transferring the resources of the second user in the first blockchain to the first user in the first blockchain Account information
在一些实施例中,第一信息是第一区块链业务系统生成的,包括第二用户的签名、 第一有效时间中的至少一种;以及,第二信息是第二区块链业务系统生成的,包括第一用户的签名、第二有效时间中的至少一种,其中,第二有效时间长于第一有效时间。In some embodiments, the first information is generated by the first blockchain business system and includes at least one of the signature of the second user and the first valid time; and the second information is the second blockchain business system The generated data includes at least one of the signature of the first user and the second valid time, where the second valid time is longer than the first valid time.
在一些实施例中,存储地址发送模块4200进一步被配置为将第一信息的存储地址发送给第二区块链业务系统的验证节点,并且将第二信息的存储地址发送给第一区块链业务系统的验证节点。In some embodiments, the storage address sending module 4200 is further configured to send the storage address of the first information to the verification node of the second blockchain business system, and send the storage address of the second information to the first blockchain The verification node of the business system.
在一些实施例中,存储地址发送模块4200进一步被配置为:将资源交换的信息的存储地址发送给第一区块链业务系统的验证节点,其中,第一区块链业务系统的验证节点是随机确定的、或者是由第一区块链业务系统所指定的;以及,将资源交换的信息的存储地址发送给第二区块链业务系统的验证节点,其中,第二区块链业务系统的验证节点是随机确定的、或者是由第二区块链业务系统所指定的。In some embodiments, the storage address sending module 4200 is further configured to send the storage address of the resource exchanged information to the verification node of the first blockchain business system, where the verification node of the first blockchain business system is Randomly determined or specified by the first blockchain business system; and sending the storage address of the resource exchange information to the verification node of the second blockchain business system, where the second blockchain business system The verification node is randomly determined or designated by the second blockchain business system.
在一些实施例中,存储模块4200进一步被配置为将第一区块链业务系统和第二区块链业务系统发送的资源交换的信息上传到分布式文件系统中进行存储;将执行结果上传到分布式文件系统中进行存储。In some embodiments, the storage module 4200 is further configured to upload the resource exchange information sent by the first blockchain business system and the second blockchain business system to the distributed file system for storage; upload the execution result to Stored in a distributed file system.
在一些实施例中,分布式文件系统为星际文件系统IPFS。In some embodiments, the distributed file system is the Interplanetary File System IPFS.
在一些实施例中,资源交换的信息是通过外部数据表示XDR格式进行编码的。In some embodiments, the information exchanged by the resource is encoded in the XDR format expressed by external data.
下面参考图5描述本公开数据处理系统的实施例。The following describes an embodiment of the data processing system of the present disclosure with reference to FIG. 5.
图5为根据本公开一些实施例的数据处理系统的结构示意图。如图5所示,该实施例的数据处理系统50包括:数据处理装置510;第一区块链业务系统520;以及第二区块链业务系统530。Fig. 5 is a schematic structural diagram of a data processing system according to some embodiments of the present disclosure. As shown in FIG. 5, the data processing system 50 of this embodiment includes: a data processing device 510; a first blockchain business system 520; and a second blockchain business system 530.
在一些实施例中,第一区块链业务系统520进一步被配置为获取验证结果和第二信息的存储地址,并且在验证通过的情况下,根据第二信息生成区块、并将相应区块存储到第一区块链业务系统520对应的区块链中;以及,第二区块链业务系统530进一步被配置为获取验证结果和第一信息的存储地址,并且在验证通过的情况下,根据第一信息生成区块、并将相应区块存储到第二区块链业务系统530对应的区块链中。In some embodiments, the first blockchain business system 520 is further configured to obtain the verification result and the storage address of the second information, and in the case of passing the verification, generate a block according to the second information and transfer the corresponding block Stored in the blockchain corresponding to the first blockchain business system 520; and, the second blockchain business system 530 is further configured to obtain the verification result and the storage address of the first information, and if the verification is passed, A block is generated according to the first information, and the corresponding block is stored in the block chain corresponding to the second block chain business system 530.
在一些实施例中,第一区块链业务系统520进一步被配置为生成资源交换的第一信息,并向第一信息添加第二用户的签名、第一有效时间中的至少一种;第二区块链业务系统530进一步被配置为生成资源交换的第二信息,并向第二信息添加第一用户的签名、第二有效时间中的至少一种,其中,第二有效时间长于第一有效时间。In some embodiments, the first blockchain service system 520 is further configured to generate first information for resource exchange, and add at least one of the signature of the second user and the first valid time to the first information; second The blockchain business system 530 is further configured to generate second information for resource exchange, and add at least one of the first user’s signature and a second valid time to the second information, wherein the second valid time is longer than the first valid time. time.
在一些实施例中,数据处理系统50还包括:第一区块链业务系统520的第一验证节点540,被配置为根据第二信息的存储地址获取第二信息,并对第二信息进行验 证;以及,第二区块链业务系统530的第二验证节点550,被配置为根据第一信息的存储地址获取第一信息,并对第一信息进行验证。In some embodiments, the data processing system 50 further includes: a first verification node 540 of the first blockchain business system 520, configured to obtain the second information according to the storage address of the second information, and to verify the second information And, the second verification node 550 of the second blockchain business system 530 is configured to obtain the first information according to the storage address of the first information, and to verify the first information.
在一些实施例中,第一区块链业务系统和第二区块链业务系统均为基于联盟链的区块链业务系统。In some embodiments, the first blockchain business system and the second blockchain business system are both blockchain business systems based on the alliance chain.
在一些实施例中,数据处理系统50还包括:存储装置560,被配置为存储第一区块链业务系统520和第二区块链业务系统530发送的资源交换的信息以及执行资源交换的执行结果。In some embodiments, the data processing system 50 further includes: a storage device 560 configured to store the resource exchange information sent by the first blockchain business system 520 and the second blockchain business system 530 and perform the execution of the resource exchange result.
图6为根据本公开另一些实施例的数据处理装置的结构示意图。如图6所示,该实施例的数据处理装置60包括:存储器610以及耦接至该存储器610的处理器620,处理器620被配置为基于存储在存储器610中的指令,执行前述任意一个实施例中的数据处理方法。Fig. 6 is a schematic structural diagram of a data processing device according to other embodiments of the present disclosure. As shown in FIG. 6, the data processing device 60 of this embodiment includes a memory 610 and a processor 620 coupled to the memory 610. The processor 620 is configured to execute any one of the foregoing implementations based on instructions stored in the memory 610. The data processing method in the example.
其中,存储器610例如可以包括系统存储器、固定非易失性存储介质等。系统存储器例如存储有操作系统、应用程序、引导装载程序(Boot Loader)以及其他程序等。Among them, the memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, and the like. The system memory stores, for example, an operating system, an application program, a boot loader (Boot Loader), and other programs.
图7为根据本公开又一些实施例的数据处理装置的结构示意图。如图7所示,该实施例的数据处理装置70包括:存储器710以及处理器720,还可以包括输入输出接口730、网络接口740、存储接口750等。这些接口730,740,750以及存储器710和处理器720之间例如可以通过总线760连接。其中,输入输出接口730为显示器、鼠标、键盘、触摸屏等输入输出设备提供连接接口。网络接口740为各种联网设备提供连接接口。存储接口750为SD卡、U盘等外置存储设备提供连接接口。Fig. 7 is a schematic structural diagram of a data processing device according to still other embodiments of the present disclosure. As shown in FIG. 7, the data processing apparatus 70 of this embodiment includes a memory 710 and a processor 720, and may also include an input/output interface 730, a network interface 740, a storage interface 750, and the like. These interfaces 730, 740, 750, and the memory 710 and the processor 720 may be connected via a bus 760, for example. Among them, the input and output interface 730 provides a connection interface for input and output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networked devices. The storage interface 750 provides a connection interface for external storage devices such as SD cards and U disks.
本公开的实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现前述任意一种数据处理方法。The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, any one of the aforementioned data processing methods is implemented.
本领域内的技术人员应当明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用非瞬时性存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. .
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解为可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数 据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one or more processes in the flowchart and/or one or more blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection of the present disclosure. Within range.

Claims (17)

  1. 一种数据处理方法,包括:A data processing method, including:
    响应于第一用户通过第一区块链业务系统发起资源交换的请求、并且第二用户通过第二区块链业务系统发送同意所述请求的响应,将所述第一区块链业务系统和所述第二区块链业务系统发送的资源交换的信息进行存储;In response to the first user's request for resource exchange through the first blockchain business system, and the second user sends a response agreeing to the request through the second blockchain business system, the first blockchain business system and Storing the resource exchange information sent by the second blockchain business system;
    将所述资源交换的信息的存储地址发送给所述第一区块链业务系统的验证节点和所述第二区块链业务系统的验证节点进行验证;Sending the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification;
    将所述验证节点发送的验证结果和所述资源交换的信息的存储地址发送给所述第一区块链业务系统和所述第二区块链业务系统;Sending the verification result sent by the verification node and the storage address of the resource exchange information to the first blockchain business system and the second blockchain business system;
    获得所述第一区块链业务系统和所述第二区块链业务系统响应于验证通过而分别发送的、执行所述资源交换的执行结果;以及Obtain the execution results of the resource exchange respectively sent by the first blockchain business system and the second blockchain business system in response to passing the verification; and
    将执行结果进行存储。Store the execution result.
  2. 根据权利要求1所述的数据处理方法,其中,所述资源交换包括将所述第一用户在所述第二区块链的资源转移给所述第二用户在所述第二区块链的账户、以及将所述第二用户在所述第一区块链的资源转移给所述第一用户在所述第一区块链的账户。The data processing method according to claim 1, wherein the resource exchange includes transferring the resources of the first user in the second blockchain to the second user in the second blockchain. Account, and transferring the resources of the second user in the first blockchain to the account of the first user in the first blockchain.
  3. 根据权利要求2所述的数据处理方法,其中,所述资源交换的信息包括:The data processing method according to claim 2, wherein the information exchanged by the resource comprises:
    所述第一区块链业务系统发送的第一信息,所述第一信息包括将所述第一用户在所述第二区块链的资源转移给所述第二用户在所述第二区块链的账户的信息;以及The first information sent by the first blockchain business system, where the first information includes transferring the resources of the first user in the second blockchain to the second user in the second area Information about the blockchain account; and
    所述第二区块链业务系统发送的第二信息,所述第二信息包括将所述第二用户在所述第一区块链的资源转移给所述第一用户在所述第一区块链的账户的信息。The second information sent by the second blockchain business system, where the second information includes transferring the resources of the second user in the first blockchain to the first user in the first area Information about the account of the blockchain.
  4. 根据权利要求3所述的数据处理方法,其中:The data processing method according to claim 3, wherein:
    所述第一信息是所述第一区块链业务系统生成的,包括所述第二用户的签名、第一有效时间中的至少一种;以及The first information is generated by the first blockchain business system and includes at least one of the signature of the second user and the first valid time; and
    所述第二信息是所述第二区块链业务系统生成的,包括所述第一用户的签名、第二有效时间中的至少一种,其中,第二有效时间长于第一有效时间。The second information is generated by the second blockchain service system and includes at least one of the signature of the first user and a second valid time, wherein the second valid time is longer than the first valid time.
  5. 根据权利要求3所述的数据处理方法,其中,所述将所述资源交换的信息的存储地址发送给所述第一区块链业务系统的验证节点和所述第二区块链业务系统的验证节点包括:The data processing method according to claim 3, wherein the storage address of the information exchanged by the resource is sent to the verification node of the first blockchain business system and the verification node of the second blockchain business system Verification nodes include:
    将所述第一信息的存储地址发送给所述第二区块链业务系统的验证节点,并且将所述第二信息的存储地址发送给所述第一区块链业务系统的验证节点。The storage address of the first information is sent to the verification node of the second blockchain business system, and the storage address of the second information is sent to the verification node of the first blockchain business system.
  6. 根据权利要求1所述的数据处理方法,其中:The data processing method according to claim 1, wherein:
    将所述资源交换的信息的存储地址发送给所述第一区块链业务系统的验证节点,其中,所述第一区块链业务系统的验证节点是随机确定的、或者是由所述第一区块链业务系统所指定的;以及The storage address of the resource exchange information is sent to the verification node of the first blockchain business system, where the verification node of the first blockchain business system is randomly determined or is determined by the first blockchain business system. Specified by a blockchain business system; and
    将所述资源交换的信息的存储地址发送给所述第二区块链业务系统的验证节点,其中,所述第二区块链业务系统的验证节点是随机确定的、或者是由所述第二区块链业务系统所指定的。The storage address of the information exchanged by the resource is sent to the verification node of the second blockchain business system, where the verification node of the second blockchain business system is randomly determined or is determined by the second blockchain business system. 2. As specified by the blockchain business system.
  7. 根据权利要求1所述的数据处理方法,其中:The data processing method according to claim 1, wherein:
    将所述第一区块链业务系统和所述第二区块链业务系统发送的资源交换的信息上传到分布式文件系统中进行存储;以及Uploading the resource exchange information sent by the first blockchain business system and the second blockchain business system to a distributed file system for storage; and
    将所述执行结果上传到分布式文件系统中进行存储。Upload the execution result to the distributed file system for storage.
  8. 根据权利要求7所述的数据处理方法,其中,所述分布式文件系统为星际文件系统IPFS。8. The data processing method according to claim 7, wherein the distributed file system is the Interplanetary File System (IPFS).
  9. 根据权利要求1所述的数据处理方法,其中,所述资源交换的信息是通过外部数据表示XDR格式进行编码的。The data processing method according to claim 1, wherein the information exchanged by the resource is encoded in an XDR format expressed by external data.
  10. 一种数据处理装置,包括:A data processing device includes:
    存储模块,被配置为响应于第一用户通过第一区块链业务系统发起资源交换的请求、并且第二用户通过第二区块链业务系统发送同意所述请求的响应,将所述第一区块链业务系统和所述第二区块链业务系统发送的资源交换的信息进行存储,以及将执行所述资源交换的执行结果进行存储;The storage module is configured to respond to the first user’s request to initiate resource exchange through the first blockchain business system, and the second user sends a response agreeing to the request through the second blockchain business system, to transfer the first Storing the resource exchange information sent by the blockchain business system and the second blockchain business system, and storing the execution result of executing the resource exchange;
    存储地址发送模块,被配置为将所述资源交换的信息的存储地址发送给所述第一区块链业务系统的验证节点和所述第二区块链业务系统的验证节点进行验证;The storage address sending module is configured to send the storage address of the resource exchange information to the verification node of the first blockchain business system and the verification node of the second blockchain business system for verification;
    验证结果发送模块,被配置为将所述验证节点发送的验证结果和所述资源交换的存储信息的地址发送给所述第一区块链业务系统和所述第二区块链业务系统;以及A verification result sending module configured to send the verification result sent by the verification node and the address of the storage information of the resource exchange to the first blockchain business system and the second blockchain business system; and
    执行结果获得模块,被配置为获得所述第一区块链业务系统和所述第二区块链业务系统响应于验证通过而分别发送的、执行资源交换的执行结果。The execution result obtaining module is configured to obtain the execution result of executing resource exchange respectively sent by the first blockchain business system and the second blockchain business system in response to the verification.
  11. 一种数据处理装置,包括:A data processing device includes:
    存储器;以及Memory; and
    耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行如权利要求1~9中任一项所述的数据处理方法。A processor coupled to the memory, and the processor is configured to execute the data processing method according to any one of claims 1-9 based on instructions stored in the memory.
  12. 一种数据处理系统,包括:A data processing system includes:
    权利要求10或11所述的数据处理装置;The data processing device according to claim 10 or 11;
    第一区块链业务系统;以及The first blockchain business system; and
    第二区块链业务系统。The second blockchain business system.
  13. 根据权利要求12所述的数据处理系统,还包括:The data processing system according to claim 12, further comprising:
    所述第一区块链业务系统的第一验证节点,被配置为根据所述第二信息的存储地址获取所述第二信息,并对所述第二信息进行验证;以及The first verification node of the first blockchain business system is configured to obtain the second information according to the storage address of the second information, and to verify the second information; and
    所述第二区块链业务系统的第二验证节点,被配置为根据所述第一信息的存储地址获取所述第一信息,并对所述第一信息进行验证。The second verification node of the second blockchain business system is configured to obtain the first information according to the storage address of the first information, and to verify the first information.
  14. 根据权利要求13所述的数据处理系统,其中:The data processing system according to claim 13, wherein:
    所述第一区块链业务系统进一步被配置为获取验证结果和所述第二信息的存储地址,并且在验证通过的情况下,根据所述第二信息生成区块、并将相应区块存储到所述第一区块链业务系统对应的区块链中;以及The first blockchain business system is further configured to obtain the verification result and the storage address of the second information, and if the verification is passed, generate a block according to the second information and store the corresponding block To the blockchain corresponding to the first blockchain business system; and
    所述第二区块链业务系统进一步被配置为获取验证结果和所述第一信息的存储地址,并且在验证通过的情况下,根据所述第一信息生成区块、并将相应区块存储到所述第二区块链业务系统对应的区块链中。The second blockchain business system is further configured to obtain the verification result and the storage address of the first information, and if the verification is passed, generate a block according to the first information and store the corresponding block To the block chain corresponding to the second block chain business system.
  15. 根据权利要求12所述的数据处理系统,其中,所述第一区块链业务系统和所述第二区块链业务系统均为基于联盟链的区块链业务系统。The data processing system according to claim 12, wherein the first blockchain business system and the second blockchain business system are both blockchain business systems based on the alliance chain.
  16. 根据权利要求12所述的数据处理系统,还包括:The data processing system according to claim 12, further comprising:
    存储装置,被配置为存储第一区块链业务系统和第二区块链业务系统发送的资源交换的信息以及执行资源交换的执行结果。The storage device is configured to store the resource exchange information sent by the first blockchain business system and the second blockchain business system and the execution result of the resource exchange.
  17. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1~9中任一项所述的数据处理方法。A computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the data processing method according to any one of claims 1-9 is realized.
PCT/CN2020/080153 2019-10-30 2020-03-19 Data processing method, apparatus, system, and storage medium WO2021082340A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911040777.XA CN110740044B (en) 2019-10-30 2019-10-30 Data processing method, device, system and storage medium
CN201911040777.X 2019-10-30

Publications (1)

Publication Number Publication Date
WO2021082340A1 true WO2021082340A1 (en) 2021-05-06

Family

ID=69271885

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/080153 WO2021082340A1 (en) 2019-10-30 2020-03-19 Data processing method, apparatus, system, and storage medium

Country Status (2)

Country Link
CN (1) CN110740044B (en)
WO (1) WO2021082340A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626314A (en) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 Method, device and equipment for verifying cloud platform resource parameters and readable medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740044B (en) * 2019-10-30 2021-10-12 北京海益同展信息科技有限公司 Data processing method, device, system and storage medium
CN111342972B (en) * 2020-02-24 2023-09-15 百度在线网络技术(北京)有限公司 Transaction realization method, device, equipment and medium of block chain
CN113763178A (en) * 2021-09-24 2021-12-07 成都质数斯达克科技有限公司 Multi-block chain cross-chain transaction method, device, equipment and readable storage medium
CN117010890A (en) * 2022-04-28 2023-11-07 腾讯科技(深圳)有限公司 Block chain-based transaction processing method, related device, medium and program product
CN116112293B (en) * 2023-04-12 2023-06-23 中国信息通信研究院 Block chain-based data trusted transaction method and device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108415784A (en) * 2018-02-27 2018-08-17 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
US20180300382A1 (en) * 2017-04-12 2018-10-18 Vijay K. Madisetti Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN110060156A (en) * 2019-02-03 2019-07-26 阿里巴巴集团控股有限公司 Virtual resource transfer method and device based on block chain
CN110740044A (en) * 2019-10-30 2020-01-31 北京海益同展信息科技有限公司 Data processing method, device, system and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618101A (en) * 2013-12-27 2015-05-13 腾讯科技(深圳)有限公司 Data processing method, intermediate server and data processing system
US11941588B2 (en) * 2015-11-06 2024-03-26 Cable Television Laboratories, Inc. Systems and methods for blockchain virtualization and scalability
WO2018039312A1 (en) * 2016-08-23 2018-03-01 BBM Health LLC Blockchain-based mechanisms for secure health information resource exchange
CN107742210A (en) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 Across the chain fund transfer system and method for a kind of different blocks interchain
CN108269190A (en) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 Across chain method and its system based on across chain relaying platform
CN108389047B (en) * 2018-02-12 2021-07-09 南京思利华信息科技有限公司 Method for trading between parent chain and child chain in block chain and block chain network
CN109087080B (en) * 2018-07-13 2020-11-06 杭州复杂美科技有限公司 Cross-chain transaction method, device and storage medium
CN109242456A (en) * 2018-09-04 2019-01-18 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, system and storage medium
CN110035046B (en) * 2018-11-16 2020-02-21 阿里巴巴集团控股有限公司 Cross-block chain interaction system
CN109450910B (en) * 2018-11-26 2021-03-30 远光软件股份有限公司 Data sharing method based on block chain, data sharing network and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180300382A1 (en) * 2017-04-12 2018-10-18 Vijay K. Madisetti Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108415784A (en) * 2018-02-27 2018-08-17 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN110060156A (en) * 2019-02-03 2019-07-26 阿里巴巴集团控股有限公司 Virtual resource transfer method and device based on block chain
CN110740044A (en) * 2019-10-30 2020-01-31 北京海益同展信息科技有限公司 Data processing method, device, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626314A (en) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 Method, device and equipment for verifying cloud platform resource parameters and readable medium
CN113626314B (en) * 2021-07-16 2023-12-22 济南浪潮数据技术有限公司 Verification method, device and equipment for cloud platform resource parameters and readable medium

Also Published As

Publication number Publication date
CN110740044B (en) 2021-10-12
CN110740044A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
WO2021082340A1 (en) Data processing method, apparatus, system, and storage medium
US11921682B2 (en) Extracting data from a blockchain network
US11050690B2 (en) Method for providing recording and verification service for data received and transmitted by messenger service, and server using method
US11501533B2 (en) Media authentication using distributed ledger
WO2020063820A1 (en) Asset transaction method, storage medium and computer device
US11194961B2 (en) Systems, methods, and apparatuses for adding a document history graph and corresponding hash value to a blockchain in a cloud based computing environment
EP3673432B1 (en) Implementing a blockchain-based workflow
TW201830302A (en) Business process method and device, data share system, and storage medium
WO2021203853A1 (en) Key generation method, device, apparatus, and medium
CN108768618B (en) IP soft core authorization method, device and medium based on block chain
CN113255014B (en) Data processing method based on block chain and related equipment
US20220067125A1 (en) Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method
CN110784324B (en) Node admission method and device
WO2023019903A1 (en) Cross-chain transaction system and method, and device and storage medium
CN114528532A (en) Supply chain data evidence storing method and device, computer equipment and storage medium
CN111209540B (en) Information verification method, device and storage medium
CN112837043B (en) Block chain-based data processing method and device and electronic equipment
US20240163118A1 (en) Blockchain-based data processing method, device, and readable storage medium
WO2023226594A1 (en) Blockchain-based data processing method and apparatus, and device and readable storage medium
CN116795924A (en) Block chain-based data sharing method and device
CN117544351A (en) Block chain data processing method, device, equipment and storage medium
CN117495559A (en) Transaction processing method, device, equipment and storage medium
CN117675190A (en) Data element circulation method and system based on block chain and cryptography
CN117455487A (en) Block chain-based data processing method, device, equipment and readable storage medium
CN117408691A (en) Cross-chain processing method, device, medium and product based on block chain

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: 20880743

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20880743

Country of ref document: EP

Kind code of ref document: A1