Data processing method and device, electronic equipment and storage medium

Through blockchain and cross-chain technology, the authenticity and accuracy of information are ensured in the economic status information statistics of objects, the problems of low statistical efficiency and difficulty in tampering in the existing technology are solved, and the effective protection of object rights and interests is achieved. .

CN119313331APending Publication Date: 2025-01-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310864327.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-13
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the prior art, the economic status information statistics of the object are inefficient and easy to tamper with, making it difficult to ensure the authenticity and accuracy of the information, resulting in the inability to protect the rights and interests of the object.

Method used

Using blockchain technology and cross-chain technology, by putting the initial transaction data on the blockchain, obtaining the transaction data to be verified, and verifying it by the second object, adding a digital signature to ensure the authenticity and accuracy of the data, and updating it Comprehensive statistics of objects.

Benefits of technology

It improves the efficiency of information statistics, ensures the authenticity and accuracy of economic status information, avoids data tampering, and realizes effective protection of object rights and interests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119313331A_ABST
    Figure CN119313331A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, in particular to a data processing method and device, electronic equipment and a storage medium, which are used for ensuring authenticity and accuracy of economic condition information of an object and improving information statistical efficiency. The method comprises the following steps: receiving initial transaction data sent by a first object, uploading the initial transaction data in a first block chain, obtaining to-be-verified transaction data, sending the to-be-verified transaction data to a second object, receiving transaction verification information returned by the second object, and associating a digital signature based on the transaction verification information, and when it is determined that the to-be-verified transaction data passes verification, the comprehensive statistical information of the first object is updated based on the to-be-verified transaction data. The comprehensive statistical information of the object is updated after the to-be-verified transaction data passes verification, so that the transaction data of the object can be prevented from being tampered, the economic condition information of the object is truthfully reflected through the comprehensive statistical information, the authenticity and accuracy of the economic condition information are ensured, and the information statistical efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] At present, the economic status information of the subject (such as income information, social security information, etc.) plays an important role in many fields. Government agencies and related units can provide various economic assistance to the subject based on the economic status information of the subject.

[0003] For example, an insurance company can determine the insurance claim amount based on the subject's income information when making an insurance claim.

[0004] For example, government agencies can determine a person’s pension benefits after retirement based on his or her social security information.

[0005] In the related technology, the economic status information of the objects in their respective jurisdictions is usually collected by grassroots personnel of local government agencies. However, collecting and verifying economic status information based on this method requires a lot of time, which is inefficient and prone to tampering with economic status information. It is difficult to ensure the authenticity and accuracy of economic status information, which in turn leads to the inability to protect the rights and interests of the objects.

[0006] Therefore, how to ensure the authenticity and accuracy of the subject's economic status information and improve the efficiency of information statistics has become a problem that needs to be solved urgently. Summary of the invention

[0007] The embodiments of the present application provide a data processing method, device, electronic device and storage medium to ensure the authenticity and accuracy of the economic status information of an object and improve the efficiency of information statistics.

[0008] The first data processing method provided in the embodiment of the present application is applied to the first blockchain, including:

[0009] Receiving initial transaction data sent by a first object, and uploading the initial transaction data to the first blockchain to obtain transaction data to be verified, wherein the initial transaction data includes object identification information of the first object, and the initial transaction data at least includes economic status information of the first object;

[0010] Sending the transaction data to be verified to the second object, and receiving transaction verification information returned by the second object, wherein the transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified;

[0011] When it is determined that the transaction data to be verified passes the verification based on the digital signature associated with the transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified.

[0012] The second data processing method provided in the embodiment of the present application is applied to the first blockchain, including:

[0013] receiving a data query request sent by a third object, the data query request including data identification information of target comprehensive statistical information queried by the third object, the target comprehensive statistical information being obtained based on at least one verified transaction data to be verified, the transaction data to be verified being obtained by uploading initial transaction data sent by the first object to the first blockchain, the initial transaction data including at least economic status information of the first object;

[0014] Based on the data identification information, obtaining the blockchain identification information of the target blockchain storing the target comprehensive statistical information;

[0015] Sending a first cross-chain query request including the blockchain identification information to a first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to a second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information;

[0016] Receive the target comprehensive statistical information returned by the first cross-chain gateway, and return the target comprehensive statistical information to the third object.

[0017] The third data processing method provided in the embodiment of the present application is applied to the first cross-chain gateway, including:

[0018] Receiving a first cross-chain query request sent by a first blockchain, wherein the first cross-chain query request includes blockchain identification information of a target blockchain storing target comprehensive statistical information, wherein the target comprehensive statistical information is requested by a third object from the first blockchain;

[0019] Sending a second cross-chain query request including the blockchain identification information to a second cross-chain gateway corresponding to the target blockchain;

[0020] receiving a cross-chain reply message including the target comprehensive statistical information returned by the second cross-chain gateway, wherein the target comprehensive statistical information is sent by the target blockchain to the second cross-chain gateway after the second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information;

[0021] Return a gateway reply message containing the target comprehensive statistical information to the first blockchain.

[0022] A data processing device provided in an embodiment of the present application is applied to a first blockchain, including:

[0023] a receiving unit, configured to receive initial transaction data sent by a first object, and upload the initial transaction data to the first blockchain to obtain transaction data to be verified, wherein the initial transaction data includes object identification information of the first object, and the initial transaction data at least includes economic status information of the first object;

[0024] a sending unit, configured to send the transaction data to be verified to the second object, and receive transaction verification information returned by the second object, wherein the transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified;

[0025] A determination unit is configured to update the comprehensive statistical information of the first object based on the transaction data to be verified when it is determined that the transaction data to be verified passes the verification based on the digital signature associated with the transaction verification information.

[0026] The second data processing device provided in the embodiment of the present application is applied to the first blockchain, including:

[0027] A first receiving unit is configured to receive a data query request sent by a third object, wherein the data query request includes data identification information of target comprehensive statistical information queried by the third object, wherein the target comprehensive statistical information is obtained based on at least one verified transaction data to be verified, wherein the transaction data to be verified is obtained by uploading initial transaction data sent by the first object to the first blockchain, and the initial transaction data includes at least economic status information of the first object;

[0028] An acquisition unit, configured to obtain, based on the data identification information, blockchain identification information of a target blockchain storing the target comprehensive statistical information;

[0029] A sending unit, configured to send a first cross-chain query request including the blockchain identification information to a first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to a second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information;

[0030] The second receiving unit is used to receive the target comprehensive statistical information returned by the first cross-chain gateway, and return the target comprehensive statistical information to the third object.

[0031] Optionally, the data query request further includes object identification information of the first object;

[0032] Then the device further comprises a determining unit, configured to:

[0033] When it is determined based on the data identification information that the first blockchain stores the target comprehensive statistical information, and when it is determined based on the object identification information that the third object has query authority for the target comprehensive statistical information, the target comprehensive statistical information is returned to the third object.

[0034] The third data processing device provided in the embodiment of the present application is applied to the first cross-chain gateway, including:

[0035] A first receiving unit is configured to receive a first cross-chain query request sent by a first blockchain, wherein the first cross-chain query request includes blockchain identification information of a target blockchain storing target comprehensive statistical information, and the target comprehensive statistical information is requested by a third object from the first blockchain;

