CN112837043A - Data processing method and device based on block chain and electronic equipment - Google Patents

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

Info

Publication number
CN112837043A
CN112837043A CN202110241522.0A CN202110241522A CN112837043A CN 112837043 A CN112837043 A CN 112837043A CN 202110241522 A CN202110241522 A CN 202110241522A CN 112837043 A CN112837043 A CN 112837043A
Authority
CN
China
Prior art keywords
data
directory
block chain
requester
contract 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.)
Granted
Application number
CN202110241522.0A
Other languages
Chinese (zh)
Other versions
CN112837043B (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 CN202110241522.0A priority Critical patent/CN112837043B/en
Publication of CN112837043A publication Critical patent/CN112837043A/en
Application granted granted Critical
Publication of CN112837043B publication Critical patent/CN112837043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a data processing method and device based on a block chain, electronic equipment and a computer readable storage medium, and relates to the technical field of cloud technology and the block chain. The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; and recording the directory contract information to the blockchain, and providing target data to the data requester based on the data request and the directory contract information when receiving the data request of the data requester. Therefore, the target data requested by the requester are confirmed by the auditing node and reach consensus, the interactive process of the target data is safe and credible, and the data privacy is protected.

Description

Data processing method and device based on block chain and electronic equipment
Technical Field
The present application relates to the field of cloud technologies and block chain technologies, and in particular, to a data processing method and apparatus based on a block chain, an electronic device, and a computer-readable storage medium.
Background
In a data service scene, the existing data service mode depends on a data sharing and exchanging service platform, and data service is completed by utilizing traditional data API (application program interface) calling and database table sharing and exchanging. The method is a general method for data sharing service application, and can smoothly complete the data sharing service under the condition that the two parties of data supply and demand mutually believe enough, but can greatly achieve the data sharing service under the condition that the two parties of data supply and demand do not mutually believe enough.
For example, in a sharing service process depending on a data sharing exchange service platform, the outstanding problems that a data directory is changed randomly, two data and directory pages are available, data resource application, audit and authorization records are incomplete, data service monitoring is not in place and the like generally exist, the operation behaviors of both data service suppliers and data service suppliers cannot realize compliance controllable management, and a data provider generally worrys that data is illegally obtained and abused after data is provided with services, and risks of data leakage and unwilling data sharing are borne; for a data user, the data user cannot use the data safely and reliably through an effective mechanism and means, so that the data service required to be shared is difficult to obtain, and finally, the data supply and demand are not matched and the data sharing cannot be really achieved.
Disclosure of Invention
The object of the present application is to solve at least one of the above-mentioned technical drawbacks, in particular the technical drawback of the data interaction process being untrusted.
According to an aspect of the present application, there is provided a data processing method based on a block chain, the method including:
acquiring a data request sent by a data requester;
the data authority of the data request party is checked, and directory contract information corresponding to the data request party is generated;
and recording the directory contract information to the block chain so as to provide the target data to the data requester based on the data request and the directory contract information.
In one possible implementation, the auditing the data authority of the data requester and generating the directory contract information corresponding to the data requester include:
determining an available data range which is in accordance with the data use rule and aims at a data requester according to the data use rule recorded to the blockchain in advance;
determining an available data interaction mode which is in accordance with a data interaction rule and aims at a data requester according to the data interaction mode rule recorded to a block chain in advance;
and comparing the available data range and the available data interaction mode with a data directory and a data interaction mode directory which are recorded to the block chain in advance respectively, determining a matched directory part, and generating directory contract information aiming at the data requester according to the matched directory part.
In another possible implementation, the method further includes:
when at least one item of directory update information in a data directory and a data interaction mode directory is recorded on a block chain, updating the corresponding directory according to the directory update information;
and updating the contract information of the catalogue according to at least one item of the updated data catalogue and the data interaction mode catalogue.
In another possible implementation, recording the directory contract information to the blockchain includes:
and uploading the catalogue contract information to the block chain by calling an information verification interface of the block chain so as to enable the block chain to carry out parameter verification on the catalogue contract information, and writing the catalogue contract information into the block chain by calling an information writing interface of the block chain in response to passing of the parameter verification.
According to an aspect of the present application, there is provided a data processing method based on a block chain, the method including:
receiving a data request sent by a data requester;
acquiring catalogue contract information corresponding to a data requester from the block chain, wherein the catalogue contract information comprises audit confirmation information of consensus achieved by data audit nodes in the block chain for the data requester to use target data;
target data is provided to the data requestor based on the data request and the directory contract information.
In one possible implementation, the directory contract information includes available data ranges and available data interaction modes,
providing target data to a data requestor based on a data request and directory contract information, comprising:
and when the data request is matched with the catalogue contract information in a checking way, acquiring target data corresponding to the available data range, and providing the target data to the data requester in an available data interaction way.
In another possible implementation, the method further comprises at least one of:
the received data request is linked to a block chain so as to be used for the data auditing node to audit based on the data request;
linking a data service record providing target data to a data requester to a block chain;
and generating a data acquisition record based on the acquired target data and the target data provider information, and linking the data acquisition record to the block chain.
According to another aspect of the present application, there is provided a block chain-based data processing apparatus, the apparatus including:
the acquisition module is used for acquiring a data request sent by a data requester;
the auditing module is used for auditing the data authority of the data requester and generating directory contract information corresponding to the data requester;
and the recording module is used for recording the catalogue contract information to the block chain so as to provide target data for the data requester based on the data request and the catalogue contract information.
According to another aspect of the present application, there is provided a block chain-based data processing apparatus, the apparatus including:
the receiving module is used for receiving a data request sent by a data requesting party;
the contract acquisition module is used for acquiring catalogue contract information corresponding to the data requester from the block chain, wherein the catalogue contract information comprises audit confirmation information which is agreed by a data audit node in the block chain aiming at the data requester by using target data;
and the data providing module is used for providing target data to the data requester based on the data request and the catalogue contract information.
According to another aspect of the present application, there is provided an electronic device including:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a method of block chain based data processing as illustrated in the first aspect of the present application is performed.
For example, a fifth aspect of the present application provides a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the data processing method based on the block chain as shown in the first aspect of the application.
According to yet another aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when run on a processor, enables the processor to perform the method of blockchain-based data processing as illustrated in the first aspect of the present application.
For example, in a sixth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the block chain based data processing method shown in the first aspect of the present application.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of the first aspect or the second aspect described above.
The beneficial effect that technical scheme that this application provided brought is:
the method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and when receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic view of an alternative scenario in which a distributed system provided in an embodiment of the present application is applied to a blockchain system;
fig. 2 is an alternative schematic diagram of a block structure according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application;
FIG. 4 is a flowchart of a UL process for directory contract information according to an embodiment of the present application;
fig. 5 is a second flowchart illustrating a data processing method based on a block chain according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating uplink information query of a data processing method based on a block chain according to an embodiment of the present application;
fig. 7 is a schematic view of an application scenario of a data processing method based on a block chain according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a data processing method based on a block chain according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 10 is a second schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device for data processing based on a block chain according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Under a data sharing exchange service mode, the operation behaviors of both parties of a data service supplier and a data service supplier cannot realize compliance controllable management, and the data supplier generally worrys about the risk of data leakage caused by illegal acquisition and abuse of data in the data providing service.
The present application provides a data processing method, an apparatus, an electronic device and a computer-readable storage medium based on a block chain, which aim to solve the above technical problems in the prior art.
It should be noted that the data processing related in the embodiment of the present application may be implemented by a cloud technology, and optionally, the data storage based on the block chain related in the embodiment of the present application may be implemented by a cloud storage.
The Cloud technology (Cloud technology) is a hosting technology for unifying series resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces to cooperatively work by using functions such as cluster application, grid technology, and a distributed storage file system, and provides a data storage function and a service access function to the outside.
In addition, the block chain-based data processing method of the present application may be performed by various terminal devices or server devices having data processing capabilities.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The following describes a specific implementation scenario provided in the embodiment of the present application with reference to fig. 1 and fig. 2. The system related to the embodiment of the invention can be a distributed system formed by connecting a client, a plurality of nodes (any form of computing equipment in an access network, such as a server and a user terminal) through a network communication mode.
Taking a distributed system as an example of a blockchain system, referring To fig. 1, fig. 1 is an optional structural schematic diagram of a blockchain system To which a distributed system 100 provided by an embodiment of the present invention is applied, where the system is formed by a plurality of nodes (computing devices in any form in an access network, such as servers and user terminals) and clients, and a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and a P2P Protocol is an application layer Protocol operating on top of a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 1, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the remaining electronic money in the electronic money address;
and 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 2, fig. 2 is an optional schematic diagram of a Block Structure (Block Structure) according to an embodiment of the present invention, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
The embodiment of the application provides a data processing method based on a block chain, and an execution subject of the method may be various terminal devices or server devices with data processing capability, or may also be a device or a chip integrated on these devices, and as an optional implementation, may be a data auditing node in a block chain system. As shown in fig. 3, which is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application, the method includes the following steps:
s301: and acquiring the data request sent by the data requester.
Specifically, in this embodiment of the present application, the data auditing node may obtain a data request from the blockchain, where the data request may include an identifier of a data requester and requested target data information, for example, information such as a purpose of the data requester using the target data and a usage flow of the target data. In addition, the data request can be uplink from the data requesting node to the blockchain, or the data management node receiving the data request can uplink the data request to the blockchain.
S302: and auditing the data authority of the data request party to generate the catalogue contract information corresponding to the data request party.
Specifically, in the embodiment of the present application, each audit node may audit the data authority of the data user step by step according to a data usage rule set in advance, for example, in a scenario where data is requested between different departments, the determination department needs to acquire medical data of related personnel from the medical department to perform determination work, so that after a node corresponding to the determination department serving as the data request party sends a data request, a node corresponding to the data audit department and a node corresponding to the data source medical department may serve as data audit nodes, and audit is performed step by step, for example, from a higher level to a lower level according to an audit hierarchical relationship. And respectively auditing the data authority of the affirmation department as the data request party according to respective preset data use rules, for example, auditing and confirming whether the data use purpose, the data use process, the safety requirement in the data use process and the like of the data request party meet preset standards, thereby determining the usable data catalog range of the auditing party, and generating catalog contract information corresponding to the data request party based on the audited catalog range.
S303: and recording the directory contract information to the block chain so as to provide the target data to the data requester based on the data request and the directory contract information.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; and recording the directory contract information to the blockchain for providing the target data to the data requester based on the data request and the directory contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and reach consensus, the interaction safety and credibility of the target data are realized, and the data are prevented from being illegally acquired and leaked.
In an embodiment of the present application, the step S302 may include:
s3021: determining an available data range which is in accordance with the data use rule and aims at a data requester according to the data use rule recorded to the blockchain in advance;
s3022: determining an available data interaction mode which is in accordance with a data interaction rule and aims at a data requester according to the data interaction mode rule recorded to a block chain in advance;
s3023: and comparing the available data range and the available data interaction mode with a data directory and a data interaction mode directory which are recorded to the block chain in advance respectively, determining a matched directory part, and generating directory contract information aiming at the data requester according to the matched directory part.
Specifically, the data auditing nodes can audit the data request step by step, wherein different auditing nodes can audit different parts of data request information, can audit all contents of the data request information, and can audit different types of requested target data, so that an available data range conforming to the data use rule of a data requester is determined according to the data use rule recorded in a block chain in advance.
As one way, different auditing nodes may audit different parts of the data request information, for example, in an actual scenario, the data auditing node may audit the data usage purpose in the data request, determine whether the data usage purpose of the requester meets a data usage rule recorded in advance on the block chain, and compare the data usage rule with an available data range corresponding to the data usage purpose of the requester, for example, in a scenario where a recognition department requests medical data of related personnel, the auditing node may audit the recognition department performing related recognition work and using the purpose of the medical data, determine whether the data has permission to use the medical data of the related personnel, and may use which data in the medical data of the related personnel, for example, after being determined by auditing, in performing the recognition work, names, or data in the medical data of the related personnel may be used, Age, medical history data, medical expense data, etc. Then, the next-level auditing node may audit the data usage flow, and determine which data information of the relevant person can be used by the approval flow in the data request according to the data usage rule, for example, according to the data usage rule, in the approval flow, the family member information, the family income information, and the like of the individual related to the relevant person are required, and thus, it is confirmed that the data request has the authority to use the family member information and the family income information. Therefore, the data request is audited through all levels of audit nodes, and the available data range after auditing is determined based on the audit result of each audit node.
In addition, as another mode, each auditing node can also audit all contents of the data request information, wherein each data auditing node respectively determines an available data range approved by the auditing node according to a data usage rule corresponding to the auditing node, and then determines a final available data range based on an auditing result of each auditing node. For example, in the scenario of requesting medical data of related personnel, the data authority of each data auditing node for the data requester can be confirmed by performing the auditing process in the order from low to high, and the first-level auditing node, for example, a medical department node serving as a data source node, first audits the content of the data request according to the data usage rule corresponding to the medical department node, for example, the data requester identifier, the data usage purpose, the data usage flow and other information included in the data request, and can compare the information with the data usage rule preset by the data source node to determine the available data range of the data requester. Specifically, for example, the data requesting department is a data requesting party, the data using purpose is to identify the relevant person, the data using process is to identify the disease level, then identify the medical expense, and then further identify the household income condition, and during the process of auditing the content contained in the data request, the available data range of the data requesting party for the data request can be determined as the identity information, the medical history data, the medical expense data and the household income data of the relevant person according to the data using rule corresponding to the data source node. After the first-level auditing node, namely the data source node, finishes auditing, the method can flow to the next-level auditing node, continue to audit the content in the data request, and determine the available data range of the data request party, wherein the next-level auditing node can further determine the available data range which conforms to the data use rule corresponding to the next-level auditing node on the basis of the available data range determined by the previous-level auditing node. For example, the next level auditing node may determine the available data range based on the data source node of the previous level: based on the identity information, the medical history data, the medical expense data and the family income data of the related personnel, the usable data range of the data request party is determined according to the data use rule corresponding to the node, wherein the usable data range can be the name, the age, the identity number and the like in the identity information of the related personnel, the disease type, the medical history time and the like in the medical history data of the related personnel, the total medical expense, the medical reimbursement proportion and the like in the medical data, the family income data of the last 5 years in the family income data and the like. And according to the grade-by-grade auditing, continuously auditing on the basis of the available data range determined by the grade-by-grade auditing, and thus determining the final available data range which reaches consensus through each auditing node through the auditing of each auditing node.
It should be noted that, when each audit node performs audit on all data request contents to determine the available data range of the data request party, each audit node may also determine the available data range of the data request party only according to the data usage rule corresponding to the node, without performing audit on the basis of the last-stage audit result, and finally, the intersection of the available data ranges of the data request parties determined by each audit node is used as the finally determined available data range.
In addition, as another mode, each auditing node may further perform, for a data type of the requested target data, auditing for each auditing node for a specific data type, and determine an available data range of the data requesting party, for example, in the above scenario, the data request may include requested target data information, where the target data may include identification information data of related personnel, medical data, and the like, and therefore, when performing auditing, each auditing node may perform auditing for the target data of the corresponding data type according to the data type to which the target data belongs, for example, an auditing node responsible for auditing the identification information data performs auditing only for the permission of use of the identification data of the data requesting party, and determines an available data range of the identification data that meets the preset data use rule, for example, based on the above scenario, when the relevant person is authenticated, the identification data which can be used by the authentication department as the data requester comprises the name, the age, the identification number, or which position in the identification number. In addition, other nodes responsible for auditing each data type respectively determine the data available range corresponding to the auditing type, and finally, the available data range of the data request party is determined according to the available data range of each data type determined by auditing each auditing node. In this auditing mode, auditing may not be limited by the auditing sequence.
It can be understood that, in the above-mentioned auditing process, auditing may be performed according to a certain order according to the auditing content of each auditing node, or auditing may not be performed according to a specific auditing order, and a specific auditing manner is determined according to different scenarios, which is not particularly limited in the embodiment of the present application.
In addition, the auditing and determining of the available data interaction mode can also be performed in various modes of the available data range, and are not described herein again. The data interaction mode is a mode of interacting data with a data requesting party, for example, interacting through a data interface, or sending to a preset data server.
In addition, it should be noted that the auditing of the data interaction mode may be performed based on the data interaction mode information requested in the data request, and an available data interaction mode that meets the data interaction rule is determined. In addition, the data request may not include the requested data interaction mode information, but determine one or more data interaction modes suitable for the target data based on the requested target data for auditing.
Further, after the available data range and the available data interaction mode which are audited by each audit node are determined, the available data range and the available data interaction mode can be compared with the data directory and the data interaction mode directory which are recorded to the block chain in advance respectively, a matched directory portion is determined, and directory contract information aiming at the data requester is generated according to the matched directory portion.
It is to be understood that, after determining the available data range of the data requester, mapping the available data range to the data directories on the blockchain, so as to obtain the target data requested by the data requester by querying the corresponding data directory, for example, the determined available directory portion may be a directory chain composed of directories of different hierarchies to which the target data belongs. For example, the available data range checked and confirmed by the audit node includes names of related persons, types of diseases, and the like, and the data correspond to data categories in the blockchain, namely { related person data } - { medical data } - { personal information } -name, and { related person data } - { medical data } - { disease status } -type of disease, respectively. Therefore, the generated catalogue contract information can be used for inquiring the data catalogue so as to obtain corresponding data.
In addition, it should be noted that the data directory pre-recorded on the block chain may be written by the data source node according to the data resource information included in the node in advance, and after the writing is completed, a data directory uplink application is provided, where the data directory uplink application needs to be checked by a checking node in the block chain, for example, whether the data directory corresponds to the data resource, whether the data resource is real and valid, and the like. Therefore, the data directory can be linked to the block chain only through the audit confirmation of the audit node, and therefore the authenticity and the credibility of the data directory linked to the block chain are guaranteed.
The method comprises the steps of verifying the data authority of a data requester, determining an available data range and an available data interaction mode aiming at the data requester, and further generating directory contract information corresponding to the data requester; and recording the directory contract information to the block chain so as to provide the target data to the data requester based on the data request and the directory contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
In another embodiment of the present application, based on the previous embodiment, each audit node audits the data permission of the requester, and the determined available data range, which conforms to the data usage rule, for the data requester, may generate requirement contract information for the data request, where the requirement contract information may record a data request and audit process information of each data audit node for the data request, which may include, for example, an audit node identifier, a data usage rule according to which the audit node audits, and an audit result of the audit node, that is, the available data range determined by the node. And generating requirement contract information of the data request based on the auditing process information and the finally determined available data range of the data requester, and recording the requirement contract information to the block chain.
And based on the data permission of the requester being audited for each audit node, determining an available data interaction mode meeting the data interaction rule for the data requester, and generating service contract information for the data request, where the service contract information may record a data request and audit process information for each data audit node for the data request, and may include, for example, an audit node identifier, a data interaction rule according to which the audit node audits, and an audit result of the audit node, that is, the available data interaction mode determined by the node. And generating service contract information of the data request based on the auditing process information and the finally determined available data interaction mode of the data request party, and recording the service contract information to the block chain.
According to the embodiment of the application, the data request, the data auditing process information and the auditing result in the data interaction process are recorded and linked up by generating the demand contract information and the service contract information recorded with the data request, the data auditing information and the auditing result and recording the demand contract information and the service contract information on the block chain, so that the data request, the data auditing process information and the auditing result in the data interaction process are ensured to be real and credible, the data request and the data auditing process information are marked in the whole block chain, details can be checked, and the safety and traceability of the data interaction process are ensured.
In an embodiment of the application, the step S303 may specifically include:
and uploading the catalogue contract information to the block chain by calling an information verification interface of the block chain so as to enable the block chain to carry out parameter verification on the catalogue contract information, and writing the catalogue contract information into the block chain by calling an information writing interface of the block chain in response to passing of the parameter verification.
Specifically, as shown in fig. 4, which is a flowchart of chaining directory contract information in the embodiment of the present application, after the contract information is generated in step S302, the data auditing node may upload the directory contract information by calling an information verification interface of a block chain to trigger the block chain to perform analysis and parameter verification on the directory contract information, where the information verification interface of the block chain may be an application interface of the block chain.
The verification content may include format verification, such as data non-null verification, data repeatability verification. In addition, the check content may also include an admission check, such as whether the directory contract information conforms to the admission condition of the block chain. The verification content may also include basic verification, such as whether a directory exists in the directory contract information, and the like. If the verification is passed, acquiring block chain bottom chain connection information by triggering, converting the directory contract information into a data format corresponding to an information writing interface of the block chain according to the block chain bottom chain connection information, writing the directory contract information into the block chain bottom chain through the information writing interface, executing an intelligent contract of the block chain after writing, and returning the written directory contract information to a block chain application interface after verification of the intelligent contract so as to share the directory contract information on the block chain.
According to the embodiment of the application, the information verification interface of the block chain is called, the catalogue contract information is uploaded to the block chain, so that the block chain conducts parameter verification on the catalogue contract information, the parameter verification is responded, the catalogue contract information is written into the block chain through the information writing interface of the calling block chain, and the reality and the credibility of the catalogue contract information are guaranteed.
In another embodiment of the present application, the data processing method may further include the steps of:
when at least one item of directory update information in a data directory and a data interaction mode directory is recorded on a block chain, updating the corresponding directory according to the directory update information;
and updating the contract information of the catalogue according to at least one item of the updated data catalogue and the data interaction mode catalogue.
Specifically, when the data directory changes due to the update of the data resource of the data source node, or the data interaction manner changes, for example, when data needs to be added, changed, or deleted and then the data directory is added, changed, or deleted, and when the data interaction manner needs to be added, changed, or deleted and then the data interaction manner directory is added, changed, or deleted, and then the data interaction manner directory is changed, or the data interaction manner directory is deleted, the data directory and the data interaction manner directory corresponding to the available data range and the available data interaction manner determined by the audit respectively need to be updated, and the directory contract information is updated according to the updated data directory and data interaction manner directory.
When the data directory or the data interaction mode directory is updated, a node for updating the data directory or the data interaction mode directory, for example, a data source node, needs to submit a corresponding directory update uplink application, the updated directory is audited through the data audit node, and the updated directory can be uplink to the block chain only after the intelligent contract is triggered to complete the consensus judgment. It should be noted that, when the data directory or the data interaction manner directory is changed or deleted, since the data directory or the data interaction manner directory may have been used by multiple data requesters, when performing the audit, the audit node may include a data requester node, and the intelligent contract may satisfy the data requester node acceptance greater than a preset percentage, for example, greater than 50%, when determining whether each audit node agrees.
According to the embodiment of the application, when at least one item of directory update information in a data directory and a data interaction mode directory is recorded on a block chain, the corresponding directory is updated according to the directory update information, and directory contract information is updated according to the updated data directory and the updated data interaction mode directory, so that when the data directory and the data interaction mode directory are updated, a directory contract is updated, and data interaction through an available data directory and an available data interaction mode directory in the updated directory contract information is ensured. And the directory update and the update information of the directory contract are all recorded on the block chain, so that the safety and the credibility of the data change are ensured.
In another embodiment of the present application, a data processing method based on a blockchain is provided, where an execution subject of the method may be various terminal devices or server devices with data interaction capability, or may also be a device or chip integrated on these devices, and specifically, may be a data management node in a blockchain system. As shown in fig. 5, it is a second schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application, and the method includes the following steps:
s501: and receiving a data request sent by a data requester.
S502: and acquiring the catalogue contract information corresponding to the data requester from the blockchain, wherein the catalogue contract information comprises audit confirmation information of consensus achieved by the data audit nodes in the blockchain on the data requester by using the target data.
S503: target data is provided to the data requestor based on the data request and the directory contract information.
Specifically, in the embodiment of the present application, the directory contract information corresponding to the data requestor and obtained from the blockchain may include two cases, where in one case, the directory contract information may be audit confirmation information that is agreed when the data audit node in the blockchain performs audit on the data request sent by the data requestor this time. For example, in an actual scenario, data requested by a data requester may be acquired at one time, for example, in the scenario where a certification department acquires data of related personnel, when the certification department needs to acquire personal information of the related personnel, since the personal information does not dynamically change, acquisition of such data information may be generally completed at one time, and therefore, for this situation, after responding to a data request issued by the data requester, a data auditing node may be triggered to audit the data request to generate catalog contract information, and acquire the audit contract information from a block chain.
Alternatively, the directory contract information may be audit contract information based on a consensus that an audit was conducted for a data request associated with the data request prior to the data request, i.e., the directory contract information may have been generated prior to receiving the data request. For example, in the scenario of the foregoing embodiment where the medical data of the relevant person is requested by the determination department, the medical data information of the relevant person needs to be acquired by the determination department, and the medical data information dynamically changes with time, so that the medical data of the relevant person needs to be acquired by the determination department at intervals of a preset time period, or at a preset time point, for example, needs to be acquired once every quarter, or acquired 1 day per month. Thus, when the request data is made at the preset time period or the preset time point, the directory contract information of the regular data demand is acquired from the blockchain.
The directory contract information may include an audit verification of the data authority of the data requester and an audit confirmation of the agreed identity.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
In another embodiment of the present application, the directory contract information includes an available data range and an available data interaction manner, and step S503 may include:
and when the data request is matched with the catalogue contract information in a checking way, acquiring target data corresponding to the available data range, and providing the target data to the data requester in an available data interaction way.
Specifically, the data request may include requested target data information, and when the target data belongs to data in an available data range corresponding to the data directory in the directory contract information and the interaction mode for the target data belongs to an available data interaction mode, the target data may be provided to the data requester in the available data interaction mode. When the target data is data stored in the management node, the management node directly provides the target data to the data requester, and when the management node does not store the target data, the management node can acquire the target data from the data source node and further provide the target data to the data requester.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
In another embodiment of the present application, the data processing method may further include the steps of:
the received data request is linked to a block chain so as to be used for the data auditing node to audit based on the data request;
linking a data service record providing target data to a data requester to a block chain;
and generating a data acquisition record based on the acquired target data and the target data provider information, and linking the data acquisition record to the block chain.
As shown in fig. 6, which is a schematic diagram illustrating uplink information query of the data processing method based on a block chain according to the present application, in the embodiment of the present application, information recorded on the block chain, such as a data request, a data service record, and a data acquisition record, records a data interaction process, and can check data interaction information by querying the information record recorded on the block chain.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
The data processing method based on the block chain in the embodiment of the application can be applied to a cross-department data interaction scene, for example, the data processing method can be applied to data interaction between different departments in the same enterprise unit, and can also be applied to data interaction between the departments of different enterprise units. The following describes a specific implementation scenario provided in the embodiment of the present application with reference to fig. 7 and 8.
Fig. 7 is a schematic view of an application scenario of the data processing method based on the block chain according to the embodiment of the present application, and the application scenario of the data processing method based on the block chain is described below by taking the scenario as an example. As shown in the figure, in this scenario, the data requesting department may query whether the data directory includes target data to be called by querying the data directory pre-recorded in the blockchain, and if the data directory includes a directory entry corresponding to the target data, a data request may be sent to the data management node, where the data request may include information such as a requester identifier, requested target data information, a use of the data, and a flow of the data to be used. And recording the data request to the blockchain, wherein the data request can be recorded to the blockchain through the data requester node, and the data requester node can also send the data request to the data management node, and the data management node records the data request to the blockchain.
Further, after the data request is recorded in the blockchain, the data auditing node on the blockchain may acquire the data request from the blockchain and audit the data authority of the requester, where in this scenario, the data auditing node may be a node corresponding to the source department and a node corresponding to the municipality department. In the auditing process, a resource requirement protocol may be generated for auditing the data request, and the resource requirement protocol may include data request information, for example, information such as a requester identifier, a use of the requested data, a flow for using the data, target data information of the request, auditing information for data permissions of the requester, for example, a data auditing node identifier, and an auditing result, that is, an available data range corresponding to the data requester determined by auditing. And recording the generated resource demand protocol as a demand contract on the block chain. In addition, a data service protocol can be generated for auditing a data request, where the data service protocol is a protocol generated for auditing a target data interaction manner, where the data service protocol may include data request information, and the data request information may include information such as a requester identifier, a use of the requested data, a flow of using the data, and requested target data information, where the target data information may include the target data interaction manner. In addition, the data service protocol further includes audit information for the target data interaction mode, such as a data audit node identifier, and an audit result, that is, an available data interaction mode corresponding to the data requester determined by the audit. And recording the generated data service protocol as a service contract on the blockchain.
Further, the available data range and the available data interaction mode determined by the examination are respectively compared with the data directory and the data interaction mode directory recorded in the block chain in advance, a data directory part corresponding to the available data range and a data interaction mode directory part corresponding to the available data interaction mode are determined, and the corresponding data directory part and the corresponding data interaction mode directory part are generated into a directory contract corresponding to the data requester and recorded on the block chain.
After receiving the data request, the data management node may obtain the directory contract from the blockchain, compare target data information in the data request with the directory contract, and if the requested target data and the data interaction manner of the target data are within the range of the directory contract record, provide the target data to the data requester in the data interaction manner included in the data request. The provided target data may be data stored by the data management node, and when the target data is not stored in the data management node, the target data may also be obtained from the data source node or from a data auditing node containing the data.
Fig. 8 is a flow sequence diagram of a data processing method based on a block chain according to an embodiment of the present application, in a data interaction process, first, a data request node sends a data request to a data management node, and the data management node or the data request node records the data request to the block chain, so that, after obtaining the data request from the block chain, a data auditing node audits data permissions of a data requester, determines an available data range and an available data interaction manner of the data requester, generates directory contract information based on a data directory portion corresponding to the available data range and a data interaction manner directory corresponding to the available data interaction manner, and records the directory contract information to the block chain. Then, the data management node obtains the directory contract information corresponding to the requester from the blockchain based on the received data request, where the directory contract information may be the directory contract information generated by auditing for the received data request or the directory contract information generated by auditing for the data request associated with the received data request, and further, the data management node performs matching verification on the data request and the directory contract information, and when the target data and the target data interaction mode in the data request are respectively in the available data range and the available data interaction mode range included in the directory contract information, the data management node may provide the target data to the data request node. The target data can be sent to the data management node by the data auditing node and sent to the data requesting node by the data management node.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
An embodiment of the present application provides a data processing apparatus based on a block chain, as shown in fig. 9, which is one of the schematic structural diagrams of the data processing apparatus based on a block chain provided in the embodiment of the present application, where the data processing apparatus 90 based on a block chain may include: an acquisition module 901, an auditing module 902, and a logging module 903, wherein,
an obtaining module 901, configured to obtain a data request sent by a data requestor;
the auditing module 902 is configured to audit the data permission of the data requestor and generate directory contract information corresponding to the data requestor;
a recording module 903, configured to record the directory contract information to the block chain, so as to provide the target data to the data requester based on the data request and the directory contract information.
In another embodiment, the audit module is specifically configured to:
determining an available data range which is in accordance with the data use rule and aims at a data requester according to the data use rule recorded to the blockchain in advance;
determining an available data interaction mode which is in accordance with a data interaction rule and aims at a data requester according to the data interaction mode rule recorded to a block chain in advance;
and comparing the available data range and the available data interaction mode with a data directory and a data interaction mode directory which are recorded to the block chain in advance respectively, determining a matched directory part, and generating directory contract information aiming at the data requester according to the matched directory part.
In another embodiment, the recording module is specifically configured to:
and uploading the catalogue contract information to the block chain by calling an information verification interface of the block chain so as to enable the block chain to carry out parameter verification on the catalogue contract information, and writing the catalogue contract information into the block chain by calling an information writing interface of the block chain in response to passing of the parameter verification.
In another embodiment, the apparatus may further include:
the updating module is used for updating the corresponding directory according to the directory updating information when at least one item of directory updating information in the data directory and the data interaction mode directory is recorded on the block chain;
and updating the contract information of the catalogue according to at least one item of the updated data catalogue and the data interaction mode catalogue.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
Fig. 10 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application, and as shown in fig. 10, which is a second schematic structural diagram of the data processing apparatus based on a block chain according to the embodiment of the present application, the data processing apparatus 100 based on a block chain may include: a receiving module 1001, a contract obtaining module 1002, and a data providing module 1003, wherein:
a receiving module 1001, configured to receive a data request sent by a data requesting party;
a contract obtaining module 1002, configured to obtain, from the block chain, directory contract information corresponding to the data requestor, where the directory contract information includes audit confirmation information that a data audit node in the block chain agrees with the data requestor using the target data;
a data providing module 1003, configured to provide the target data to the data requester based on the data request and the directory contract information.
In another embodiment, the directory contract information includes available data ranges and available data interaction patterns.
The data providing module is specifically configured to: and when the data request is matched with the catalogue contract information in a checking way, acquiring target data corresponding to the available data range, and providing the target data to the data requester in an available data interaction way.
In another embodiment, the apparatus may further include:
the uplink module is used for uplink the received data request to the block chain so as to be used for the data auditing node to audit based on the data request;
linking a data service record providing target data to a data requester to a block chain;
and generating a data acquisition record based on the acquired target data and the target data provider information, and linking the data acquisition record to the block chain.
The data processing apparatus based on the block chain in this embodiment can execute the data processing method based on the block chain shown in the foregoing embodiments of this application, and the implementation principles thereof are similar, and are not described herein again.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
An embodiment of the present application provides an electronic device, including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
In an alternative embodiment, an electronic device is provided, as shown in fig. 11, the electronic device 4000 shown in fig. 11 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 4003 is used for storing application program codes (computer programs) for executing the present scheme, and is controlled by the processor 4001 to execute. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile phones, notebook computers, multimedia players, desktop computers, and the like.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various alternative implementations of the multimedia data processing method.
The method comprises the steps that the data authority of a data requester is checked, and directory contract information corresponding to the data requester is generated; recording the directory contract information to a block chain, and receiving a data request sent by a data requester; and acquiring the catalogue contract information corresponding to the data requester from the blockchain, and providing the target data to the data requester based on the data request and the catalogue contract information. Therefore, the target data requested by the requester are confirmed by the auditing node and are agreed, the interactive process of the target data is safe and credible, and the data is prevented from being illegally acquired and leaked.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A data processing method based on a block chain is characterized in that the method is executed by a data auditing node in the block chain and comprises the following steps:
acquiring a data request sent by a data requester;
verifying the data authority of the data requester to generate directory contract information corresponding to the data requester;
recording the directory contract information to the blockchain to provide target data to the data requestor based on the data request and the directory contract information.
2. The data processing method of claim 1,
the verifying the data authority of the data requester and generating the catalogue contract information corresponding to the data requester comprise:
determining an available data range which accords with the data usage rule for the data requester according to the data usage rule recorded to the block chain in advance;
determining an available data interaction mode which is in accordance with the data interaction rule and aims at the data requester according to the data interaction mode rule recorded to the blockchain in advance;
and comparing the available data range and the available data interaction mode with a data directory and a data interaction mode directory which are recorded to a block chain in advance respectively, determining a matched directory part, and generating directory contract information aiming at the data requester according to the matched directory part.
3. The data processing method of claim 2, further comprising:
when at least one item of directory update information in the data directory and the data interaction mode directory is recorded on a block chain, updating the corresponding directory according to the directory update information;
and updating the catalogue contract information according to at least one item of the updated data catalogue and the updated data interaction mode catalogue.
4. A data processing method according to any one of claims 1 to 3, wherein said recording the directory contract information to the block chain comprises:
and uploading the catalogue contract information to the block chain by calling an information verification interface of the block chain so as to enable the block chain to carry out parameter verification on the catalogue contract information, and writing the catalogue contract information into the block chain by calling an information writing interface of the block chain in response to passing of the parameter verification.
5. A data processing method based on a blockchain, performed by a data management node in the blockchain, includes:
receiving a data request sent by a data requester;
acquiring catalogue contract information corresponding to the data requester from the block chain, wherein the catalogue contract information comprises audit confirmation information agreed by data audit nodes in the block chain aiming at the data requester using target data;
providing target data to the data requestor based on the data request and the directory contract information.
6. The data processing method of claim 5, wherein the directory contract information includes available data ranges and available data interaction modes,
the providing target data to the data requestor based on the data request and the directory contract information includes:
and when the data request is matched with the catalogue contract information in a checking way, acquiring target data corresponding to the available data range, and providing the target data to the data requester in an available data interaction way.
7. The data processing method of claim 5, wherein the method further comprises at least one of:
the received data request is uplinked to the block chain for a data auditing node to audit based on the data request;
uplink data service records providing target data to a data requester to the block chain;
and generating a data acquisition record based on the acquired target data and the target data provider information, and linking the data acquisition record to the block chain.
8. A blockchain-based data processing apparatus, comprising:
the acquisition module is used for acquiring a data request sent by a data requester;
the auditing module is used for auditing the data authority of the data requester and generating directory contract information corresponding to the data requester;
and the recording module is used for recording the catalogue contract information to the block chain so as to provide target data for the data requester based on the data request and the catalogue contract information.
9. A blockchain-based data processing apparatus, comprising:
the receiving module is used for receiving a data request sent by a data requesting party;
the contract acquisition module is used for acquiring directory contract information corresponding to the data requester from the block chain, wherein the directory contract information comprises audit confirmation information of consensus achieved by data audit nodes in the block chain for the data requester to use target data;
and the data providing module is used for providing target data to the data requester based on the data request and the catalogue contract information.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the blockchain-based data processing method according to any one of claims 1 to 4.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: -performing the blockchain-based data processing method according to any one of claims 5 to 7.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for blockchain-based data processing according to any one of claims 1 to 4.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for blockchain-based data processing according to any one of claims 5 to 7.
CN202110241522.0A 2021-03-04 2021-03-04 Block chain-based data processing method and device and electronic equipment Active CN112837043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110241522.0A CN112837043B (en) 2021-03-04 2021-03-04 Block chain-based data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110241522.0A CN112837043B (en) 2021-03-04 2021-03-04 Block chain-based data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112837043A true CN112837043A (en) 2021-05-25
CN112837043B CN112837043B (en) 2023-07-18

Family

ID=75934600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110241522.0A Active CN112837043B (en) 2021-03-04 2021-03-04 Block chain-based data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112837043B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013077080A (en) * 2011-09-29 2013-04-25 Fujitsu Ltd Analysis support program, analysis support method, analysis support apparatus, and system
US20140278761A1 (en) * 2013-03-15 2014-09-18 Brighttag Inc. Method and apparatus for data matching and integration
CN107004048A (en) * 2014-10-24 2017-08-01 艾高特有限责任公司 Record access and management
CN107241360A (en) * 2017-08-04 2017-10-10 北京明朝万达科技股份有限公司 A kind of data safety shares exchange method and data safety shares switching plane system
CN108512930A (en) * 2018-04-11 2018-09-07 广州视源电子科技股份有限公司 A kind of management method of shared file, device, server and storage medium
CN109643429A (en) * 2016-08-23 2019-04-16 伊路米纳有限公司 For sharing the association system and method for medical data
CN109995791A (en) * 2019-04-11 2019-07-09 清华大学 A kind of data grant method and system
US20190342078A1 (en) * 2017-02-17 2019-11-07 Alibaba Group Holding Limited Blockchain system and data storage method and apparatus
CN110602206A (en) * 2019-09-12 2019-12-20 腾讯科技(深圳)有限公司 Data sharing method and device based on block chain and storage medium
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN111033636A (en) * 2017-09-29 2020-04-17 苹果公司 Techniques for building a medical provider database
CN111416704A (en) * 2020-03-17 2020-07-14 中国建设银行股份有限公司 Data processing method, device and system based on block chain
US20200374106A1 (en) * 2019-05-22 2020-11-26 Salesforce.Com, Inc. System or method to implement record level access on metadata driven blockchain using shared secrets and consensus on read
CN112235294A (en) * 2020-10-14 2021-01-15 南京三眼精灵信息技术有限公司 Block chain cooperative authority control method and device
CN112347470A (en) * 2020-11-27 2021-02-09 国家电网有限公司大数据中心 Power grid data protection method and system based on block chain and data security sandbox
CN112380564A (en) * 2020-11-19 2021-02-19 河南海融软件有限公司 Data security management system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013077080A (en) * 2011-09-29 2013-04-25 Fujitsu Ltd Analysis support program, analysis support method, analysis support apparatus, and system
US20140278761A1 (en) * 2013-03-15 2014-09-18 Brighttag Inc. Method and apparatus for data matching and integration
CN107004048A (en) * 2014-10-24 2017-08-01 艾高特有限责任公司 Record access and management
CN109643429A (en) * 2016-08-23 2019-04-16 伊路米纳有限公司 For sharing the association system and method for medical data
US20190342078A1 (en) * 2017-02-17 2019-11-07 Alibaba Group Holding Limited Blockchain system and data storage method and apparatus
CN107241360A (en) * 2017-08-04 2017-10-10 北京明朝万达科技股份有限公司 A kind of data safety shares exchange method and data safety shares switching plane system
CN111033636A (en) * 2017-09-29 2020-04-17 苹果公司 Techniques for building a medical provider database
CN108512930A (en) * 2018-04-11 2018-09-07 广州视源电子科技股份有限公司 A kind of management method of shared file, device, server and storage medium
CN109995791A (en) * 2019-04-11 2019-07-09 清华大学 A kind of data grant method and system
US20200374106A1 (en) * 2019-05-22 2020-11-26 Salesforce.Com, Inc. System or method to implement record level access on metadata driven blockchain using shared secrets and consensus on read
CN110602206A (en) * 2019-09-12 2019-12-20 腾讯科技(深圳)有限公司 Data sharing method and device based on block chain and storage medium
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN111416704A (en) * 2020-03-17 2020-07-14 中国建设银行股份有限公司 Data processing method, device and system based on block chain
CN112235294A (en) * 2020-10-14 2021-01-15 南京三眼精灵信息技术有限公司 Block chain cooperative authority control method and device
CN112380564A (en) * 2020-11-19 2021-02-19 河南海融软件有限公司 Data security management system
CN112347470A (en) * 2020-11-27 2021-02-09 国家电网有限公司大数据中心 Power grid data protection method and system based on block chain and data security sandbox

Also Published As

Publication number Publication date
CN112837043B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US11205172B2 (en) Factom protocol in blockchain environments
US11899817B2 (en) Systems, methods, and apparatuses for storing PII information via a metadata driven blockchain using distributed and decentralized storage for sensitive user information
US11451530B2 (en) Systems, methods, and apparatuses for implementing super community and community sidechains with consent management for distributed ledger technologies in a cloud based computing environment
US11611560B2 (en) Systems, methods, and apparatuses for implementing consensus on read via a consensus on write smart contract trigger for a distributed ledger technology (DLT) platform
US20230342734A1 (en) Systems, methods, and apparatuses for implementing smart flow contracts using distributed ledger technologies in a cloud based computing environment
US11360963B2 (en) Tracking and verification of physical assets
US11652605B2 (en) Advanced non-fungible token blockchain architecture
US20210091960A1 (en) Tracking and verification of physical assets
US20190166110A1 (en) System and Method for Identity Management
US20190236562A1 (en) Systems, methods, and apparatuses for implementing document interface and collaboration using quipchain in a cloud based computing environment
US20190238316A1 (en) Systems, methods, and apparatuses for implementing intelligent consensus, smart consensus, and weighted consensus models for distributed ledger technologies in a cloud based computing environment
US20190236606A1 (en) Systems, methods, and apparatuses for implementing a virtual chain model for distributed ledger technologies in a cloud based computing environment
US9876803B2 (en) System and method for identity management
CN110471982B (en) Data processing method and device based on block chain
Reddy et al. Blockchain as a disruptive technology in healthcare and financial services-A review based analysis on current implementations
JP2023513420A (en) Index structure for blockchain ledger
CN112700251B (en) Identity confirmation method, device and system in financial scene
KR102166690B1 (en) Management server and method of digital signature for electronic document
US20220036323A1 (en) Electronic wallet allowing virtual currency expiration date
CN111612452A (en) Intellectual property management system and method based on block chain
CN112700250A (en) Identity authentication method, device and system in financial scene
US20210224334A1 (en) Conflict-free version control
JP2023511886A (en) Conflict-free version control
CN112862589A (en) Identity verification method, device and system in financial scene
CN112837043B (en) Block chain-based data processing method and device and electronic equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40043551

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant