CN111324666A - Data processing method and device based on block chain - Google Patents

Data processing method and device based on block chain Download PDF

Info

Publication number
CN111324666A
CN111324666A CN202010093146.0A CN202010093146A CN111324666A CN 111324666 A CN111324666 A CN 111324666A CN 202010093146 A CN202010093146 A CN 202010093146A CN 111324666 A CN111324666 A CN 111324666A
Authority
CN
China
Prior art keywords
event
information
asset associated
node
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010093146.0A
Other languages
Chinese (zh)
Other versions
CN111324666B (en
Inventor
张懿方
卢洋
戴传兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010093146.0A priority Critical patent/CN111324666B/en
Publication of CN111324666A publication Critical patent/CN111324666A/en
Application granted granted Critical
Publication of CN111324666B publication Critical patent/CN111324666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Storage Device Security (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application discloses a data processing method and a device based on a block chain, wherein the method comprises the following steps: and receiving an information verification request sent by a first user, and if the information verification request is determined to be a legal request, sending the information verification request to the common identification nodes in the block chain system so that each common identification node determines a first verification result of the asset associated event according to the information verification request. Receiving first checking results sent by the common identification nodes, determining common identification results of the asset associated events according to the received first checking results, adding an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated events to a block chain when determining that the common identification of the asset associated events is achieved, and sending information verification confirmation passing information to the first user. By adopting the embodiment of the application, the authenticity and the non-tamper property of the user information can be improved.

Description

Data processing method and device based on block chain
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a data processing method and apparatus based on a block chain.
Background
In recent years, with the rapid development and popularization of the internet, online business transaction has gradually become a trend. Although the network brings great convenience to the life of people, a lot of potential safety hazards are left due to the complexity of the network environment. For example, when performing online business transaction, there may be situations that a lawbreaker impersonates a user to apply for business transaction, or the lawbreaker maliciously attacks or falsifies stored user data, or the user itself may provide false information to perform business transaction. Therefore, how to determine the authenticity of the user information and improve the non-tamper-ability of the user information passing the audit becomes one of the problems to be solved at present.
Disclosure of Invention
The embodiment of the application provides a data processing method and device based on a block chain, which can improve the authenticity and the non-tamper property of user information.
In a first aspect, an embodiment of the present application provides a data processing method based on a block chain, where the method includes:
the method comprises the steps that an information verification request sent by a first user is received by a verification node, the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises asset associated events and event types of the asset associated events;
the check node verifies the validity of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to common identification nodes in a blockchain system, so that each common identification node in the blockchain system determines a first event hash according to an asset associated event included in the information check request, acquires a corresponding second event hash from a blockchain according to an event type of the asset associated event and a user identity included in the asset associated event, and determines a first check result of the asset associated event according to the first event hash and the second event hash, wherein the second event hash is added to the blockchain by a service node corresponding to the event type of the asset associated event;
the check node receives first check results sent by all common identification nodes in the block chain system, determines common identification results of the asset associated events according to the received first check results, adds an asset associated event storage block comprising a first user identity corresponding to the first user and the asset associated events to the block chain when determining that the common identification of the asset associated events is achieved, and sends information check confirmation passing information to the first user.
In a second aspect, an embodiment of the present application provides a data processing apparatus based on a block chain, where the apparatus includes:
a request receiving module, configured to receive an information verification request sent by a first user, where the information verification request carries first signature information of the information verification request by the first user, and the information verification request includes an asset associated event and an event type of the asset associated event;
a data verification module, configured to verify validity of the information verification request according to the first signature information, send the information verification request to a common node in a blockchain system if it is determined that the information verification request is a valid request, so that each common node in the blockchain system determines a first event hash according to an asset association event included in the information verification request, and obtains a corresponding second event hash from the blockchain according to an event type of the asset association event and a user identity included in the asset association event, and determines a first verification result for the asset association event according to the first event hash and the second event hash, where the second event hash is added to the blockchain by a service node corresponding to the event type of the asset association event;
and the data processing module is used for receiving first verification results sent by all the consensus nodes in the block chain system, determining the consensus result of the asset associated event according to the received first verification results, adding an asset associated event storage block comprising a first user identity corresponding to the first user and the asset associated event to the block chain when determining that the consensus is achieved on the asset associated event, and sending information verification confirmation passing information to the first user.
With reference to the second aspect, in a possible implementation manner, the data verification module includes a first processing unit and a second processing unit, and the first processing unit includes:
a public key obtaining subunit, configured to obtain a first user public key corresponding to the first user from a public key storage block;
the signature decryption subunit is used for decrypting the first signature information based on the first user public key to obtain a first information verification request hash value;
and the request verification subunit is used for performing hash operation on the information verification request to obtain a second information verification request hash value, and if the first information verification request hash value is the same as the second information verification request hash value, determining that the information verification request is a legal request.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes a data processing module, where the data processing module includes:
a request receiving unit, configured to receive an asset settlement request sent by the first user, where the asset settlement request includes a total asset of the first user, the asset-related event storage block identifier, and the first user identity identifier;
a block determining unit, configured to obtain the asset associated event storage block from the block chain according to the asset associated event storage block identifier;
a data obtaining unit, configured to obtain the asset associated event from the asset associated event storage block according to the first user identity;
and the data execution unit is used for determining the assets to be paid of the first user according to the total assets and the asset associated events and sending the collection information comprising the assets to be paid to the first user.
With reference to the second aspect, in a possible implementation manner, the information verification request includes the first subscriber identity and a home location identifier of the first subscriber; the consensus node is specifically configured to:
if the common identification node determines that the user identity included in the asset associated event is the same as the first user identity, determining that a first verification result of the asset associated event is a verification pass when the first event hash is the same as the second event hash;
if the common identification node determines that the user identity included in the asset associated event is different from the first user identity, a household data storage block generated by a public security bureau node is obtained, household information corresponding to the household identity is obtained from the household data storage block according to the household identity, and if the household information includes the user identity and the hash of the first event is the same as the hash of the second event, a first verification result of the asset associated event is determined to be passed.
With reference to the second aspect, in a possible implementation manner, the common node is further configured to:
the common identification node acquires an information storage block generated by the service node from the block chain according to the event type;
the common node acquires a node public key corresponding to the service node from the public key storage block;
and if the information storage block is successfully decrypted based on the node public key, acquiring a corresponding second event hash from the decrypted information storage block according to the user identity.
With reference to the second aspect, in a possible implementation manner, the asset-related event includes a child education event, the event type of the child education event is an education type, and the service node corresponding to the education type is an education bureau node;
the asset associated event comprises a continuous education event, the event type of the continuous education event is the education type, and the service node corresponding to the education type is the education bureau node;
the asset associated event comprises a major illness medical event, the event type of the major illness medical event is a medical type, and the service node corresponding to the medical type is a social security node;
the property associated event comprises a housing loan interest event, the event type of the housing loan interest event is a housing purchasing type, and the service node corresponding to the housing purchasing type is a real estate registration center node;
the asset associated event comprises a house rent event, the event type of the house rent event is a house rent type, and the service node corresponding to the house rent type is a building and construction node;
the asset correlation event comprises an dependents aged person event, the event type of the dependents aged person event is an aged-care type, and the service node corresponding to the aged-care type is a public security bureau node.
With reference to the second aspect, in a possible implementation manner, the data processing module includes a data consensus unit and a verification result feedback unit, where the data consensus unit is specifically configured to:
and if the ratio of passing the verification in the received first verification result returned by each consensus node is not less than the preset passing ratio, determining that each consensus node agrees with the asset associated event.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor and a memory, and the processor and the memory are connected to each other. The memory is configured to store a computer program that supports the terminal device to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In the embodiment of the application, the verification node receives the information verification request sent by the first user, so that the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises an asset associated event and an event type of the asset associated event. The check node verifies the legality of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system determines a first event hash according to the asset associated event included in the information check request, a corresponding second event hash is obtained from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, a first check result for the asset associated event is determined according to the first event hash and the second event hash, and the second event hash is added to the blockchain through a service node corresponding to the event type of the asset associated event. The check node receives first check results sent by all the consensus nodes in the block chain system, can determine the consensus result of the asset associated event according to the received first check results, adds an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated event to the block chain when determining that the consensus is achieved on the asset associated event, and sends information check confirmation passing information to the first user. By adopting the embodiment of the application, the authenticity and the non-tamper property of the user information can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a data processing method based on a blockchain according to an embodiment of the present application;
fig. 2a is a schematic diagram of a process of verifying first signature information according to an embodiment of the present application;
fig. 2b is a schematic diagram of an application scenario of data processing based on a block chain according to an embodiment of the present application;
fig. 3 is another schematic flowchart of a data processing method based on a blockchain according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a block chain system according to an embodiment of the present disclosure. As shown in fig. 1, the blockchain system refers to a system for sharing data between blockchain nodes and blockchain nodes. Among them, various types of blockchain nodes may be included in the blockchain system, for example, a check node 1, a check node 2, a check node 3, a police station node, an educational station node, etc., as shown in fig. 1. For convenience of description, the verification node, the police station node, the education station node, etc. may be referred to simply as nodes, where each node has a connection relationship with other nodes. It is to be understood that any node in the blockchain system may be any form of computing device, such as a server, a terminal, etc., without limitation. It should be understood that the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and the like, and is not limited thereto. Each node may receive input information during normal operation and maintain shared data within the blockchain system based on the received input information. Wherein, the consensus process is controlled by the pre-selected nodes (i.e. the consensus nodes). In order to ensure the information intercommunication in the blockchain system, information connection can exist between each node in the blockchain system, and the nodes can transmit information through the information connection. For example, when any blockchain node in the blockchain system receives input information, other blockchain nodes in the blockchain system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored in all blockchain nodes in the blockchain system are consistent. It should be understood that the entire blockchain system is commonly maintained by the nodes, and the consensus node may be a node predetermined from a plurality of nodes included in the blockchain system based on the consensus mechanism of the blockchain system, for example, the consensus node may be the check node 1, the check node 2, and the check node 3 as shown in fig. 1.
Each block chain node in the block chain system has a corresponding block chain link point identifier, and each block chain link point in the block chain system can store block chain link point identifiers of other block chain nodes in the block chain system, so that the generated block is broadcasted to other block chain nodes in the block chain system according to the block chain link point identifiers of other block chain nodes. Each block chain node can maintain a block chain link point identification list as shown in the following table, and the block chain node name and the block chain link point identification are correspondingly stored in the block chain link point identification list. The block link node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the block link node, and table 1 only illustrates the IP address as an example.
Block chain node name Block chain link point identification
Block chain node 1 117.114.151.174
Block chain node 2 117.116.189.145
Block chain node N 119.123.789.258
TABLE 1
The data processing method based on the block chain provided by the embodiment of the application can be widely applied to the block chain system. Specifically, the verification node receives an information verification request sent by a first user, and obtains that the information verification request carries first signature information of the first user on the information verification request, and the information verification request includes an asset associated event and an event type of the asset associated event. The check node verifies the legality of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system determines a first event hash according to the asset associated event included in the information check request, acquires a corresponding second event hash from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, and determines a first check result of the asset associated event according to the first event hash and the second event hash. Here, the second event hash is added to the blockchain by the service node corresponding to the event type of the asset associated event. The check node receives first check results sent by all the consensus nodes in the block chain system, can determine the consensus result of the asset associated event according to the received first check results, adds an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated event to the block chain when determining that the consensus is achieved on the asset associated event, and sends information check confirmation passing information to the first user. By adopting the embodiment of the application, the authenticity and the non-tamper property of the user information can be improved, and the applicability is high.
The method and the related apparatus provided by the embodiments of the present application will be described in detail with reference to fig. 2 to 6, respectively. The method provided by the embodiment of the application can comprise data processing stages, wherein the data processing stages are used for receiving an information verification request sent by a first user, determining the legality of the information verification request, determining the legality of an asset associated event in the information verification request, determining a consensus result based on the verification result of each consensus node in a blockchain system on the asset associated event, uplink the asset associated event according to the consensus result, and sending information verification passing information to the first user. The implementation of each data processing stage can be referred to the following implementation shown in fig. 2 to 3.
Example one
Referring to fig. 2, fig. 2 is a flow chart of a data processing method based on a block chain according to an embodiment of the present disclosure. The method provided by the embodiment of the application can comprise the following steps S201 to S203:
s201, receiving an information verification request sent by a first user.
In some feasible embodiments, the verification node receives an information verification request sent/submitted by a first user through a user terminal, and obtains first signature information of the information verification request carried by the information verification request, and contents of an asset association event, an event type of the asset association event, a first user identity corresponding to the first user, a home subscriber identity of the first user, and the like included in the information verification request. The first user id corresponding to the first user may be an identity document number of the first user (e.g., a resident identity document number, a document number on a passport, etc.). It should be understood that one user identity may be used to uniquely label one user. Here, the check node may be a node corresponding to an organization responsible for service handling, and the information check request may be a request for applying service handling sent by the user based on the user terminal. Here, the service transaction may be a house-buying service transaction, a tax deduction service transaction, a loan service transaction, etc., and is not limited herein.
S202, the validity of the information verification request is verified according to the first signature information, and if the information verification request is determined to be a legal request, the information verification request is sent to the common identification node in the block chain system.
In some possible implementations, the verification node may verify the validity of the received information verification request based on the first signature information. It is understood that the first signature information carried by the information verification request is signature information generated by the first user encrypting the content of the information verification request. For example, the first user may encrypt the content included in the information verification request based on a first user private key to generate first signature information, and send the information verification request and the first signature information after splicing to the verification node. When the verification node obtains the information verification request carrying the first signature information, a first user public key corresponding to the first user can be obtained from a public key storage block of the block chain based on a first user identity corresponding to the first user, and then the first signature information is decrypted based on the first user public key, so that a hash value of the first information verification request can be obtained. Furthermore, the verification node executes hash operation on the content in the information verification request based on the hash algorithm to obtain a second information verification request hash value. It should be appreciated that by comparing the first information verification request hash value with the second information verification request hash value, it can be determined whether the user identity of the first user sending the information verification request is a legitimate identity. That is, by verifying the validity of the identity of the user who sent the information verification request, it is possible to determine the validity of the sent information verification request, i.e., whether someone pretends that the first user sent the information verification request. Here, if the first information verification request hash value is the same as the second information verification request hash value, it is determined that the information verification request is a legitimate request. On the contrary, if the hash value of the first information verification request is different from the hash value of the second information verification request, the information verification request can be determined to be an illegal request, namely, a person pretends to be the first user to send the information verification request, so the information verification request can be rejected. It is understood that the hash algorithm is a one-way cryptosystem, i.e. it is an irreversible mapping from plaintext to ciphertext, only having encryption process and not having decryption process, and at the same time, the hash algorithm can change the input data with any length to obtain the output with fixed length, and if there is any character change in the input data, the hash value of the final output will be different. The hash algorithm used in the embodiment of the present application includes, without limitation, an MD series hash algorithm, an SHA hash algorithm, an SM3 hash algorithm, and the like, where the MD series hash algorithm includes MD2, MD4, MD5, and the like, and the SHA hash algorithm includes SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and the like. For convenience of description, the hash algorithm mentioned in the embodiments of the present application is illustrated by taking SHA-256 algorithm as an example.
For example, please refer to fig. 2a, fig. 2a is a schematic diagram of a process of verifying first signature information according to an embodiment of the present application. As shown in fig. 2a, when a first user initiates an information verification request based on a user terminal, in order to ensure validity and security of content included in the information verification request, the first user performs a hash operation on the content to be transmitted (e.g., asset associated event included in the information verification request, event type of the asset associated event, and user identity) based on a hash algorithm, so as to obtain a corresponding hash value, and then encrypts the generated hash value by using a first user private key, so as to obtain first signature information. Then, after the first user splices the information verification request and the first signature information, the spliced data can be sent to a verification node in the blockchain system. When the verification node receives the data sent by the first user, the received data is firstly analyzed to obtain the separated information verification request and the first signature information. And then, a first user public key corresponding to the first user is obtained from a public key storage block of the block chain, the first signature information can be decrypted based on the first user public key to obtain a decrypted first information verification request hash value, and meanwhile, the hash operation is performed on the content included in the information verification request obtained through separation based on the hash algorithm to obtain a second information verification request hash value. And finally, the verification node can obtain a verification result of the information verification request by comparing and analyzing the first information verification request hash value and the second information verification request hash value.
In some possible embodiments, if the check node determines that the information check request sent by the first user is a legal request, the check node may send the information check request to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system may determine a first event hash according to the asset association event included in the information check request, and obtain a corresponding second event hash from the blockchain according to the event type of the asset association event and the user identity included in the asset association event. And finally, determining a first verification result of the asset associated event according to the determined first event hash and the determined second event hash. Here, the second event hash is added to the blockchain by the service node corresponding to the event type of the asset associated event. Optionally, in some possible embodiments, when the check node determines that the information check request sent by the first user is a legal request and sends the information check request to the consensus node in the blockchain system, the check node may further determine a first event hash according to an asset association event included in the information check request, and obtain a corresponding second event hash from the blockchain according to an event type of the asset association event and a user identity included in the asset association event. And finally, determining a first check result of the asset associated event according to the first event hash and the second event hash, and receiving the first check result returned by each common identification node in the block chain system.
It should be understood that the consensus node in the embodiment of the present application may be a node predetermined from a plurality of nodes included in the blockchain system based on a consensus mechanism of the blockchain system, for example, the consensus mechanism includes, but is not limited to, a Proof of workload (PoW) consensus mechanism, a Proof of rights of arrival (PoS) consensus mechanism, a Proof of rights (DPoS) consensus mechanism, a Practical Byzantine Fault Tolerance (PBFT), a Proof of Importance (POI) consensus mechanism, a Proof of Participation (POP) consensus mechanism, and the like, which are not limited herein. Or the common node may also be any node in the blockchain system specified by the user, for example, the common node may be all check nodes included in the blockchain system, and the like, which is not limited herein.
Specifically, the consensus node may obtain the asset association event included in the information verification request by receiving the information verification request sent by the verification node. And performing hash operation on the asset associated event based on a hash algorithm to obtain a first event hash corresponding to the asset associated event. Further, the consensus node may determine, according to the event type to which the asset associated event belongs included in the information verification request, an information storage block uploaded by a service node corresponding to the event type from a block chain, and further obtain, according to the user identity included in the information verification request, a second event hash corresponding to the user identity from the information storage block.
Optionally, in some possible embodiments, after the consensus node acquires the information storage block generated by the corresponding service node from the blockchain according to the event type, the consensus node may further acquire a node public key corresponding to the service node from the public key storage block, and decrypt the acquired information storage block based on the node public key. If the information storage block is successfully decrypted based on the node public key, the corresponding second event hash can be obtained from the decrypted information storage block according to the user identity. And finally, the common identification node can determine a first check result of the asset associated event according to the determined first event hash and the determined second event hash.
It should be understood that, when the consensus node determines that the user identity included in the asset association event is the same as the first user identity of the first user, if the first event hash is the same as the second event hash, the first verification result of the asset association event may be determined to be a verification pass. Optionally, if the consensus node determines that the user identity included in the asset association event is different from the first user identity, the household data storage block generated by the public security bureau node may be further obtained. And then, acquiring the home household information corresponding to the home household identifier from the acquired home household data storage block according to the home household identifier. If the obtained family household registration information includes the user identity included in the asset associated event, and the hash of the first event is the same as the hash of the second event, it is determined that the first verification result of the asset associated event is passed. S203, receiving first verification results sent by all consensus nodes in the block chain system, determining consensus results of the asset associated events according to the received first verification results, adding an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated events to the block chain when determining that consensus is achieved on the asset associated events, and sending information verification confirmation passing information to the first user.
In some possible embodiments, the verification node may determine the consensus result for the asset associated event according to the received first check results by receiving the first check results sent by the consensus nodes in the blockchain system. Specifically, if the check passing proportion in the received first check result returned by each consensus node is not less than the preset passing proportion, it can be determined that each consensus node achieves consensus on the asset associated event. For example, assuming that the predetermined pass proportion is 51%, it may be determined that the common node in the blockchain system agrees with the asset associated event when the first check result returned by more than 51% of the common nodes in the blockchain system is a pass. On the contrary, if the passing ratio of the verification in the received first verification result returned by the consensus node is smaller than the preset passing ratio, the consensus node in the block chain system is not considered to achieve consensus on the asset associated event, and therefore the information verification request of the first user can be rejected. Further, if the check node determines that each consensus node agrees on the asset associated event, the check node may add an asset associated event storage block including the first user id and the asset associated event to the block chain and send information check confirmation pass information to the first user. Here, the information verification and confirmation pass information may include an asset associated event storage block identifier corresponding to the asset associated event storage block. It should be understood that one asset associated event block identification may be used to uniquely tag one asset associated event block.
For example, please refer to fig. 2b, and fig. 2b is a schematic diagram of an application scenario of data processing based on a block chain according to an embodiment of the present application. As shown in fig. 2b, the blockchain system includes a verification node 1, a verification node 2, a verification node 3, a police office node, and an education office node. Each node has a connection relationship with other nodes, and as shown in fig. 2b, the consensus nodes may be a check node 1, a check node 2, and a check node 3. Taking the verification node 1 as an example of a node interacting with the first user. The verification node 1 receives an information verification request sent by a first user based on a user terminal, and can verify the validity of the information verification request according to first signature information carried by the information verification request. If the check node 1 determines that the information check request is a legal request, the information check request can be sent to the check node 2 and the check node 3 in the blockchain system, so that the check node 2 and the check node 3 in the blockchain system can determine a first event hash according to the asset associated event included in the information check request, acquire a corresponding second event hash from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, and determine a first check result of the asset associated event according to the determined first event hash and the determined second event hash. It should be understood that, the verification node 1 herein may also determine a first event hash according to the asset associated event included in the information verification request, obtain a corresponding second event hash from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, and determine a first verification result for the asset associated event according to the determined first event hash and the determined second event hash. Further, after the check node 1 receives the first check results generated and returned by the check node 2 and the check node 3, the consensus result of the asset associated event can be determined by combining the first check results generated by the check node 1. Here, if the check node 1 determines that 2 or 3 of the 3 first check results (i.e., the first check result of the check node 1 itself on the asset associated event, the first check result of the check node 2 on the asset associated event, and the first check result of the check node 3 on the asset associated event) pass the check, it may be determined that each common node in the blockchain system agrees with the asset associated event. Thus, the verification node 1 may add an asset associated event storage block including the first user identity and the asset associated event to the blockchain and generate information verification confirmation pass information to be sent to the user terminal of the first user.
In the embodiment of the application, the verification node receives the information verification request sent by the first user, so that the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises an asset associated event and an event type of the asset associated event. The check node verifies the legality of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system determines a first event hash according to the asset associated event included in the information check request, a corresponding second event hash is obtained from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, a first check result for the asset associated event is determined according to the first event hash and the second event hash, and the second event hash is added to the blockchain through a service node corresponding to the event type of the asset associated event. The check node receives first check results sent by all the consensus nodes in the block chain system, can determine the consensus result of the asset associated event according to the received first check results, adds an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated event to the block chain when determining that the consensus is achieved on the asset associated event, and sends information check confirmation passing information to the first user. By adopting the embodiment of the application, the authenticity and the non-tamper property of the user information can be improved, and the applicability is high.
Example two
Referring to fig. 3, fig. 3 is another schematic flow chart of a data processing method based on a block chain according to an embodiment of the present application. The method provided by the embodiment of the present application can be explained by the following implementation manners provided in steps S301 to S304:
s301, receiving an information verification request sent by a first user.
S302, the validity of the information verification request is verified according to the first signature information, and if the information verification request is determined to be a legal request, the information verification request is sent to the common identification node in the block chain system.
S303, receiving first verification results sent by all consensus nodes in the block chain system, determining consensus results of the asset associated events according to the received first verification results, adding an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated events to the block chain when determining that consensus is achieved on the asset associated events, and sending information verification confirmation passing information to the first user.
The specific implementation manner of steps S301 to S303 may refer to the description of steps S201 to S203 in the embodiment corresponding to fig. 2, and is not described again here.
S304, receiving an asset settlement request sent by a first user, acquiring an asset associated event storage block from a block chain according to an asset associated event storage block identifier included in the asset settlement request, acquiring an asset associated event from the asset associated event storage block according to a first user identity identifier, determining the assets to be paid of the first user according to the total assets and the asset associated event, and sending collection information including the assets to be paid to the first user.
In some possible embodiments, the information verification confirmation passing information sent by the verification node to the first user may include an asset associated event storage block identifier corresponding to the asset associated event storage block. Therefore, when the first user receives the information verification confirmation passing information sent by the verification node based on the user terminal, the asset settlement request can be generated according to the information verification confirmation passing information, and the asset settlement request is sent to the verification node. After the verification node receives the asset settlement request sent by the first user, the asset settlement request including the total asset of the first user, the asset associated event storage block identifier, the first user identity identifier and other data can be obtained. Then, the verification node may obtain the asset associated event storage block corresponding to the asset associated event storage block identifier from the block chain according to the asset associated event storage block identifier, and may obtain the corresponding asset associated event from the asset associated event storage block according to the first user identity identifier. And finally, the verification node can determine the assets to be paid of the first user according to the total assets and the asset associated events, and sends the collection information comprising the assets to be paid to the first user.
In the embodiment of the application, the verification node receives the information verification request sent by the first user, so that the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises an asset associated event and an event type of the asset associated event. The check node verifies the legality of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system determines a first event hash according to the asset associated event included in the information check request, a corresponding second event hash is obtained from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, a first check result for the asset associated event is determined according to the first event hash and the second event hash, and the second event hash is added to the blockchain through a service node corresponding to the event type of the asset associated event. The check node receives first check results sent by all the consensus nodes in the block chain system, can determine the consensus result of the asset associated event according to the received first check results, adds an asset associated event storage block comprising a first user identity corresponding to a first user and the asset associated event to the block chain when determining that the consensus is achieved on the asset associated event, and sends information check confirmation passing information to the first user. Further, the verification node may also receive an asset settlement request generated by the first user confirming the passing of the information based on the information verification. And acquiring the asset associated event storage block from the block chain according to the asset associated event storage block identifier included in the asset settlement request, and acquiring the asset associated event from the asset associated event storage block according to the first user identity identifier. And finally, determining the assets to be paid of the first user according to the total assets and the asset association events, and sending collection information comprising the assets to be paid to the first user. By adopting the embodiment of the application, the authenticity and the non-tamper property of the user information can be improved, and the applicability is high.
EXAMPLE III
Further, for convenience of understanding, in the embodiment of the present application, the verification node is taken as a tax bureau node, and the information verification request is a tax deduction declaration request of the first user.
Specifically, the tax office node may obtain, by receiving the personal tax deduction declaration request sent by the first user based on the user terminal, the first signature information carried by the personal tax deduction declaration request, and contents of the name of the first user, the identity document number of the first user, the taxpayer identification number of the first user, the family domino identifier of the first user, monthly specials deduction, personal tax specials additional deduction items, and the like included in the personal tax deduction declaration request, which are not limited herein. It should be understood that the monthly claim deductions may include three insurance one gold, etc., and are not limited herein. The tax-specific additional deduction item may include one or more of expenses for education of children, expenses for continuing education, expenses for medical care of major illness, expenses for interest on housing loan, expenses for rent of housing, and expenses for depending on elderly persons, and the like, and may be determined according to a practical application scenario, which is not limited herein. The tax-specific additional deduction item is an asset-related event, that is, the asset-related event may include one or more of a child education event, a continuing education event, a major medical event, a housing loan interest event, a housing rent event, and an dependents old-aged event, which are not limited herein. The event types of the child education events and the continuing education events are education types, and the service nodes corresponding to the education types are education bureau nodes. The event type of the major medical event is a medical type, and the service node corresponding to the medical type is a social security agency node. The event type of the housing loan interest event is a housing purchasing type, and the service node corresponding to the housing purchasing type is a real estate registration center node. The event type of the house rent event is a house renting type, and the service node corresponding to the house renting type is a house building node. The event type of the dependents on the old people is the endowment type, and the service node corresponding to the endowment type is the public security bureau node.
It should be understood that the child education event may specifically include the relationship of the child to the first user (e.g., one of parent, mother, father, son, or mother-son), the identity document number of the child, the name of the child, the birth date of the child, the current education stage, the start time of the current education stage, the end time of the current education stage, the education termination time of the child, the country (region) of employment, the school of employment, etc. The continuing education event may specifically include the identification document number of the first user, the name of the first user, the contact address of the first user, the type of continuing education, the time of continuing education, and the like. The medical event of a major illness may specifically include a relationship between the patient and the first user (for example, one of the principal, spouse or child), an identification number of the patient, an age of the patient, a total amount of medical expenses, an amount of personal burden, and the like. The housing loan interest event may specifically include the relationship between the loan undertaker and the first user (e.g., the principal or spouse), the identification document number of the loan undertaker, the proof of property, the location address of the housing, and the like. The house rent event may specifically include an identity document number of the first user, a rental house seating address, rental time, a rental contract number, a rental party type, and the like. The event of the Eugenia jambolana may specifically include the relationship between the Eugenia jambolana and the first user (e.g., one of father, mother, father and son), the name of the Eugenia jambolana, the ID number of the Eugenia jambolana, the date of birth of the Eugenia jambolana, etc.
Specifically, the tax office node may decrypt the first signature information based on the first user public key by obtaining the first user public key corresponding to the first user from the public key storage block to obtain the first tax deduction declaration request hash value. Further, a second tax deduction declaration request hash value can be obtained by performing hash operation on the content included in the tax deduction declaration request. Wherein, if the hash value of the first tax deduction declaration request is the same as the hash value of the second tax deduction declaration request, the first tax deduction declaration request is determined to be a legal request. Therefore, the tax office node can send the tax deduction declaration request to the common identification nodes in the blockchain system, so that each common identification node in the blockchain system determines a first event hash according to the asset associated event included in the tax deduction declaration request, acquires a corresponding second event hash from the blockchain according to the event type of the asset associated event and the user identity included in the asset associated event, and determines a first check result of the asset associated event according to the first event hash and the second event hash. The second event hash is added to the blockchain by the service node corresponding to the event type of the asset associated event.
For example, assume that the asset-associated events included in the personal tax deduction declaration request are child education events and continuation education events. Therefore, after the consensus node receives the tax deduction declaration request, hash operation can be respectively performed on the contents included in the child education event and the continuing education event, so as to obtain a first child education event hash corresponding to the child education event and a first continuing education event hash corresponding to the continuing education event. Since the event types of the child education event and the continuing education event are education types, the common knowledge node can determine the education information storage block uploaded by the education office node from the block chain according to the education types. According to the identity document number of the child included in the child education event, the second child education event hash corresponding to the identity document number of the child can be acquired from the education information storage block, and according to the identity document number of the first user included in the continuous education event, the second continuous education event hash corresponding to the identity document number of the first user is acquired from the education information storage block. It is to be understood that, when the first continuing education event hash is identical to the second continuing education event hash, it is determined that the result of the verification of the continuing education event is a verification pass. When the first child educational event hash is identical to the second child educational event hash, it may be determined that the result of the verification of the child educational event is a verification pass. Alternatively, in some possible embodiments, since the identity document number of the child included in the child education event is different from the identity number of the first user included in the personal tax deduction declaration request, the common identification node may further obtain the household data storage block generated by the public security bureau node, and obtain the household information corresponding to the household identifier from the household data storage block according to the household identifier. If the family household registration information comprises the identity document number of the child and the hash of the first child and the hash of the second child education event are the same, the verification result of the child education event can be determined to be passed. Here, it is determined that the first verification result for the asset-related event is a verification pass if and only if the verification result for the continuing education event is a verification pass and the verification result for the child education event is a verification pass.
Further, the tax office node may receive first verification results sent by the consensus nodes in the block chain system, and may determine the consensus result for the asset associated event according to the received first verification results. Specifically, if the check passing proportion in the received first check result returned by each consensus node is not less than the preset passing proportion, it can be determined that each consensus node agrees with the asset associated event. Accordingly, the tax office node may add an asset associated event storage block including a first user identification corresponding to the first user and the asset associated event to the blockchain and send information validation confirmation pass information to the first user. Here, the information verification confirmation passing information includes an asset associated event storage block identifier corresponding to the asset associated event storage block. It should be understood that when the first user receives the information verification-confirmation-passing information based on the user terminal, the asset settlement request may be generated based on the information verification-confirmation-passing information. It should be understood that the total asset of the first user, the asset associated event storage block identification, and the first user identification are included in the asset settlement request. And the tax bureau node can acquire the corresponding asset associated event storage block from the block chain according to the asset associated event storage block identifier. Then, according to the first user identity, the corresponding asset associated event can be acquired from the asset associated event storage block. Finally, according to the total assets, monthly special deductions and asset associated events (namely, tax special additional deductions) of the first user, the assets to be paid, namely the taxes to be paid, of the first user can be determined. And further sending collection information comprising the assets to be paid to the first user so that the first user can pay taxes according to the assets to be paid included in the collection information.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present disclosure. The data processing device based on the block chain provided by the embodiment of the application comprises:
a request receiving module 41, configured to receive an information verification request sent by a first user, where the information verification request carries first signature information of the information verification request by the first user, and the information verification request includes an asset associated event and an event type of the asset associated event;
a data verification module 42, configured to verify validity of the information verification request according to the first signature information, if it is determined that the information verification request is a valid request, send the information verification request to a common node in a blockchain system, so that each common node in the blockchain system determines a first event hash according to an asset association event included in the information verification request, and obtain a corresponding second event hash from the blockchain according to an event type of the asset association event and a user identity included in the asset association event, and determine a first verification result for the asset association event according to the first event hash and the second event hash, where the second event hash is added to the blockchain by a service node corresponding to the event type of the asset association event;
a data processing module 43, configured to receive first verification results sent by the consensus nodes in the blockchain system, determine a consensus result for the asset associated event according to the received first verification results, add an asset associated event storage block including a first user identity corresponding to the first user and the asset associated event to the blockchain when it is determined that consensus is achieved for the asset associated event, and send information verification confirmation passing information to the first user.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present disclosure. Wherein:
in some possible embodiments, the data verification module 42 includes a first processing unit 421 and a second processing unit 422, and the first processing unit 421 includes:
a public key obtaining subunit 4210, configured to obtain a first user public key corresponding to the first user from a public key storage block;
a signature decryption subunit 4211, configured to decrypt the first signature information based on the first user public key to obtain a first information verification request hash value;
the request verification subunit 4212 is configured to perform a hash operation on the information verification request to obtain a second information verification request hash value, and determine that the information verification request is a valid request if the first information verification request hash value is the same as the second information verification request hash value.
In some possible embodiments, the apparatus further includes a data processing module 44, and the data processing module 44 includes:
a request receiving unit 441, configured to receive an asset settlement request sent by the first user, where the asset settlement request includes a total asset of the first user, the asset-related event storage block identifier, and the first user identity identifier;
a block determining unit 442, configured to obtain the asset associated event block from the block chain according to the asset associated event block identifier;
a data obtaining unit 443, configured to obtain the asset associated event from the asset associated event storage block according to the first user id;
the data execution unit 444 is configured to determine the property due to payment of the first user according to the total property and the property-related event, and send payment information including the property due to payment to the first user.
In some possible embodiments, the information verification request includes a first identity identifier of the first user and a home location identifier of the first user; the consensus node is specifically configured to:
if the common identification node determines that the user identity included in the asset associated event is the same as the first user identity, determining that a first verification result of the asset associated event is a verification pass when the first event hash is the same as the second event hash;
if the common identification node determines that the user identity included in the asset associated event is different from the first user identity, a household data storage block generated by a public security bureau node is obtained, household information corresponding to the household identity is obtained from the household data storage block according to the household identity, and if the household information includes the user identity and the hash of the first event is the same as the hash of the second event, a first verification result of the asset associated event is determined to be passed.
In some possible embodiments, the consensus node is further configured to:
the common identification node acquires an information storage block generated by the service node from the block chain according to the event type;
the common node acquires a node public key corresponding to the service node from the public key storage block;
and if the information storage block is successfully decrypted based on the node public key, acquiring a corresponding second event hash from the decrypted information storage block according to the user identity.
In some possible embodiments, the asset-related event includes a child education event, the event type of the child education event is an education type, and the service node corresponding to the education type is an education bureau node;
the asset associated event comprises a continuous education event, the event type of the continuous education event is the education type, and the service node corresponding to the education type is the education bureau node;
the asset associated event comprises a major illness medical event, the event type of the major illness medical event is a medical type, and the service node corresponding to the medical type is a social security node;
the property associated event comprises a housing loan interest event, the event type of the housing loan interest event is a housing purchasing type, and the service node corresponding to the housing purchasing type is a real estate registration center node;
the asset associated event comprises a house rent event, the event type of the house rent event is a house rent type, and the service node corresponding to the house rent type is a building and construction node;
the asset correlation event comprises an dependents aged person event, the event type of the dependents aged person event is an aged-care type, and the service node corresponding to the aged-care type is a public security bureau node.
In some possible embodiments, the data processing module 43 includes a data consensus unit 431 and a verification result feedback unit 432, where the data consensus unit 431 is specifically configured to:
and if the ratio of passing the verification in the received first verification result returned by each consensus node is not less than the preset passing ratio, determining that each consensus node agrees with the asset associated event.
In a specific implementation, the above data processing apparatus based on a blockchain can execute the implementation manner provided in each step in fig. 2 to fig. 3 through its built-in function module. For example, the request receiving module 41 may be configured to execute implementation manners such as receiving an information verification request sent by a first user in the above steps, which may specifically refer to the implementation manners provided in the above steps, and details are not described herein again. The data verification module 42 may be configured to execute the implementation manners described in the relevant steps of verifying the validity of the information verification request according to the first signature information, sending the information verification request to the consensus node in the blockchain system, and the like in the above steps, which may specifically refer to the implementation manners provided in the above steps, and are not described herein again. The data processing module 43 may be configured to perform the implementation manners, such as receiving the first verification result sent by each common identification node in the blockchain system in each step, determining the common identification result of the asset associated event according to the received first verification result, uplink the asset associated event according to the common identification result, and sending the information verification passing information to the first user, which may specifically refer to the implementation manners provided in each step, and are not described herein again. The data processing module 44 may be configured to execute implementation manners, such as receiving an asset settlement request generated by the first user according to the information verification passing information in each step, obtaining a corresponding asset related event according to the asset settlement request to generate collection information, and sending the collection information to the first user, which may specifically refer to the implementation manners provided in each step, and are not described herein again.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device in this embodiment may include: one or more processors 501, memory 502, and a transceiver 503. The processor 501, the memory 502, and the transceiver 503 may be connected by a bus 504. In particular, the transceiver 503 may be a communication module, a transceiver circuit. In this embodiment, the transceiver 503 is used to perform the operations of sending the information verification request, receiving the first verification result, and the like in the above embodiments. The memory 502 is used to store a computer program comprising program instructions and the processor 501 is used to execute the program instructions stored in the memory 502.
It should be understood that in some possible embodiments, the processor 501 may be a Central Processing Unit (CPU), and the processor may be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 502 may include both read-only memory and random access memory, and provides instructions and data to the processor 501. A portion of the memory 502 may also include non-volatile random access memory. For example, the memory 502 may also store device type information.
In a specific implementation, the terminal device may execute the implementation manners provided in the steps in fig. 2 to fig. 3 through the built-in functional modules, which may specifically refer to the implementation manners provided in the steps, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a processor, the data processing method based on a block chain provided in each step in fig. 2 to 3 is implemented.
The computer readable storage medium may be the data processing apparatus based on the block chain provided in any of the foregoing embodiments or an internal storage unit of the terminal device, such as a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", "third", "fourth", and the like in the claims and in the description and drawings of the present application are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block or blocks.

Claims (10)

1. A method for processing data based on a blockchain, the method comprising:
the method comprises the steps that an information verification request sent by a first user is received by a verification node, the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises asset associated events and event types of the asset associated events;
the check node verifies the legality of the information check request according to the first signature information, if the information check request is determined to be a legal request, the information check request is sent to a common identification node in a blockchain system, so that each common identification node in the blockchain system determines a first event hash according to an asset associated event included in the information check request, a corresponding second event hash is obtained from a blockchain according to an event type of the asset associated event and a user identity included in the asset associated event, a first check result of the asset associated event is determined according to the first event hash and the second event hash, and the second event hash is added to the blockchain by a service node corresponding to the event type of the asset associated event;
the check node receives first check results sent by all common identification nodes in the block chain system, determines common identification results of the asset associated events according to the received first check results, adds a first user identity identifier corresponding to the first user and an asset associated event storage block of the asset associated events to the block chain when determining that the common identification of the asset associated events is achieved, and sends information check confirmation passing information to the first user.
2. The method of claim 1, wherein verifying the validity of the information verification request based on the first signature information comprises:
the verification node acquires a first user public key corresponding to the first user from a public key storage block;
the verification node decrypts the first signature information based on the first user public key to obtain a first information verification request hash value;
the information verification request is subjected to Hash operation by the verification node to obtain a second information verification request Hash value, and if the first information verification request Hash value is the same as the second information verification request Hash value, the information verification request is determined to be a legal request.
3. The method according to claim 1 or 2, wherein the information verification validation passing information includes an asset associated event storage block identifier corresponding to the asset associated event storage block; after sending the information verification confirmation passing information to the first user, the method further comprises:
the verification node receives an asset settlement request sent by the first user, wherein the asset settlement request comprises the total assets of the first user, the asset associated event storage block identifier and the first user identity identifier;
the check node acquires the asset associated event storage block from the block chain according to the asset associated event storage block identifier;
the verification node acquires the asset associated event from the asset associated event storage block according to the first user identity;
and the verification node determines the property to be paid of the first user according to the total property and the property correlation event and sends the collection information comprising the property to be paid to the first user.
4. The method according to claim 1, wherein the information verification request includes the first subscriber identity and a home domino identity of the first subscriber; the determining a first check result for the asset associated event according to the first event hash and the second event hash includes:
if the common identification node determines that the user identity included in the asset associated event is the same as the first user identity, determining that a first verification result of the asset associated event is passed when the first event hash is the same as the second event hash;
if the common identification node determines that the user identity included in the asset associated event is different from the first user identity, a household data storage block generated by a public security bureau node is obtained, household information corresponding to the household identity is obtained from the household data storage block according to the household identity, and if the household information includes the user identity and the hash of the first event is the same as the hash of the second event, a first verification result of the asset associated event is determined to be passed.
5. The method according to claim 1, wherein the obtaining a corresponding second event hash from a blockchain according to the event type of the asset associated event and the user identity included in the asset associated event comprises:
the consensus node acquires an information storage block generated by the service node from the block chain according to the event type;
the consensus node acquires a node public key corresponding to the service node from the public key storage block;
and if the information storage block is successfully decrypted based on the node public key, acquiring a corresponding second event hash from the decrypted information storage block according to the user identity.
6. The method of claim 1, wherein the asset-related events comprise child educational events, the event type of the child educational events is an educational type, and the service nodes corresponding to the educational type are educational bureau nodes;
the asset associated event comprises a continuous education event, the event type of the continuous education event is the education type, and the service node corresponding to the education type is the education bureau node;
the asset associated event comprises a major illness medical event, the event type of the major illness medical event is a medical type, and a service node corresponding to the medical type is a social security office node;
the property associated event comprises a housing loan interest event, the event type of the housing loan interest event is a housing purchasing type, and a service node corresponding to the housing purchasing type is a real estate registration center node;
the asset associated event comprises a house rent event, the event type of the house rent event is a house rent type, and a service node corresponding to the house rent type is a building and construction node;
the asset correlation events comprise an dependents aged person event, the event type of the dependents aged person event is an aged-care type, and the service node corresponding to the aged-care type is a public security bureau node.
7. The method of claim 1, wherein determining a consensus result for the asset associated event based on the received first verification results comprises:
and if the ratio of passing the verification in the received first verification result returned by each common identification node is not less than the preset passing ratio, determining that each common identification node achieves common identification to the asset associated event.
8. An apparatus for data processing based on a blockchain, the apparatus comprising:
the system comprises a request receiving module, a first verification module and a second verification module, wherein the request receiving module is used for receiving an information verification request sent by a first user, the information verification request carries first signature information of the first user on the information verification request, and the information verification request comprises asset associated events and event types of the asset associated events;
the data verification module is used for verifying the legality of the information verification request according to the first signature information, if the information verification request is determined to be a legal request, the information verification request is sent to common identification nodes in a blockchain system, so that each common identification node in the blockchain system determines a first event hash according to an asset associated event included in the information verification request, acquires a corresponding second event hash from the blockchain according to an event type of the asset associated event and a user identity included in the asset associated event, determines a first verification result of the asset associated event according to the first event hash and the second event hash, and the second event hash is added to the blockchain by a service node corresponding to the event type of the asset associated event;
the data processing module is configured to receive first check results sent by the consensus nodes in the blockchain system, determine a consensus result for the asset associated event according to the received first check results, add, when it is determined that consensus is achieved for the asset associated event, an asset associated event storage block including a first user identity corresponding to the first user and the asset associated event to the blockchain, and send information verification confirmation passing information to the first user.
9. A terminal device, comprising a processor and a memory, the processor and the memory being interconnected;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202010093146.0A 2020-02-14 2020-02-14 Data processing method and device based on block chain Active CN111324666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093146.0A CN111324666B (en) 2020-02-14 2020-02-14 Data processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093146.0A CN111324666B (en) 2020-02-14 2020-02-14 Data processing method and device based on block chain

Publications (2)

Publication Number Publication Date
CN111324666A true CN111324666A (en) 2020-06-23
CN111324666B CN111324666B (en) 2024-06-18

Family

ID=71167124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093146.0A Active CN111324666B (en) 2020-02-14 2020-02-14 Data processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111324666B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866255A (en) * 2021-01-22 2021-05-28 湖北宸威玺链信息技术有限公司 Block chain-based data transmission quality verification method, system, device and medium
CN117633848A (en) * 2024-01-25 2024-03-01 中信证券股份有限公司 User information joint processing method, device, equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048209A1 (en) * 2015-07-14 2017-02-16 Fmr Llc Crypto Key Recovery and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems
CN109492424A (en) * 2018-09-29 2019-03-19 平安科技(深圳)有限公司 Data assets management method, data assets managing device and computer-readable medium
CN110046482A (en) * 2018-12-25 2019-07-23 阿里巴巴集团控股有限公司 Identity verification method and its system
CN110096903A (en) * 2019-03-26 2019-08-06 罗克佳华科技集团股份有限公司 Assets verification method and block chain network system based on block chain
CN110599172A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Asset information processing method and device based on block chain, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048209A1 (en) * 2015-07-14 2017-02-16 Fmr Llc Crypto Key Recovery and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems
CN109492424A (en) * 2018-09-29 2019-03-19 平安科技(深圳)有限公司 Data assets management method, data assets managing device and computer-readable medium
CN110046482A (en) * 2018-12-25 2019-07-23 阿里巴巴集团控股有限公司 Identity verification method and its system
CN110096903A (en) * 2019-03-26 2019-08-06 罗克佳华科技集团股份有限公司 Assets verification method and block chain network system based on block chain
CN110599172A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Asset information processing method and device based on block chain, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866255A (en) * 2021-01-22 2021-05-28 湖北宸威玺链信息技术有限公司 Block chain-based data transmission quality verification method, system, device and medium
CN117633848A (en) * 2024-01-25 2024-03-01 中信证券股份有限公司 User information joint processing method, device, equipment and computer readable medium
CN117633848B (en) * 2024-01-25 2024-04-12 中信证券股份有限公司 User information joint processing method, device, equipment and computer readable medium

Also Published As

Publication number Publication date
CN111324666B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
US11496311B2 (en) System and method for authenticating user identity
US11695782B2 (en) Electronic interaction authentication and verification, and related systems, devices, and methods
EP3509006B1 (en) Information sharing system
CN109417549B (en) Method and apparatus for providing information attestation using a centralized or distributed ledger
US20180295121A1 (en) Secure element authentication
CN111080295B (en) Electronic contract processing method and device based on blockchain
JP6543040B2 (en) System and method for remote access, remote digital signature
CN109978688A (en) The access control method and its contract generator and server of distributed common recognition system
US9947008B1 (en) Enhanced certificate authority
US20140236835A1 (en) System and method for application security
CN110290102A (en) Service security system and method based on application
JP2002164884A (en) Proxy server, electronic signature system, electronic signature verification system, network system, electronic signature method, electronic signature verification method, recording medium and program transmission device
CN110246039B (en) Transaction monitoring method and device based on alliance chain and electronic equipment
US11216804B2 (en) Central registry system for cryptocurrencies
CN111460525B (en) Block chain-based data processing method, device and storage medium
CN111008718B (en) Block chain-based hotel management method, device, terminal and storage medium
CN111461852A (en) Data processing method and device based on block chain and readable storage medium
US11436597B1 (en) Biometrics-based e-signatures for pre-authorization and acceptance transfer
CN111832005B (en) Application authorization method, application authorization device and electronic equipment
CN110708162B (en) Resource acquisition method and device, computer readable medium and electronic equipment
CN111369338A (en) Data processing method and device based on block chain
CN111324666B (en) Data processing method and device based on block chain
CN109818965B (en) Personal identity verification device and method
CN110992034A (en) Supply chain transaction privacy protection system and method based on block chain and related equipment
KR20130095363A (en) A cash remittance method based on digital codes using hash function and electronic signature

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024826

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant