CN116432231A - Report data processing method and device based on block chain and electronic equipment - Google Patents

Report data processing method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN116432231A
CN116432231A CN202310417867.6A CN202310417867A CN116432231A CN 116432231 A CN116432231 A CN 116432231A CN 202310417867 A CN202310417867 A CN 202310417867A CN 116432231 A CN116432231 A CN 116432231A
Authority
CN
China
Prior art keywords
report
end node
hash value
data
authority information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310417867.6A
Other languages
Chinese (zh)
Inventor
魏文婷
邵培兴
邱晓海
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202310417867.6A priority Critical patent/CN116432231A/en
Publication of CN116432231A publication Critical patent/CN116432231A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • 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/604Tools and structures for managing or administering access control systems
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a report data processing method and device based on a blockchain and electronic equipment, and relates to the technical field of blockchains. One embodiment of the method comprises the following steps: receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node; calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain; if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the rear end node and the second hash value into the blockchain. The embodiment can solve the technical problem of lacking effective protection on the aspects of authenticity, tamper resistance, sensitive information privacy and the like of report data.

Description

Report data processing method and device based on block chain and electronic equipment
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based report data processing method, device and electronic equipment.
Background
The basic measure and approach of enterprise management in report data is the basic business requirement of enterprises, and the report data can help enterprises access, format data and present data information to users in a reliable and safe manner. Report data is not separated from each industry, such as report data generation, report data acquisition, report data display and the like.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
in the aspects of acquiring and displaying report data, effective protection on the aspects of authenticity, tamper resistance, sensitive information privacy and the like of the report data is lacked.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a report data processing method, apparatus, electronic device and computer readable medium based on blockchain, so as to solve the technical problem of lack of effective protection on aspects of report data such as authenticity, tamper resistance, sensitive information privacy, and the like.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a report data processing method based on a blockchain, applied to a backend node, including:
receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node;
Calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain;
if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the front end, the authority information of the rear end node and the second hash value into the blockchain;
and acquiring service data from the organization node, generating report data according to the service data, and returning the report data to the front-end node.
Optionally, the report generation request also carries a report query range and a report requirement;
obtaining service data from an organization node, thereby generating report data according to the service data, including:
sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node;
receiving service data returned by the mechanism node;
generating report data according to the report query range and the report requirement and based on the business data.
Optionally, generating report data according to the report query range and the report requirement and based on the service data includes:
if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain;
and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data.
Optionally, after generating report data according to the service data, the method further includes:
and storing the report data to the local, and writing the storage address of the report data and the corresponding hash value into a block chain.
In addition, according to another aspect of the embodiment of the present invention, there is provided a report data processing method based on a blockchain, which is applied to an organization node, including:
receiving a service data acquisition request sent by a back-end node, wherein the service data acquisition request carries authority information of a front-end node and authority information of the back-end node;
calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and acquiring the second hash value generated by the rear end node from the blockchain;
And if the calculated second hash value is consistent with the second hash value obtained from the blockchain, obtaining service data from a database, and sending the service data to the organization node.
Optionally, obtaining service data from a database and sending the service data to the institution node, including:
acquiring service data from a database;
if the sensitive data exist in the service data, writing the sensitive data and the corresponding hash value thereof into the block chain;
and sending the service data to the organization node.
In addition, according to another aspect of the embodiment of the present invention, there is provided a report data processing apparatus based on a blockchain, which is disposed at a backend node, including:
the first receiving module is used for receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node;
the first calculation module is used for calculating a first hash value of the authority information of the front-end node and acquiring the first hash value generated by the front-end node from the blockchain;
the first processing module is used for calculating the authority information of the front end node and the second hash value of the authority information of the rear end node if the calculated first hash value is consistent with the first hash value obtained from the blockchain, and writing the authority information of the front end, the authority information of the rear end node and the second hash value into the blockchain;
And the report module is used for acquiring service data from the organization node, generating report data according to the service data and returning the report data to the front-end node.
Optionally, the report generation request also carries a report query range and a report requirement;
the report module is further configured to:
sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node;
receiving service data returned by the mechanism node;
generating report data according to the report query range and the report requirement and based on the business data.
Optionally, the report module is further configured to:
if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain;
and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data.
Optionally, the report module is further configured to:
And after generating report data according to the service data, storing the report data to a local place, and writing a storage address of the report data and a hash value corresponding to the storage address into a block chain.
In addition, according to another aspect of the embodiment of the present invention, there is provided a report data processing apparatus based on a blockchain, which is disposed at an organization node, including:
the second receiving module is used for receiving a service data acquisition request sent by a back-end node, wherein the service data acquisition request carries authority information of a front-end node and authority information of the back-end node;
the second calculation module is used for calculating the authority information of the front end node and the second hash value of the authority information of the back end node, and acquiring the second hash value generated by the back end node from the blockchain;
and the second processing module is used for acquiring service data from a database and sending the service data to the mechanism node if the calculated second hash value is consistent with the second hash value acquired from the blockchain.
Optionally, the second processing module is further configured to:
acquiring service data from a database;
if the sensitive data exist in the service data, writing the sensitive data and the corresponding hash value thereof into the block chain;
And sending the service data to the organization node.
According to another aspect of an embodiment of the present invention, there is also provided an electronic device including:
one or more processors;
storage means for storing one or more programs,
the one or more processors implement the method of any of the embodiments described above when the one or more programs are executed by the one or more processors.
According to another aspect of an embodiment of the present invention, there is also provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method according to any of the embodiments described above.
According to another aspect of embodiments of the present invention, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to any of the embodiments described above.
One embodiment of the above invention has the following advantages or benefits: because the first hash value of the authority information of the front end node is calculated, the first hash value generated by the front end node is obtained from the blockchain, if the calculated first hash value is consistent with the first hash value obtained from the blockchain, the authority information of the front end node and the second hash value of the authority information of the rear end node are calculated, and the authority information of the rear end node and the second hash value are written into the blockchain, the technical problem that the aspects of authenticity, tamper resistance modification, sensitive information privacy and the like of report data are lack to be effectively protected in the prior art is solved. The embodiment of the invention can ensure the non-tamper property, traceability and the like of the report data through the blockchain technology, provide reliable basis for subsequent payment, claim settlement, security and other services, save labor cost and time cost for transacting business, reduce error rate, ensure the control of the report data viewing authority and avoid the leakage of private data.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a flow diagram of a method of blockchain-based report data processing in accordance with an embodiment of the invention;
FIG. 2 is a flowchart of a method for processing blockchain-based report data in accordance with a referenceable embodiment of the invention;
FIG. 3 is a flowchart of a method for processing blockchain-based report data in accordance with another referenceable embodiment of the invention;
FIG. 4 is a flowchart of a method for blockchain-based report data processing in accordance with another embodiment of the invention;
FIG. 5 is a flowchart of a method for blockchain-based report data processing in accordance with yet another referenceable embodiment of the invention;
FIG. 6 is a schematic diagram of a blockchain-based reporting data processing device in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of a blockchain-based reporting data processing device in accordance with another embodiment of the present invention;
FIG. 8 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 9 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the technical scheme of the invention, the aspects of acquisition, analysis, use, transmission, storage and the like of the related user personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of the relevant laws and regulations, and ensure the personal information of the user. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting the data collection and/or deletion.
User privacy is protected by de-identifying data when applicable, including in certain related applications, such as by removing specific identifiers (e.g., date of birth, name, gender, etc.), controlling the amount or specificity of stored data, controlling how data is stored, and/or other methods.
FIG. 1 is a flow chart of a method of blockchain-based report data processing in accordance with an embodiment of the invention. As one embodiment of the present invention, as shown in FIG. 1, the report data processing method based on the blockchain is applied to a back-end node, and may include:
step 101, receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node.
The back-end node (blockchain node) receives a report generation request sent by the front-end node (blockchain node), wherein the report generation request carries authority information of the front-end node, and the authority information can be user group identification and/or user group authority.
Step 102, calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain.
After receiving a report generation request sent by a front-end node, a back-end node hashes authority information of the front-end node, so as to calculate a first hash value, and then acquires the first hash value generated by the front-end node from the blockchain.
A blockchain is a chain of blocks one by one. Each block holds certain information which is linked in a chain according to the time sequence of their respective generation. This chain is kept in all servers, and the entire blockchain is secure as long as one server in the entire system can work. These servers, referred to in the blockchain system as blockchain nodes, provide storage space and computational support for the entire blockchain system. If the information in the blockchain is to be modified, it is necessary to sign consent of more than half of the nodes and modify the information in all the nodes, which are usually held in different subject hands, so it is an extremely difficult thing to tamper with the information in the blockchain. Compared with the traditional network, the blockchain has two main core characteristics: firstly, the data is difficult to tamper, and secondly, the data is decentralised. Based on the two characteristics, the information recorded by the blockchain is more real and reliable, and can help solve the problem that people are not trusted each other.
In the basic working process of the blockchain, when the node A transfers to the node B, the generated transaction information is broadcast to all effective nodes in the network in a P2P mode in the form of blocks, the nodes authenticate the blocks through a consensus mechanism, and when the correctness and the validity of the blocks are approved, the blocks are added into the existing blockchain of the network in sequence, and the transfer from A to B is completed. Because the information in the blockchain is agreed upon by the consistency of most nodes in the network, the information is not erasable and tamperable and all nodes can read and query the transaction information. Since the blockchain is independent of authentication and management of the central node, correct information can be transmitted on an unreliable network, and the risks of data leakage and authentication failure caused by the attack of the central node are prevented.
And 103, if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the front end node, the authority information of the rear end node and the second hash value into the blockchain.
It should be noted that when the front end node sends a report generation request to the back end node, the authority information of the front end node is hashed, and the authority information of the front end node and the calculated first hash value are written into the blockchain.
And the back-end node compares whether the calculated first hash value is consistent with the first hash value obtained from the blockchain, if so, the front-end node authority information is not tampered in the transmission process, the front-end node authority information and the back-end node authority information are further calculated, the front-end node authority information, the back-end node authority information and the second hash value are written into the blockchain, and therefore the fact that the back-end node authority information cannot be tampered can be further guaranteed. If the authority information of the front-end nodes is inconsistent, the authority information of the front-end nodes is tampered in the transmission process, and the process is ended.
And 104, acquiring service data from the organization node, generating report data according to the service data, and returning the report data to the front-end node.
After the authority information of the front end node passes verification, the back end node acquires service data stored in the organization node (blockchain node), then generates report data according to the acquired service data, and returns the generated report data to the front end node, so that the report data is displayed on the front end node.
Optionally, the report generation request further carries a report query scope and a report requirement. Optionally, obtaining service data from an organization node, thereby generating report data according to the service data, including: sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node; receiving service data returned by the mechanism node; generating report data according to the report query range and the report requirement and based on the business data. In some embodiments of the present invention, a user may select a report query range and a report requirement in a page of a front end node, and after receiving service data returned by an organization node, a back end node generates report data according to the report query range and the report requirement and based on the service data, so as to satisfy a report generation requirement of the user.
As long as one blockchain node modifies the request content, the hash value is modified, so that the hash values of all nodes need to be modified, and if other nodes do not allow modification, the modification operation of the node fails.
In some embodiments of the present invention, the front end node calculates hash of authority information, report query scope and report requirement of the user, writes the hash value into the blockchain, correspondingly, after the back end node receives the report generation request sent by the front end node, calculates hash of the authority information, report query scope and report requirement of the front end node, compares whether the two hash values are consistent, if so, calculates hash values of the authority information, report query scope, report requirement and the authority information of the back end node, and writes the authority information, report query scope, report requirement and the authority information of the back end node of the front end node into the blockchain. If not, the process ends.
Optionally, generating report data according to the report query range and the report requirement and based on the service data includes: if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain; and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data. In some embodiments of the present invention, before generating report data, judging whether service data acquired from a mechanism node includes sensitive data, if yes, calculating a hash value of the sensitive data, comparing the calculated hash value of the sensitive data with a hash value of the sensitive data acquired from the blockchain, and if consistent, indicating that the sensitive data is not tampered in a transmission process, generating report data according to the report query range and the report requirement and based on the service data; if the data are inconsistent, the sensitive data are tampered in the transmission process, and the process is ended.
It should be noted that, the organization node hashes sensitive data (such as name, certificate number, payment account number, etc.) in the service data, and writes the hash value of the sensitive data into the blockchain to ensure the data security. Therefore, the embodiment of the invention adopts transparent transmission to the sensitive data in the service data in the transmission process, and ensures that the sensitive data is not intercepted and checked.
In the embodiment of the invention, identity verification is needed for checking the report data, so that the problem that the report data is unauthorized to check is solved, verification is needed for checking the sensitive data, and a mutual trust mechanism between systems is increased.
The client initiates a request for checking the report at the front end node, and the client passes through the front end node, the back end node, the mechanism node (bank, insurance company, etc.) and other blockchain nodes, and in the process, the authority information of the user, the report query range, the report requirement and other information pass through the layer-by-layer nodes to generate blockdata and put the blockchain data on the blockchain. And after each block chain node passes, the request information and the information of the node side are hashed to generate block header information, and the block header information is transmitted to the next block chain node so as to prevent the data from being tampered.
According to the various embodiments described above, it can be seen that the technical means of calculating the first hash value of the authority information of the front end node and obtaining the first hash value generated by the front end node from the blockchain, if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating the second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the rear end node and the second hash value into the blockchain, solves the technical problem that the prior art lacks effective protection on the aspects of authenticity, tamper resistance, sensitive information privacy and the like of report data. The embodiment of the invention can ensure the non-tamper property, traceability and the like of the report data through the blockchain technology, provide reliable basis for subsequent payment, claim settlement, security and other services, save labor cost and time cost for transacting business, reduce error rate, ensure the control of the report data viewing authority and avoid the leakage of private data.
FIG. 2 is a flow chart of a method of processing report data based on a blockchain in accordance with a referential embodiment of the present invention. As yet another embodiment of the present invention, as shown in FIG. 2, the blockchain-based report data processing method is applied to a backend node, and may include:
step 201, a report generation request sent by a front-end node is received, where the report generation request carries authority information of the front-end node.
Step 202, calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain.
Step 203, judging whether the calculated first hash value is consistent with the first hash value obtained from the blockchain; if yes, go to step 204; if not, ending.
Step 204, calculating a second hash value of the authority information of the front end node and the authority information of the back end node, and writing the authority information of the front end node, the authority information of the back end node and the second hash value into a blockchain.
Step 205, a service data acquisition request is sent to an organization node, where the service data acquisition request carries authority information of the front end node and authority information of the back end node.
And 206, receiving the service data returned by the organization node, generating report data according to the service data, and returning the report data to the front-end node.
Step 208, storing the report data locally, and writing the storage address of the report data and the corresponding hash value thereof into a blockchain.
And writing the storage address of the report data and the corresponding hash value thereof into the blockchain to prevent the generated report data from being tampered.
In addition, the implementation of the blockchain-based report data processing method according to the present invention is described in detail in the above description of the blockchain-based report data processing method, and thus the description thereof will not be repeated here.
FIG. 3 is a flow chart of a method of processing report data based on a blockchain in accordance with another referenceable embodiment of the invention. As another embodiment of the present invention, as shown in FIG. 3, the report data processing method based on the blockchain is applied to the back-end node, and may include:
step 301, receiving a report generation request sent by a front-end node, where the report generation request carries authority information, a report query range and a report requirement of the front-end node.
Step 302, calculating the authority information, the report query range and the third hash value of the report requirement of the front-end node, and acquiring the third hash value generated by the front-end node from the blockchain.
When the front end node sends a report generation request to the back end node, the authority information, the report query range and the report requirement of the front end node are hashed, and the authority information, the report query range, the report requirement and the calculated third hash value of the front end node are written into the blockchain.
Step 303, judging whether the calculated third hash value is consistent with the third hash value obtained from the blockchain; if yes, go to step 304; if not, ending.
Step 304, calculating a fourth hash value of the authority information, the report query range, the report requirement and the authority information of the back-end node of the front-end node, and writing the authority information, the report query range, the report requirement, the authority information and the fourth hash value of the back-end node into a blockchain.
Step 305, a service data acquisition request is sent to an organization node, where the service data acquisition request carries authority information of the front end node, authority information of the back end node, a report query range and a report requirement.
And 306, receiving the service data returned by the organization node.
Step 307, judging whether sensitive data exists in the service data; if yes, go to step 308; if not, step 310 is performed.
Step 308, calculating a hash value of the sensitive data, and obtaining the hash value of the sensitive data from the blockchain.
Step 309, judging whether the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain; if yes, go to step 310; if not, ending.
And step 310, generating report data based on the business data according to the report query range and the report requirements.
In addition, in another embodiment of the present invention, the details of the implementation of the blockchain-based report data processing method are described in detail in the above description of the blockchain-based report data processing method, so that the description thereof will not be repeated here.
FIG. 4 is a flowchart of a method for processing blockchain-based report data in accordance with another embodiment of the invention. As another embodiment of the present invention, as shown in FIG. 4, the report data processing method based on the blockchain is applied to the organization node, and may include:
Step 401, receiving a service data acquisition request sent by a back-end node, where the service data acquisition request carries authority information of a front-end node and authority information of the back-end node.
Step 402, calculating a second hash value of the authority information of the front end node and the authority information of the back end node, and obtaining the second hash value generated by the back end node from the blockchain.
And step 403, if the calculated second hash value is consistent with the second hash value obtained from the blockchain, obtaining service data from a database, and sending the service data to the organization node.
And the mechanism node receives a service data acquisition request sent by the back-end node, calculates a second hash value of the authority information of the front-end node and the authority information of the back-end node, acquires the second hash value generated by the back-end node from the blockchain, compares whether the calculated second hash value is consistent with the second hash value acquired from the blockchain, and if so, indicates that the authority information of the front-end node and the authority information of the back-end node are not tampered. If the authority information of the front end node and/or the authority information of the back end node are/is tampered in the transmission process, the process is ended.
It should be noted that, the service data obtaining request carries the authority information of the front end node, the authority information of the back end node, the report query range and the report requirement, then calculates the authority information of the front end node, the authority information of the back end node, the report query range and the fourth hash value of the report requirement, obtains the fourth hash value generated by the back end node from the blockchain, and then compares whether the calculated second hash value is consistent with the second hash value obtained from the blockchain, if so, it is described that the authority information of the front end node, the authority information of the back end node, the report query range and the report requirement are not tampered. If the authority information of the front end node, the authority information of the back end node, the report query range and/or the report requirement are not consistent, the process is ended.
FIG. 5 is a flowchart of a method for processing blockchain-based report data in accordance with yet another referenceable embodiment of the invention. As yet another embodiment of the present invention, as shown in FIG. 5, the blockchain-based report data processing method is applied to an organization node, and may include:
Step 501, a service data acquisition request sent by a back-end node is received, where the service data acquisition request carries authority information of a front-end node and authority information of the back-end node.
Step 502, calculating a second hash value of the authority information of the front end node and the authority information of the back end node, and obtaining the second hash value generated by the back end node from the blockchain.
Step 503, judging whether the calculated second hash value is consistent with the second hash value obtained from the blockchain; if yes, go to step 504; if not, the process is finished,
step 504, obtaining service data from a database, and judging whether sensitive data exists in the service data; if yes, go to step 505; if not, go to step 506.
Step 505, writing the sensitive data and the corresponding hash value into the blockchain.
And step 506, sending the service data to the organization node.
In addition, the implementation of the blockchain-based report data processing method in still another embodiment of the present invention is described in detail in the above description of the blockchain-based report data processing method, and thus the description thereof will not be repeated here.
FIG. 6 is a schematic diagram of a blockchain-based report data processing device in accordance with an embodiment of the invention. As shown in fig. 6, the report data processing apparatus 500 based on a blockchain is disposed at a back-end node, and includes a first receiving module 601, a first calculating module 602, a first processing module 603, and a report module 604; the first receiving module 601 is configured to receive a report generation request sent by a front end node, where the report generation request carries authority information of the front end node; the first calculation module 602 is configured to calculate a first hash value of authority information of the front end node, and obtain, from the blockchain, the first hash value generated by the front end node; the first processing module 603 is configured to calculate a second hash value of the authority information of the front end node and the authority information of the back end node if the calculated first hash value is consistent with the first hash value obtained from the blockchain, and write the authority information of the front end, the authority information of the back end node and the second hash value into the blockchain; the report module 604 is configured to obtain service data from an organization node, thereby generating report data according to the service data, and return the report data to the front-end node.
Optionally, the report generation request also carries a report query range and a report requirement;
the report module 604 is further configured to:
sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node;
receiving service data returned by the mechanism node;
generating report data according to the report query range and the report requirement and based on the business data.
Optionally, the report module 604 is further configured to:
if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain;
and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data.
Optionally, the report module 604 is further configured to:
and after generating report data according to the service data, storing the report data to a local place, and writing a storage address of the report data and a hash value corresponding to the storage address into a block chain.
The details of the implementation of the blockchain-based report data processing device of the present invention are described in detail in the blockchain-based report data processing method, and therefore, the description thereof will not be repeated here.
FIG. 7 is a schematic diagram of a blockchain-based report data processing device in accordance with an embodiment of the invention. As shown in fig. 7, the report data processing apparatus 500 based on a blockchain is disposed at a mechanism node, and includes a second receiving module 701, a second calculating module 702, and a second processing module 703; the second receiving module 701 is configured to receive a service data acquisition request sent by a back end node, where the service data acquisition request carries authority information of a front end node and authority information of the back end node; the second calculating module 702 is configured to calculate a second hash value of the authority information of the front end node and the authority information of the back end node, and obtain a second hash value generated by the back end node from the blockchain; the second processing module 703 is configured to obtain service data from a database and send the service data to the mechanism node if the calculated second hash value is consistent with the second hash value obtained from the blockchain.
Optionally, the second processing module 703 is further configured to:
acquiring service data from a database;
if the sensitive data exist in the service data, writing the sensitive data and the corresponding hash value thereof into the block chain;
and sending the service data to the organization node.
The details of the implementation of the blockchain-based report data processing device of the present invention are described in detail in the blockchain-based report data processing method, and therefore, the description thereof will not be repeated here.
FIG. 8 illustrates an exemplary system architecture 800 of a blockchain-based report data processing method or a blockchain-based report data processing device to which embodiments of the invention may be applied.
As shown in fig. 8, a system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. The network 804 serves as a medium for providing communication links between the terminal devices 801, 802, 803 and the server 805. The network 804 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 805 through the network 804 using the terminal devices 801, 802, 803 to receive or send messages or the like. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 801, 802, 803.
The terminal devices 801, 802, 803 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 805 may be a server providing various services, such as a background management server (by way of example only) that provides support for shopping-type websites browsed by users using the terminal devices 801, 802, 803. The background management server can analyze and other data such as the received article information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that, the report data processing method based on the blockchain provided by the embodiment of the invention is generally executed by the server 805, and accordingly, the report data processing device based on the blockchain is generally disposed in the server 805.
It should be understood that the number of terminal devices, networks and servers in fig. 8 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 9, there is illustrated a schematic diagram of a computer system 900 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 9 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU) 901, which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901, ROM 902, and RAM903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
The following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 901.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer programs according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a first receiving module, a first computing module, a first processing module, and a reporting module, where the names of the modules do not constitute a limitation on the module itself in some cases.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a second receiving module, a second computing module, and a second processing module, where the names of the modules do not constitute a limitation on the module itself in some cases.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, implement the method of: receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node; calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain; if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the front end, the authority information of the rear end node and the second hash value into the blockchain; and acquiring service data from the organization node, generating report data according to the service data, and returning the report data to the front-end node.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, implement the method of: receiving a service data acquisition request sent by a back-end node, wherein the service data acquisition request carries authority information of a front-end node and authority information of the back-end node; calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and acquiring the second hash value generated by the rear end node from the blockchain; and if the calculated second hash value is consistent with the second hash value obtained from the blockchain, obtaining service data from a database, and sending the service data to the organization node.
As a further aspect, embodiments of the present invention also provide a computer program product comprising a computer program which, when executed by a processor, implements the method according to any of the above embodiments.
According to the technical scheme of the embodiment of the invention, the technical means of calculating the first hash value of the authority information of the front end node and acquiring the first hash value generated by the front end node from the blockchain are adopted, if the calculated first hash value is consistent with the first hash value acquired from the blockchain, the authority information of the front end node and the second hash value of the authority information of the rear end node are calculated, and the authority information of the rear end node and the second hash value are written into the blockchain are adopted, so that the technical problem that the aspects of authenticity, tamper resistance modification, sensitive information privacy and the like of report data are lack to be effectively protected in the prior art is solved. The embodiment of the invention can ensure the non-tamper property, traceability and the like of the report data through the blockchain technology, provide reliable basis for subsequent payment, claim settlement, security and other services, save labor cost and time cost for transacting business, reduce error rate, ensure the control of the report data viewing authority and avoid the leakage of private data.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (15)

1. A report data processing method based on a block chain is characterized by being applied to a back-end node and comprising the following steps:
receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node;
calculating a first hash value of authority information of the front-end node, and acquiring the first hash value generated by the front-end node from the blockchain;
if the calculated first hash value is consistent with the first hash value obtained from the blockchain, calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and writing the authority information of the front end, the authority information of the rear end node and the second hash value into the blockchain;
and acquiring service data from the organization node, generating report data according to the service data, and returning the report data to the front-end node.
2. The method of claim 1, wherein the report generation request further carries a report query scope and a report requirement;
obtaining service data from an organization node, thereby generating report data according to the service data, including:
sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node;
Receiving service data returned by the mechanism node;
generating report data according to the report query range and the report requirement and based on the business data.
3. The method of claim 2, wherein generating report data based on the report query scope and the report requirements and based on the business data comprises:
if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain;
and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data.
4. The method of claim 1, further comprising, after generating report data from the business data:
and storing the report data to the local, and writing the storage address of the report data and the corresponding hash value into a block chain.
5. A report data processing method based on a block chain is characterized by being applied to a mechanism node and comprising the following steps:
Receiving a service data acquisition request sent by a back-end node, wherein the service data acquisition request carries authority information of a front-end node and authority information of the back-end node;
calculating a second hash value of the authority information of the front end node and the authority information of the rear end node, and acquiring the second hash value generated by the rear end node from the blockchain;
and if the calculated second hash value is consistent with the second hash value obtained from the blockchain, obtaining service data from a database, and sending the service data to the organization node.
6. The method of claim 5, wherein retrieving service data from a database and transmitting the service data to the agency node comprises:
acquiring service data from a database;
if the sensitive data exist in the service data, writing the sensitive data and the corresponding hash value thereof into the block chain;
and sending the service data to the organization node.
7. Report data processing device based on block chain, characterized in that, set up in the backend node, include:
the first receiving module is used for receiving a report generation request sent by a front-end node, wherein the report generation request carries authority information of the front-end node;
The first calculation module is used for calculating a first hash value of the authority information of the front-end node and acquiring the first hash value generated by the front-end node from the blockchain;
the first processing module is used for calculating the authority information of the front end node and the second hash value of the authority information of the rear end node if the calculated first hash value is consistent with the first hash value obtained from the blockchain, and writing the authority information of the front end, the authority information of the rear end node and the second hash value into the blockchain;
and the report module is used for acquiring service data from the organization node, generating report data according to the service data and returning the report data to the front-end node.
8. The apparatus of claim 7, wherein the report generation request further carries a report query scope and a report requirement;
the report module is further configured to:
sending a service data acquisition request to an organization node, wherein the service data acquisition request carries authority information of the front end node and authority information of the rear end node;
receiving service data returned by the mechanism node;
generating report data according to the report query range and the report requirement and based on the business data.
9. The apparatus of claim 8, wherein the reporting module is further configured to:
if the sensitive data exist in the service data, calculating a hash value of the sensitive data, and acquiring the hash value of the sensitive data from the block chain;
and if the calculated hash value of the sensitive data is consistent with the hash value of the sensitive data acquired from the blockchain, generating report data according to the report query range and the report requirement and based on the service data.
10. The apparatus of claim 7, wherein the reporting module is further configured to:
and after generating report data according to the service data, storing the report data to a local place, and writing a storage address of the report data and a hash value corresponding to the storage address into a block chain.
11. Report data processing device based on block chain, characterized in that, set up in the mechanism node, include:
the second receiving module is used for receiving a service data acquisition request sent by a back-end node, wherein the service data acquisition request carries authority information of a front-end node and authority information of the back-end node;
the second calculation module is used for calculating the authority information of the front end node and the second hash value of the authority information of the back end node, and acquiring the second hash value generated by the back end node from the blockchain;
And the second processing module is used for acquiring service data from a database and sending the service data to the mechanism node if the calculated second hash value is consistent with the second hash value acquired from the blockchain.
12. The apparatus of claim 11, wherein the second processing module is further configured to:
acquiring service data from a database;
if the sensitive data exist in the service data, writing the sensitive data and the corresponding hash value thereof into the block chain;
and sending the service data to the organization node.
13. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more processors implement the method of any of claims 1-6 when the one or more programs are executed by the one or more processors.
14. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-6.
CN202310417867.6A 2023-04-18 2023-04-18 Report data processing method and device based on block chain and electronic equipment Pending CN116432231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310417867.6A CN116432231A (en) 2023-04-18 2023-04-18 Report data processing method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310417867.6A CN116432231A (en) 2023-04-18 2023-04-18 Report data processing method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
CN116432231A true CN116432231A (en) 2023-07-14

Family

ID=87081240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310417867.6A Pending CN116432231A (en) 2023-04-18 2023-04-18 Report data processing method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN116432231A (en)

Similar Documents

Publication Publication Date Title
CN110879903B (en) Evidence storage method, evidence verification method, evidence storage device, evidence verification equipment and evidence verification medium
US11050690B2 (en) Method for providing recording and verification service for data received and transmitted by messenger service, and server using method
EP3594884A1 (en) Electronic bill management method, device, and storage medium
US20190318129A1 (en) Data enrichment environment using blockchain
CN109815746B (en) Data tamper-proofing method and system based on block chain technology
CN111464499A (en) Electronic warehouse receipt tracing method and device, computer equipment and storage medium
US12015627B2 (en) Webpage integrity monitoring
CN109784870A (en) Measure of managing contract, device, computer equipment and computer readable storage medium
US20170004201A1 (en) Structure-based entity analysis
WO2020055413A1 (en) Blockchain for audit
CN115186304B (en) Transaction data verification method and system based on block chain
CN113139869A (en) Credit investigation authorization query processing method and device
CN109150790A (en) The recognition methods of Web page crawler and device
CN108920971A (en) The method of data encryption, the method for verification, the device of encryption and verification device
CN117041959A (en) Service processing method, device, electronic equipment and computer readable medium
US20230080601A1 (en) Webpage integrity monitoring
CN109120411B (en) Asset securitization basic asset data collection method and device
CN113592645B (en) Data verification method and device
CN116432231A (en) Report data processing method and device based on block chain and electronic equipment
CN115099800A (en) Block chain based method and device for transferring poor asset data
CN116472694A (en) System and method for generating, protecting and maintaining digital tokens of emoticon sequence
CN111275506A (en) Bill issuing method and block link point equipment
US20220147655A1 (en) Information processing method, information processing system, and non-transitory computer readable medium
US20240089128A1 (en) Blockchain monitoring platform
US20230262037A1 (en) Techniques for authenticating using uniquely assigned webpages

Legal Events

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