[0036] A first sending unit, configured to send a second cross-chain query request including the blockchain identification information to a second cross-chain gateway corresponding to the target blockchain;

[0037] A second receiving unit is configured to receive a cross-chain reply message including the target comprehensive statistical information returned by the second cross-chain gateway, wherein the target comprehensive statistical information is sent by the target blockchain to the second cross-chain gateway after the second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information;

[0038] The second sending unit is used to return a gateway reply message including the target comprehensive statistical information to the first blockchain.

[0039] Optionally, the device further includes a requesting unit, configured to:

[0040] Receiving a blockchain joining request sent by the first blockchain;

[0041] Sending a new chain joining request to the core gateway, wherein the new chain joining request includes the digital certificate and Internet Protocol IP address of the first blockchain, so that the core gateway performs security verification on the first blockchain based on the digital certificate, and when the obtained verification result indicates that the verification is passed, sending a verification pass message to the first cross-chain gateway;

[0042] Receive the verification pass message returned by the core gateway, and add the IP address to the stored routing table.

[0043] Optionally, the target blockchain is a heterogeneous blockchain of the first blockchain;

[0044] Then the device further comprises a conversion unit, which is used for:

[0045] Based on a cross-chain protocol, format conversion is performed on the second cross-chain query request to obtain a standard cross-chain query request, wherein the cross-chain protocol is at least used to indicate: the type of data communicated between the first cross-chain gateway and the second cross-chain gateway;

[0046] The sending a second cross-chain query request including the blockchain identification information to the second cross-chain gateway corresponding to the target blockchain includes:

[0047] Send a standard cross-chain query request containing the blockchain identification information to the second cross-chain gateway corresponding to the target blockchain.

[0048] Optionally, the target blockchain is a heterogeneous blockchain of the first blockchain;

[0049] The device further comprises a packaging unit, which is used for:

[0050] Based on the communication protocol used by the first blockchain, the target comprehensive statistical information is encapsulated to obtain the gateway reply message.

[0051] Optionally, the request unit is specifically used for:

[0052] Based on the blockchain identification information of the first blockchain, obtaining the IP address of the first blockchain from the stored routing table;

[0053] Based on the IP address, the gateway reply message is returned to the first blockchain.

[0054] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned data processing methods.

[0055] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned data processing methods.

[0056] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned data processing methods.

[0057] The beneficial effects of this application are as follows:

[0058] The embodiments of the present application provide a data processing method, device, electronic device and storage medium. First, after the first blockchain receives the initial transaction data sent by the first object, it obtains the transaction data to be verified. Since the transaction data to be verified has been uploaded to the blockchain, it can prevent the transaction data to be verified from being tampered with and concealed, thereby ensuring the accuracy of the transaction data to be verified, and there is no need to spend a lot of time collecting the initial transaction data of the object one by one, thereby improving the efficiency of information collection. Furthermore, the transaction data to be verified is sent to the second object, and the transaction data to be verified is verified by the second object, thereby ensuring the authenticity of the transaction data to be verified. Finally, when it is determined that the transaction data to be verified has passed the verification based on the digital signature associated with the returned transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified, thereby ensuring the authenticity and accuracy of the comprehensive statistical information, and truthfully reflecting the economic status information of the first object. Based on the above method, there is no need to spend a lot of time on information collection and verification, thereby improving the efficiency of information statistics.

[0059] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0061] Figure 1 An optional schematic diagram of an application scenario in an embodiment of the present application;

[0062] Figure 2 An optional schematic diagram of a block structure provided in an embodiment of the present application;

[0063] Figure 3 This is a flowchart of the implementation of the first data processing method in the embodiment of the present application;

[0064] Figure 4 An interactive timing diagram of a data processing method in an embodiment of the present application;

[0065] Figure 5 A schematic diagram of a data processing system in an embodiment of the present application;

[0066] Fig. 6A This is a flowchart of the implementation of the second data processing method in the embodiment of the present application;

[0067] Figure 6BA schematic diagram of object query permissions of a data processing system in an embodiment of the present application;

[0068] Figure 7 A flowchart of the implementation of the third data processing method provided in the embodiment of the present application;

[0069] Figure 8 A schematic diagram of a request conversion method in an embodiment of the present application;

[0070] Fig. 9 A schematic diagram of a new chain registration method in an embodiment of the present application;

[0071] Fig.10 This is an interactive timing diagram of another data processing method in an embodiment of the present application;

[0072] Fig.11 A logical schematic diagram of a data processing method in an embodiment of the present application;

[0073] Fig.12 This is a schematic diagram of the structure of the first data processing device in the embodiment of the present application;

[0074] Fig.13 is a schematic structural diagram of a second data processing device in an embodiment of the present application;

[0075] Fig.14 Schematic diagram of the structure of the third data processing device in the embodiment of the present application;

[0076] Fig.15 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;

[0077] Fig.16 The present invention is a schematic diagram of the hardware structure of another electronic device to which the embodiments of the present application are applied. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0079] The following is an introduction to some concepts involved in the embodiments of the present application.

[0080] Blockchain: refers to a distributed ledger technology in the field of information technology, which is generally composed of consensus, transaction blocks and status data storage, cryptographic identity security, etc. Moreover, since the ledger is stored in a distributed manner and the blocks are agreed upon, it has the characteristics of being tamper-proof, traceable, and jointly maintained.

[0081] Cross-chain technology: is a technology that connects different blockchains. It can verify the continuity and certainty of blocks by synchronizing block headers, ensuring the authenticity and security of transactions. Cross-chain technology can help different blockchain networks communicate with each other and provide a better cross-chain transaction experience.

[0082] Among them, the cross-chain gateway is a technology used to connect different blockchains. It can synchronize the latest block headers of different blockchains and forward this information to other blockchain networks. The cross-chain gateway verifies the continuity and certainty of blocks by synchronizing block headers to ensure the authenticity and security of transactions.

[0083] Cross-chain technology is a very important blockchain technology, which can bring many advantages to the development and application of blockchain systems. Through cross-chain technology, users can conduct cross-chain transactions between different blockchain networks without worrying about high handling fees or insufficient liquidity. At the same time, cross-chain technology can also improve the efficiency and scalability of the entire blockchain system, bringing more opportunities and possibilities for the development and application of blockchain systems. In the embodiment of the present application, the first cross-chain gateway and the second cross-chain gateway assume the role of transmitting data between the first blockchain and the target blockchain.

[0084] Comprehensive statistical information: refers to the information obtained by statistics on the transaction data to be verified, which can reflect the economic status of the object over a period of time. Taking the transaction data to be verified as the income transaction of the object as an example, the comprehensive statistical information of the object can be the total income of the object in January.

[0085] Digital signature: is a technology used to verify the integrity and identity of digital information. Digital signatures usually consist of two parts: signature algorithm and verification algorithm. The signature algorithm is used to generate digital signatures, and the verification algorithm is used to verify the legitimacy and authenticity of digital signatures. Digital signature technology can verify the integrity and authenticity of digital files or messages without leaking private information, and can also be used for identity verification.

[0086] In blockchain technology, digital signatures can be used to verify the authenticity and legitimacy of transactions. Each transaction has a digital signature to verify that the transaction was initiated by a legitimate user. Digital signatures can also be used to verify the integrity and authenticity of data on the blockchain, because each block on the blockchain contains a digital signature to verify the authenticity and legitimacy of the block.

