Data access method, device, medium and electronic device based on blockchain

Through blockchain technology, the authorization requests are generated and approved during the data acquisition process, which solves the problems of cumbersome data acquisition process and insufficient security in the existing technology, and efficient and secure data acquisition is achieved, reducing costs.

CN113011960BActive Publication Date: 2024-11-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011386822.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2024-11-22
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

In the prior art, when users use the services provided by the service provider, the data acquisition process is cumbersome and has security risks, and cannot effectively ensure the security and privacy of the data, resulting in low data acquisition efficiency and high cost.

Method used

Using a blockchain-based data access method, data authorization requests are generated through data request nodes, data nodes and data storage nodes, and approved and recorded on the blockchain to ensure the security and privacy of data acquisition. Improve the efficiency and cost-effectiveness of data acquisition.

Benefits of technology

On the premise of ensuring data security and privacy, the efficiency of data acquisition is improved, the cost of data acquisition is saved, and the cumbersome authorization process is avoided every time data is obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113011960B_ABST
    Figure CN113011960B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a data access method, device, medium and electronic device based on blockchain. The data access method based on blockchain includes: generating a data authorization request based on the data directory, the data authorization request is used to apply for authorization from all data nodes to obtain target data; if the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request is uploaded to the blockchain to notify all data nodes to approve and generate authorization approval records corresponding to the data authorization request based on the data authorization request on the blockchain, or forward the data authorization request on the blockchain through the data custodian node; obtain the authorization approval record uploaded by all data nodes from the blockchain; obtain the target data based on the authorization approval record. The technical solution of the embodiment of the present application improves the efficiency of data acquisition and saves the cost of data acquisition under the premise of ensuring data security and privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a blockchain-based data access method, device, computer-readable medium, and electronic device. Background Art

[0002] When using the services provided by the service provider, the user needs to provide the user's data service provider for service evaluation. For example, a financial institution that provides loans requires users to provide bank reports for loan service evaluation, etc., so that the service provider can call the third-party data service provider interface to obtain user data after the user's authorization. In the related technology, the service provider provides an electronic authorization contract, and the user signs the contract to authorize the data when applying for the service. The service provider then obtains data from the third-party data provider through a direct connection interface.

[0003] This method makes the data source have to trust the service provider only, and obtain user authorization before obtaining data according to the service agreement between the data source and the service provider, so as to send the data to the service provider for use. In addition, authorization forgery is easy to occur in the user authorization process, and it is impossible to verify and warn the authorization after the authorization is forged. Therefore, there are certain risks when the data source provides data to the third-party service provider, and the security of the data cannot be guaranteed. Moreover, in the above method, the third-party service provider needs to obtain the user's authorization every time it obtains data before it can get the data from the data source. This method makes the data acquisition process cumbersome, and requires more procedures on both the user side and the service provider side, resulting in low efficiency of data acquisition. Summary of the invention

[0004] The embodiments of the present application provide a blockchain-based data access method, device, computer-readable medium and electronic device, which can improve the efficiency of data acquisition and save the cost of data acquisition while ensuring data security and privacy, at least to a certain extent.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a data access method based on blockchain is provided, wherein the blockchain includes a data requesting node, a data owning node and a data custodian node, the data stored in the blockchain includes a data directory corresponding to the data stored in the data custodian node, and the method includes: generating a data authorization request based on the data directory, the data authorization request being used to apply for authorization from the data owning node to obtain target data; if the authorization approval record corresponding to the data authorization request is not found in the blockchain, uploading the data authorization request to the blockchain to notify the data owning node to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or forwarding the data authorization request on the blockchain to the data owning node through the data custodian node, and generating the authorization approval record corresponding to the data authorization request after the data owning node approves it; obtaining the authorization approval record uploaded by the data owning node from the blockchain; and obtaining the target data based on the authorization approval record.

[0007] According to one aspect of an embodiment of the present application, a data access method based on blockchain is provided, wherein the blockchain includes a data requesting node, a data owning node and a data custodian node, the data stored in the blockchain includes a data directory corresponding to the data stored in the data custodian node, and the method includes: obtaining from the blockchain a data authorization request uploaded by the data requesting node, or obtaining a data authorization request in the blockchain forwarded by the data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find an authorization approval record corresponding to the data authorization request in the blockchain; based on the node information of the data requesting node, approving the data authorization request and generating an authorization approval record; uploading the authorization approval record to the blockchain, so that the data requesting node obtains the target data based on the authorization approval record in the blockchain.

[0008] According to one aspect of an embodiment of the present application, a data access device based on blockchain is provided, wherein the blockchain includes a data request node, a data ownership node and a data storage node, the data stored in the blockchain includes a data directory corresponding to the data stored in the data storage node, and the device includes: a generation unit, which is used to generate a data authorization request based on the data directory, and the data authorization request is used to apply for authorization from the data ownership node to obtain target data; a first uploading unit, which is used to upload the data authorization request to the blockchain if the authorization approval record corresponding to the data authorization request is not found in the blockchain, so as to notify the data ownership node to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or forward the data authorization request on the blockchain to the data ownership node through the data storage node, and generate the authorization approval record corresponding to the data authorization request after the data ownership node approves it; a first acquisition unit, which is used to acquire the authorization approval record uploaded by the data ownership node from the blockchain; and a second acquisition unit, which is used to acquire the target data based on the authorization approval record.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used for: after uploading the data authorization request to the blockchain, if the authorization approval record corresponding to the data authorization request is found in the blockchain, verifying the authorization approval record through a smart contract; after the authorization approval record is verified, obtaining the target data corresponding to the data authorization request.

[0010] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device also includes: uploading the acquired target data to the blockchain; obtaining from the blockchain a data verification result uploaded by the data custodian node, wherein the data verification result is generated by the data custodian node acquiring the target data from the blockchain and verifying the target data based on information of all nodes of the data; if the data verification result is a passed verification, the target data is applied.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: generate a data access request for the target data based on the authorization approval record; upload the data access request to the blockchain; and obtain the target data corresponding to the data access request from the blockchain.

[0012] In some embodiments of the present application, based on the aforementioned scheme, the simple payment verification node includes the data custody node, the data ownership node and the data request node requesting to obtain the target data; the blockchain includes a data directory corresponding to the data stored in the data custody node, so that the data ownership node and the data request node obtain the data directory from the blockchain.

[0013] In some embodiments of the present application, based on the aforementioned scheme, the data custody node includes at least one of the following nodes: a node corresponding to a banking institution, a node corresponding to a social security institution, a node corresponding to a tax institution, and a node corresponding to a water, electricity and coal resources institution; the data ownership node includes at least one of the following nodes: a node corresponding to a resource requester, and a node corresponding to a service requester; the data request node for obtaining the target data includes at least one of the following nodes: a node corresponding to a resource leasing institution, and a node corresponding to a service provider institution.

[0014] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: generate a data acquisition record based on the acquisition process of the target data; and upload the data acquisition record to the blockchain.

[0015] According to one aspect of an embodiment of the present application, a data access device based on blockchain is provided, wherein the blockchain includes a data requesting node, a data owning node and a data custodian node, the data stored in the blockchain includes a data directory corresponding to the data stored in the data custodian node, and the device includes: a third acquisition unit, used to obtain from the blockchain a data authorization request uploaded by the data requesting node, or to obtain a data authorization request in the blockchain forwarded by the data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find an authorization approval record corresponding to the data authorization request in the blockchain; an approval unit, used to approve the data authorization request based on the node information of the data requesting node, and generate an authorization approval record; a second uploading unit, used to upload the authorization approval record to the blockchain, so that the data requesting node obtains the target data based on the authorization approval record in the blockchain.

[0016] In some embodiments of the present application, based on the aforementioned scheme, the approval unit is configured to: determine the corresponding data to be accessed from the stored data based on the data authorization request; determine the data access rights corresponding to the data requesting node based on the node information of the data requesting node; and approve the data authorization request based on the data access rights and the data to be accessed, and generate the authorization approval record.

[0017] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: send the authorization approval record to the data custody node; obtain the data acquisition receipt returned by the data request node; wherein the data acquisition receipt is generated after the data custody node forwards the authorization approval record to the data request node, and the data request node obtains the target data based on the authorization approval record.

[0018] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: obtain historical authorization approval records from the blockchain; generate new authorization approval records based on the approval results in the historical authorization approval records; and upload the new authorization approval records to the blockchain.

[0019] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the blockchain-based data access method as described in the above embodiment is implemented.

[0020] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based data access method as described in the above embodiments.

[0021] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the blockchain-based data access method provided in the above-mentioned various optional implementations.

[0022] In the technical solutions provided in some embodiments of the present application, when the data requesting node fails to find the authorization approval record corresponding to the data authorization request in the blockchain, the data authorization request is uploaded to the blockchain, so that all data nodes can obtain the data authorization request through the blockchain, or the data authorization request in the blockchain is forwarded through the data custodian node, and a data authorization record is generated based on the data authorization request and uploaded to the blockchain, so that the data requesting node can obtain the target data based on the authorization approval record; when the authorization approval record is found, the authorization approval record corresponding to the data authorization request is directly searched from the blockchain; the process of applying for authorization from all data nodes through the data custodian node each time is avoided, and the efficiency of data acquisition is improved and the cost of data acquisition is saved while ensuring data security and privacy.

[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0025] Figure 1 A schematic diagram of the structure of a blockchain network is shown.

[0026] Figure 2 A schematic diagram showing the connection relationship between blocks in the blockchain.

[0027] Figure 3 A schematic diagram of the process of generating a block is shown.

[0028] Figure 4 A schematic diagram of a node system based on a blockchain network according to an embodiment of the present application is schematically shown.

[0029] Figure 5 The flowchart of a blockchain-based data access method according to an embodiment of the present application is schematically shown.

[0030] Figure 6 The figure schematically shows a block chain-based data access process according to an embodiment of the present application.

[0031] Figure 7 A schematic diagram of an authorization approval record according to an embodiment of the present application is schematically shown.

[0032] Figure 8 A schematic diagram of acquiring target data according to an embodiment of the present application is schematically shown.

[0033] Fig. 9 A schematic diagram of a blockchain network according to an embodiment of the present application is schematically shown.

[0034] Fig.10 The flowchart of a blockchain-based data access method according to an embodiment of the present application is schematically shown.

[0035] Fig.11 The flowchart of generating authorization approval records according to an embodiment of the present application is schematically shown.

[0036] Fig.12 The following schematically shows a schematic diagram of approving a data authorization request according to an embodiment of the present application.

[0037] Fig.13 A schematic diagram of obtaining a receipt for flow data according to an embodiment of the present application is schematically shown.

[0038] Fig.14 The flowchart of processing authorization approval records according to an embodiment of the present application is schematically shown.

[0039] Fig.15 A block diagram of a blockchain-based data access device according to an embodiment of the present application is schematically shown.

[0040] Fig.16 A block diagram of a blockchain-based data access device according to an embodiment of the present application is schematically shown.

[0041] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0043] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.

[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0045] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

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

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

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

[0049] See also Figure 1 The blockchain network shown may include multiple nodes 101, and the multiple nodes 101 may be the various clients forming the blockchain network. Each node 101 may receive input information during normal operation, and maintain the shared data in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there may be an information connection between each node in the blockchain network, and the nodes may transmit information through the above information connection. For example, when any node in the blockchain network receives input information, the other nodes in the blockchain network obtain the input information according to the consensus algorithm, and store the input information as shared data, so that the data stored on all nodes in the blockchain network are consistent.

[0050] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. A node identifier list can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. The node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node.

[0051] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 2 As shown, the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information. The next block of the genesis block uses the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores input information feature values ​​of the current block, feature values ​​of the block header of the parent block, version numbers, timestamps, and difficulty values, and so on. This ensures that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.

[0052] When generating each block in the blockchain, see Figure 3 As shown in the figure, when the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool, and the hash tree used to record the input information is updated; then, the update timestamp is updated to the time when the input information is received, and different random numbers are tried, and the eigenvalue calculation is performed multiple times, so that the calculated eigenvalue can satisfy the following formula:

[0053] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET

[0054] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.

[0055] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the data sharing system according to the node identification of other nodes in the data sharing system. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.

[0056] Each node in the blockchain network can be a server or a terminal device. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal device can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. Each node can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0057] The aforementioned cloud computing refers to the delivery and use model of IT infrastructure, specifically refers to obtaining required resources through the network in an on-demand, easily scalable manner; in a broad sense, cloud computing refers to the delivery and use model of services, which refers to obtaining required services through the network in an on-demand, easily scalable manner. This service can be related to IT and software, the Internet, or other services. Cloud computing is the product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the promotion of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from the previous parallel distributed computing, the emergence of cloud computing will promote revolutionary changes in the entire Internet model and enterprise management model in terms of concept.

[0058] In addition to the above-mentioned blockchain embodiments, the blockchain-based data access method in this embodiment can be a processing scenario based on cloud platforms, cloud technologies, etc. Specifically, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, each item may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0059] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of storage devices of various types (storage devices are also called storage nodes) in the network to work together through application software or application interfaces to provide data storage and business access functions. At present, the storage method of the storage system is to create a logical volume. When creating a logical volume, a physical storage space is allocated for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, the data is stored on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object. Therefore, when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object. The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disk), the physical storage space is divided into stripes in advance. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0060] In this embodiment, based on the above-mentioned cloud storage technology, the data of all data nodes can be stored in the cloud through cloud storage, which is convenient for data storage nodes to store the data of all data nodes, thereby improving data storage efficiency, saving data storage costs, and improving data storage security.

[0061] Database, in short, can be regarded as an electronic filing cabinet - a place to store electronic files, where users can add, query, update, delete, and other operations on the data in the files. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application. Database management system (DBMS) is a computer software system designed for managing databases, generally with basic functions such as storage, interception, security, and backup. Database management systems can be classified according to the database model it supports, such as relational, XML (Extensible Markup Language); or according to the type of computer supported, such as server clusters, mobile phones; or according to the query language used, such as SQL (Structured Query Language), XQuery; or according to the performance impulse focus, such as maximum scale, maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMS can cross categories, for example, supporting multiple query languages ​​at the same time.

[0062] Big data refers to a collection of data that cannot be captured, managed, and processed by conventional software tools within a certain time frame. It is a massive, high-growth, and diverse information asset that requires new processing models to have stronger decision-making power, insight discovery, and process optimization capabilities. With the advent of the cloud era, big data has also attracted more and more attention. Big data requires special technologies to effectively process large amounts of data within a tolerable time frame. Technologies applicable to big data include large-scale parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the Internet, and scalable storage systems.

[0063] In this embodiment, through the above-mentioned database technology and big data technology, the data of the data owner can be managed in the storage space of the data custodian and the consensus node, and the data management efficiency can be improved by managing and maintaining the data, thereby enhancing the coordination and security of the data.

[0064] It should be noted that the server that processes data in this embodiment can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0065] Figure 4 A schematic diagram of a node system based on a blockchain network provided in an embodiment of the present application.

[0066] like Figure 4 As shown, the blockchain network in this embodiment includes four types of network nodes. These include data ownership nodes 41, data request nodes 42, data custodian nodes 43 and consensus nodes 44. Specifically, the data ownership node 41 in this embodiment is the terminal device corresponding to the data owner, such as the user's mobile phone, computer, etc.; the data request node 42 is the computer device corresponding to the data request end, where the data request end can be a third-party service end, an institution requesting to obtain data, etc.; the data custodian node 43 is the computer device corresponding to the data custodian, where the data custodian can be a third-party institution, such as a tax agency, a banking institution, etc. In addition, the consensus node 44 in this embodiment is used to obtain data from each node, and to reach consensus and verify the data.

[0067] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0068] Figure 5 A flowchart of a data access method based on blockchain according to an embodiment of the present application is shown. The data access method based on blockchain is executed by a data request node corresponding to a data request end. The data request node may be Figure 4 The data request node 42 shown in FIG. In practical applications, the device that executes the technical solution of this embodiment may be a computer device corresponding to a service provider, a computer device used by an organization that needs to verify the identity of a user, and the like.

[0069] Reference Figure 5 As shown, the blockchain-based data access method includes at least steps S510 to S540, which are described in detail as follows:

[0070] In step S510, a data authorization request is generated based on the data directory, and the data authorization request is used to apply for authorization from all data nodes to obtain target data.

[0071] In this embodiment, the data requesting node is a node corresponding to the data user, and in actual applications, the data requesting node may be a computer device corresponding to the data user. The data requester may be a financial institution providing loans, a service provider, and the like.

[0072] In this embodiment, the data storage nodes correspond to various official institutions and are used to store the data of the data owner. Exemplarily, in this embodiment, the data storage nodes include at least one of the following nodes: a node corresponding to a banking institution, a node corresponding to a social security institution, a node corresponding to a tax institution, a node corresponding to a water, electricity and coal resource institution, etc.

[0073] In this embodiment, the data ownership node is used to represent a user who has data processing rights, and the user may be a resource requester, a service requester, etc. Therefore, in this embodiment, the data ownership node may include at least one of the following nodes: a node corresponding to a resource requester, a node corresponding to a service requester.

[0074] In one embodiment of the present application, a data requesting node generates a data authorization request to apply for authorization from all data nodes through the data authorization request to obtain target data, and processes the identity of the data owner based on the target data.

[0075] In step S520, if the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request is uploaded to the blockchain to notify all the data nodes to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or forward the data authorization request on the blockchain to all the data nodes through the data custodian node, and generate the authorization approval record corresponding to the data authorization request after the data ownership nodes approve it.

[0076] In one embodiment of the present application, after the data requesting node generates a data authorization request, it searches the blockchain for the authorization approval record corresponding to the data authorization request. If the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request is uploaded to the blockchain in the blockchain system to ensure the traceability of the data authorization request and the integrity of the data acquisition process.

[0077] By uploading the data authorization request to the blockchain in the blockchain system, the data ownership nodes are notified to obtain the data authorization request from the blockchain, and the authorization approval record corresponding to the data authorization request is generated for approval. In addition, the data authorization request on the blockchain can be forwarded to the data ownership nodes through the data custodian node, and the authorization approval record corresponding to the data authorization request is generated after the data ownership node approves it. Through the above two methods, the data ownership nodes can obtain the data authorization request based on various methods, which improves the efficiency and reliability of obtaining the data authorization request. And obtaining the data authorization request through the blockchain ensures that the data request node cannot deny the data authorization request.

[0078] In addition, in the embodiment of the present application, after the data authorization request is uploaded to the blockchain, if the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request can also be directly sent to the preset data storage node.

[0079] In one embodiment of the present application, after uploading the data authorization request to the blockchain, the authorization approval record corresponding to the data authorization request is searched in the blockchain. If no authorization approval record is found, the data authorization request is sent to a preset data storage node to obtain the authorization approval records of all data nodes through the data storage node.

[0080] It should be noted that in the embodiment of the present application, an authorization approval record is generated in advance by all data nodes for the previous data authorization request, and the authorization approval record corresponding to the data authorization request is uploaded to the blockchain, so that when the data requesting node requests to obtain data again later, the authorization approval record corresponding to the data authorization request is directly searched from the blockchain, and after finding the authorization approval record, the target data corresponding to the data authorization request is obtained from the blockchain based on the authorization approval record.

[0081] In this embodiment, the efficiency of data acquisition is improved by pre-generating the authorization approval record corresponding to the data authorization request and storing the authorization approval record in the blockchain. In particular, when the same target data is acquired multiple times, the data request end can directly acquire the target data based on the authorization approval record generated historically, avoiding the process of applying for authorization from all data nodes through the data storage node each time, thereby improving the efficiency of data acquisition and saving the cost of data acquisition.

[0082] In step S530, the authorization and approval records uploaded by all nodes of the data are obtained from the blockchain.

[0083] In one embodiment of the present application, after sending the data authorization request to the data custodian node, the data authorization request is forwarded to the data owner node through the data custodian node to instruct the data owner node to approve the data authorization request, and after the approval is passed, an authorization approval record is generated, and the authorization approval record is uploaded to the blockchain. In this way, the data requesting node can obtain the authorization approval record uploaded by the data owner node from the blockchain.

[0084] Furthermore, in this embodiment, later, when the data requesting node needs to obtain the target data again, it can search the blockchain for the authorization and approval record corresponding to the data request to directly obtain the target data.

[0085] In step S540, target data is acquired based on the authorization approval record.

[0086] In one embodiment of the present application, after obtaining the authorization approval record, the target data is obtained based on the authorization approval record. Specifically, in this embodiment, the target data can be obtained directly from all data nodes based on the authorization approval record, or it can be obtained from the blockchain based on the authorization approval record.

[0087] like Figure 6 As shown, in this embodiment, in S610, the data requesting node first queries whether there is an authorization approval record corresponding to the data authorization request in the blockchain. If there is no authorization approval record, the data authorization request is sent to the data custodian node in S620, and then the data custodian node forwards the data authorization request to the data owner node in S630, and after the data owner node approves the data authorization request, the generated authorization approval record is uploaded to the blockchain network in S640. Finally, the target data is obtained by the data requesting node based on the authorization approval record in S650.

[0088] In one embodiment of the present application, the method for accessing data based on blockchain also includes:

[0089] After uploading the data authorization request to the blockchain, if the authorization approval record corresponding to the data authorization request is found in the blockchain, the authorization approval record is verified through the smart contract;

[0090] After the authorization approval record is verified, the target data corresponding to the data authorization request is obtained.

[0091] like Figure 7In this embodiment, after uploading the data authorization request to the blockchain, the authorization approval record corresponding to the data authorization request is searched in the blockchain in S710; if the authorization approval record corresponding to the data authorization request is found in the blockchain, the authorization approval record is verified through the smart contract in S720; after the authorization approval record is verified, the target data corresponding to the data authorization request is obtained in S730.

[0092] In one embodiment of the present application, in the process of obtaining the target data based on the authorization approval record in step S540, the following steps are specifically included: generating a data access request for the target data based on the authorization approval record; uploading the data access request to the blockchain; and obtaining the target data corresponding to the data access request from the blockchain.

[0093] like Figure 8 As shown, in this embodiment, when acquiring target data, a data access request for the target data is first generated based on the authorization and approval record, and the data access request is uploaded to the blockchain in S810. After the blockchain reaches a consensus, the target data corresponding to the data access request is acquired from the blockchain in S820. The security and confidentiality of data acquisition are improved by the above-mentioned method of generating access requests and acquiring data.

[0094] In one embodiment of the present application, after obtaining the target data based on the authorization and approval record, it also includes: uploading the obtained target data to the blockchain; obtaining the data verification result uploaded by the data custodian node from the blockchain, wherein the data verification result is generated by the data custodian node obtaining the target data from the blockchain and verifying the target data based on the information of all data nodes; if the data verification result is that the verification is passed, the target data is applied.

[0095] Specifically, when the target data is obtained, the authenticity of the target data can be verified in this embodiment. Specifically, when verifying the authenticity of the target data, the target data is uploaded to the blockchain, and the original target data on the blockchain is compared with the target data obtained by the data request node, so that the correctness of the target data can be determined. In this embodiment, when the data verification result is that the verification is passed, the target data can be applied. In the above manner, the occurrence of falsification of all data nodes is avoided, and the authority and security of data acquisition are improved.

[0096] like Fig. 9As shown, the blockchain network in this embodiment includes: consensus nodes and simple payment verification nodes (SPV). Among them, the simple payment verification nodes include data custodian nodes, data ownership nodes and data request nodes that request to obtain target data; and in addition, the data custodian, data owner and data requester also include business systems, trusted exchange processing, etc.

[0097] In this embodiment, the blockchain includes a data directory corresponding to the data stored in the data storage node, so that the data ownership node and the data request node obtain the data directory from the blockchain. The data storage node includes at least one of the following nodes: a node corresponding to a banking institution, a node corresponding to a social security institution, a node corresponding to a taxation institution, a node corresponding to a water, electricity and coal resource institution, etc.

[0098] In this embodiment, the data ownership node includes at least one of the following nodes: a node corresponding to a resource requester, a node corresponding to a service requester, and the like.

[0099] In this embodiment, the data requesting node for acquiring the target data includes at least one of the following nodes: a node corresponding to a resource leasing organization, a node corresponding to a service providing organization, and the like.

[0100] This embodiment generates a data acquisition record based on the target data acquisition process, and uploads the data acquisition record to the blockchain, so as to improve the security and accuracy of the data acquisition process in this way.

[0101] Fig.10 A flowchart of a data access method based on blockchain according to an embodiment of the present application is shown. The data access method based on blockchain is executed by a data ownership node corresponding to a data ownership terminal. The data ownership node may be Figure 4 All nodes 41 of the data shown in FIG. 4 are shown in FIG. 4 . In practical applications, the device that executes the technical solution of this embodiment may be a computer device used by a user, etc.

[0102] Reference Fig.10 As shown, the blockchain-based data access method includes at least steps S1010 to S1030, which are described in detail as follows:

[0103] Step S1010, obtaining from the blockchain a data authorization request uploaded by a data requesting node, or obtaining from the blockchain a data authorization request forwarded by a data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find an authorization approval record corresponding to the data authorization request in the blockchain.

[0104] In one embodiment of the present application, after the data requesting node generates a data authorization request, it searches the blockchain for the authorization approval record corresponding to the data authorization request. If the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request is uploaded to the blockchain in the blockchain system to ensure the traceability of the data authorization request and the integrity of the data acquisition process.

[0105] By uploading the data authorization request to the blockchain in the blockchain system, the data ownership node is notified to obtain the data authorization request from the blockchain, and to review and approve it to generate the authorization approval record corresponding to the data authorization request. In addition, the data authorization request on the blockchain can be forwarded to the data ownership node through the data custodian node, and the authorization approval record corresponding to the data authorization request can be generated after the data ownership node approves it.

[0106] Through the above two methods, all data nodes can obtain data authorization requests in various ways, which improves the efficiency and reliability of obtaining data authorization requests. And obtaining data authorization requests through blockchain ensures that data requesting nodes cannot deny data authorization requests.

[0107] In addition, in one embodiment of the present application, a data authorization request is generated and sent to a data custodian node by a data requesting node, and the data custodian node forwards the data authorization request to a data owning node to notify the data owning node of the data demand of the data requesting node.

[0108] Step S1020: Approve the data authorization request based on the node information of the data requesting node, and generate an authorization approval record.

[0109] In one embodiment of the present application, after obtaining the data authorization request, the data storage node determines the corresponding target data based on the data authorization request, and then approves the data authorization request based on the node information and target data of the data requesting node, and generates an authorization approval record.

[0110] Specifically, in this embodiment, when approving a data authorization request, the corresponding data access permission can be first determined based on the identity information of the data requesting node, and then the data access permission is compared with the target data, and an authorization approval record is generated based on the comparison result.

[0111] like Fig.11 As shown, in one embodiment of the present application, based on the node information of the data requesting node, the process of approving the data authorization request and generating the authorization approval record specifically includes steps S1021 to S1023:

[0112] Step S1021, based on the data authorization request, determining corresponding data to be accessed from the stored data;

[0113] Step S1022, determining the data access permission corresponding to the data requesting node based on the node information of the data requesting node;

[0114] Step S1023: Based on the data access permission and the data to be accessed, the data authorization request is approved and an authorization approval record is generated.

[0115] like Fig.12 As shown, in the process of approving the data authorization request in this embodiment, firstly, based on the data authorization request 1210, the corresponding data to be accessed 1220 is determined from the locally stored data. Based on the node information 1230 of the data requesting node, the data access permission 1240 corresponding to the data requesting node is determined; based on the data access permission and the data to be accessed, the data authorization request is approved and verified, and an authorization approval record 1250 is generated.

[0116] Step S1030: Upload the authorization and approval records to the blockchain so that the data requesting node can obtain the target data based on the authorization and approval records in the blockchain.

[0117] In one embodiment of the present application, after the authorization approval record is generated, the authorization approval record is uploaded to the blockchain, so that the data requesting node can obtain the target data based on the authorization approval record in the blockchain.

[0118] In this embodiment, the method of uploading the authorization and approval records to the blockchain can be used for subsequent data requests, so that the data requesting node can directly obtain the target data based on the authorization and approval records, thereby improving the efficiency of data acquisition.

[0119] In one embodiment of the present application, after the process of approving the data authorization request based on the node information of the data requesting node and generating an authorization approval record in step S1023, the method further includes: sending the authorization approval record to the data custody node; obtaining a data acquisition receipt returned by the data requesting node; wherein the data acquisition receipt is generated after the data custody node forwards the authorization approval record to the data requesting node, and the data requesting node obtains the target data based on the authorization approval record.

[0120] like Fig.13As shown, in this embodiment, after the data owner node authorization approval record 1250 is generated, the authorization approval record 1250 is sent to the data storage node; the data storage node forwards the authorization approval record to the data request node, and after the data request node obtains the target data 1260 based on the authorization approval record, it generates a data acquisition receipt 1270 to indicate that the target data has been successfully acquired, and returns the data acquisition receipt to the data owner node.

[0121] In one embodiment of the present application, during the data transmission and authorization process, the data owner node will continuously review and verify the data request, and therefore upload each generated authorization approval record to the blockchain. Considering that in actual applications, the data owner node may modify or delete its own authorization. Therefore, when modifying the authorization record, Fig.14 As shown, it includes steps S1410 to S1430:

[0122] Step S1410, obtaining historical authorization and approval records from the blockchain;

[0123] Step S1420, generating a new authorization approval record based on the approval result in the historical authorization approval record;

[0124] Step S1430, upload the new authorization approval record to the blockchain.

[0125] Specifically, when the data owner node processes the historical authorization approval record, it first obtains the historical authorization approval record from the blockchain, then generates a new authorization approval record based on the approval result in the historical authorization approval record, and finally uploads the new authorization approval record to the blockchain. The above method can increase the flexibility of data ownership nodes in data authorization.

[0126] The following describes an apparatus embodiment of the present application, which can be used to execute the blockchain-based data access method in the above-mentioned embodiment of the present application. It is understandable that the apparatus can be a computer program (including program code) running on a computer device, for example, the apparatus is an application software; the apparatus can be used to execute the corresponding steps in the method provided in the embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the embodiment of the blockchain-based data access method in the above-mentioned present application.

[0127] Fig.15 A block diagram of a blockchain-based data access device according to an embodiment of the present application is shown.

[0128] Reference Fig.15As shown, according to an embodiment of the present application, a blockchain-based data access device 1500 includes: a generating unit 1510, which is used to generate a data authorization request based on the data directory, and the data authorization request is used to apply for authorization from all data nodes to obtain target data; a first uploading unit 1520, which is used to upload the data authorization request to the blockchain if the authorization approval record corresponding to the data authorization request is not found in the blockchain, so as to notify all data nodes to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or forward the data authorization request on the blockchain to all data nodes through the data custodian node, and generate the authorization approval record corresponding to the data authorization request after the approval of all data nodes; a first obtaining unit 1530, which is used to obtain the authorization approval record uploaded by all data nodes from the blockchain; a second obtaining unit 1540, which is used to obtain the target data based on the authorization approval record.

[0129] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used for: after uploading the data authorization request to the blockchain, if the authorization approval record corresponding to the data authorization request is found in the blockchain, verifying the authorization approval record through a smart contract; after the authorization approval record is verified, obtaining the target data corresponding to the data authorization request.

[0130] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device also includes: uploading the acquired target data to the blockchain; obtaining from the blockchain a data verification result uploaded by the data custodian node, wherein the data verification result is generated by the data custodian node acquiring the target data from the blockchain and verifying the target data based on information of all nodes of the data; if the data verification result is a passed verification, the target data is applied.

[0131] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: generate a data access request for the target data based on the authorization approval record; upload the data access request to the blockchain; and obtain the target data corresponding to the data access request from the blockchain.

[0132] In some embodiments of the present application, based on the aforementioned scheme, the simple payment verification node includes the data custody node, the data ownership node and the data request node requesting to obtain the target data; the blockchain includes a data directory corresponding to the data stored in the data custody node, so that the data ownership node and the data request node obtain the data directory from the blockchain.

[0133] In some embodiments of the present application, based on the aforementioned scheme, the data custody node includes at least one of the following nodes: a node corresponding to a banking institution, a node corresponding to a social security institution, a node corresponding to a tax institution, and a node corresponding to a water, electricity and coal resources institution; the data ownership node includes at least one of the following nodes: a node corresponding to a resource requester, and a node corresponding to a service requester; the data request node for obtaining the target data includes at least one of the following nodes: a node corresponding to a resource leasing institution, and a node corresponding to a service provider institution.

[0134] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: generate a data acquisition record based on the acquisition process of the target data; and upload the data acquisition record to the blockchain.

[0135] Fig.16 A block diagram of a blockchain-based data access device according to an embodiment of the present application is shown.

