CN114581099A - Blockchain-based data collaboration method, device, device and storage medium - Google Patents

Blockchain-based data collaboration method, device, device and storage medium Download PDF

Info

Publication number
CN114581099A
CN114581099A CN202210173647.9A CN202210173647A CN114581099A CN 114581099 A CN114581099 A CN 114581099A CN 202210173647 A CN202210173647 A CN 202210173647A CN 114581099 A CN114581099 A CN 114581099A
Authority
CN
China
Prior art keywords
transaction information
chain
main chain
user node
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210173647.9A
Other languages
Chinese (zh)
Inventor
唐瑞琮
宋星
邵羽
郭颂
杨世龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Qulian Digital Technology Co ltd
Original Assignee
Chongqing Qulian Digital Technology Co ltd
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 Chongqing Qulian Digital Technology Co ltd filed Critical Chongqing Qulian Digital Technology Co ltd
Priority to CN202210173647.9A priority Critical patent/CN114581099A/en
Publication of CN114581099A publication Critical patent/CN114581099A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Human Resources & Organizations (AREA)
  • Technology Law (AREA)
  • Databases & Information Systems (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to a data collaboration method, a data collaboration device, data collaboration equipment and a storage medium based on a block chain, and relates to the field of block chains. The data collaboration method based on the block chain is applied to a block chain platform, the block chain platform comprises a main chain and a side chain, and the method comprises the following steps: acquiring a service request initiated by a first user node through a side chain, wherein the service request comprises service data; calling a first intelligent contract through a side chain, determining that the execution of the service request is completed according to the service data, and acquiring transaction information recorded in the execution process of the service request, wherein the transaction information comprises an identifier of a first user node; calling a second intelligent contract through the side chain, determining that the transaction information is synchronized to the main chain, and then sending the transaction information to the main chain; transaction information is stored through the backbone. The method and the device are used for solving the problem that the transaction information cannot be traced.

Description

基于区块链的数据协同方法、装置、设备及存储介质Blockchain-based data collaboration method, device, device and storage medium

技术领域technical field

本申请涉及区块链领域,尤其涉及一种基于区块链的数据协同方法、装置、设备及存储介质。The present application relates to the field of blockchain, and in particular, to a method, device, device and storage medium for data collaboration based on blockchain.

背景技术Background technique

目前,对国有企业的资金监管,由国有企业自行进行信息填报,无法实现信息全流程追溯,信息很可能经过主观美化,其真实性难以验证。而且,信息采集需国有企业的管理人员自行输入,采集效率低,准确度低。多层级的监管机构之间也需要进行分级的信息填报与信息处理,层级越多,相应信息量逐渐衰退,信息实时性难以保证,效率越低。At present, the state-owned enterprise's capital supervision is carried out by the state-owned enterprise to fill in the information on its own, and it is impossible to trace the entire process of the information. The information is likely to be subjectively beautified, and its authenticity is difficult to verify. Moreover, the information collection requires the management personnel of state-owned enterprises to input by themselves, and the collection efficiency is low and the accuracy is low. Multi-level regulatory agencies also need to carry out hierarchical information reporting and information processing.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种基于区块链的数据协同方法、装置、设备及存储介质,用以解决交易信息无法追溯的问题。This application provides a blockchain-based data collaboration method, device, device and storage medium to solve the problem that transaction information cannot be traced.

第一方面,本申请实施例提供了一种基于区块链的数据协同方法,应用于区块链平台,所述区块链平台包括主链和侧链,所述方法包括:In the first aspect, the embodiments of this application provide a blockchain-based data collaboration method, which is applied to a blockchain platform, where the blockchain platform includes a main chain and a side chain, and the method includes:

通过所述侧链获取第一用户节点发起的业务请求,其中,所述业务请求中包括业务数据;Acquire a service request initiated by the first user node through the side chain, wherein the service request includes service data;

通过所述侧链调用第一智能合约,根据所述业务数据,确定所述业务请求执行完成,并获取所述业务请求执行过程中记录的交易信息,其中,所述交易信息中包括所述第一用户节点的标识;The first smart contract is invoked through the side chain, and according to the service data, it is determined that the execution of the service request is completed, and transaction information recorded during the execution of the service request is obtained, wherein the transaction information includes the first smart contract. an identifier of the user node;

通过所述侧链调用第二智能合约,确定将所述交易信息同步至所述主链后,将所述交易信息发送至所述主链;The second smart contract is invoked through the side chain, and after it is determined that the transaction information is synchronized to the main chain, the transaction information is sent to the main chain;

通过所述主链存储所述交易信息。The transaction information is stored through the main chain.

可选地,所述通过所述主链存储所述交易信息之后,所述方法还包括:Optionally, after storing the transaction information through the main chain, the method further includes:

通过所述主链获取第二用户节点发起的交易信息查询请求,其中,所述交易信息查询请求中包括所述第一用户节点的标识;Obtain the transaction information query request initiated by the second user node through the main chain, wherein the transaction information query request includes the identifier of the first user node;

根据所述第一用户节点的标识,从所述主链中获取和所述第一用户节点的标识对应的所述交易信息。According to the identification of the first user node, the transaction information corresponding to the identification of the first user node is obtained from the main chain.

可选地,所述区块链平台还包括中继链、第一跨链网关和第二跨链网关;Optionally, the blockchain platform further includes a relay chain, a first cross-chain gateway and a second cross-chain gateway;

所述将所述交易信息发送至所述主链,包括:The sending the transaction information to the main chain includes:

将所述交易信息通过所述第一跨链网关发送至所述中继链;sending the transaction information to the relay chain through the first cross-chain gateway;

通过所述中继链确定所述交易信息的发送方在所述区块链平台中后,通过所述中继链将所述交易信息发送至所述第一跨链网关;After determining through the relay chain that the sender of the transaction information is in the blockchain platform, send the transaction information to the first cross-chain gateway through the relay chain;

通过所述第一跨链网关将所述交易信息发送至所述第二跨链网关;sending the transaction information to the second cross-chain gateway through the first cross-chain gateway;

通过所述第二跨链网关将所述交易信息发送至所述主链。The transaction information is sent to the main chain through the second cross-chain gateway.

可选地,所述通过所述主链存储所述交易信息之前,所述方法还包括:Optionally, before storing the transaction information through the main chain, the method further includes:

通过所述主链调用第三智能合约,确定所述交易信息正确。The third smart contract is invoked through the main chain, and it is determined that the transaction information is correct.

可选地,所述主链的数量为一个,所述侧链的数量为至少一个。Optionally, the number of the main chain is one, and the number of the side chain is at least one.

可选地,所述通过所述主链存储所述交易信息,包括:Optionally, storing the transaction information through the main chain includes:

通过所述主链将所述交易信息存储至所述第一用户节点的标识对应的区块。The transaction information is stored in the block corresponding to the identifier of the first user node through the main chain.

可选地,所述通过所述主链将所述交易信息存储至所述第一用户节点的标识对应的区块之后,所述方法还包括:Optionally, after the transaction information is stored in the block corresponding to the identifier of the first user node through the main chain, the method further includes:

根据所述第一用户节点的标识对应的区块中存储的数据量,获取所述第一用户节点的评价信息。The evaluation information of the first user node is acquired according to the amount of data stored in the block corresponding to the identifier of the first user node.

第二方面,本申请实施例提供了一种基于区块链的数据协同装置,配置于区块链平台,所述区块链平台包括主链和侧链,所述装置包括:In the second aspect, an embodiment of the present application provides a blockchain-based data collaboration device configured on a blockchain platform, where the blockchain platform includes a main chain and a side chain, and the device includes:

第一获取模块,用于通过所述侧链获取第一用户节点发起的业务请求,其中,所述业务请求中包括业务数据;a first obtaining module, configured to obtain a service request initiated by a first user node through the side chain, wherein the service request includes service data;

第一调用模块,用于通过所述侧链调用第一智能合约,根据所述业务数据,确定所述业务请求执行完成,并获取所述业务请求执行过程中记录的交易信息,其中,所述交易信息中包括所述第一用户节点的标识;The first calling module is used to call the first smart contract through the side chain, determine that the execution of the service request is completed according to the service data, and obtain transaction information recorded during the execution of the service request, wherein the The transaction information includes the identifier of the first user node;

第二调用模块,用于通过所述侧链调用第二智能合约,确定将所述交易信息同步至所述主链后,将所述交易信息发送至所述主链;A second calling module, configured to call a second smart contract through the side chain, and after determining to synchronize the transaction information to the main chain, send the transaction information to the main chain;

处理模块,用于通过所述主链存储所述交易信息。A processing module, configured to store the transaction information through the main chain.

第三方面,本申请实施例提供了一种电子设备,包括:处理器、存储器和通信总线,其中,处理器和存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus;

所述存储器,用于存储计算机程序;the memory for storing computer programs;

所述处理器,用于执行所述存储器中所存储的程序,实现第一方面所述的基于区块链的数据协同方法。The processor is configured to execute the program stored in the memory to implement the blockchain-based data collaboration method described in the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的基于区块链的数据协同方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the blockchain-based data collaboration method described in the first aspect is implemented.

本申请实施例提供的上述技术方案与现有技术相比具有如下优点:本申请实施例提供的该方法,应用于区块链平台,区块链平台包括主链和侧链,通过侧链获取第一用户节点发起的业务请求,其中,业务请求中包括业务数据,通过侧链调用第一智能合约,根据业务数据,确定业务请求执行完成,并获取业务请求执行过程中记录的交易信息,其中,交易信息中包括第一用户节点的标识,通过侧链调用第二智能合约,确定将交易信息同步至主链后,将交易信息发送至主链,通过主链存储交易信息。该方法中,第一用户节点的业务请求执行过程在区块链平台的侧链上进行,交易信息能够存储在区块链平台的侧链上,通过侧链将交易信息发送至主链,通过主链存储交易信息,利用区块链的可追溯和不可篡改性,能够确保主链存储的交易信息的真实性,解决了交易信息无法追溯的问题。Compared with the prior art, the above technical solutions provided by the embodiments of the present application have the following advantages: the method provided by the embodiments of the present application is applied to a blockchain platform, and the blockchain platform includes a main chain and a side chain, which are obtained through the side chain. The service request initiated by the first user node, wherein the service request includes service data, the first smart contract is invoked through the side chain, and according to the service data, it is determined that the execution of the service request is completed, and the transaction information recorded during the execution of the service request is obtained, wherein , the transaction information includes the identity of the first user node, and the second smart contract is invoked through the side chain. After determining that the transaction information is synchronized to the main chain, the transaction information is sent to the main chain, and the transaction information is stored through the main chain. In this method, the business request execution process of the first user node is performed on the side chain of the blockchain platform, the transaction information can be stored on the side chain of the blockchain platform, and the transaction information can be sent to the main chain through the side chain, and the transaction information can be sent to the main chain through the side chain. The main chain stores transaction information, and the traceability and immutability of the blockchain can ensure the authenticity of the transaction information stored in the main chain and solve the problem that transaction information cannot be traced.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.

图1为本申请实施例中基于区块链的数据协同的方法流程示意图;1 is a schematic flowchart of a method for data collaboration based on blockchain in an embodiment of the application;

图2为本申请一个具体实施例中区块链平台的结构示意图;FIG. 2 is a schematic structural diagram of a blockchain platform in a specific embodiment of the application;

图3为本申请一个具体实施例中将交易信息发送至主链的方法流程示意图;3 is a schematic flowchart of a method for sending transaction information to the main chain in a specific embodiment of the application;

图4为本申请一个具体实施例中区块链系统的结构示意图;4 is a schematic structural diagram of a blockchain system in a specific embodiment of the application;

图5为本申请一个具体实施例中基于区块链的数据协同的方法流程示意图;5 is a schematic flowchart of a method for data collaboration based on blockchain in a specific embodiment of the present application;

图6为本申请实施例中基于区块链的数据协同装置的结构示意图;6 is a schematic structural diagram of a blockchain-based data coordination device in an embodiment of the application;

图7为本申请实施例中电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application.

本申请实施例中,提供了一种基于区块链的数据协同方法,应用于区块链平台,区块链平台包括主链和侧链,如图1所示,基于区块链的数据协同的方法流程主要包括:In the embodiment of this application, a data collaboration method based on blockchain is provided, which is applied to a blockchain platform. The blockchain platform includes a main chain and a side chain. As shown in FIG. 1 , a data collaboration method based on blockchain The method process mainly includes:

步骤101,通过侧链获取第一用户节点发起的业务请求,其中,业务请求中包括业务数据。Step 101: Acquire a service request initiated by a first user node through a side chain, wherein the service request includes service data.

第一用户节点为被监管节点,例如,第一用户节点为国有企业A。The first user node is a supervised node, for example, the first user node is a state-owned enterprise A.

业务请求可以是资金拨付请求、投资请求、发债请求等涉及资金流动的请求。本申请实施例中,以业务请求是资金拨付请求为例进行说明,但并不限制业务请求仅为资金拨付请求。The business request may be a request for fund allocation, an investment request, a bond issuance request, and other requests involving capital flow. In the embodiment of the present application, the service request is a fund appropriation request as an example for description, but it is not limited that the service request is only a fund appropriation request.

业务请求为资金拨付请求时,业务数据可以包括交易双方在区块链平台中的标识,以及交易双方在银行中的账户地址。When the business request is a fund allocation request, the business data may include the identifiers of the transaction parties in the blockchain platform and the account addresses of the transaction parties in the bank.

侧链可以直接连接各个被监管节点所在的应用系统,直接从应用系统中调取业务请求,不再依赖于手动填报,通过应用系统同步,同步内容及时间均上链,填报效率高,准确性有保证,而且信息来源可追溯。The side chain can directly connect to the application system where each supervised node is located, and directly retrieve business requests from the application system, instead of relying on manual reporting. Through the application system synchronization, the synchronization content and time are all uploaded to the chain, and the reporting efficiency and accuracy are high. Guaranteed and traceable to the source of the information.

步骤102,通过侧链调用第一智能合约,根据业务数据,确定业务请求执行完成,并获取业务请求执行过程中记录的交易信息,其中,交易信息中包括第一用户节点的标识。In step 102, the first smart contract is invoked through the side chain, according to the service data, it is determined that the execution of the service request is completed, and transaction information recorded during the execution of the service request is obtained, wherein the transaction information includes the identifier of the first user node.

第一智能合约,可以是资金拨付确认智能合约,通过侧链上的各个节点计算此笔交易是否已经完成,交易双方的银行账户余额是否正确。若超过2/3的节点同意此笔交易已经完成,交易双方的银行账户余额正确,则确定业务请求执行完成。若此笔交易没有完成,或者交易双方的银行账户余额错误,则将交易失败信息以及交易失败原因反馈至第一用户节点。The first smart contract can be a fund allocation confirmation smart contract, and each node on the side chain calculates whether the transaction has been completed and whether the bank account balances of both parties are correct. If more than 2/3 of the nodes agree that the transaction has been completed and the bank account balances of both parties are correct, it is determined that the execution of the business request is completed. If the transaction is not completed, or the bank account balance of both parties is wrong, the transaction failure information and the reason for the transaction failure will be fed back to the first user node.

交易信息可以包括交易双方在区块链平台中的标识、交易双方在银行中的账户地址、交易完成时刻、交易的数额等信息。The transaction information may include information such as the identification of the two parties to the transaction in the blockchain platform, the account addresses of the two parties in the bank, the time when the transaction is completed, and the amount of the transaction.

步骤103,通过侧链调用第二智能合约,确定将交易信息同步至主链后,将交易信息发送至主链。In step 103, the second smart contract is invoked through the side chain, and after it is determined that the transaction information is synchronized to the main chain, the transaction information is sent to the main chain.

第二智能合约可以是业务数据同步智能合约,通过侧链上的各个节点计算确认交易结果及提交状态,确定主链的地址。若超过2/3的节点同意将交易信息同步至主链,则确定将交易信息同步至主链。The second smart contract can be a business data synchronization smart contract, and each node on the side chain calculates and confirms the transaction result and submission status, and determines the address of the main chain. If more than 2/3 of the nodes agree to synchronize the transaction information to the main chain, it is determined to synchronize the transaction information to the main chain.

一个具体实施例中,如图2所示,区块链平台1包括主链11、侧链12、中继链13、第一跨链网关14和第二跨链网关15。In a specific embodiment, as shown in FIG. 2 , the blockchain platform 1 includes a main chain 11 , a side chain 12 , a relay chain 13 , a first cross-chain gateway 14 and a second cross-chain gateway 15 .

侧链12连接第一跨链网关14的第一端,第一跨链网关14的第二端连接中继链13的第一端,中继链13的第二端连接第二跨链网关15的第一端,第二跨链网关15的第二端连接主链11。The side chain 12 is connected to the first end of the first cross-chain gateway 14 , the second end of the first cross-chain gateway 14 is connected to the first end of the relay chain 13 , and the second end of the relay chain 13 is connected to the second cross-chain gateway 15 The first end of the second cross-chain gateway 15 is connected to the main chain 11 .

主链和侧链之间的通信通过跨链方式完成,在保证账户权限的情况下,将分区存储,不同链之间可以实现数据隔离。The communication between the main chain and the side chain is completed in a cross-chain manner. In the case of ensuring account permissions, partition storage is performed, and data isolation can be achieved between different chains.

一个具体实施例中,如图3所示,将交易信息发送至主链,包括:In a specific embodiment, as shown in Figure 3, sending transaction information to the main chain includes:

步骤301,通过侧链将交易信息通过第一跨链网关发送至中继链。In step 301, the transaction information is sent to the relay chain through the first cross-chain gateway through the side chain.

步骤302,通过中继链确定交易信息的发送方在区块链平台中后,通过中继链将交易信息发送至第一跨链网关。Step 302, after determining through the relay chain that the sender of the transaction information is in the blockchain platform, send the transaction information to the first cross-chain gateway through the relay chain.

中继链确定交易信息的发送方在区块链平台中,可以确定交易信息的来源可信。The relay chain determines the sender of the transaction information. In the blockchain platform, the source of the transaction information can be determined to be credible.

若通过中继链确定交易信息的发送方不在区块链平台中,则认为此交易为非法交易,交易处理结果回滚,并返回“目的链无法到达,请重新进行路由定向”,此处的目的链为主链。If it is determined through the relay chain that the sender of the transaction information is not in the blockchain platform, the transaction is considered to be an illegal transaction, the transaction processing result is rolled back, and the return "The destination chain cannot be reached, please re-direct the routing", here the The destination chain is the main chain.

步骤303,通过第一跨链网关将交易信息发送至第二跨链网关。Step 303: Send the transaction information to the second cross-chain gateway through the first cross-chain gateway.

通过第一跨链网关根据主链的地址进行寻找,找到主链后,将交易信息发送至和主链相连的第二跨链网关。The first cross-chain gateway searches according to the address of the main chain. After finding the main chain, the transaction information is sent to the second cross-chain gateway connected to the main chain.

步骤304,通过第二跨链网关将交易信息发送至主链。In step 304, the transaction information is sent to the main chain through the second cross-chain gateway.

通过第二跨链网关将交易信息发送至主链之前,通过第二跨链网关确认此交易是否通过侧链的背书,若通过第二跨链网关确认此交易通过侧链的背书,则通过第二跨链网关将交易信息发送至主链。Before sending the transaction information to the main chain through the second cross-chain gateway, confirm through the second cross-chain gateway whether the transaction is endorsed by the side chain. The second cross-chain gateway sends transaction information to the main chain.

步骤104,通过主链存储交易信息。Step 104, store transaction information through the main chain.

一个具体实施例中,通过主链存储交易信息之前,基于区块链的数据协同方法还包括:通过主链调用第三智能合约,确定交易信息正确。In a specific embodiment, before storing the transaction information through the main chain, the data collaboration method based on the blockchain further includes: calling a third smart contract through the main chain to determine that the transaction information is correct.

第三智能合约,可以是交易验证智能合约,通过主链上的各个节点计算此笔交易的交易信息是否正确。也可以通过连通高级别银行再次执行转账复核合约。若确定交易信息正确,则通过主链存储交易信息,实现交易信息的跨链同步。The third smart contract, which can be a transaction verification smart contract, calculates whether the transaction information of this transaction is correct through each node on the main chain. You can also execute the transfer review contract again by connecting to a high-level bank. If it is determined that the transaction information is correct, the transaction information is stored through the main chain to achieve cross-chain synchronization of transaction information.

一个具体实施例中,通过主链存储交易信息之后,基于区块链的数据协同方法还包括:通过主链获取第二用户节点发起的交易信息查询请求,其中,交易信息查询请求中包括第一用户节点的标识;根据第一用户节点的标识,从主链中获取和第一用户节点的标识对应的交易信息。In a specific embodiment, after the transaction information is stored through the main chain, the blockchain-based data collaboration method further includes: obtaining, through the main chain, a transaction information query request initiated by the second user node, wherein the transaction information query request includes the first transaction information query request. The identifier of the user node; according to the identifier of the first user node, the transaction information corresponding to the identifier of the first user node is obtained from the main chain.

第二用户节点为监管节点。The second user node is a supervisory node.

第二用户节点可以通过第一用户节点的标识,从主链中获取和第一用户节点的标识对应的交易信息。实现对第一用户节点的交易信息的监管。The second user node can obtain transaction information corresponding to the identification of the first user node from the main chain through the identification of the first user node. Realize the supervision of the transaction information of the first user node.

一个具体实施例中,主链的数量为一个,侧链的数量为至少一个。In a specific embodiment, the number of main chains is one, and the number of side chains is at least one.

每个侧链服务于不同的业务应用,例如,第一侧链连接大额资金动态监管系统,第二侧链连接监督追责系统,第三侧链连接投资管理系统,第四侧链连接发债管理系统。Each side chain serves different business applications. For example, the first side chain is connected to the large-amount fund dynamic supervision system, the second side chain is connected to the supervision and accountability system, the third side chain is connected to the investment management system, and the fourth side chain is connected to the development system. Debt management system.

主链服务于各个监管节点,用于获取交易信息进行监管。The main chain serves each supervision node and is used to obtain transaction information for supervision.

一个具体实施例中,如图4所示,为区块链系统的结构示意图。区块链系统包括区块链平台1、第一用户节点2和第二用户节点3。区块链平台1包括主链11和侧链12。主链11的数量为一个,侧链12的数量为至少一个。图4中仅示意出了3个侧链12,根据需要,侧链12的数量可以为1个,2个,4个,或者更多,本申请并不对侧链12的数量作出限制。第一用户节点2连接侧链12,侧链12连接主链11,主链11连接第二用户节点3。In a specific embodiment, as shown in FIG. 4 , it is a schematic structural diagram of a blockchain system. The blockchain system includes a blockchain platform 1 , a first user node 2 and a second user node 3 . The blockchain platform 1 includes a main chain 11 and a side chain 12 . The number of the main chain 11 is one, and the number of the side chains 12 is at least one. Only three side chains 12 are shown in FIG. 4 , and the number of side chains 12 may be one, two, four, or more as required, and the present application does not limit the number of side chains 12 . The first user node 2 is connected to the side chain 12 , the side chain 12 is connected to the main chain 11 , and the main chain 11 is connected to the second user node 3 .

一个具体实施例中,通过主链存储交易信息,包括:通过主链将交易信息存储至第一用户节点的标识对应的区块。In a specific embodiment, storing the transaction information through the main chain includes: storing the transaction information in the block corresponding to the identifier of the first user node through the main chain.

在主链上,可以根据各个第一用户节点的标识,将交易信息存储至第一用户节点的标识对应的区块,保证整个交易过程中的交易信息保存在区块链平台中,方便进行第一用户节点的标识对应的交易信息的查询,保证交易信息不会被篡改,且能够被追溯。On the main chain, according to the identification of each first user node, the transaction information can be stored in the block corresponding to the identification of the first user node, so as to ensure that the transaction information in the entire transaction process is stored in the blockchain platform, which is convenient for the third The query of the transaction information corresponding to the identifier of a user node ensures that the transaction information will not be tampered with and can be traced back.

一个具体实施例中,通过主链将交易信息存储至第一用户节点的标识对应的区块之后,基于区块链的数据协同方法还包括:根据第一用户节点的标识对应的区块中存储的数据量,获取第一用户节点的评价信息。In a specific embodiment, after the transaction information is stored in the block corresponding to the identifier of the first user node through the main chain, the blockchain-based data collaboration method further includes: storing the transaction information in the block corresponding to the identifier of the first user node according to the block chain. The data volume of the first user node is obtained, and the evaluation information of the first user node is obtained.

通过主链和侧链的通信可以解决数据的共享问题,但缺少相应完整的激励机制,以推动各个被监管节点的业务请求和交易信息的上链工作。根据第一用户节点的标识对应的区块中存储的数据量,获取第一用户节点的评价信息,则增加了激励机制。例如,当第一用户节点的标识对应的区块中存储的数据量增加时,表明第一用户节点通过区块链平台执行了业务请求,并将交易信息存储至了主链中,方便监管,将第一用户节点的评价信息设置为较高评分。若第一用户节点的标识对应的区块中存储的数据量较少,则表明第一用户节点很少通过区块链平台执行业务请求,不便于监管,将第一用户节点的评价信息设置为较低评分。The communication between the main chain and the side chain can solve the problem of data sharing, but there is a lack of a corresponding and complete incentive mechanism to promote the business requests and transaction information of each supervised node. According to the amount of data stored in the block corresponding to the identifier of the first user node, the evaluation information of the first user node is acquired, which increases the incentive mechanism. For example, when the amount of data stored in the block corresponding to the identifier of the first user node increases, it indicates that the first user node has executed the business request through the blockchain platform and stored the transaction information in the main chain, which is convenient for supervision. The evaluation information of the first user node is set to a higher score. If the amount of data stored in the block corresponding to the identifier of the first user node is small, it indicates that the first user node rarely executes business requests through the blockchain platform, which is inconvenient for supervision. The evaluation information of the first user node is set as lower rating.

一个具体实施例中,提供了一种基于区块链的数据协同方法,应用于区块链平台,区块链平台包括主链、侧链、中继链、第一跨链网关和第二跨链网关,侧链连接第一跨链网关的第一端,第一跨链网关的第二端连接中继链的第一端,中继链的第二端连接第二跨链网关的第一端,第二跨链网关的第二端连接主链。如图5所示,基于区块链的数据协同的方法流程包括:In a specific embodiment, a blockchain-based data collaboration method is provided, which is applied to a blockchain platform. The blockchain platform includes a main chain, a side chain, a relay chain, a first cross-chain gateway and a second cross-chain gateway. chain gateway, the side chain is connected to the first end of the first cross-chain gateway, the second end of the first cross-chain gateway is connected to the first end of the relay chain, and the second end of the relay chain is connected to the first end of the second cross-chain gateway The second end of the second cross-chain gateway is connected to the main chain. As shown in Figure 5, the method flow of blockchain-based data collaboration includes:

步骤501,通过侧链获取第一用户节点发起的资金拨付请求。Step 501: Obtain a fund allocation request initiated by the first user node through the side chain.

其中,资金拨付请求中包括交易双方在区块链平台中的标识,以及交易双方在银行中的账户地址。Among them, the fund disbursement request includes the identification of the transaction parties in the blockchain platform and the account addresses of the transaction parties in the bank.

步骤502,通过侧链调用资金拨付确认智能合约。In step 502, the smart contract is confirmed by invoking the fund allocation through the side chain.

步骤503,通过侧链上的各个节点计算此笔交易是否已经完成,且交易双方的银行账户余额是否正确。若是,即超过2/3的节点同意此笔交易已经完成,交易双方的银行账户余额正确,执行步骤504,否则,执行步骤505。Step 503: Calculate through each node on the side chain whether the transaction has been completed and whether the bank account balances of both parties are correct. If so, that is, more than 2/3 of the nodes agree that the transaction has been completed and the bank account balances of both parties to the transaction are correct, then go to step 504; otherwise, go to step 505.

步骤504,通过侧链判断此业务是否需要向主链同步,若是,执行步骤506,否则,结束流程。In step 504, it is judged whether the service needs to be synchronized with the main chain through the side chain, if so, go to step 506, otherwise, end the process.

步骤505,通过侧链将交易失败信息以及交易失败原因反馈至第一用户节点。In step 505, the transaction failure information and the transaction failure reason are fed back to the first user node through the side chain.

步骤506,通过侧链调用业务数据同步智能合约。Step 506, calling the business data synchronization smart contract through the side chain.

步骤507,通过侧链上的各个节点计算确认交易结果以及主链的地址是否正确。若是,即超过2/3的节点同意将交易信息同步至主链,执行步骤508,否则,执行步骤505。Step 507: Calculate and confirm whether the transaction result and the address of the main chain are correct through each node on the side chain. If so, that is, more than 2/3 of the nodes agree to synchronize the transaction information to the main chain, go to step 508; otherwise, go to step 505.

步骤508,通过侧链将交易信息通过第一跨链网关发送至中继链。Step 508: Send the transaction information to the relay chain through the first cross-chain gateway through the side chain.

步骤509,通过中继链判断该交易是否可信以及交易信息的发送方是否在区块链平台中。若是,执行步骤510,否则,执行步骤511。Step 509: Determine whether the transaction is credible and whether the sender of the transaction information is in the blockchain platform through the relay chain. If yes, go to step 510; otherwise, go to step 511.

步骤510,通过中继链将交易信息发送至第一跨链网关。In step 510, the transaction information is sent to the first cross-chain gateway through the relay chain.

步骤511,确定此交易为非法交易,交易处理结果回滚。Step 511, it is determined that the transaction is an illegal transaction, and the transaction processing result is rolled back.

步骤512,通过第一跨链网关根据主链的地址进行寻找,找到主链后,将交易信息发送至和主链相连的第二跨链网关。Step 512 , search through the first cross-chain gateway according to the address of the main chain, and after finding the main chain, send the transaction information to the second cross-chain gateway connected to the main chain.

步骤513,通过第二跨链网关确认此交易是否通过侧链的背书,若是,执行步骤514,否则,执行步骤511。Step 513 , confirm through the second cross-chain gateway whether the transaction is endorsed by the side chain, if yes, go to step 514 , otherwise go to step 511 .

步骤514,通过第二跨链网关将交易信息发送至主链。Step 514: Send the transaction information to the main chain through the second cross-chain gateway.

步骤515,通过主链调用交易验证智能合约计算交易,并通过连通高级别银行再次执行转账复核合约。In step 515, the transaction is calculated by calling the transaction verification smart contract through the main chain, and the transfer review contract is executed again by connecting to a high-level bank.

步骤516,通过主链判断交易信息是否正确,若是,执行步骤517,否则执行步骤511。Step 516, judge whether the transaction information is correct through the main chain, if yes, go to step 517, otherwise go to step 511.

步骤517,实现交易信息的跨链同步。Step 517, realizing cross-chain synchronization of transaction information.

综上,本申请实施例提供的该方法,应用于区块链平台,区块链平台包括主链和侧链,通过侧链获取第一用户节点发起的业务请求,其中,业务请求中包括业务数据,通过侧链调用第一智能合约,根据业务数据,确定业务请求执行完成,并获取业务请求执行过程中记录的交易信息,其中,交易信息中包括第一用户节点的标识,通过侧链调用第二智能合约,确定将交易信息同步至主链后,将交易信息发送至主链,通过主链存储交易信息。该方法中,第一用户节点的业务请求执行过程在区块链平台的侧链上进行,交易信息能够存储在区块链平台的侧链上,通过侧链将交易信息发送至主链,通过主链存储交易信息,利用区块链的可追溯和不可篡改性,能够确保主链存储的交易信息的真实性,解决了交易信息无法追溯的问题。To sum up, the method provided in this embodiment of the present application is applied to a blockchain platform. The blockchain platform includes a main chain and a side chain, and the service request initiated by the first user node is obtained through the side chain, wherein the service request includes the service Data, call the first smart contract through the side chain, determine that the execution of the business request is completed according to the business data, and obtain the transaction information recorded during the execution of the business request, wherein the transaction information includes the identifier of the first user node, which is called through the side chain The second smart contract, after determining to synchronize the transaction information to the main chain, sends the transaction information to the main chain, and stores the transaction information through the main chain. In this method, the business request execution process of the first user node is performed on the side chain of the blockchain platform, the transaction information can be stored on the side chain of the blockchain platform, and the transaction information can be sent to the main chain through the side chain, and the transaction information can be sent to the main chain through the side chain. The main chain stores transaction information, and the traceability and immutability of the blockchain can ensure the authenticity of the transaction information stored in the main chain, and solve the problem that transaction information cannot be traced.

而且数据协同的过程中,多次执行智能合约,将交易信息进行多方验证,保证了交易信息的真实性。Moreover, in the process of data collaboration, the smart contract is executed many times, and the transaction information is verified by multiple parties, which ensures the authenticity of the transaction information.

基于同一构思,本申请实施例中提供了一种基于区块链的数据协同装置,该装置配置于区块链平台,区块链平台包括主链和侧链,该装置的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图6所示,该装置主要包括:Based on the same concept, an embodiment of the present application provides a data coordination device based on blockchain. The device is configured on a blockchain platform, and the blockchain platform includes a main chain and a side chain. For the specific implementation of the device, please refer to the method The description of the embodiment part, the repeated places will not be repeated, as shown in Figure 6, the device mainly includes:

第一获取模块601,用于通过所述侧链获取第一用户节点发起的业务请求,其中,所述业务请求中包括业务数据;A first obtaining module 601, configured to obtain a service request initiated by a first user node through the side chain, wherein the service request includes service data;

第一调用模块602,用于通过所述侧链调用第一智能合约,根据所述业务数据,确定所述业务请求执行完成,并获取所述业务请求执行过程中记录的交易信息,其中,所述交易信息中包括所述第一用户节点的标识;The first invocation module 602 is configured to invoke the first smart contract through the side chain, determine that the execution of the service request is completed according to the service data, and obtain transaction information recorded during the execution of the service request, wherein the The transaction information includes the identifier of the first user node;

第二调用模块603,用于通过所述侧链调用第二智能合约,确定将所述交易信息同步至所述主链后,将所述交易信息发送至所述主链;The second calling module 603 is configured to call a second smart contract through the side chain, and after determining to synchronize the transaction information to the main chain, send the transaction information to the main chain;

处理模块604,用于通过所述主链存储所述交易信息。A processing module 604, configured to store the transaction information through the main chain.

基于同一构思,本申请实施例中还提供了一种电子设备,如图7所示,该电子设备主要包括:处理器701、存储器702和通信总线703,其中,处理器701和存储器702通过通信总线703完成相互间的通信。其中,存储器702中存储有可被处理器701执行的程序,处理器701执行存储器702中存储的程序,实现如下步骤:Based on the same concept, an embodiment of the present application also provides an electronic device. As shown in FIG. 7 , the electronic device mainly includes: a processor 701 , a memory 702 and a communication bus 703 , wherein the processor 701 and the memory 702 communicate with each other through communication The bus 703 performs communication with each other. The memory 702 stores a program that can be executed by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:

通过侧链获取第一用户节点发起的业务请求,其中,业务请求中包括业务数据;通过侧链调用第一智能合约,根据业务数据,确定业务请求执行完成,并获取业务请求执行过程中记录的交易信息,其中,交易信息中包括第一用户节点的标识;通过侧链调用第二智能合约,确定将交易信息同步至主链后,将交易信息发送至主链;通过主链存储交易信息。Acquire the service request initiated by the first user node through the side chain, wherein the service request includes service data; call the first smart contract through the side chain, determine that the execution of the service request is completed according to the service data, and obtain the records recorded during the execution of the service request. Transaction information, wherein the transaction information includes the identifier of the first user node; the second smart contract is invoked through the side chain, and after determining that the transaction information is synchronized to the main chain, the transaction information is sent to the main chain; the transaction information is stored through the main chain.

上述电子设备中提到的通信总线703可以是外设部件互连标准(PeripheralComponent Interconnect,简称PCI)总线或扩展工业标准结构(Extended IndustryStandard Architecture,简称EISA)总线等。该通信总线703可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 703 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA for short) bus or the like. The communication bus 703 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus.