[0087] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0088] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network status monitoring, node equipment health status monitoring, etc.

[0089] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.

[0090] The following is a brief introduction to the design concept of the embodiment of the present application:

[0091] At present, the economic status information of the subject (such as income information, social security information, etc.) plays an important role in many fields. Government agencies and related units can provide various economic assistance to the subject based on the economic status information of the subject.

[0092] For example, an insurance company can determine the insurance claim amount based on the subject's income information when making an insurance claim.

[0093] For example, government agencies can determine a person’s pension benefits after retirement based on his or her social security information.

[0094] In the relevant technology, the grassroots personnel of local government agencies usually count the economic status information of the objects in their respective jurisdictions. However, based on this method of counting economic status information, it takes a lot of time to collect and verify information, which is inefficient and prone to tampering with economic status information. It is difficult to ensure the authenticity and accuracy of economic status information. The selection of beneficiaries is very subjective, and there are cases where data providers falsify data, so that people who really need assistance cannot benefit. For example, rural workers and self-employed workers may not be able to provide complete proof of income when making insurance claims, and can only use local wage standards for compensation. The data cannot reflect the actual income of these people, which leads to the inability to protect the rights and interests of the objects. In addition, local governments act independently and build independent systems. Data between systems is not connected, forming a data island problem.

[0095] Therefore, how to ensure the authenticity and accuracy of the subject's economic status information and improve the efficiency of information statistics has become a problem that needs to be solved urgently.

[0096] In view of this, the embodiments of the present application provide a data processing method, device, electronic device and storage medium. First, after the first blockchain receives the initial transaction data sent by the first object, it obtains the transaction data to be verified. Since the transaction data to be verified has been uploaded to the blockchain, it can prevent the transaction data to be verified from being tampered with and concealed, thereby ensuring the accuracy of the transaction data to be verified, and there is no need to spend a lot of time collecting the initial transaction data of the object one by one, thereby improving the efficiency of information collection. Furthermore, the transaction data to be verified is sent to the second object, and the transaction data to be verified is verified by the second object, thereby ensuring the authenticity of the transaction data to be verified. Finally, when it is determined that the transaction data to be verified has passed the verification based on the digital signature associated with the returned transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified, thereby ensuring the authenticity and accuracy of the comprehensive statistical information, and truthfully reflecting the economic status information of the first object. Based on the above method, there is no need to spend a lot of time on information collection and verification, thereby improving the efficiency of information statistics.

[0097] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0098] like Figure 1 As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes a first device 110 used by a first object, a second device 120 used by a second object, a third device 130 used by a third object, a first blockchain 140, a target blockchain 150, a first cross-chain gateway 160, and a second cross-chain gateway 170.

[0099] In the embodiment of the present application, the first device 110, the second device 120 and the third device 130 may be terminal devices, including but not limited to mobile phones, tablet computers, laptop computers, desktop computers, e-book readers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals and other devices; a data processing-related client may be installed on the terminal device, and the client may be software (such as a browser, data processing software, etc.), or a web page, a small program, etc.;

[0100] The first device 110, the second device 120 and the third device 130 may also be servers, which may be background servers corresponding to software or web pages, applets, etc., or servers specifically used for data processing, which are not specifically limited in this application. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0101] It should be noted that the first object and the third object may be the same object or different objects, that is, for the comprehensive statistical information of the first object, other objects may be set to be able to query its comprehensive statistical information.

[0102] In a possible implementation scenario, the first blockchain 140 includes: a bridge proxy contract, an application programming interface (API) handler, and a smart contract. Similarly, the structure of the target blockchain 150 is consistent with that of the first blockchain 140, and will not be repeated here.

[0103] The first cross-chain gateway 160 receives the first cross-chain query request sent by the first blockchain 140, and sends a second cross-chain query request to the second cross-chain gateway 170. After receiving the cross-chain reply message returned by the second cross-chain gateway 170, the gateway reply message is returned to the first blockchain 140.

[0104] It should be noted that Figure 1 The figure is only an example. In fact, the number of the first device 110, the second device 120, the third device 130, the blockchain and the cross-chain gateway is not limited, and is not specifically limited in the embodiments of the present application.

[0105] like Figure 2 As shown, it is an optional schematic diagram of the block structure (Block Structure) provided in the embodiment of the present application. Each block includes the hash value of the transaction record stored in this block (the hash value of this block) and the hash value of the previous block. Each block is connected by the hash value to form a blockchain. In addition, the block can also include information such as the timestamp when the block was generated.

[0106] It is understandable that in the specific implementation of this application, related data such as user transaction data is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0107] The following describes the data processing method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not limited in this regard.

[0108] like Figure 3 As shown, it is an implementation flow chart of the first data processing method provided in the embodiment of the present application. The specific implementation flow of the method includes the following steps S31-S33:

[0109] S31: The first blockchain receives the initial transaction data sent by the first object, and uploads the initial transaction data to the first blockchain to obtain the transaction data to be verified;

[0110] Specifically, a data processing client may be installed in the terminal device of the first object, which is used to send the initial transaction data to the first blockchain. The initial transaction data contains the object identification information of the first object. The object identification information can associate the initial transaction data with the first object and is used to identify all transaction data related to the first object. The object identification information can be a unique identifier of the object, such as the email address, telephone number, ID number, etc. of the first object. Based on the object identification information, all transaction data of the object can be found. For example, the object identification information of the initial transaction data 1 is "12345.@.com", and the object identification information of the initial transaction data 2 is "14625673839".

[0111] The initial transaction data at least includes the economic status information of the first object, such as income information and social security information. Taking the initial transaction data including income information as an example, the initial transaction data may be "income salary of 6,000 yuan on September 30, 2021", and taking the initial transaction data including social security information as an example, the initial transaction data may be "pension insurance of 1,000 yuan paid on September 15, 2021". The following mainly takes the economic status information as income information as an example for explanation.

[0112] After the initial transaction data is uploaded to the first blockchain, the blockchain technology is used to record and associate each transaction data, which can ensure the security and transparency of the transaction data and prevent the initial transaction data from being tampered with and concealed.

[0113] Furthermore, in order to ensure the reliability of transaction data, the transaction data to be verified needs to be sent to the second object for verification. For a transaction, the corresponding initial transaction data and the transaction data to be verified are substantially the same, and the transaction data to be verified is on the blockchain and is not easily tampered with.

[0114] S32: The first blockchain sends the transaction data to be verified to the second object, and receives the transaction verification information returned by the second object;

[0115] The transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified. The transaction data to be verified is submitted to the second object by the first blockchain for verification and approval. During this process, the second object adds a corresponding digital signature after the transaction data to be verified and generates transaction verification information. The digital signature contains the verification result of the transaction data to be verified by the second object. For example, transaction verification information 1 contains digital signature 1 and transaction data to be verified 1, and the verification result contained in digital signature 1 is verification passed.

[0116] The transaction data to be verified is verified through the second object to ensure the legality and compliance of the transaction data and to correctly reflect the economic status information of the object.

[0117] S33: When the first blockchain determines that the transaction data to be verified has passed the verification based on the digital signature associated with the transaction verification information, the first blockchain updates the comprehensive statistical information of the first object based on the transaction data to be verified.