[0136] Reference Fig.16 As shown, according to an embodiment of the present application, a blockchain-based data access device 1600 includes: a third acquisition unit 1610, which is used to obtain the data authorization request uploaded by the data requesting node from the blockchain, or obtain the data authorization request in the blockchain forwarded by the data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find the authorization approval record corresponding to the data authorization request in the blockchain; an approval unit 1620, which is used to approve the data authorization request based on the node information of the data requesting node and generate an authorization approval record; a second uploading unit 1630, which is used to upload the authorization approval record to the blockchain, so that the data requesting node obtains the target data based on the authorization approval record in the blockchain.

[0137] In some embodiments of the present application, based on the aforementioned scheme, the approval unit is configured to: determine the corresponding data to be accessed from the stored data based on the data authorization request; determine the data access rights corresponding to the data requesting node based on the node information of the data requesting node; and approve the data authorization request based on the data access rights and the data to be accessed, and generate the authorization approval record.

[0138] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: send the authorization approval record to the data custody node; obtain the data acquisition receipt returned by the data request node; wherein the data acquisition receipt is generated after the data custody node forwards the authorization approval record to the data request node, and the data request node obtains the target data based on the authorization approval record.

[0139] In some embodiments of the present application, based on the aforementioned scheme, the blockchain-based data access device is also used to: obtain historical authorization approval records from the blockchain; generate new authorization approval records based on the approval results in the historical authorization approval records; and upload the new authorization approval records to the blockchain.

[0140] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0141] It should be noted that Fig.17 The computer system 1700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0142] like Fig.17 As shown, the computer system 1700 includes a central processing unit (CPU) 1701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1702 or the program loaded from the storage part 1708 to the random access memory (RAM) 1703, such as executing the method described in the above embodiment. In RAM 1703, various programs and data required for system operation are also stored. CPU 1701, ROM 1702 and RAM 1703 are connected to each other through bus 1704. Input / output (I / O) interface 1705 is also connected to bus 1704.

[0143] The following components are connected to the I / O interface 1705: an input section 1706 including a keyboard, a mouse, etc.; an output section 1707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1708 including a hard disk, etc.; and a communication section 1709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to the I / O interface 1705 as needed. A removable medium 1711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1710 as needed so that a computer program read therefrom is installed into the storage section 1708 as needed.

[0144] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1709, and / or installed from a removable medium 1711. When the computer program is executed by a central processing unit (CPU) 1701, various functions defined in the system of the present application are executed.

[0145] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0146] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0147] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0148] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0149] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0150] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0151] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0152] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0153] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data access method based on blockchain, characterized in that: The blockchain includes a data requesting node, a data owning node, and a data keeping node. The data stored in the blockchain includes a data directory corresponding to the data stored in the data keeping node. The method is executed by the data requesting node, and the method includes: Generate a data authorization request based on the data directory, the data authorization request is used to apply for authorization from the data owner node to obtain the target data; wherein the data owner node is a node corresponding to the data owner, the data owner owns the data and has the right to process the data; the data storage node is used to store the data owned by the data owner; If the authorization approval record corresponding to the data authorization request is not found in the blockchain, the data authorization request is uploaded to the blockchain to notify the data ownership node to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or the data custodian node forwards the data authorization request on the blockchain to the data ownership node, and generates the authorization approval record corresponding to the data authorization request after the data ownership node approves it; Obtaining authorization and approval records uploaded by all nodes of the data from the blockchain; Acquiring the target data based on the authorization and approval record; Wherein, the acquiring the target data based on the authorization approval record includes: Based on the authorization and approval record, obtaining the target data from all nodes of the data; The method further comprises: Uploading the target data acquired by the data requesting node to the blockchain; Obtaining from the blockchain a data verification result uploaded by the data custodian node, wherein the data verification result is generated by the data custodian node searching the blockchain for the target data obtained by the data requesting node, and verifying the correctness of the target data obtained by the data requesting node based on the information of all nodes of the data; If the data verification result is verification passed, applying the target data; The method further comprises: If the authorization approval record corresponding to the data authorization request is found in the blockchain, the authorization approval record is verified through a smart contract; After the authorization approval record is verified, the target data corresponding to the data authorization request is obtained.

2. The method according to claim 1, characterized in that Acquiring the target data based on the authorization and approval record includes: generating a data access request for the target data based on the authorization approval record; Uploading the data access request to the blockchain; Obtain target data corresponding to the data access request from the blockchain.

3. The method according to claim 1, characterized in that The blockchain includes a consensus node and a simple payment verification node, wherein the simple payment verification node includes the data custody node, the data ownership node, and a data request node requesting to obtain the target data; The blockchain includes a data directory corresponding to the data stored in the data custodian node, so that the data ownership node and the data requesting node obtain the data directory from the blockchain.

4. The method according to claim 1, characterized in that: The data storage node includes at least one of the following nodes: a node corresponding to a banking institution, a node corresponding to a social security institution, a node corresponding to a tax institution, and a node corresponding to a water, electricity, and coal resource institution; The data ownership node includes at least one of the following nodes: a node corresponding to a resource requester, a node corresponding to a service requester; The data requesting node for acquiring the target data includes at least one of the following nodes: a node corresponding to a resource leasing organization, and a node corresponding to a service providing organization.

5. The method according to claim 1, characterized in that The method further comprises: Based on the acquisition process of the target data, generating a data acquisition record; The data acquisition record is uploaded to the blockchain.

6. A data access method based on blockchain, characterized in that: The blockchain includes a data requesting node, a data owning node, and a data keeping node. The data stored in the blockchain includes a data directory corresponding to the data stored in the data keeping node. The method is executed by the data owning node, and the method includes: Obtaining from the blockchain the data authorization request uploaded by the data requesting node, or obtaining the data authorization request in the blockchain forwarded by the data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find the authorization approval record corresponding to the data authorization request in the blockchain, and if the data requesting node finds the authorization approval record corresponding to the data authorization request in the blockchain, the authorization approval record is verified through a smart contract, and after the authorization approval record is verified, the target data corresponding to the data authorization request is obtained; wherein the data ownership node is the node corresponding to the data owner, and the data owner owns the data and has the right to process the data; the data custodian node is used to keep the data owned by the data owner; Based on the node information of the data requesting node, approving the data authorization request, and generating an authorization approval record; The authorization approval record is uploaded to the blockchain, so that the data requesting node obtains the target data from the data ownership node based on the authorization approval record in the blockchain, uploads the target data obtained by the data requesting node to the blockchain, and obtains the data verification result uploaded by the data custodian node from the blockchain. If the data verification result is verified to be passed, the target data is applied; wherein the data verification result is generated by the data custodian node searching the blockchain for the target data obtained by the data requesting node, and verifying the correctness of the target data obtained by the data requesting node based on the information of the data ownership node.

7. The method according to claim 6, characterized in that Based on the node information of the data requesting node, the data authorization request is approved and an authorization approval record is generated, including: Based on the data authorization request, determining corresponding data to be accessed from the stored data; Determining data access rights corresponding to the data requesting node based on the node information of the data requesting node; Based on the data access permission and the data to be accessed, the data authorization request is approved and the authorization approval record is generated.

8. The method according to claim 6, characterized in that After approving the data authorization request based on the node information of the data requesting node and generating an authorization approval record, the method further includes: Sending the authorization approval record to the data storage node; Obtain a data acquisition receipt returned by the data requesting node; wherein the data acquisition receipt is generated after the data custodian node forwards the authorization approval record to the data requesting node and the data requesting node obtains the target data based on the authorization approval record.

9. The method according to claim 6, characterized in that The method further comprises: Obtaining historical authorization and approval records from the blockchain; Generate a new authorization approval record based on the approval result in the historical authorization approval record; The new authorization approval record is uploaded to the blockchain.

10. A data access device based on blockchain, characterized in that: The blockchain includes a data requesting node, a data owning node, and a data keeping node. The data stored in the blockchain includes a data directory corresponding to the data stored in the data keeping node. The device is configured at the data requesting node, and the device includes: A generating unit, configured to generate a data authorization request based on the data directory, wherein the data authorization request is used to apply for authorization from a data owner node to obtain target data; wherein the data owner node is a node corresponding to a data owner, and the data owner owns the data and has the right to process the data; and the data storage node is used to store the data owned by the data owner; A first uploading unit is configured to upload the data authorization request to the blockchain if the authorization approval record corresponding to the data authorization request is not found in the blockchain, so as to notify the data ownership node to approve the data authorization request on the blockchain and generate the authorization approval record corresponding to the data authorization request, or forward the data authorization request on the blockchain to the data ownership node through the data custodian node, and generate the authorization approval record corresponding to the data authorization request after the data ownership node approves the request; A first acquisition unit is used to obtain the authorization and approval records uploaded by all nodes of the data from the blockchain; A second acquisition unit, configured to acquire the target data based on the authorization and approval record; Wherein, the acquiring the target data based on the authorization approval record includes: Based on the authorization and approval record, obtaining the target data from all nodes of the data; The device is also used for: Uploading the target data acquired by the data requesting node to the blockchain; Obtaining from the blockchain a data verification result uploaded by the data custodian node, wherein the data verification result is generated by the data custodian node searching the blockchain for the target data obtained by the data requesting node, and verifying the correctness of the target data obtained by the data requesting node based on the information of all nodes of the data; If the data verification result is verification passed, applying the target data; The device is also used for: If the authorization approval record corresponding to the data authorization request is found in the blockchain, the authorization approval record is verified through a smart contract; After the authorization approval record is verified, the target data corresponding to the data authorization request is obtained.

11. A data access device based on blockchain, characterized in that: The blockchain includes a data request node, a data ownership node, and a data storage node. The data stored in the blockchain includes a data directory corresponding to the data stored in the data storage node. The device is configured at the data ownership node, and the device includes: A third acquisition unit is used to acquire the data authorization request uploaded by the data requesting node from the blockchain, or to acquire the data authorization request in the blockchain forwarded by the data custodian node; wherein the data authorization request is uploaded to the blockchain when the data requesting node fails to find the authorization approval record corresponding to the data authorization request in the blockchain. If the data requesting node finds the authorization approval record corresponding to the data authorization request in the blockchain, the authorization approval record is verified through a smart contract, and after the authorization approval record is verified, the target data corresponding to the data authorization request is acquired; wherein the data ownership node is the node corresponding to the data owner, and the data owner owns the data and has the right to process the data; the data custodian node is used to store the data owned by the data owner; An approval unit, configured to approve the data authorization request based on the node information of the data requesting node, and generate an authorization approval record; The second uploading unit is used to upload the authorization approval record to the blockchain, so that the data requesting node obtains the target data from the data owning node based on the authorization approval record in the blockchain, uploads the target data obtained by the data requesting node to the blockchain, and obtains the data verification result uploaded by the data custodian node from the blockchain. If the data verification result is verification passed, the target data is applied; wherein the data verification result is generated by the data custodian node searching the blockchain for the target data obtained by the data requesting node, and verifying the correctness of the target data obtained by the data requesting node based on the information of the data owning node.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the blockchain-based data access method according to any one of claims 1 to 9 is implemented.

13. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the blockchain-based data access method as described in any one of claims 1 to 9.

14. A computer program product, characterized in that The invention comprises a computer program carried on a computer-readable medium, wherein the computer program comprises a computer program for executing the blockchain-based data access method as described in any one of claims 1 to 9.