CN112837043B - Block chain-based data processing method and device and electronic equipment - Google Patents

Block chain-based data processing method and device and electronic equipment Download PDF

Info

Publication number
CN112837043B
CN112837043B CN202110241522.0A CN202110241522A CN112837043B CN 112837043 B CN112837043 B CN 112837043B CN 202110241522 A CN202110241522 A CN 202110241522A CN 112837043 B CN112837043 B CN 112837043B
Authority
CN
China
Prior art keywords
data
blockchain
directory
contract information
auditing
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.)
Active
Application number
CN202110241522.0A
Other languages
Chinese (zh)
Other versions
CN112837043A (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

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

Abstract

The embodiment of the application provides a data processing method and device based on a blockchain, electronic equipment and a computer readable storage medium, and relates to the technical fields of cloud technology and blockchain. The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; the directory contract information is recorded to the blockchain, and when a data request of a data requester is received, target data is provided to the data requester based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, the safe and reliable interaction process of the target data is realized, and the data privacy is protected.

Description

Block chain-based data processing method and device and electronic equipment
Technical Field
The application relates to the field of cloud technology and blockchain technology, in particular to a blockchain-based data processing method, a blockchain-based data processing device, electronic equipment and a computer readable storage medium.
Background
In the data service scene, the existing data service mode relies on a data sharing exchange service platform, and the data service is completed by using the traditional data API interface call and the database table sharing exchange. The method is a general method of data sharing service application, and can smoothly complete data sharing service under the condition of enough mutual trust between data supply and demand parties, but can greatly achieve data sharing service under the condition of non-mutual trust between the data supply and demand parties.
For example, in the sharing service process relying on a data sharing exchange service platform, there are prominent problems that a data catalog is changed randomly, data and catalog are two sheets, data resource application, audit and authorization records are incomplete, data service monitoring is not in place, and the like, and the operation behaviors of both data service suppliers and suppliers cannot realize compliance controllable management, so that data providers usually worry about illegal acquisition and abuse of data after the data provision service, and risk of data leakage and unwilling to share data are borne; the data consumer cannot guarantee safe and reliable use of the data through an effective mechanism and means, so that the data service required to be shared is difficult to obtain, and finally, data supply and demand are not matched and data sharing cannot be really achieved.
Disclosure of Invention
The object of the present application is to solve at least one of the technical drawbacks mentioned above, in particular the technical drawbacks of the data interaction process being not trusted.
According to one aspect of the present application, there is provided a blockchain-based data processing method, the method comprising:
acquiring a data request sent by a data requesting party;
auditing the data authority of the data requesting party to generate directory contract information corresponding to the data requesting party;
Directory contract information is recorded to the blockchain to provide the target data to the data requestor based on the data request and the directory contract information.
In one possible implementation, auditing the data rights of the data requester generates directory contract information corresponding to the data requester, including:
determining an available data range which accords with the data use rule and aims at a data requester according to the data use rule pre-recorded on the blockchain;
determining available data interaction modes which accord with the data interaction rules aiming at the data requesting party according to the data interaction mode rules pre-recorded on the blockchain;
and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on the blockchain respectively, determining matched catalog parts, and generating catalog contract information for a data requester according to the matched catalog parts.
In another possible implementation, the method further includes:
when at least one item record updating information in the data catalogue and the data interaction mode catalogue is recorded on the blockchain, updating the corresponding catalogue according to the catalog updating information;
And updating the directory contract information according to at least one of the updated data directory and the data interaction mode directory.
In another possible implementation, recording directory contract information to a blockchain includes:
and uploading the directory contract information to the blockchain by calling an information verification interface of the blockchain so that the blockchain performs parameter verification on the directory contract information, and writing the directory contract information into the blockchain by calling an information writing interface of the blockchain in response to the parameter verification passing.
According to one aspect of the present application, there is provided a blockchain-based data processing method, the method comprising:
receiving a data request sent by a data requesting party;
acquiring directory contract information corresponding to a data requester from a blockchain, wherein the directory contract information comprises audit confirmation information agreed by a data audit node in the blockchain for the data requester to use target data;
the 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 interactions,
providing the target data to the data requester based on the data request and the directory contract information, comprising:
When the data request is matched with the directory contract information in a checking way, target data corresponding to the available data range is obtained, and the target data is provided for a data requesting party in an available data interaction mode.
In another possible implementation, the method further comprises at least one of:
the received data request is uplink to a blockchain for the data auditing node to audit based on the data request;
the data service record providing the target data to the data requester is uplink to the blockchain;
based on the obtained target data and the target data provider information, a data acquisition record is generated and is uploaded to the blockchain.
According to another aspect of the present application, there is provided a blockchain-based data processing device, the device comprising:
the acquisition module is used for acquiring the data request sent by the data requesting party;
the auditing module is used for auditing the data authority of the data requesting party and generating directory contract information corresponding to the data requesting party;
and the recording module is used for recording the directory contract information into the blockchain so as to provide target data for a data requester based on the data request and the directory contract information.
According to another aspect of the present application, there is provided a blockchain-based data processing device, the device 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 request party from the blockchain, wherein the directory contract information comprises audit confirmation information agreed by a data audit node in the blockchain for the data request party by using target data;
and the data providing module is used for providing the target data to the data requesting party based on the data request and the directory 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 blockchain-based data processing method as shown in the first aspect of the present application is performed.
For example, in a fifth aspect of the present application, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
The memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the blockchain-based data processing method as shown in the first aspect of the present 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, causes the processor to perform a blockchain-based data processing method as shown in the first aspect of the present application.
For example, in a sixth aspect of the embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the blockchain-based data processing method of the first aspect of the present application.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to perform the methods provided in the various alternative implementations of the first or second aspect described above.
The beneficial effects that this application provided technical scheme brought are:
the method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and when a data request sent by a data requester is received; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram 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 a schematic diagram of an alternative block structure according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of a block chain based data processing method according to an embodiment of the present application;
FIG. 4 is a flowchart of a directory contract information uplink provided in an embodiment of the present application;
FIG. 5 is a second flowchart of a block chain based data processing method according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating a query of uplink information for a blockchain-based data processing method according to an embodiment of the present disclosure;
fig. 7 is an application scenario schematic diagram of a data processing method based on a blockchain according to an embodiment of the present application;
FIG. 8 is a flow chart of a block chain based data processing method according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a block chain based data processing apparatus according to an embodiment of the present application;
FIG. 10 is a second schematic diagram of a block chain based data processing apparatus according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device for data processing based on a blockchain according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating 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 expressly stated otherwise, as understood by those skilled in the art. 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. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the 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 the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In a data sharing exchange service mode, operation behaviors of both data service suppliers and consumers cannot realize compliance and controllable management, and data providers are generally worried about illegal acquisition and abuse of data in the data providing service, so that risks of data leakage exist.
The data processing method, device, electronic equipment and computer readable storage medium based on the blockchain are provided, and aim to solve the technical problems in the prior art.
It should be noted that, the data processing involved in the embodiments of the present application may be implemented by using cloud technology, and optionally, the data storage based on the blockchain involved in the alternative embodiments of the present application may be implemented by using cloud storage.
Cloud technology (Cloud technology) refers to a hosting technology that unifies serial resources such as hardware, software, networks and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network to work cooperatively through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system, so as to provide data storage and service access functions for the outside.
Furthermore, the blockchain-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 cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which 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 according to the embodiment of the present invention may be a distributed system formed by connecting a client and a plurality of nodes (any form of computing device in an access network, such as a server and a user terminal) through a network communication.
Taking a distributed system as an example of a blockchain system, referring To fig. 1, fig. 1 is a schematic diagram of an alternative architecture of a distributed system 100 applied To a blockchain system according To an embodiment of the present invention, where the architecture is formed by a plurality of nodes (arbitrary computing devices 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, where the P2P protocol is an application layer protocol running on top of a transmission control protocol (TCP, transmission Control Protocol) protocol. In a distributed system, any machine, such as a server, a terminal, may join to become a node, including a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functionality of each node in the blockchain system shown in fig. 1, the functions involved include:
1) The routing, the node has basic functions for supporting communication between nodes.
Besides the routing function, the node can also have the following functions:
2) The application is used for being deployed in a block chain to realize specific service according to actual service requirements, recording data related to the realization function to form recorded data, carrying a digital signature in the recorded data to represent the source of task data, sending the recorded data to other nodes in the block chain system, and adding the recorded data into a temporary block when the source and the integrity of the recorded data are verified by the other nodes.
For example, the services implemented by the application include:
2.1 Wallet for providing electronic money transactions, including initiating a transaction (i.e., sending a transaction record of the current transaction to other nodes in the blockchain system, the other nodes, after verification, storing record data of the transaction in a temporary block of the blockchain in response to acknowledging that the transaction is valid; of course, the wallet also supports inquiry of remaining electronic money in the electronic money address;
2.2 The shared account book is used for providing the functions of storing, inquiring, modifying and the like of account data, sending record data of the operation on the account data to other nodes in the blockchain system, and after the other nodes verify to be effective, storing the record data into a temporary block as a response for acknowledging that the account data is effective, and also sending confirmation to the node initiating the operation.
2.3 A computerized agreement that can execute the terms of a contract, implemented by code deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions based on actual business demand codes, such as querying the physical distribution status of the goods purchased by the buyer, transferring the electronic money of the buyer to the merchant's address after the buyer signs for the goods; of course, the smart contract is not limited to executing the contract for the transaction, and may execute a contract that processes the received information.
3) The blockchain comprises a series of blocks (blocks) which are connected with each other according to the generated sequence time, the new blocks are not removed once being added into the blockchain, and record data submitted by nodes in the blockchain system are recorded in the blocks.
Referring to fig. 2, fig. 2 is an optional Block Structure (Block Structure) provided in 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 each Block is connected by the hash value to form a Block chain. In addition, the block may include information such as a time stamp at the time of block generation. The Blockchain (Blockchain), which is essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains associated information that is used to verify the validity (anti-counterfeiting) of its information and to generate the next block.
The embodiment of the application provides a data processing method based on a blockchain, and an execution subject of the method can be various terminal devices or server devices with data processing capability, or can be a device or a chip integrated on the devices, and as an optional implementation manner, the execution subject can be a data auditing node in the blockchain system. Fig. 3 is a schematic flow chart of a data processing method based on a blockchain according to an embodiment of the present application, where the method includes the following steps:
S301: a data request from a data requester is obtained.
Specifically, in the embodiment of the present application, the data auditing node may obtain a data request from the blockchain, where the data request may include a data requester identifier and target data information of the request, for example, information such as a use of the target data by the data requester, a use flow of the target data, and so on. In addition, the data request may be uplink to the blockchain by the data requesting node, or the data request may be uplink to the blockchain by the data management node that receives the data request.
S302: and auditing the data authority of the data requesting party, and generating directory contract information corresponding to the data requesting party.
Specifically, in the embodiment of the present application, each auditing node may audit the data authority of the data consumer step by step according to the data usage rule set in advance, for example, in a scenario of requesting data between different departments, the identification department needs to acquire the medical data of the related personnel from the medical department to perform the identification work, so after sending the data request, the node corresponding to the identification department as the data requester and the node corresponding to the data source medical department may be used as the data auditing node, and audit is performed step by step according to the audit hierarchy relationship, for example, from the upper level to the lower level. And respectively auditing the data authority of the identification department serving 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 flow, the safety requirement in the data use process and the like of the data request party meet preset standards, so as to determine the usable data directory range of the auditing party, and generating directory contract information corresponding to the data request party based on the audited directory range.
S303: directory contract information is recorded to the blockchain to provide the target data to the data requestor based on the data request and the directory contract information.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; directory contract information is recorded to the blockchain for providing the target data to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the interactive security and credibility of the target data are realized, so that the illegal acquisition and the data leakage of the data are avoided.
In one embodiment of the present application, the step S302 may include:
s3021: determining an available data range which accords with the data use rule and aims at a data requester according to the data use rule pre-recorded on the blockchain;
s3022: determining available data interaction modes which accord with the data interaction rules aiming at the data requesting party according to the data interaction mode rules pre-recorded on the blockchain;
s3023: and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on the blockchain respectively, determining matched catalog parts, and generating catalog contract information for a data requester according to the matched catalog parts.
Specifically, the data auditing node can audit the data request step by step, wherein different auditing nodes can audit different parts of the data request information, can audit the whole content of the data request information, and can audit different types of target data of the request, so that the available data range of the data requester, which accords with the data use rule, is determined according to the data use rule recorded in advance on the blockchain.
As a 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 in the data request, confirm whether the data usage of the requester accords with the data usage rule recorded in advance on the blockchain, and compare with the data usage rule to confirm the available data range corresponding to the data usage of the requester, for example, in a scenario that the certification department requests the medical data of the relevant person, the auditing node may audit the certification department for the usage of the medical data and determine whether the certification department has authority to use the medical data of the relevant person, and may use which data in the medical data of the relevant person, for example, through audit determination, name, age, medical history data, medical cost data and the like in the medical data of the relevant person may be used in performing the certification work. Then, the next-stage auditing node can audit the data use flow, and determine, according to the data use rule, which data information of the related personnel can be used by the identification flow in the data request, for example, according to the data use rule, in the identification flow, family member information, family income information and the like of the individual related to the related personnel are required, so that the authority of using the family member information and the family income information is confirmed. Therefore, through the auditing of each level of auditing nodes to the data request, the range of the available data after auditing is determined based on the auditing results of each auditing node.
In addition, as another way, each auditing node can audit the whole content of the data request information, wherein each data auditing node respectively determines the available data range of the auditing node according to the data usage rule corresponding to the auditing node, and then determines the final available data range based on the auditing result of each auditing node. For example, in the scenario of requesting the medical data of the related person, the process of confirming the data authority of each data auditing node for the data requester may be implemented by, for example, the auditing process may be performed in the order of from low to high auditing level, and the first level auditing node, for example, the medical department node serving as the data source node, firstly, audits the data request content according to the data usage rule corresponding to the medical department node, for example, the data requester identifier, the data usage flow and other information included in the data request, and may 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, as a determining department of the data requesting party, the data using process of the determining department is to determine the relevant personnel, and the data using process is to determine the disease grade, then determine the medical cost, the medical cost and the household income according to the data using rule corresponding to the data source node in the process of checking the content included in the data request. After the first-stage auditing node, namely the data source node, is subjected to auditing, the data can be transferred to the next-stage auditing node, the auditing of the content in the data request is continued, the available data range of the data request party is determined, wherein the next-stage auditing node can further determine the available data range conforming to the data use rule corresponding to the next-stage auditing node on the basis of the available data range determined by the auditing of the previous-stage auditing node. For example, the next level audit node may determine the available data range based on the data source node of the previous level: based on the identity information, medical history data, medical expense data and household income data of the related personnel, the available data range of the data requesting party can be determined to be the name, age, identity number and the like in the identity information of the related personnel, the disease types, medical history time and the like in the medical history data of the related personnel, the medical total expense, medical reimbursement proportion and the like in the medical data, and the household income data of nearly 5 years in the household income data and the like according to the data use rule corresponding to the node. And continuing to audit on the basis of the available data range determined by the previous audit according to the step-by-step audit, thereby determining the final available data range which is agreed by all audit nodes through the audit of all audit nodes.
When the auditing nodes audit and determine the available data range of the data request party according to all the data request contents, each auditing node can also determine the available data range of the data request party according to the data usage rule corresponding to the node, audit is not required on the basis of the upper-level auditing result, and finally intersection of the available data ranges of the data request party determined by each auditing node is used as the finally determined available data range.
In addition, as another way, each auditing node may audit a specific data type for the data type of the requested target data, so as to determine the available data range of the data requester, for example, in the above scenario, the data request may include the requested target data information, where the target data may include the identity information data of the related person, the medical data, and so on, so when the auditing node performs the auditing, each auditing node may audit the target data of the corresponding data type according to the data type to which the target data belongs, for example, the auditing node responsible for auditing the identity information data only performs the auditing right of the identity data of the data requester, so as to determine the available data range of the identity data meeting the preset data usage rule, for example, when the related person is acknowledged in the above scenario, the identity data that may be used by the identification department of the data requester includes name, age, identity card number, or which of the identity card number. In addition, other nodes responsible for auditing of each data category respectively determine the available data range of the corresponding auditing category, and finally, the available data range of the data requester is determined according to the available data range of each data category determined by auditing of each auditing node. In this auditing mode, the auditing may not be limited by the order of the auditing.
It can be understood that the auditing process can audit according to a certain sequence according to the auditing contents of each auditing node, and can audit without being subjected to a specific auditing sequence, and the specific auditing mode is determined according to different scenes, so that the auditing method is not particularly limited in the embodiment of the application.
In addition, the auditing determination of the available data interaction modes can also be performed according to the various modes of the available data range, and the detailed description is omitted herein. The data interaction mode is a mode of interacting data with a data requester, for example, interacting through a data interface or sending the data to a preset data server and the like.
In addition, it should be noted that, the auditing of the data interaction mode may be based on the data interaction mode information requested in the data request to audit, and determine the available data interaction modes according with the data interaction rule. In addition, the data request does not include the requested data interaction mode information, but determines one or more data interaction modes applicable to the target data to audit based on the requested target data.
Further, after the available data range and the available data interaction mode which are audited by each auditing node are determined, the available data range and the available data interaction mode can be respectively compared with the data catalogue and the data interaction mode catalogue which are pre-recorded on the blockchain, a matched catalogue part is determined, and catalogue contract information aiming at the data requester is generated according to the matched catalogue part.
It will be appreciated that after determining the available data range of the data requester, the available data range is mapped to the data directory on the blockchain, so that the target data requested by the data requester may be obtained by querying the corresponding data directory, for example, the determined available directory portion may be a directory chain composed of different hierarchical directories to which the target data belongs. For example, the available data range that is audited and confirmed by the auditing node includes the name of the relevant person, the disease category, etc., the data catalogues in the block chains corresponding to the data are { respectively related personnel data- { medical data } - { personal information } -name, { relevant personnel data } { -medical data } { -disease condition } -disease category. Thus, by the generated directory contract information, the corresponding data can be acquired by querying the data directory.
In addition, it should be noted that, the data directory pre-recorded on the blockchain 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 directory uplink application needs to audit the data directory through an audit node in the blockchain, for example, to audit whether the data directory corresponds to the data resource, whether the data resource is truly valid, and so on. Therefore, the data catalogue can be up-linked to the blockchain through the audit confirmation of the audit node, and therefore the authenticity and the credibility of the data catalogue on the up-linked blockchain are ensured.
The method comprises the steps of determining an available data range and an available data interaction mode aiming at a data request party through auditing data authority of the data request party, and further generating directory contract information corresponding to the data request party; directory contract information is recorded to the blockchain to provide the target data to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
In another embodiment of the present application, based on the foregoing embodiment, each auditing node audits the data authority of the requester, and the determined available data range for the data requester, which accords with the data usage rule, the demand contract information for the data request may be generated, where the demand contract information may record the data request, and the auditing process information of each data auditing node for the data request, for example, may include an auditing node identifier, the data usage rule according to which the auditing node audits, and the auditing result of the auditing node, that is, the available data range determined by the node. And generating demand contract information of the data request based on the auditing process information and the finally determined available data range of the data request party, and recording the demand contract information on a blockchain.
And based on the data authority of the requester is audited for each auditing node, determining available data interaction modes which accord with the data interaction rules for the data requester, and generating service contract information for the data request, wherein the service contract information can be recorded with the data request, and the auditing process information of each data auditing node for the data request, for example, auditing node identifiers, the data interaction rules according to which the auditing node audits, and auditing results of the auditing node, namely the available data interaction modes 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 on the blockchain.
According to the embodiment of the application, the demand contract information and the service contract information recorded with the data request, the data auditing information and the auditing result are generated, and the demand contract information and the service contract information are recorded on the blockchain, so that the data request, the data auditing process information and the auditing result record of the data interaction process are uplink, the data request of the data interaction process is ensured to be truly and reliably recorded in the data auditing process, and the information of the data request and the data auditing process can be checked in the whole process of the blockchain, so that the safety and the traceability of the data interaction process are ensured.
In an embodiment of the present application, the step S303 may specifically include:
and uploading the directory contract information to the blockchain by calling an information verification interface of the blockchain so that the blockchain performs parameter verification on the directory contract information, and writing the directory contract information into the blockchain by calling an information writing interface of the blockchain in response to the parameter verification passing.
Specifically, as shown in fig. 4, which is a directory contract information uplink flow chart in the embodiment of the present application, after generating contract information in step S302, the data auditing node may upload the directory contract information by calling an information verification interface of the blockchain to trigger the blockchain to parse and verify parameters of the directory contract information, where the information verification interface of the blockchain may be an application interface of the blockchain.
The check content may include a format check, e.g., a data non-null check, a data repeatability check. In addition, checking the content may also include an admission check, such as whether the directory contract information meets the admission conditions of the blockchain. The verification content may further include a basic verification, for example, whether a directory exists in the directory contract information, and the like. If the verification is passed, the method can trigger to acquire the bottom chain connection information of the blockchain, convert the directory contract information into a data format corresponding to an information writing interface of the blockchain according to the bottom chain connection information of the blockchain, write the directory contract information into the bottom chain of the blockchain through the information writing interface, execute the intelligent contract of the blockchain after writing, and return the written directory contract information to an application interface of the blockchain after passing the intelligent contract verification so as to share the directory contract information on the blockchain.
According to the embodiment of the application, the information verification interface of the blockchain is called, the directory contract information is uploaded to the blockchain, so that the blockchain performs parameter verification on the directory contract information, and the directory contract information is written into the blockchain by calling the information writing interface of the blockchain in response to the parameter verification passing, so that the authenticity and the credibility of the directory contract information are ensured.
In another embodiment of the present application, the data processing method may further include the steps of:
when at least one item record updating information in the data catalogue and the data interaction mode catalogue is recorded on the blockchain, updating the corresponding catalogue according to the catalog updating information;
and updating the directory contract information according to at least one of the updated data directory and the data interaction mode directory.
Specifically, when the data source node changes the data directory due to the update of the data resource or when the data interaction mode changes, for example, when the data needs to be newly added, changed or deleted, and then the data directory needs to be newly added, changed or deleted, and when the data interaction mode needs to be newly added, changed or deleted, then the data interaction mode directory needs to be newly added, changed or deleted, the available data range and the available data interaction mode directory determined through the verification need to be updated respectively, and the directory contract information is updated according to the updated data directory and the updated data interaction mode directory.
When the data catalogue or the data interaction mode catalogue is updated, for example, a data source node needs to submit a corresponding catalogue update uplink application, the updated catalogue is audited by a data auditing node, and after the intelligent contract is triggered to complete consensus judgment, the updated catalogue can be uplink to the blockchain. It should be noted that, when the foregoing data directory or the data interactive manner directory changes the directory or deletes the directory, since the data directory or the data interactive manner directory may be already used by a plurality of data requesters, the auditing node may include the data requester node when the auditing is performed, and the intelligence is about to meet the approval of the data requester node greater than a preset percentage, for example, greater than 50% when the auditing nodes determine whether the respective auditing nodes agree.
According to the embodiment of the application, when at least one item record update information in the data catalogue and the data interaction mode catalogue is recorded on the blockchain, the corresponding catalogue is updated according to the catalogue update information, and the catalogue contract information is updated according to the updated data catalogue and the data interaction mode catalogue, so that when the data catalogue and the data interaction mode catalogue are updated, the catalogue contract is updated, and when the catalogue is updated, data interaction is carried out through the available data catalogue and the available data interaction mode catalogue in the updated catalogue contract information. And the catalog update and the update information of the catalog contract are all recorded on the blockchain, so that the safety and the credibility of 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 be a device or a chip integrated on these devices, and in particular, may be a data management node in a blockchain system. Fig. 5 is a second flowchart of a data processing method based on a blockchain according to an embodiment of the present application, where the method includes the following steps:
s501: a data request from a data requestor is received.
S502: directory contract information corresponding to the data requesting party is obtained from the blockchain, wherein the directory contract information comprises audit confirmation information agreed by a data audit node in the blockchain for the data requesting party to use target data.
S503: the 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 requester obtained from the blockchain may include two cases, where one case of the directory contract information may be audit confirmation information that is agreed by the data audit node in the blockchain for the data request sent by the data requester. For example, in an actual scenario, the data requested by the data requester may complete acquiring the data once, for example, in the scenario in which the above-mentioned identification department acquires the related personnel data, when the identification department needs to acquire the personal information of the related personnel, since the personal information does not dynamically change, the acquisition of such data information may be completed once generally, and thus, for this case, after a data request is sent by the data requester, the data auditing node may be triggered to audit the data request to generate directory contract information, and acquire the audit contract information from the blockchain.
Alternatively, the directory contract information may be based on audit contract information agreed upon for auditing the data request associated with the current data request prior to the current data request, that is, the directory contract information may have been generated prior to receipt of the data request. For example, in the scenario in which the identification department requests the medical data of the related person in the above embodiment, the identification department needs to acquire the medical data information of the related person, and since the medical data information dynamically changes with time, the identification department requests the medical data of the related person to acquire every preset time period, or acquire at preset time points, for example, acquire every quarter, or acquire every 1 day a month, and therefore, based on the case in which the data needs to be requested regularly, it is possible to perform an audit on the regular data needs, and generate directory contract information for the regular data needs. Thus, upon reaching a predetermined time period or predetermined point in time, upon request for data, directory contract information for the periodic data requirements is obtained from the blockchain.
The directory contract information may include audit verification of the data rights of the data requesting party.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
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:
when the data request is matched with the directory contract information in a checking way, target data corresponding to the available data range is obtained, and the target data is provided for a data requesting party in an available data interaction mode.
Specifically, the data request may include requested target data information, and when the target data belongs to data within an available data range corresponding to a 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 through the available data interaction mode. When the target data is the data stored in the management node, the management node directly provides the target data to the data requesting party, and when the management node does not store the target data, the management node can acquire the target data from the data source node so as to provide the target data to the data requesting party.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
In another embodiment of the present application, the data processing method may further include the steps of:
the received data request is uplink to a blockchain for the data auditing node to audit based on the data request;
the data service record providing the target data to the data requester is uplink to the blockchain;
based on the obtained target data and the target data provider information, a data acquisition record is generated and is uploaded to the blockchain.
Fig. 6 is a schematic diagram of a ul information query of a blockchain-based data processing method according to the present application, in this embodiment of the present application, a process of recording data interaction by information such as a data request, a data service record, a data acquisition record, etc. recorded on a blockchain is performed, and data interaction information may be checked by querying the information record recorded on the blockchain.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
The data processing method based on the blockchain can be applied to a cross-department data interaction scene, for example, can be applied to data interaction between different departments in the same enterprise unit, and can also be applied to data interaction between 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 diagram of an application scenario of a data processing method based on a blockchain according to an embodiment of the present application, and the application scenario of the data processing method based on a blockchain of the present application is described below by taking the scenario as an example. As shown in the figure, in this scenario, a data department is used as a data requesting party, whether the data directory contains target data to be called or not can be queried by querying the data directory pre-recorded on the blockchain, if the data directory contains a directory entry corresponding to the target data, a data request can be sent to a data management node, where the data request can include information such as a requester identifier, requested target data information, a purpose of using the data, and a flow of using the data. And recording the data request to the blockchain, wherein the data request can be recorded to the blockchain through a data requester node, and the data request can be sent to a data management node through the data requester node, and the data request can be recorded to the blockchain through the data management node.
Further, after the data request is recorded on the blockchain, the data auditing node on the blockchain can acquire the data request from the blockchain and audit the data authority of the requester, wherein in the scenario, the data auditing node can be a node corresponding to the source department and a node corresponding to the municipality. In the auditing process, a resource requirement protocol can be generated for auditing the data request, and the resource requirement protocol can include data request information, such as a requester identifier, information of a use of the requested data, a flow of using the data and the like, requested target data information, and auditing information of data authority of the requester, such as a data auditing node identifier, and auditing results, namely, auditing the determined available data range corresponding to the data requester. And further recording the generated resource demand agreement as a demand contract on the blockchain. In addition, a data service protocol may be generated for auditing the data request, where the data service protocol is a protocol generated for auditing an interaction mode of the target data, where the data service protocol may include data request information, where the data request information may include information such as a requester identifier, a purpose of requesting the data, a flow of using the data, and the requested target data information, where the target data information may include the interaction mode of the target data, and in another case, the target data information may not include the interaction mode of the target data, where the interaction mode of the target data may be determined by the target data information. In addition, the data service protocol also comprises auditing information aiming at the target data interaction mode, such as a data auditing node identifier, and auditing results, namely, auditing the available data interaction mode corresponding to the determined data request party. And further records the generated data service agreement as a service contract on the blockchain.
Further, the available data range and the available data interaction mode determined by the auditing are respectively compared with a data catalog and a data interaction mode catalog recorded in advance on the blockchain, a data catalog part corresponding to the available data range and a data interaction mode catalog part corresponding to the available data interaction mode are determined, and a catalog contract corresponding to the data requester is generated by the corresponding data catalog part and the corresponding data interaction mode catalog part and recorded on the blockchain.
After receiving the data request, the data management node may acquire the directory contract from the blockchain, then compare the target data information in the data request with the directory contract, and if the target data of the request and the data interaction mode 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 mode included in the data request. The provided target data can be data stored in the data management node, and can be obtained from the data source node or a data auditing node containing the data when the target data is not stored in the data management node.
Fig. 8 is a flow chart of a data processing method based on a blockchain, in which, in a data interaction process, 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 on the blockchain, so that after the data audit node acquires the data request from the blockchain, the data audit node audits the data authority of the data requester, determines the available data range and the available data interaction mode of the data requester, and generates directory contract information based on a data directory part corresponding to the available data range and a data interaction mode directory corresponding to the available data interaction mode, and records the directory contract information on the blockchain. And then, the data management node acquires directory contract information corresponding to the requester from the blockchain based on the received data request, wherein the directory contract information can be directory contract information generated by checking the received data request or directory contract information generated by checking the data request related to the received data request, and further, the data management node performs matching verification on the data request and the directory contract information, and when target data and a target data interaction mode in the data request are respectively within an available data range and an available data interaction mode included in the directory contract information, the target data can be provided for the data request node. The target data may be sent by the data auditing node to the data management node and by the data management node to the data requesting node.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
An embodiment of the present application provides a blockchain-based data processing device, as shown in fig. 9, which is one of schematic structural diagrams of the blockchain-based data processing device provided in the embodiment of the present application, where the blockchain-based data processing device 90 may include: an acquisition module 901, an auditing module 902, and a logging module 903, wherein,
an acquiring module 901, configured to acquire a data request sent by a data requester;
the auditing module 902 is configured to audit the data authority of the data requester, and generate directory contract information corresponding to the data requester;
A recording module 903 for recording the directory contract information to the blockchain to provide the target data to the data requester based on the data request and the directory contract information.
In another embodiment, the auditing module is specifically configured to:
determining an available data range which accords with the data use rule and aims at a data requester according to the data use rule pre-recorded on the blockchain;
determining available data interaction modes which accord with the data interaction rules aiming at the data requesting party according to the data interaction mode rules pre-recorded on the blockchain;
and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on the blockchain respectively, determining matched catalog parts, and generating catalog contract information for a data requester according to the matched catalog parts.
In another embodiment, the recording module is specifically configured to:
and uploading the directory contract information to the blockchain by calling an information verification interface of the blockchain so that the blockchain performs parameter verification on the directory contract information, and writing the directory contract information into the blockchain by calling an information writing interface of the blockchain in response to the parameter verification passing.
In another embodiment, the apparatus may further include:
the updating module is used for updating the corresponding catalogue according to the catalogue updating information when the updating information of at least one item record in the data catalogue and the data interaction mode catalogue is recorded on the blockchain;
and updating the directory contract information according to at least one of the updated data directory and the data interaction mode directory.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
FIG. 10 is a schematic structural diagram of a data processing apparatus based on a blockchain, as shown in FIG. 10, which is a second schematic structural diagram of a data processing apparatus based on a blockchain, according to an embodiment of the present application, the data processing apparatus 100 based on a blockchain may include: a receiving module 1001, a contract acquiring module 1002, and a data providing module 1003, wherein:
A receiving module 1001, configured to receive a data request sent by a data requester;
a contract obtaining module 1002, configured to obtain, from the blockchain, directory contract information corresponding to the data requester, where the directory contract information includes audit confirmation information that is agreed by a data audit node in the blockchain for the data requester using the target data;
the data providing module 1003 is 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 interactions.
The data providing module is specifically used for: when the data request is matched with the directory contract information in a checking way, target data corresponding to the available data range is obtained, and the target data is provided for a data requesting party in an available data interaction mode.
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;
the data service record providing the target data to the data requester is uplink to the blockchain;
based on the obtained target data and the target data provider information, a data acquisition record is generated and is uploaded to the blockchain.
The blockchain-based data processing device of the present embodiment may execute the blockchain-based data processing method shown in the foregoing embodiments of the present application, and the implementation principle is similar, and will not be described herein.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
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, performs: the method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
In an alternative embodiment, there is provided an electronic device, as shown in fig. 11, the electronic device 4000 shown in fig. 11 includes: a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004, 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, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, 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 ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 4002 can 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 not only one bus or one type of bus.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media 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.
The memory 4003 is used for storing application program codes (computer programs) for executing the present application, and execution is controlled by the processor 4001. The processor 4001 is configured to execute application program codes stored in the memory 4003 to realize what is shown in the foregoing method embodiment.
Among them, electronic devices include, but are not limited to: mobile phones, notebook computers, multimedia players, desktop computers, etc.
The present application provides a computer readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, which executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of the multimedia data processing method described above.
The method comprises the steps that through auditing data rights of a data requesting party, directory contract information corresponding to the data requesting party is generated; recording directory contract information to a blockchain, and receiving a data request sent by a data requester; directory contract information corresponding to the data requestor is obtained from the blockchain, and target data is provided to the data requestor based on the data request and the directory contract information. Therefore, the target data requested by the requester is confirmed and agreed through the auditing node, and the safety and reliability of the interaction process of the target data are realized, so that the data are prevented from being illegally acquired and revealed.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (12)

1. A method of blockchain-based data processing performed by a data auditing node in the blockchain, comprising:
acquiring a data request sent by a data requesting party;
auditing the data authority of the data requesting party to generate directory contract information corresponding to the data requesting party;
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;
the auditing the data authority of the data requesting party, generating directory contract information corresponding to the data requesting party, comprises the following steps:
determining an available data range which accords with the data use rule for the data requester according to the data use rule pre-recorded on the blockchain;
determining an available data interaction mode which accords with the data interaction rule and aims at the data requester according to the data interaction mode rule which is recorded onto the blockchain in advance;
And comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on a blockchain respectively, determining a matched catalog part, and generating catalog contract information aiming at the data requester according to the matched catalog part.
2. The data processing method of claim 1, further comprising:
when at least one item record updating information in the data catalogue and the data interaction mode catalogue is recorded on a blockchain, updating the corresponding catalogue according to the catalogue updating information;
and updating the directory contract information according to at least one of the updated data directory and the data interaction mode directory.
3. The data processing method according to any one of claims 1 to 2, wherein the recording the directory contract information to the blockchain includes:
and uploading the directory contract information to the blockchain by calling an information verification interface of the blockchain so that the blockchain performs parameter verification on the directory contract information, and writing the directory contract information into the blockchain by calling an information writing interface of the blockchain in response to the parameter verification passing.
4. A method of blockchain-based data processing performed by a data management node in the blockchain, comprising:
receiving a data request sent by a data requesting party;
acquiring directory contract information corresponding to the data request party from the block chain, wherein the directory contract information comprises audit confirmation information agreed by a data audit node in the block chain for the data request party by using target data;
providing target data to the data requesting party based on the data request and the directory contract information;
the directory contract information is generated based on:
determining an available data range which accords with the data use rule for the data requester according to the data use rule pre-recorded on the blockchain;
determining an available data interaction mode which accords with the data interaction rule and aims at the data requester according to the data interaction mode rule which is recorded onto the blockchain in advance;
and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on a blockchain respectively, determining a matched catalog part, and generating catalog contract information aiming at the data requester according to the matched catalog part.
5. The method of claim 4, wherein the directory contract information includes available data ranges and available data interactions,
the providing the target data to the data requesting party based on the data request and the directory contract information includes:
and when the data request is matched with the directory contract information in a verification manner, acquiring target data corresponding to the available data range, and providing the target data for the data requester in the available data interaction mode.
6. The data processing method of claim 4, further comprising at least one of:
the received data request is uplink to the blockchain for auditing by a data auditing node based on the data request;
the data service record providing the target data to the data requester is uplink to the blockchain;
based on the obtained target data and target data provider information, a data acquisition record is generated and is uplinked to the blockchain.
7. A blockchain-based data processing device, comprising:
The acquisition module is used for acquiring the data request sent by the data requesting party;
the auditing module is used for auditing the data authority of the data requesting party and generating directory contract information corresponding to the data requesting party;
a recording module for recording the directory contract information to the blockchain to provide target data to the data requester based on the data request and the directory contract information;
the auditing module is specifically used for determining an available data range which accords with the data use rule for the data requester according to the data use rule pre-recorded on the blockchain;
determining an available data interaction mode which accords with the data interaction rule and aims at the data requester according to the data interaction mode rule which is recorded onto the blockchain in advance;
and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on a blockchain respectively, determining a matched catalog part, and generating catalog contract information aiming at the data requester according to the matched catalog part.
8. A blockchain-based data processing device, 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 request party from the blockchain, wherein the directory contract information comprises audit confirmation information agreed by a data audit node in the blockchain for the data request party to use target data;
a data providing module for providing target data to the data requesting party based on the data request and the directory contract information;
the directory contract information is generated based on:
determining an available data range which accords with the data use rule for the data requester according to the data use rule pre-recorded on the blockchain;
determining an available data interaction mode which accords with the data interaction rule and aims at the data requester according to the data interaction mode rule which is recorded onto the blockchain in advance;
and comparing the available data range and the available data interaction mode with a data catalog and a data interaction mode catalog which are recorded in advance on a blockchain respectively, determining a matched catalog part, and generating catalog contract information aiming at the data requester according to the matched catalog part.
9. An electronic device, the electronic device comprising:
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 blockchain-based data processing method according to any of claims 1-3.
10. An electronic device, the electronic device comprising:
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 blockchain-based data processing method according to any of claims 4-6.
11. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the blockchain-based data processing method of any of claims 1-3.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the blockchain-based data processing method of any of claims 4-6.
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 CN112837043A (en) 2021-05-25
CN112837043B true 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 (13)

* 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
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014144679A2 (en) * 2013-03-15 2014-09-18 Brighttag, Inc. Method and apparatus for data matching and integration
CN107018125B (en) * 2017-02-17 2019-08-09 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
US11431486B2 (en) * 2019-05-22 2022-08-30 Salesforce.Com, Inc. System or method to implement consensus on read on distributed ledger/blockchain

Patent Citations (13)

* 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
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
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
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
CN112837043A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US11687916B2 (en) Decisional architectures in blockchain environments
US11803537B2 (en) Systems, methods, and apparatuses for implementing an SQL query and filter mechanism for blockchain stored data using distributed ledger technology (DLT)
US11783024B2 (en) Systems, methods, and apparatuses for protecting consumer data privacy using solid, blockchain and IPFS integration
US11886421B2 (en) Systems, methods, and apparatuses for distributing a metadata driven application to customers and non-customers of a host organization using distributed ledger technology (DLT)
CN108665372B (en) Information processing, inquiring and storing method and device based on block chain
US11328347B2 (en) Rental asset processing for blockchain
CN110620810B (en) Non-linked ownership of continuous asset transfer over blockchain
CN110009337B (en) Data processing method and device based on block chain
US11194961B2 (en) Systems, methods, and apparatuses for adding a document history graph and corresponding hash value to a blockchain in a cloud based computing environment
EP3864816B1 (en) Blockchain notification board storing blockchain resources
US10997159B2 (en) Blockchain notification board storing blockchain resources
US20220382746A1 (en) Blockchain notification board storing blockchain resources
CN110471982B (en) Data processing method and device based on block chain
US20220036323A1 (en) Electronic wallet allowing virtual currency expiration date
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
CN111429250A (en) Data management method and device in escort scene
US20210256512A1 (en) Provisioning Of Assets Based On Content Usage
JP2023511886A (en) Conflict-free version control
CN110784324B (en) Node admission method and device
CN110347750B (en) Block chain-based data processing method and device
CN112837043B (en) Block chain-based data processing method and device and electronic equipment
Fikri et al. A Blockchain-Based Decentralized Microservices: Minimal Architecture for Accounting
US20220067028A1 (en) Trustless operations for blockchain networks
CN117455487A (en) Block chain-based data processing method, device, equipment and readable storage medium
WO2024015471A1 (en) Data assurance solution using verifiable credentials and blockchain

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