存储器702可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器701的存储装置。The memory 702 may include random access memory (Random Access Memory, RAM for short), or may include non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor 701 .

上述的处理器701可以是通用处理器,包括中央处理器(Central ProcessingUnit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 701 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc., and may also be a digital signal processor (Digital Signal Processing, DSP for short) , Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

在本申请的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的基于区块链的数据协同方法。In yet another embodiment of the present application, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, the computer is made to execute the above-mentioned embodiments. The described blockchain-based data collaboration method.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, eg, from a website site, computer, server, or data center via wired (eg, Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, microwave, etc.) means to transmit to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes, etc.), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these Any such actual relationship or sequence exists between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims (10)

1. A data collaboration method based on a block chain is applied to a block chain platform, wherein the block chain platform comprises a main chain and a side chain, and the method comprises the following steps:
acquiring a service request initiated by a first user node through the side chain, wherein the service request comprises service data;
calling a first intelligent contract through the side chain, determining that the execution of the service request is completed according to the service data, and acquiring transaction information recorded in the execution process of the service request, wherein the transaction information comprises an identifier of the first user node;
calling a second intelligent contract through the side chain, determining that the transaction information is synchronized to the main chain, and then sending the transaction information to the main chain;
storing the transaction information via the backbone.
2. The blockchain-based data collaboration method of claim 1 wherein after storing the transaction information over the backbone, the method further comprises:
acquiring a transaction information query request initiated by a second user node through the main chain, wherein the transaction information query request comprises an identifier of the first user node;
and acquiring the transaction information corresponding to the identifier of the first user node from the main chain according to the identifier of the first user node.
3. The blockchain-based data collaboration method according to claim 1 wherein the blockchain platform further comprises a relay chain, a first cross-chain gateway and a second cross-chain gateway;
the sending the transaction information to the main chain comprises:
sending the transaction information to the relay link through the first inter-link gateway;
after the sender of the transaction information is determined to be in the block chain platform through the relay chain, the transaction information is sent to the first cross-link gateway through the relay chain;
sending the transaction information to the second cross-link gateway through the first cross-link gateway;
sending the transaction information to the backbone through the second cross-link gateway.
4. The blockchain-based data collaboration method of claim 1 wherein prior to storing the transaction information over the backbone, the method further comprises:
and calling a third intelligent contract through the main chain to determine that the transaction information is correct.
5. The block chain-based data collaboration method as claimed in any one of claims 1 to 4 wherein the number of the main chain is one and the number of the side chain is at least one.
6. The blockchain-based data collaboration method of claim 5 wherein the storing the transaction information over the backbone includes:
and storing the transaction information to a block corresponding to the identification of the first user node through the main chain.
7. The blockchain-based data collaboration method according to claim 6 wherein after storing the transaction information to the identified corresponding block of the first user node through the main chain, the method further comprises:
and obtaining the evaluation information of the first user node according to the data volume stored in the block corresponding to the identifier of the first user node.
8. A blockchain-based data collaboration apparatus configured on a blockchain platform, the blockchain platform including a main chain and side chains, the apparatus comprising:
a first obtaining module, configured to obtain, through the side chain, a service request initiated by a first user node, where the service request includes service data;
the first calling module is used for calling a first intelligent contract through the side chain, determining that the execution of the service request is completed according to the service data, and acquiring transaction information recorded in the execution process of the service request, wherein the transaction information comprises an identifier of the first user node;
the second calling module is used for calling a second intelligent contract through the side chain, determining that the transaction information is synchronized to the main chain, and then sending the transaction information to the main chain;
and the processing module is used for storing the transaction information through the main chain.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the method for coordinating data based on the blockchain according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the blockchain-based data collaboration method according to any one of claims 1 to 7.
CN202210173647.9A 2022-02-24 2022-02-24 Blockchain-based data collaboration method, device, device and storage medium Pending CN114581099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210173647.9A CN114581099A (en) 2022-02-24 2022-02-24 Blockchain-based data collaboration method, device, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210173647.9A CN114581099A (en) 2022-02-24 2022-02-24 Blockchain-based data collaboration method, device, device and storage medium