[0118] Specifically, the first blockchain parses the digital signature, and when it determines that the information contained in the digital signature has passed the verification, the transaction data to be verified is added to the first blockchain, and the comprehensive statistical information of the first object is updated. The comprehensive statistical information can be the total income of the object in one month, the total income in one year, or the total provident fund payment in one year. For example, the first object has three verified transaction data to be verified in January, the first one is an income of 3,000 yuan, the second one is an income of 2,000 yuan, and the third one is an income of 4,000 yuan. The comprehensive statistical information of the first object in January is an income of 9,000 yuan.

[0119] For another example, the first object is user Xiao Wang, and in February there are 4 verified pending transaction data. The first transaction is an income of 6,000 yuan, the second transaction is an expenditure of 2,000 yuan, and the third transaction is an income of 4,000 yuan. Xiao Wang's comprehensive statistical information in February is an income of 8,000 yuan.

[0120] After the first blockchain determines that the transaction data to be verified has passed the verification, taking the economic status information as the user's income information as an example, the transaction data to be verified includes income transaction data and expenditure transaction data. Each income and expenditure transaction data is recorded in the system, and each transaction data is associated with the corresponding user (first object). Each transaction is linked to the user's identity document (ID) (i.e., object identification information), and the date, amount, source and category of each transaction, as well as the transaction status and verification status are recorded. The verification status refers to whether the income has been verified by a trusted third party (such as a government agency or employer), i.e., the second object.

[0121] Additionally, a second party will approve each incoming transaction and add a digital signature, indicating that it has been verified and approved. This will provide an additional layer of security and trust to the system.

[0122] Based on the above method, blockchain technology is used to record and manage every important income transaction to ensure the security and transparency of the transaction, which is confirmed by the counterparty. At the same time, all transactions are verified and approved by organizations authorized by local governments to ensure the reliability of transactions, and digital signatures are used to ensure the authenticity of transactions.

[0123] The structure of each transaction data in the first blockchain is as follows:

[0124]

[0125] After the data to be verified is verified, when the comprehensive statistical information of the first object is updated based on the transaction data to be verified, the smart contract will count the user's income and expenditure on a monthly basis and store the final income in the following data structure.

[0126]

[0127] like Figure 4 , which is an interactive sequence diagram of a data processing method in an embodiment of the present application, is used to illustrate the process of adding initial transaction data to the first blockchain, including the following steps:

[0128] S401: The first object sends initial transaction data to the first blockchain;

[0129] S402: The first blockchain uploads the initial transaction data to the chain to obtain the transaction data to be verified;

[0130] S403: The first blockchain sends the transaction data to be verified to the second object;

[0131] S404: The second object verifies the transaction data to be verified, and based on the verification result, adds a corresponding digital signature to the transaction data to be verified to obtain transaction verification information;

[0132] S405: The second object sends the transaction verification information to the first blockchain;

[0133] S406: When the first blockchain determines that the verification is passed based on the transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified.

[0134] In an embodiment of the present application, first, after the first blockchain receives the initial transaction data sent by the first object, it obtains the transaction data to be verified. Since the transaction data to be verified has been uploaded to the blockchain, it can prevent the transaction data to be verified from being tampered with and concealed, thereby ensuring the accuracy of the transaction data to be verified, and there is no need to spend a lot of time collecting the initial transaction data of the object one by one, thereby improving the efficiency of information collection. Furthermore, the transaction data to be verified is sent to the second object, and the transaction data to be verified is verified by the second object, thereby ensuring the authenticity of the transaction data to be verified. Finally, when it is determined that the transaction data to be verified has passed the verification based on the digital signature associated with the returned transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified, thereby ensuring the authenticity and accuracy of the comprehensive statistical information, and truthfully reflecting the economic status information of the first object. Based on the above method, there is no need to spend a lot of time on information collection and verification, thereby improving the efficiency of information statistics.

[0135] The above specifically describes the implementation process of importing the transaction data of the first object on the first blockchain. In actual applications, if there are a large number of first objects that need to import transaction data, there will be performance problems in establishing an overall blockchain system with a huge number of users, and data collection and authorized personnel allocation are also difficult to implement. In order to solve these problems, local governments or government-authorized public welfare organizations can separately build local blockchains. These blockchains can be isomorphic or heterogeneous. The local blockchains are connected together through a cross-chain gateway to achieve data interconnection. The cross-chain gateway implements a cross-chain routing protocol, which can identify the gateway of the target chain according to the blockchain ID in the request, and route the request to the target chain through the gateway. After the target chain completes the information processing, it returns the result to the data requester in the original way.

[0136] like Figure 5 As shown, it is a schematic diagram of a data processing system in an embodiment of the present application. The blockchain in A, the blockchain in B, and the blockchain in C are directly connected to the cross-chain gateway 1, and the blockchain in D, the blockchain in E, and the blockchain in F are directly connected to the cross-chain gateway 2. Users in different regions send transaction data to the corresponding blockchain. For example, the user in A sends the transaction data to the blockchain in A. When the user in A wants to query the data stored in the blockchain in D, it is necessary to exchange data through the cross-chain gateway 1 and the cross-chain gateway 2. The data processing system can also generate relevant reports and statistical information by analyzing the flow data to provide reference for the decision-making of government departments. These reports and statistical information can help government departments have a more comprehensive understanding of the income of the people, so as to better formulate relevant policies and measures.

[0137] The second data processing method in an embodiment of the present application is introduced below. After the comprehensive statistical information is updated based on the transaction data to be verified, the comprehensive statistical information can also be queried in the first blockchain.

[0138] like Fig. 6A As shown, it is an implementation flow chart of the second data processing method provided in the embodiment of the present application. The specific implementation flow of the method includes the following steps S61-S64:

[0139] S61: The first blockchain receives a data query request sent by a third object;

[0140] Among them, the third object and the first object can be the same object or different objects. The data query request includes data identification information of the target comprehensive statistical information queried by the third object. The data identification information can be a unique identifier of the target comprehensive statistical information, which is used to find the target comprehensive statistical information from multiple comprehensive statistical information. The data identification information can include the object identification information of the object to which the target comprehensive statistical information belongs and the time period to which it belongs. For example, comprehensive statistical information 1 of user Xiaobai is the income in January, comprehensive statistical information 2 is the income in February, and comprehensive statistical information 3 is the income in March. The data identification information is "Xiaobai; February", then the target comprehensive statistical information is comprehensive statistical information 2.

[0141] The process of obtaining the target comprehensive statistical information is similar to the above-mentioned embodiment and will not be described in detail here.

[0142] S62: The first blockchain obtains the blockchain identification information of the target blockchain storing the target comprehensive statistical information based on the data identification information;

[0143] Specifically, the storage location of the target comprehensive statistical information is queried based on the data identification information, and the blockchain identification information is used to identify the target blockchain. For example, the data identification information is "Xiaobai; income in February", and the target blockchain is queried based on the data identification information as blockchain 1, and the blockchain identification information is "Blockchain 1".

[0144] For another example, the data identification information is "User 2; income in 2021". Based on the data identification information, the target blockchain is queried as blockchain 10, and the blockchain identification information is "202110".

[0145] Optionally, the target comprehensive statistical information can also be stored on the first blockchain. When it is determined that the first blockchain stores the target comprehensive statistical information based on the data identification information, and when it is determined that the third object has the query permission for the target comprehensive statistical information based on the object identification information, the target comprehensive statistical information is returned to the third object.

[0146] Specifically, if the target comprehensive statistical information is found to be stored on the first blockchain, the first blockchain further verifies whether the third object has query authority. If so, the blockchain will return the data, otherwise the data query request will be rejected.

[0147] like Figure 6BAs shown, it is a schematic diagram of the object query authority of the data processing system in the embodiment of the present application. In the data processing system, some objects (object 4) have data operation authority. For example, the government department is the main operator of the system and is responsible for recording, reviewing and managing the information of the income certificate. Some objects (objects 1-3) have data query authority. For example, individuals, lawyers and other participants such as courts can obtain relevant information by querying the income flow. These participants do not have the operation authority of the system and can only query and use relevant information, thereby ensuring the security and privacy of the data. Some objects (object 5) are responsible for reviewing the income, for example, the government authorized organization. The system can also generate relevant reports and statistical information through intelligent contract analysis of flow data to provide reference for the decision-making of government departments.

[0148] S63: The first blockchain sends a first cross-chain query request including blockchain identification information to the first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to the second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information;

[0149] Specifically, the first blockchain sends a cross-chain query request to the first cross-chain gateway. The first cross-chain gateway searches for the corresponding second cross-chain gateway based on the blockchain identification information and sends a cross-chain query request to the second cross-chain gateway. For example, the blockchain identification information contained in the first cross-chain query request sent by blockchain 1 to cross-chain gateway 1 is blockchain 3. Cross-chain gateway 1 queries blockchain 3 corresponding to cross-chain gateway 2. Then cross-chain gateway 1 sends a second cross-chain query request to cross-chain gateway 2, requesting to obtain data in blockchain 3.

[0150] S64: The first blockchain receives the target comprehensive statistical information returned by the first cross-chain gateway, and returns the target comprehensive statistical information to the third object.

[0151] Based on the above method, when the first blockchain does not store the target comprehensive statistical information, the target comprehensive statistical information is requested from the target blockchain. When the first blockchain stores the target comprehensive statistical information, there is no need to request the target blockchain. When it is determined that the third object has query authority, it is directly returned to the third object, which can ensure the security of information and avoid information leakage. In addition, by using cross-chain technology, the data island problem can be solved and data processing efficiency can be improved.

[0152] The third data processing method in the embodiment of the present application is introduced below. After the first cross-chain gateway receives the first cross-chain query request, the target comprehensive statistical information is obtained through the following process.

[0153] like Figure 7As shown, it is an implementation flow chart of the third data processing method provided in the embodiment of the present application. The specific implementation flow of the method includes the following steps S71-S74:

[0154] S71: The first cross-chain gateway receives a first cross-chain query request sent by the first blockchain;

[0155] S72: The first cross-chain gateway sends a second cross-chain query request including blockchain identification information to the second cross-chain gateway corresponding to the target blockchain;

[0156] Since the first blockchain and the target blockchain may be isomorphic or heterogeneous, if the target blockchain is an isomorphic blockchain of the first blockchain, no format conversion is required. If the target blockchain is a heterogeneous blockchain of the first blockchain, the first cross-chain gateway converts the format of the second cross-chain query request based on the cross-chain protocol before sending the second cross-chain request to obtain a standard cross-chain query request. The first cross-chain gateway sends a standard cross-chain query request containing blockchain identification information to the second cross-chain gateway corresponding to the target blockchain.

[0157] Among them, the cross-chain protocol is at least used to indicate the type of data communicated between the first cross-chain gateway and the second cross-chain gateway. The protocol also specifies the standard interface that the gateway needs to implement. For example, the first blockchain and the first cross-chain gateway use communication protocol 1 for communication, and the second cross-chain gateway and the target blockchain use communication protocol 2 for communication. After the first cross-chain gateway receives the first cross-chain query request, it converts the first cross-chain query request into a protocol standard request. The second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information. When the target blockchain determines that the third object has query authority based on the object identification information of the third object, it sends the target comprehensive statistical information to the second cross-chain gateway. If the third object does not have query authority, the target blockchain will reject the request. After receiving the target comprehensive statistical information, the second cross-chain gateway returns the target comprehensive statistical information to the first cross-chain gateway.

[0158] S73: The first cross-chain gateway receives a cross-chain reply message including target comprehensive statistical information returned by the second cross-chain gateway;

[0159] S74: The first cross-chain gateway returns a gateway reply message containing the target comprehensive statistical information to the first blockchain.

[0160] Specifically, if the target blockchain is a homogeneous blockchain of the first blockchain, the first cross-chain gateway does not need to perform protocol conversion. If the target blockchain is a heterogeneous blockchain of the first blockchain, the first cross-chain encapsulates the target comprehensive statistical information based on the communication protocol used by the first blockchain, and obtains a gateway reply message, so that after the first blockchain receives the gateway reply message, it returns the target comprehensive statistical information to the third object.

[0161] In an embodiment of the present application, first, after the first blockchain receives the initial transaction data sent by the first object, it obtains the transaction data to be verified. Since the transaction data to be verified has been uploaded to the blockchain, it can prevent the transaction data to be verified from being tampered with and concealed, thereby ensuring the accuracy of the transaction data to be verified, and there is no need to spend a lot of time collecting the initial transaction data of the object one by one, thereby improving the efficiency of information collection. Furthermore, the transaction data to be verified is sent to the second object, and the transaction data to be verified is verified by the second object, thereby ensuring the authenticity of the transaction data to be verified. Finally, when it is determined that the transaction data to be verified has passed the verification based on the digital signature associated with the returned transaction verification information, the comprehensive statistical information of the first object is updated based on the transaction data to be verified, thereby ensuring the authenticity and accuracy of the comprehensive statistical information, and truthfully reflecting the economic status information of the first object. Based on the above method, there is no need to spend a lot of time on information collection and verification, thereby improving the efficiency of information statistics, and using cross-chain technology to solve blockchain performance problems, thereby improving data utilization efficiency and avoiding data island problems.

[0162] like Figure 8 As shown, it is a schematic diagram of a request conversion method in an embodiment of the present application. The blockchain in place A and the blockchain in place E are heterogeneous. User 1 sends a data query request to the blockchain in place A. The blockchain in place A sends a first cross-chain query request to the cross-chain gateway in place A. The cross-chain gateway in place A converts the first cross-chain query request into a standard cross-chain query request and sends it to the cross-chain gateway in place E. The cross-chain gateway in place E converts the standard cross-chain query request into a data acquisition request in the communication protocol format used by the blockchain in place E. The blockchain in place E returns the target comprehensive statistical information to the cross-chain gateway in place E. The cross-chain gateway in place E encapsulates the target comprehensive statistical information into a protocol standard return result and sends it to the cross-chain gateway in place A. The cross-chain gateway in place A encapsulates the target comprehensive statistical information into a gateway reply message and sends it to the blockchain in place A. The blockchain in place A sends the target comprehensive statistical information to user 1.

[0163] Optionally, the following steps may be performed before step S71:

[0164] S701: Receive a blockchain joining request sent by a first blockchain;

[0165] S702: Send a new chain joining request to the core gateway, where the new chain joining request includes the digital certificate and Internet Protocol IP address of the first blockchain, so that the core gateway performs security verification on the first blockchain based on the digital certificate, and sends a verification pass message to the first cross-chain gateway when the obtained verification result indicates that the verification is passed;

[0166] S703: Receive the verification success message returned by the core gateway, and add the IP address to the stored routing table.

[0167] Specifically, before the first blockchain sends a request to the cross-chain gateway, it needs to establish a connection with the first cross-chain gateway. The first blockchain sends a blockchain joining request to the first cross-chain gateway. The first cross-chain gateway sends a new chain joining request to the core gateway. The new chain joining request also includes the gateway IP address, port, first blockchain ID and other information of the first cross-chain gateway, and is signed with the private key corresponding to the digital certificate. There can be one or more core gateways in the data query system. After the core gateway receives the new chain joining request, it verifies the validity of the digital certificate based on the root certificate corresponding to the digital certificate. If the certificate is valid, the signature is correct, and the new chain joining request information is complete, the new chain joining request will be successfully processed. The core gateway saves the newly added gateway information in the routing table, where the routing table key (key) is the blockchain ID, and the value (value) is the IP address, port, and public key, and returns the routing table to the first cross-chain gateway. The first cross-chain gateway will also update the locally stored routing table so that the first blockchain can be found based on the blockchain identification information later.

[0168] Optionally, step S74 may be implemented as follows:

[0169] Based on the blockchain identification information of the first blockchain, the IP address of the first blockchain is obtained from the stored routing table; based on the IP address, the gateway reply message is returned to the first blockchain.

[0170] Specifically, in the routing table, the IP address of the first blockchain is associated with the blockchain identification information. For example, the blockchain identification information is "blockchain a", the IP address of the first blockchain is "111.223.334", and the first cross-chain gateway sends the gateway reply message to the first blockchain according to the IP address.

[0171] Based on the above method, the problems existing in the traditional income proof method are solved, including the difficulty of obtaining evidence, easy tampering, inconsistent data sources used by various departments and policies, etc. By collecting user income information in advance and reducing the motivation of user data falsification when the data has multiple uses, by using blockchain technology and cross-chain technology, efficient, safe and reliable income proof can be achieved, and the availability and utilization efficiency of data can be improved.

[0172] like Fig. 9As shown, it is a schematic diagram of a new chain registration method in an embodiment of the present application, which is used to show the new chain registration process, wherein the B blockchain establishes a connection with the B cross-chain gateway, and the B cross-chain gateway needs to apply for a certificate from the certificate center and initiate a registration request (new chain joining request) to the core gateway. The registration request contains the cross-chain gateway IP address, port, certificate, blockchain ID and other information, and is signed with the private key corresponding to the certificate. After the core gateway receives the registration request, it will verify the signature, obtain the root certificate from the certificate center, and verify the validity of the certificate based on the root certificate. If the certificate is valid, the signature is correct, and the registration request information is complete, the registration request will be successfully processed. The core gateway saves the newly added gateway information in the routing table, where the routing table key (key) is the blockchain ID, the value (value) is the IP address, port, and public key, and returns the routing table to the newly registered gateway (B cross-chain gateway). The newly registered gateway will also update the local routing table so that the gateway of the target chain can be found according to the ID of the target chain later.

[0173] like Fig.10 As shown, it is an interactive sequence diagram of another data processing method in an embodiment of the present application, which is used to illustrate the process of the third object requesting data from the first blockchain. The specific implementation process of the method is as follows:

[0174] S1001: The third object sends a data query request to the first blockchain;

[0175] S1002: The first blockchain obtains blockchain identification information of the target blockchain based on the data identification information;

[0176] S1003: The first blockchain sends a first cross-chain query request to the first cross-chain gateway;

[0177] S1004: The first cross-chain gateway sends a second cross-chain query request to the second cross-chain gateway;

[0178] S1005: The second cross-chain gateway sends a data acquisition request to the target blockchain;

[0179] S1006: When the target blockchain determines that the third object has data query authority, the target comprehensive statistical information is sent to the second cross-chain gateway;

[0180] S1007: The second cross-chain gateway sends a cross-chain reply message containing the target comprehensive statistical information to the first cross-chain gateway;

[0181] S1008: The first cross-chain gateway sends a gateway reply message containing the target comprehensive statistical information to the first blockchain;

[0182] S1009: The first blockchain sends the target comprehensive statistical information to the third object.

[0183] like Fig.11 As shown, it is a logical schematic diagram of a data processing method in an embodiment of the present application. User 2 (first object) sends initial transaction data to blockchain 1 (first blockchain). After blockchain 1 uploads the initial transaction data to the chain, it obtains transaction data to be verified, and sends the transaction data to be verified to the authorized organization (second object) for verification. After passing the verification, blockchain 1 updates the comprehensive statistical information of user 2 based on the transaction data to be verified; user 3 sends a data query request to blockchain 2, and blockchain 2 sends a cross-chain query request to cross-chain gateway 1. Cross-chain gateway 1 obtains the comprehensive statistical information of user 2 from blockchain 1 through cross-chain gateway 2, and returns the comprehensive statistical information of user 2 to blockchain 1. Blockchain 1 sends the comprehensive statistical information of user 2 to user 3.

[0184] In the embodiment of the present application, blockchain and blockchain cross-chain technology are used to achieve an efficient, safe and reliable income proof solution. Blockchain technology is used to ensure the security, authenticity and integrity of user data, while ensuring that the process is open and transparent to protect user privacy. In addition, the use of cross-chain technology can solve the problem of data islands and enable various departments to use a unified data source. At the same time, it also solves the problem of insufficient system performance.

[0185] Based on the same inventive concept, the present application embodiment also provides a first data processing device. Fig.12 As shown, it is a schematic diagram of the structure of the data processing device 1200, which may include:

[0186] The receiving unit 1201 is used to receive initial transaction data sent by the first object, and upload the initial transaction data to the first blockchain to obtain transaction data to be verified, wherein the initial transaction data includes object identification information of the first object, and the initial transaction data at least includes economic status information of the first object;

[0187] The sending unit 1202 is used to send the transaction data to be verified to the second object, and receive the transaction verification information returned by the second object, wherein the transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified;

[0188] The determining unit 1203 is configured to update the comprehensive statistical information of the first object based on the transaction data to be verified when determining that the transaction data to be verified passes the verification based on the digital signature associated with the transaction verification information.

[0189] The present application embodiment also provides a second data processing device. Fig.13 As shown, it is a schematic diagram of the structure of the data processing device 1300, which may include:

[0190] The first receiving unit 1301 is configured to receive a data query request sent by a third object, where the data query request includes data identification information of target comprehensive statistical information queried by the third object, where the target comprehensive statistical information is obtained based on at least one verified transaction data to be verified, where the transaction data to be verified is initial transaction data sent by the first object, which is obtained by uploading the initial transaction data to the first blockchain, and the initial transaction data includes at least economic status information of the first object;

[0191] An acquisition unit 1302 is used to obtain blockchain identification information of a target blockchain storing target comprehensive statistical information based on the data identification information;

[0192] The sending unit 1303 is used to send a first cross-chain query request including blockchain identification information to the first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to the second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information;

[0193] The second receiving unit 1304 is used to receive the target comprehensive statistical information returned by the first cross-chain gateway, and return the target comprehensive statistical information to the third object.

[0194] Optionally, the data query request further includes object identification information of the first object;

[0195] The device further includes a determining unit 1305, configured to:

[0196] When it is determined based on the data identification information that the first blockchain stores the target comprehensive statistical information, and when it is determined based on the object identification information that the third object has query authority for the target comprehensive statistical information, the target comprehensive statistical information is returned to the third object.

[0197] The present application embodiment also provides a third data processing device. Fig.14 As shown, it is a schematic diagram of the structure of the data processing device 1400, which may include:

[0198] The first receiving unit 1401 is used to receive a first cross-chain query request sent by the first blockchain, where the first cross-chain query request includes blockchain identification information of a target blockchain storing target comprehensive statistical information, where the target comprehensive statistical information is obtained by a third object requesting the first blockchain;

[0199] The first sending unit 1402 is used to send a second cross-chain query request including blockchain identification information to a second cross-chain gateway corresponding to the target blockchain;

[0200] The second receiving unit 1403 is used to receive a cross-chain reply message containing target comprehensive statistical information returned by the second cross-chain gateway, where the target comprehensive statistical information is sent by the target blockchain to the second cross-chain gateway after the second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information;

[0201] The second sending unit 1404 is used to return the gateway reply message including the target comprehensive statistical information to the first blockchain.

[0202] Optionally, the device further includes a request unit 1405, configured to:

[0203] Receiving a blockchain joining request sent by the first blockchain;

[0204] Send a new chain joining request to the core gateway, the new chain joining request includes the digital certificate and Internet Protocol IP address of the first blockchain, so that the core gateway verifies the security of the first blockchain based on the digital certificate, and sends a verification pass message to the first cross-chain gateway when the obtained verification result indicates that the verification is passed;

[0205] Receive the verification pass message returned by the core gateway and add the IP address to the stored routing table.

[0206] Optionally, the target blockchain is a heterogeneous blockchain of the first blockchain;

[0207] The device further includes a conversion unit 1406, configured to:

[0208] Based on the cross-chain protocol, the second cross-chain query request is formatted to obtain a standard cross-chain query request, where the cross-chain protocol is at least used to indicate: the type of data communicated between the first cross-chain gateway and the second cross-chain gateway;

[0209] Sending a second cross-chain query request containing blockchain identification information to the second cross-chain gateway corresponding to the target blockchain includes:

[0210] Send a standard cross-chain query request containing blockchain identification information to the second cross-chain gateway corresponding to the target blockchain.

[0211] Optionally, the target blockchain is a heterogeneous blockchain of the first blockchain;

[0212] The device further includes a packaging unit 1407, which is used to:

[0213] Based on the communication protocol used by the first blockchain, the target comprehensive statistical information is encapsulated to obtain a gateway reply message.

[0214] Optionally, the request unit 1405 is specifically configured to:

[0215] Based on the blockchain identification information of the first blockchain, obtain the IP address of the first blockchain from the stored routing table;

[0216] Based on the IP address, the gateway reply message is returned to the first blockchain.

[0217] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0218] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0219] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as follows: Fig.15 As shown, it includes a memory 1501 , a communication module 1503 and one or more processors 1502 .

[0220] The memory 1501 is used to store computer programs executed by the processor 1502. The memory 1501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0221] The memory 1501 may be a volatile memory, such as a random-access memory (RAM); the memory 1501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1501 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1501 may be a combination of the above memories.

[0222] The processor 1502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1502 is used to implement the above data processing method when calling the computer program stored in the memory 1501 .

[0223] The communication module 1503 is used to communicate with terminal devices and other servers.

[0224] The specific connection medium between the memory 1501, the communication module 1503 and the processor 1502 is not limited in the embodiment of the present application. Fig.15 In the embodiment, the memory 1501 and the processor 1502 are connected via a bus 1504. The bus 1504 is connected to the processor 1502 via a bus 1504. Fig.15 The connections between the other components are described with bold lines, which are only for illustration and are not intended to be limiting. The bus 1504 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.15 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or one type of bus.

[0225] The memory 1501 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the data processing method of the embodiment of the present application. The processor 1502 is used to execute the above data processing method, such as Figure 3 shown.

[0226] In another embodiment, the electronic device may also be other electronic devices, such as terminal devices. In this embodiment, the structure of the electronic device may be as follows: Fig.16 As shown, it includes: a communication component 1610, a memory 1620, a display unit 1630, a camera 1640, a sensor 1650, an audio circuit 1660, a Bluetooth module 1670, a processor 1680 and other components.

[0227] The communication component 1610 is used to communicate with the server. In some embodiments, a circuit wireless fidelity (Wireless Fidelity, WiFi) module may be included. The WiFi module belongs to a short-range wireless transmission technology. The electronic device can help the user to send and receive information through the WiFi module.

[0228] The memory 1620 can be used to store software programs and data. The processor 1680 executes various functions and data processing of the terminal device by running the software programs or data stored in the memory 1620. The memory 1620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 1620 stores an operating system that enables the terminal device to run. In the present application, the memory 1620 can store an operating system and various application programs, and can also store a computer program for executing the data processing method of the embodiment of the present application.

[0229] The display unit 1630 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device. Specifically, the display unit 1630 may include a display screen 1632 disposed on the front of the terminal device. The display screen 1632 may be configured in the form of a liquid crystal display, a light emitting diode, etc. The display unit 1630 may be used to display the data processing user interface in the embodiment of the present application, etc.

[0230] The display unit 1630 can also be used to receive input digital or character information and generate signal input related to user settings and function control of the terminal device. Specifically, the display unit 1630 may include a touch screen 1631 arranged on the front of the terminal device, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.

[0231] The touch screen 1631 can be covered on the display screen 1632, or the touch screen 1631 and the display screen 1632 can be integrated to realize the input and output functions of the terminal device, and the integration can be referred to as a touch display screen. In this application, the display unit 1630 can display the application and the corresponding operation steps.

[0232] The camera 1640 can be used to capture still images, and users can post comments on the images taken by the camera 1640 through the application. The camera 1640 can be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the processor 1680 to convert it into a digital image signal.

[0233] The terminal device may further include at least one sensor 1650, such as an acceleration sensor 1651, a distance sensor 1652, a fingerprint sensor 1653, and a temperature sensor 1654. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0234] The audio circuit 1660, the speaker 1661, and the microphone 1662 can provide an audio interface between the user and the terminal device. The audio circuit 1660 can transmit the electrical signal converted from the received audio data to the speaker 1661, which is converted into a sound signal for output. The terminal device can also be equipped with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1660 and converted into audio data, and then the audio data is output to the communication component 1610 to be sent to, for example, another terminal device, or the audio data is output to the memory 1620 for further processing.

[0235] The Bluetooth module 1670 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1670 to exchange data.

[0236] The processor 1680 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal device and processes data by running or executing software programs stored in the memory 1620 and calling data stored in the memory 1620. In some embodiments, the processor 1680 may include one or more processing units; the processor 1680 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 1680. In the present application, the processor 1680 can run an operating system, an application program, a user interface display and a touch response, as well as a data processing method of an embodiment of the present application. In addition, the processor 1680 is coupled to the display unit 1630.

[0237] In some possible implementations, various aspects of the data processing method provided in the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the data processing method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 3 Follow the steps shown in .

[0238] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0239] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, apparatus, or device.

[0240] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0241] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0242] Computer programs for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The computer program may be executed entirely on the user electronic device, partially on the user device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In the case of a remote electronic device, the remote electronic device may be connected to the user electronic device via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external electronic device (e.g., via the Internet using an Internet service provider).

[0243] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0244] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0245] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain a computer-usable computer program.

[0246] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program commands. These computer program commands can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0247] These computer program commands may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer readable memory produce an article of manufacture comprising a command device, the command device implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0248] These computer program commands can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the commands executed on the computer or other programmable device provide the instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0249] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0250] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data processing method, characterized in that: Applied to the first blockchain, the method comprises: Receiving initial transaction data sent by a first object, and uploading the initial transaction data to the first blockchain to obtain transaction data to be verified, wherein the initial transaction data includes object identification information of the first object, and the initial transaction data at least includes economic status information of the first object; Sending the transaction data to be verified to the second object, and receiving transaction verification information returned by the second object, wherein the transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified; When it is determined based on the digital signature associated with the transaction verification information that the transaction data to be verified passes the verification, the comprehensive statistical information of the first object is updated based on the transaction data to be verified.

2. A data processing method, characterized in that: Applied to the first blockchain, the method comprises: receiving a data query request sent by a third object, the data query request including data identification information of target comprehensive statistical information queried by the third object, the target comprehensive statistical information being obtained based on at least one verified transaction data to be verified, the transaction data to be verified being obtained by uploading initial transaction data sent by the first object to the first blockchain, the initial transaction data including at least economic status information of the first object; Based on the data identification information, obtaining the blockchain identification information of the target blockchain storing the target comprehensive statistical information; Sending a first cross-chain query request including the blockchain identification information to a first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to a second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information; Receive the target comprehensive statistical information returned by the first cross-chain gateway, and return the target comprehensive statistical information to the third object.

3. The method according to claim 2, characterized in that The data query request also includes object identification information of the first object; The method further comprises: When it is determined based on the data identification information that the first blockchain stores the target comprehensive statistical information, and when it is determined based on the object identification information that the third object has query authority for the target comprehensive statistical information, the target comprehensive statistical information is returned to the third object.

4. A data processing method, characterized in that: Applied to the first cross-chain gateway, the method includes: Receiving a first cross-chain query request sent by a first blockchain, wherein the first cross-chain query request includes blockchain identification information of a target blockchain storing target comprehensive statistical information, wherein the target comprehensive statistical information is requested by a third object from the first blockchain; Sending a second cross-chain query request including the blockchain identification information to a second cross-chain gateway corresponding to the target blockchain; receiving a cross-chain reply message including the target comprehensive statistical information returned by the second cross-chain gateway, wherein the target comprehensive statistical information is sent by the target blockchain to the second cross-chain gateway after the second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information; Return a gateway reply message containing the target comprehensive statistical information to the first blockchain.

5. The method according to claim 4, characterized in that Before receiving the first cross-chain query request sent by the first blockchain, the method further includes: Receiving a blockchain joining request sent by the first blockchain; Sending a new chain joining request to the core gateway, wherein the new chain joining request includes the digital certificate and Internet Protocol IP address of the first blockchain, so that the core gateway performs security verification on the first blockchain based on the digital certificate, and when the obtained verification result indicates that the verification is passed, sending a verification pass message to the first cross-chain gateway; Receive the verification pass message returned by the core gateway, and add the IP address to the stored routing table.

6. The method according to claim 4, characterized in that The target blockchain is a heterogeneous blockchain of the first blockchain; The method further comprises: Based on a cross-chain protocol, format conversion is performed on the second cross-chain query request to obtain a standard cross-chain query request, wherein the cross-chain protocol is at least used to indicate: the type of data communicated between the first cross-chain gateway and the second cross-chain gateway; The sending a second cross-chain query request including the blockchain identification information to the second cross-chain gateway corresponding to the target blockchain includes: Send a standard cross-chain query request containing the blockchain identification information to the second cross-chain gateway corresponding to the target blockchain.

7. The method according to claim 4, characterized in that The target blockchain is a heterogeneous blockchain of the first blockchain; The method further comprises: Based on the communication protocol used by the first blockchain, the target comprehensive statistical information is encapsulated to obtain the gateway reply message.

8. The method according to claim 5, characterized in that The step of returning a gateway reply message including the target comprehensive statistical information to the first blockchain includes: Based on the blockchain identification information of the first blockchain, obtaining the IP address of the first blockchain from the stored routing table; Based on the IP address, the gateway reply message is returned to the first blockchain.

9. A data processing device, characterized in that: Applied to the first blockchain, including: a receiving unit, configured to receive initial transaction data sent by a first object, and upload the initial transaction data to the first blockchain to obtain transaction data to be verified, wherein the initial transaction data includes object identification information of the first object, and the initial transaction data at least includes economic status information of the first object; a sending unit, configured to send the transaction data to be verified to the second object, and receive transaction verification information returned by the second object, wherein the transaction verification information is obtained by adding a corresponding digital signature to the transaction data to be verified based on the verification result after the second object verifies the transaction data to be verified; A determination unit is configured to update the comprehensive statistical information of the first object based on the transaction data to be verified when it is determined that the transaction data to be verified passes the verification based on the digital signature associated with the transaction verification information.

10. A data processing device, characterized in that: Applied to the first blockchain, including: A first receiving unit is configured to receive a data query request sent by a third object, wherein the data query request includes data identification information of target comprehensive statistical information queried by the third object, wherein the target comprehensive statistical information is obtained based on at least one verified transaction data to be verified, wherein the transaction data to be verified is obtained by uploading initial transaction data sent by the first object to the first blockchain, and the initial transaction data includes at least economic status information of the first object; An acquisition unit, configured to obtain, based on the data identification information, blockchain identification information of a target blockchain storing the target comprehensive statistical information; A sending unit, configured to send a first cross-chain query request including the blockchain identification information to a first cross-chain gateway corresponding to the first blockchain, so that the first cross-chain gateway sends a second cross-chain query request to a second cross-chain gateway corresponding to the target blockchain based on the blockchain identification information, and receives the returned target comprehensive statistical information; The second receiving unit is used to receive the target comprehensive statistical information returned by the first cross-chain gateway, and return the target comprehensive statistical information to the third object.

11. A data processing device, characterized in that: Applied to the first cross-chain gateway, including: A first receiving unit is configured to receive a first cross-chain query request sent by a first blockchain, wherein the first cross-chain query request includes blockchain identification information of a target blockchain storing target comprehensive statistical information, and the target comprehensive statistical information is requested by a third object from the first blockchain; A first sending unit, configured to send a second cross-chain query request including the blockchain identification information to a second cross-chain gateway corresponding to the target blockchain; A second receiving unit is configured to receive a cross-chain reply message including the target comprehensive statistical information returned by the second cross-chain gateway, wherein the target comprehensive statistical information is sent by the target blockchain to the second cross-chain gateway after the second cross-chain gateway sends a data acquisition request to the target blockchain based on the blockchain identification information; The second sending unit is used to return a gateway reply message including the target comprehensive statistical information to the first blockchain.

12. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 8.

13. A computer-readable storage medium, characterized in that: It comprises a computer program. When the computer program is run on an electronic device, the computer program is used to make the electronic device execute the steps of any one of the methods of claims 1 to 8.

14. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the steps of any one of the methods described in claims 1 to 8.