CN114581099A - Data collaboration method, device, equipment and storage medium based on block chain - Google Patents

Data collaboration method, device, equipment and storage medium based on block chain 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
service request
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

Data collaboration method, device, equipment and storage medium based on block chain
Technical Field
The present application relates to the field of blockchains, and in particular, to a method, an apparatus, a device, and a storage medium for data coordination based on blockchains.
Background
At present, capital supervision of nationalized enterprises is carried out by self-filling of information of the nationalized enterprises, information full-flow tracing cannot be realized, information is possibly subjectively beautified, and authenticity of the information is difficult to verify. Moreover, information acquisition needs to be input by managers of state-owned enterprises, and the acquisition efficiency and the accuracy are low. Hierarchical information filling and information processing are required among multi-level supervision mechanisms, the more levels are, the more the corresponding information amount gradually declines, the information instantaneity is difficult to guarantee, and the lower the efficiency is.
Disclosure of Invention
The application provides a data collaboration method, a data collaboration device, data collaboration equipment and a data collaboration storage medium based on a block chain, and aims to solve the problem that transaction information cannot be traced.
In a first aspect, an embodiment of the present application provides a data coordination method based on a blockchain, which is applied to a blockchain platform, where the blockchain platform includes a main chain and a side chain, and the method includes:
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.
Optionally, after storing the transaction information via the main chain, 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.
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 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.
Optionally, before storing the transaction information via the backbone, the method further comprises:
and calling a third intelligent contract through the main chain to determine 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, the storing the transaction information via the main chain includes:
and storing the transaction information to a block corresponding to the identification of the first user node through the main chain.
Optionally, after storing the transaction information to the block corresponding to the identifier of the first user node through the main chain, the method further includes:
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.
In a second aspect, an embodiment of the present application provides a data collaboration apparatus based on a blockchain, configured on a blockchain platform, where the blockchain platform includes a main chain and a side chain, and the apparatus includes:
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.
In a third aspect, an embodiment of the present application provides an electronic device, including: 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, and implement the data coordination method based on the blockchain according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for data coordination based on a blockchain according to the first aspect is implemented.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the method provided by the embodiment of the application is applied to a block chain platform, the block chain platform comprises a main chain and a side chain, a service request initiated by a first user node is obtained through the side chain, wherein the service request comprises service data, a first intelligent contract is called through the side chain, the execution completion of the service request is determined according to the service data, and transaction information recorded in the execution process of the service request is obtained, wherein the transaction information comprises an identifier of the first user node, a second intelligent contract is called through the side chain, the transaction information is sent to the main chain after the transaction information is determined to be synchronized to the main chain, and the transaction information is stored through the main chain. According to the method, the business request execution process of the first user node is carried out on the side chain of the block chain platform, the transaction information can be stored on the side chain of the block chain platform, the transaction information is sent to the main chain through the side chain, the transaction information is stored through the main chain, the authenticity of the transaction information stored in the main chain can be ensured by utilizing the traceability and the non-tamper property of the block chain, and the problem that the transaction information cannot be traced is solved.
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 drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a method for data collaboration based on a block chain in an embodiment of the present application;
FIG. 2 is a block chain platform according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a method for sending transaction information to a backbone according to an embodiment of the present application;
FIG. 4 is a block chain system according to an embodiment of the present application;
FIG. 5 is a block chain-based data collaboration method flow diagram according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a data coordination apparatus based on a block chain in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the present application, a block chain-based data collaboration method is provided, which is applied to a block chain platform, where the block chain platform includes a main chain and a side chain, as shown in fig. 1, a block chain-based data collaboration method flow mainly includes:
step 101, a service request initiated by a first user node is obtained through a side chain, wherein the service request includes service data.
The first user node is a supervised node, for example, the first user node is a nationally owned enterprise a.
The service request may be a request for funds transfer, a request for investment, a request for debt, etc. that involve the flow of funds. In the embodiment of the present application, the service request is a fund transfer request, but the service request is not limited to only the fund transfer request.
When the business request is a fund transfer request, the business data may include the identification of the two transaction parties in the blockchain platform and the account addresses of the two transaction parties in the bank.
The side chain can be directly connected with an application system where each supervised node is located, the service request is directly called from the application system, manual filling is not relied on, the application system is synchronous, the synchronous content and time are both uplink, the filling efficiency is high, the accuracy is guaranteed, and the information source can be traced.
And 102, 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.
The first intelligent contract can be a fund transfer confirmation intelligent contract, and whether the transaction is completed or not and whether the balance of the bank accounts of both parties of the transaction is correct or not are calculated through each node on the side chain. If the node exceeding 2/3 agrees that the transaction is completed and the balance of the bank accounts of the two parties of the transaction is correct, the service request execution is determined to be completed. And if the transaction is not completed or the balance of the bank accounts of the two transaction parties is wrong, feeding back transaction failure information and transaction failure reasons to the first user node.
The transaction information may include the identification of the two parties in the blockchain platform, the account addresses of the two parties in the bank, the transaction completion time, the amount of the transaction, and the like.
And 103, 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.
The second intelligent contract can be a service data synchronous intelligent contract, and the address of the main chain is determined by calculating and confirming the transaction result and the submission state through each node on the side chain. If the node beyond 2/3 agrees to synchronize the transaction information to the backbone, then it is determined to synchronize the transaction information to the backbone.
In one 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.
The side chain 12 is connected to a first end of the first inter-link gateway 14, a second end of the first inter-link gateway 14 is connected to a first end of the relay link 13, a second end of the relay link 13 is connected to a first end of the second inter-link gateway 15, and a second end of the second inter-link gateway 15 is connected to the main chain 11.
The communication between the main chain and the side chain is completed in a chain-crossing mode, and under the condition that account authority is guaranteed, the partitions are stored, and data isolation can be achieved between different chains.
In one embodiment, as shown in fig. 3, sending transaction information to the backbone includes:
step 301, the transaction information is sent to the relay link through the first inter-link gateway through the side chain.
Step 302, after determining that the sender of the transaction information is in the blockchain platform through the relay chain, sending the transaction information to the first cross-link gateway through the relay chain.
The relay chain determines that the sender of the transaction information is in the blockchain platform, and can determine that the source of the transaction information is credible.
If the sender of the transaction information is determined not to be in the block chain platform through the relay chain, the transaction is considered as an illegal transaction, the transaction processing result is rolled back, and a 'destination chain can not be reached, please perform routing orientation again', wherein the destination chain is a main chain.
Step 303, the transaction information is sent to the second cross-link gateway through the first cross-link gateway.
And searching by the first cross-link gateway according to the address of the main chain, and after the main chain is found, sending the transaction information to a second cross-link gateway connected with the main chain.
Step 304, the transaction information is sent to the main chain through the second cross-link gateway.
Before the transaction information is sent to the main chain through the second cross-link gateway, whether the transaction passes the endorsement of the side chain is confirmed through the second cross-link gateway, and if the transaction passes the endorsement of the side chain is confirmed through the second cross-link gateway, the transaction information is sent to the main chain through the second cross-link gateway.
Step 104, storing the transaction information through the main chain.
In one embodiment, before storing the transaction information through the main chain, the data collaboration method based on the blockchain further includes: and calling a third intelligent contract through the main chain to determine that the transaction information is correct.
The third intelligent contract can be a transaction verification intelligent contract, and whether the transaction information of the transaction is correct or not is calculated through each node on the main chain. The transfer rechecking contract may be performed again by connecting the high-level banks. And if the transaction information is determined to be correct, storing the transaction information through the main chain to realize cross-chain synchronization of the transaction information.
In one embodiment, after the transaction information is stored through the main chain, the data collaboration method based on the blockchain further includes: acquiring a transaction information query request initiated by a second user node through a main chain, wherein the transaction information query request comprises an identifier of a 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.
The second user node is a supervisory node.
The second user node can obtain the transaction information corresponding to the identifier of the first user node from the main chain through the identifier of the first user node. And monitoring the transaction information of the first user node.
In one embodiment, the number of main chains is one and the number of side chains is at least one.
Each side chain serves a different business application, e.g., a first side chain connects to a high-fund dynamic monitoring system, a second side chain connects to a supervisory accountability system, a third side chain connects to an investment management system, and a fourth side chain connects to a liability management system.
The main chain serves each supervision node and is used for acquiring transaction information to supervise.
In one embodiment, as shown in FIG. 4, a block chain system is shown. The blockchain system comprises 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 side chains 12. The number of the main chain 11 is one and the number of the side chain 12 is at least one. Only 3 side chains 12 are illustrated in fig. 4, and the number of side chains 12 may be 1, 2, 4, or more, as desired, and the present application does not limit the number of side chains 12. The first user node 2 is connected with the side chain 12, the side chain 12 is connected with the main chain 11, and the main chain 11 is connected with the second user node 3.
In one embodiment, storing transaction information via the backbone includes: and storing the transaction information to a block corresponding to the identification of the first user node through the main chain.
On the main chain, the transaction information can be stored to the block corresponding to the identifier of each first user node according to the identifier of each first user node, so that the transaction information in the whole transaction process is guaranteed to be stored in the block chain platform, the query of the transaction information corresponding to the identifier of each first user node is facilitated, the transaction information is guaranteed not to be tampered, and the transaction information can be traced.
In an embodiment, after the transaction information is stored to the block corresponding to the identifier of the first user node through the main chain, the data collaboration method based on the block chain further includes: 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.
The data sharing problem can be solved through the communication of the main chain and the side chain, but a corresponding complete incentive mechanism is lacked, so as to promote the uplink work of the service request and the transaction information of each supervised node. 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, and adding an incentive mechanism. For example, when the data volume stored in the block corresponding to the identifier of the first user node increases, it indicates that the first user node executes the service request through the block chain platform, and stores the transaction information into the main chain, which is convenient for supervision, and sets the evaluation information of the first user node to be a higher score. If the data volume stored in the block corresponding to the identifier of the first user node is small, it indicates that the first user node rarely executes the service request through the block chain platform, which is inconvenient for supervision, and the evaluation information of the first user node is set to be a low score.
In one embodiment, a data collaboration method based on a blockchain is provided, and is applied to a blockchain platform, where the blockchain platform includes a main chain, a side chain, a relay chain, a first inter-chain gateway, and a second inter-chain gateway, where the side chain is connected to a first end of the first inter-chain gateway, a second end of the first inter-chain gateway is connected to a first end of the relay chain, a second end of the relay chain is connected to a first end of the second inter-chain gateway, and a second end of the second inter-chain gateway is connected to the main chain. As shown in fig. 5, the method flow of data collaboration based on blockchains includes:
step 501, a fund transfer and payment request initiated by a first user node is acquired through a side chain.
The fund transfer request comprises the identification of the two transaction parties in the blockchain platform and the account addresses of the two transaction parties in the bank.
Step 502, the intelligent contract is confirmed by invoking the fund transfer through the side chain.
Step 503, calculating whether the transaction is completed and whether the balance of the bank account of the two parties of the transaction is correct through each node on the side chain. If yes, the node exceeding 2/3 agrees that the transaction is completed, the balance of the bank accounts of the two parties of the transaction is correct, go to step 504, otherwise, go to step 505.
Step 504, determine whether the service needs to be synchronized to the main chain through the side chain, if yes, execute step 506, otherwise, end the process.
And 505, feeding back the transaction failure information and the transaction failure reason to the first user node through the side chain.
Step 506, the service data synchronization intelligent contract is called through the side chain.
And step 507, calculating and confirming whether the transaction result and the address of the main chain are correct through each node on the side chain. If so, the nodes beyond 2/3 agree to synchronize the transaction information to the backbone, go to step 508, otherwise go to step 505.
And step 508, sending the transaction information to the relay link through the first cross-link gateway through the side chain.
In step 509, it is determined whether the transaction is trusted and whether the sender of the transaction information is in the blockchain platform through the relay chain. If so, go to step 510, otherwise, go to step 511.
Step 510, the transaction information is sent to the first cross-link gateway through the relay link.
Step 511, the transaction is determined to be an illegal transaction, and the transaction processing result is rolled back.
And step 512, searching through the first cross-link gateway according to the address of the main chain, and after the main chain is found, sending the transaction information to a second cross-link gateway connected with the main chain.
And 513, confirming whether the transaction passes the endorsement of the side chain through the second cross-link gateway, if so, executing step 514, otherwise, executing step 511.
Step 514, the transaction information is sent to the main chain through the second cross-link gateway.
And step 515, calling a transaction verification intelligent contract through the main chain to calculate the transaction, and executing the transfer rechecking contract again through connecting a high-level bank.
Step 516, determining whether the transaction information is correct through the main chain, if so, executing step 517, otherwise, executing step 511.
And 517, realizing cross-chain synchronization of the transaction information.
To sum up, the method provided by the embodiment of the application is applied to a block chain platform, the block chain platform includes a main chain and a side chain, and a service request initiated by a first user node is acquired through the side chain, wherein the service request includes service data, a first intelligent contract is called through the side chain, the execution completion of the service request is determined according to the service data, and transaction information recorded in the execution process of the service request is acquired, wherein the transaction information includes an identifier of the first user node, a second intelligent contract is called through the side chain, the transaction information is sent to the main chain after the transaction information is synchronized to the main chain, and the transaction information is stored through the main chain. According to the method, the business request execution process of the first user node is carried out on the side chain of the block chain platform, the transaction information can be stored on the side chain of the block chain platform, the transaction information is sent to the main chain through the side chain, the transaction information is stored through the main chain, the authenticity of the transaction information stored in the main chain can be ensured by utilizing the traceability and the non-tamper property of the block chain, and the problem that the transaction information cannot be traced is solved.
In the data cooperation process, the intelligent contract is executed for multiple times, the transaction information is verified in multiple ways, and the authenticity of the transaction information is guaranteed.
Based on the same concept, an embodiment of the present application provides a data coordination apparatus based on a block chain, where the apparatus is configured on a block chain platform, and the block chain platform includes a main chain and a side chain, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 6, the apparatus mainly includes:
a first obtaining module 601, configured to obtain, through the side chain, a service request initiated by a first user node, where the service request includes service data;
a first calling module 602, configured to call a first intelligent contract through the side chain, determine that the service request is executed according to the service data, and obtain transaction information recorded in the service request execution process, where the transaction information includes an identifier of the first user node;
the second calling module 603 is configured to call a second intelligent contract through the side chain, determine that the transaction information is synchronized to the main chain, and send the transaction information to the main chain;
a processing module 604 for storing the transaction information via the main chain.
Based on the same concept, an embodiment of the present application further 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 via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement 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 via the backbone.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program, which, when run on a computer, causes the computer to execute the block chain-based data coordination method described in the above embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). 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, a data center, etc., that includes one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice 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 applied to 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 disclosed 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 Data collaboration method, device, equipment and storage medium based on block chain Pending CN114581099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210173647.9A CN114581099A (en) 2022-02-24 2022-02-24 Data collaboration method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210173647.9A CN114581099A (en) 2022-02-24 2022-02-24 Data collaboration method, device, equipment and storage medium based on block chain

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 Data collaboration method, device, equipment and storage medium based on block chain

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

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
KR102263985B1 (en) Method and system for providing validated, auditable, and immutable inputs to a smart contract
CN111667267B (en) Block chain transaction risk identification method and device
CN110363665B (en) Credit right data processing method, device, equipment and medium
CN111382164B (en) Service processing method based on block chain network
CN110347593B (en) Flow testing method and device
CN111010282B (en) Block chain-based information processing method, related device and storage medium
WO2021204044A1 (en) Correction of blockchain data
CN112381651A (en) Block chain cross-chain transaction method and device based on Internet of things
CN114581099A (en) Data collaboration method, device, equipment and storage medium based on block chain
CN110009497B (en) Block chain-based decision method and device and electronic equipment
CN107277108B (en) Method, device and system for processing messages at nodes of block chain
CN110336872B (en) Method, device and system for acquiring third-party data
CN111382062B (en) Joint debugging test method and device for real estate transaction system and external institution business system
CN114491662A (en) Block chain-based data asset auditing method, system and equipment
CN111355757A (en) Cross-chain communication method and device for block chain in supply chain field
CN114170006A (en) Information data acquisition method, device, equipment and medium based on state machine
US20240029158A1 (en) Method for real-time data communication, electronic device, and system
CN112507395A (en) Information verification method, system, device, server and medium
CN111461647B (en) Business collaboration processing method and system based on block chain
CN112600874B (en) Node joining method and device, electronic equipment and readable storage medium
CN110956551B (en) Revenue distribution method and related equipment
CN114693438B (en) Service processing method, device, electronic equipment and readable storage medium
CN117076546B (en) Data processing method, terminal device and computer readable storage medium
KR102475662B1 (en) Method and system for managing point using blockchain based on distributed ledger
CN114781003B (en) Data verification and data updating method and 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