Publications (1)

Publication Number Publication Date
CN114581099A true CN114581099A (en) 2022-06-03

Family

ID=81770032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210173647.9A Pending CN114581099A (en) 2022-02-24 2022-02-24 Blockchain-based data collaboration method, device, device and storage medium

Country Status (1)

Country Link
CN (1) CN114581099A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016688A (en) * 2022-12-27 2023-04-25 中国银联股份有限公司 Information processing method, device, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112446785A (en) * 2020-11-06 2021-03-05 杭州趣链科技有限公司 Cross-chain transaction method, system, device, equipment and storage medium
CN113570479A (en) * 2021-08-03 2021-10-29 北京房江湖科技有限公司 Block chain transmission method, system and storage medium for house property transaction data
CN113781221A (en) * 2021-09-07 2021-12-10 中国电子科技集团公司第五十四研究所 Space data cross-network tracing method based on block chain cross-chain technology
CN113961977A (en) * 2021-12-22 2022-01-21 中国电子科技集团公司第二十八研究所 Non-centralized city information interaction system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112446785A (en) * 2020-11-06 2021-03-05 杭州趣链科技有限公司 Cross-chain transaction method, system, device, equipment and storage medium
CN113570479A (en) * 2021-08-03 2021-10-29 北京房江湖科技有限公司 Block chain transmission method, system and storage medium for house property transaction data
CN113781221A (en) * 2021-09-07 2021-12-10 中国电子科技集团公司第五十四研究所 Space data cross-network tracing method based on block chain cross-chain technology
CN113961977A (en) * 2021-12-22 2022-01-21 中国电子科技集团公司第二十八研究所 Non-centralized city information interaction system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016688A (en) * 2022-12-27 2023-04-25 中国银联股份有限公司 Information processing method, device, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
EP3859644B1 (en) Block chain-based data check system and method, computing device, and storage medium
CN110751475A (en) Cross-chain method, system, equipment and storage medium for blockchain transaction
TW202040447A (en) Credit recording and inquiring method and device based on block chain and electronic equipment
TW202022857A (en) Invoice creating method and device based on block chain and electronic device
CN113034274A (en) Supply chain financial service system and method based on block chain and terminal equipment
TW202008235A (en) Transaction method and system based on centralized settlement and block chain storage
TW202024984A (en) Data reading and writing method and device and electronic equipment
WO2021042849A1 (en) Cloud platform, service processing method, command interface and computer device
CN110517145B (en) Data transaction method based on multi-block chain and related equipment
CN110347593B (en) Flow testing method and device
CN112035542B (en) Information query method, device, electronic equipment and readable storage medium
WO2022166557A1 (en) Warehouse receipt processing method based on blockchain, and warehouse receipt processing system
CN113807960A (en) Cross-link processing method, device and system between heterogeneous chains and electronic equipment
WO2023045532A1 (en) Blockchain-based transaction processing
CN113112358A (en) Block chain-based decision method and device and electronic equipment
CN114581099A (en) Blockchain-based data collaboration method, device, device and storage medium
WO2023246187A1 (en) Management method for blockchain network, and related device
CN112181628B (en) Resource transfer method, device, system and electronic equipment
CN110689333B (en) Block chain automatic account checking method, device, system and storage medium
KR102042361B1 (en) Apparatus, system, method for blockchain linkage and signal relay
CN116737221A (en) Configuration governance method, device, computer equipment and storage medium
CN113076340B (en) Account data processing method and device, electronic equipment and storage medium
CN117952747A (en) Block chain-based equity voucher transaction method, device, equipment and readable medium
WO2019205023A1 (en) Blockchain-based data management method and related system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination