CN108932297B - Data query method, data sharing method, device and equipment - Google Patents

Data query method, data sharing method, device and equipment Download PDF

Info

Publication number
CN108932297B
CN108932297B CN201810555396.4A CN201810555396A CN108932297B CN 108932297 B CN108932297 B CN 108932297B CN 201810555396 A CN201810555396 A CN 201810555396A CN 108932297 B CN108932297 B CN 108932297B
Authority
CN
China
Prior art keywords
data
block chain
node
block
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810555396.4A
Other languages
Chinese (zh)
Other versions
CN108932297A (en
Inventor
王骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810555396.4A priority Critical patent/CN108932297B/en
Publication of CN108932297A publication Critical patent/CN108932297A/en
Application granted granted Critical
Publication of CN108932297B publication Critical patent/CN108932297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The present specification discloses a method, an apparatus, and a device for data query and data sharing, in which a block chain node in the method can determine a user identifier corresponding to data to be queried, and generate a data query request according to the user identifier, broadcast the data query request to each other block chain node, and for each other block chain node, when receiving authorization information returned by the other block chain node for the data query request, decrypt data of a user corresponding to the other block chain node in the block chain stored by the block chain node according to the authorization information, so as to query data of the user corresponding to the other block chain node in the block chain.

Description

Data query method, data sharing method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for data query and data sharing.
Background
Currently, each organization counts and stores data of each user, so as to provide services for each user through the stored data of each user.
However, since an effective trust mechanism cannot be generally constructed between the organizations, the organizations do not share the data of the users respectively kept by the organizations with other organizations, and thus, not only can better services be further provided for the users based on more comprehensive data, but also risk prevention and control can not be performed based on more comprehensive data.
For example, each organization typically does not share risk data such as risk records, fraud lists, etc. that it keeps with other organizations. In this way, each organization cannot query more comprehensive risk data to perform risk prevention and control based on the comprehensive risk data, so that some malicious users may perform business processing in some organizations that do not store risk data for themselves, and further, the organizations may be lost.
Based on the prior art, a more efficient data query and data sharing approach is needed.
Disclosure of Invention
The present specification provides a data query method, which is used to solve the problem that data sharing cannot be performed through an effective trust mechanism in the prior art.
The present specification provides a method of data query, comprising:
the block chain node determines a user identifier corresponding to the data to be inquired;
generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification;
and for each other block chain node, receiving authorization information returned by the other block chain link point aiming at the data query request, and decrypting the encrypted data of the user corresponding to the other block chain link point in the block chain stored by the block chain link point according to the authorization information so as to query the user data corresponding to the other block chain link point in the block chain, wherein for each block chain node, the user data corresponding to the block chain link point is the user data stored by the mechanism corresponding to the block chain link point, and the encrypted data of the user corresponding to the block chain link point is obtained by encrypting the user data stored by the mechanism corresponding to the block chain link point.
The present specification provides a data query apparatus, which is used to solve the problem that data sharing cannot be performed through an effective trust mechanism in the prior art.
The present specification provides an apparatus for data query, comprising:
the determining module is used for determining a user identifier corresponding to the data to be inquired;
the generating module is used for generating a data query request according to the user identification, broadcasting the data query request to other block link nodes, and querying data of a user corresponding to the user identification;
and the query module is used for receiving authorization information returned by the other block link points aiming at the data query request aiming at each other block link node, and decrypting the encrypted data of the user corresponding to the other block link points in the block chain stored by the device according to the authorization information so as to query the data of the user corresponding to the other block link points in the block chain, wherein the data of the user corresponding to the block link points is the data of the user stored by the mechanism corresponding to the block link points aiming at each block link node, and the encrypted data of the user corresponding to the block link points is obtained by encrypting the data of the user stored by the mechanism corresponding to the block link points.
The present specification provides a data query device, which is used to solve the problem that data cannot be shared through an effective trust mechanism in the prior art.
The present specification provides a device for data querying, each mechanism corresponding to each of the devices constituting each blockchain node, the device comprising one or more memories and a processor, the memories storing a program and being configured to perform the following steps by the one or more processors:
determining a user identifier corresponding to data to be queried;
generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification;
and for each other block chain node, receiving authorization information returned by the other block chain link point for the data query request, and decrypting the encrypted data of the user corresponding to the other block chain link point in the block chain stored in the device according to the authorization information so as to query the user data corresponding to the other block chain link point in the block chain, wherein for each block chain node, the user data corresponding to the block chain link point is the user data stored by the mechanism corresponding to the block chain link point, and the encrypted data of the user corresponding to the block chain link point is obtained by encrypting the user data stored by the mechanism corresponding to the block chain link point.
The present specification provides a data sharing method, which is used to solve the problem that data sharing cannot be performed through an effective trust mechanism in the prior art.
The present specification provides a method of data sharing, comprising:
acquiring data to be stored by block link points;
encrypting the data to be stored to obtain encrypted data;
and broadcasting the encrypted data to each other block chain node, so that each other block chain node stores the encrypted data in each block chain after determining that the encrypted data passes the consensus.
The present specification provides a data sharing apparatus, which is used to solve the problem that data sharing cannot be performed through an effective trust mechanism in the prior art.
The present specification provides an apparatus for data sharing, comprising:
the acquisition module acquires data to be stored;
the encryption module encrypts the data to be stored to obtain encrypted data;
and the broadcasting module broadcasts the encrypted data to other block chain nodes so that the other block chain nodes store the encrypted data in respective block chains after determining that the encrypted data passes consensus.
The present specification provides a data sharing device, which is used to solve the problem that data sharing cannot be performed through an effective trust mechanism in the prior art.
The present specification provides a data sharing apparatus, each mechanism corresponding to each of the apparatuses constituting each blockchain node, the apparatus comprising one or more memories and a processor, the memories storing a program and being configured to perform the following steps by the one or more processors:
acquiring data to be stored;
encrypting the data to be stored to obtain encrypted data;
and broadcasting the encrypted data to each other block chain node, so that each other block chain node stores the encrypted data in each block chain after determining that the encrypted data passes the consensus.
The technical scheme adopted by the specification can achieve the following beneficial effects:
since each organization can share the data of the users stored in each organization in the consensus network of the block chain through the corresponding block chain node, the data of the users can be effectively stored in the block chain, and the data of the users can be effectively prevented from being randomly tampered by others. In this way, the data of the users stored in the block chains can be stored in the block chains, so that a trust mechanism for data sharing can be effectively constructed among the organizations, and the organizations can store and inquire the data in the consensus network.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
FIG. 1 is a process diagram of data query provided herein;
FIG. 2 is a schematic diagram of the architecture of a third party platform provided herein;
FIG. 3 is a schematic diagram of an apparatus for querying data provided herein;
FIG. 4 is a schematic diagram of an apparatus for data sharing provided herein;
FIG. 5 is a schematic diagram of an apparatus for querying data provided herein;
fig. 6 is a schematic diagram of a data sharing device provided in this specification.
Detailed Description
In practical application, for each organization, data of each user stored by the organization belongs to private data of the organization, and since an effective trust mechanism cannot be constructed between the organizations in the prior art, the private data is not usually shared to other organizations.
In the prior art, each organization does not share data of each user stored in each organization to other organizations, so each organization cannot effectively provide better service to the users based on more comprehensive data.
For this reason, in the present specification, each mechanism may construct a consensus network, and each mechanism may perform data storage and query through corresponding block link points in the consensus network. Specifically, each mechanism may correspond to each block chain node, and each mechanism may store data of each user stored by itself in the block chain through the block chain node corresponding to itself. Each block link point corresponding to each mechanism can be constructed into a consensus network. The block chain link points corresponding to the mechanisms can perform consensus verification on the data to be stored, which need to be stored in the block chain, through a consensus mechanism, and store the data to be stored in the respective block chain after determining that the data to be stored passes the consensus verification.
For each mechanism, in order to prevent other mechanisms or individuals from directly viewing the data of each user stored by the mechanism from the blockchain, the mechanism may encrypt the data of each user stored by the mechanism to obtain encrypted data, further broadcast the encrypted data as data to be stored to block link points corresponding to other mechanisms for consensus, and store the data to be stored in the blockchain after determining that the data to be stored passes the consensus check.
The encryption method used by the organization to encrypt the data of each user stored in the organization is not a method of encrypting the data of each user by using a private key used in the digital signature. The main purpose of encrypting the data of each user at the block link node corresponding to the mechanism is to prevent other mechanisms or individuals from being able to directly view the data of each user stored in the mechanism from the block chain (in the consensus network, a block chain for storing data is stored in each block chain node, and the data of each user stored in each mechanism is stored in each block chain).
In this way, if some other organization or person wants to inquire the data of each user stored in the organization, it is necessary to acquire the authorization information from the organization, and then decrypt the data of each user stored in the organization from the blockchain through the acquired authorization information.
As for each organization, the organization can encrypt the data of each user stored in the organization and store the encrypted data in the blockchain, the situation that other organizations or individuals directly check the data of each user stored in the organization in the blockchain before the organization authorizes the organization can be effectively prevented, the data of each user can be effectively prevented from being maliciously tampered by storing the data of each user in the blockchain, and a safe and effective data sharing mechanism is constructed among the organizations.
In this specification, a block link point may be in a hardware form, that is, the block link point may refer to a computer, a server, or other devices, and of course, the block link point may also be in a software form, such as a client used by a mechanism. The blockchain node corresponding to each mechanism may be provided by the device of the mechanism itself, and of course, the blockchain node corresponding to each mechanism may also be provided by a third party platform. The third party platform can provide block chain nodes for each mechanism, so that each mechanism can share and inquire data through the block chain nodes.
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Fig. 1 is a schematic diagram of a data query process provided in this specification, which specifically includes the following steps:
s100: and the block chain node determines the user identification corresponding to the data to be inquired.
In this specification, when an organization needs to query data of a user, a user identifier corresponding to the user may be determined, and the data that needs to be queried may be referred to as data to be queried. In the subsequent process, a data query request for querying the data to be queried can be generated through the block link point corresponding to the mechanism according to the user identification. The user identifier mentioned herein may refer to information such as an identification card, a mobile phone number, a user account, and the like. It should be noted that the data to be queried may refer to data that the organization needs to query according to actual needs, or may also be data that a user or other organization entrusts the organization to query.
S102: and generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification.
When the block link point corresponding to the mechanism determines the user identifier corresponding to the data to be queried, a data query request for broadcasting to the whole consensus network can be generated according to the user identifier, wherein the data query request comprises the user identifier.
Before broadcasting the data query request to other block chain nodes in the consensus network, the block chain node can determine a data authorization protocol of a user corresponding to the user identifier through the user identifier, and verify the data authorization protocol through a management node in the consensus network. Wherein the management node may be provided by a third party platform distinct from the organizations.
In this specification, a user may send a user agreement to a user before executing a service provided by an organization, and the organization may obtain a data authorization agreement of the user after the user agrees with the user agreement. The subsequent management node can verify the data authorization protocol of the user, and broadcast the data query request sent by the blockchain node to other blockchain nodes in the consensus network when the data authorization protocol is determined to pass the verification.
The management node can verify the data authorization protocol by verifying the authenticity of the watermark and the timestamp of the data authorization protocol, comparing whether the user identifier, which is included in the data authorization protocol and is based on when the user signs the user protocol, is the same as the user identifier, and the like.
S104: and receiving authorization information returned by the other block chain link points aiming at the data query request aiming at each other block chain node, and decrypting the encrypted data of the user corresponding to the other block chain link points in the block chain stored by the block chain link points according to the authorization information so as to query the data of the user corresponding to the other block chain link points in the block chain.
After determining that the data authorization protocol corresponding to the user identifier passes verification, the management node may broadcast the data query request sent by the block link node to other block link nodes in the consensus network. Each other block link point may return respective authorization information to that block link point.
In this specification, the block chain stored in each block chain node stores data of each user stored in a mechanism corresponding to each block chain node. However, for each mechanism, the mechanism can only view the data stored in the mechanism from the block chain stored in the block link point through the block link point corresponding to the mechanism, and the mechanism cannot directly view the data stored in the other mechanisms stored in the block chain node in an encrypted state. If the data stored by the corresponding mechanisms of other block chain nodes needs to be checked, the corresponding authorization needs to be acquired, and thus the block chain nodes can check the data stored by the corresponding mechanisms of other block chains in the block chain.
Therefore, for each other block link node, the authorization information returned by the other block link node to the block link node means that the mechanism corresponding to the other block link node agrees that the mechanism corresponding to the block link node has the right to query the data of the user stored by the mechanism corresponding to the other block link node. Since each organization encrypts the uplink data in advance, it prevents other organizations or individuals from being able to view the user's data held by the organization directly from the blockchain. Therefore, the authorization information returned from another blockchain node to the blockchain link point is actually to enable the blockchain link point to decrypt the data stored in the mechanism corresponding to the other blockchain link point from the blockchain stored in the blockchain node, through the decryption information included in the authorization information. For each blockchain node, the blockchain node may assign different encryption information to different users for encrypting the data of the user stored in the blockchain. Correspondingly, when the block link point returns the authorization information, the decryption information corresponding to the user of the user identification can be determined according to the user identification contained in the received data query request, and then the decryption information is carried in the authorization information for returning.
In this specification, each organization may encrypt user data stored in itself by using a symmetric encryption algorithm such as DE3, RC2, IDEA, or the like. Of course, each mechanism may encrypt user data stored in itself by using an asymmetric encryption algorithm such as RSA or ECC.
In the method, since each mechanism can share the data of the users stored in each mechanism in the consensus network of the blockchain through the corresponding blockchain node, storing the data of the users in the blockchain can effectively prevent the data of the users from being tampered by others at will. In this way, the data of the users stored in the block chains can be stored in the block chains, so that a trust mechanism for data sharing can be effectively constructed among the organizations, and the organizations can store and inquire the data in the consensus network.
In this specification, the management node may record each operation performed by each block link point for user data stored in the block chain, to obtain an operation record, such as an operation type (e.g., copy, modify, etc.) of a specific implementation operation, time of the operation, a node identifier corresponding to a block chain node initiating the operation, and the like. The management node may store the obtained operation record in a blockchain, where the blockchain may be a blockchain in which each organization stores user data, or may be a blockchain dedicated to storing operation records. Each mechanism can query the block chain through the corresponding block chain link point to the operation of each mechanism or person on the data stored in the block chain.
The block chain link point can decrypt the data of the user respectively stored by the corresponding mechanism of each other block chain link point from the block chain stored in the block chain by the authorization information returned by each other block chain link point, and further combine the data of the user stored by the corresponding mechanism of the block chain link point to identify the risk of the user. For example, a block link point may identify whether the user is at risk of default by querying all institutions keeping records of the user's total credit.
In this specification, the block link points corresponding to the mechanisms may be assisted by a unified third party platform to complete various transactions such as data storage, data query, verification of a data authorization protocol, and the like, where the third party platform may be structurally divided into four layers, as shown in fig. 2.
Fig. 2 is a schematic architecture diagram of a third party platform provided in the present specification.
In the third-party platform architecture shown in fig. 2, the blockchain data layer is a core part of the entire third-party platform, and the blockchain data layer is mainly composed of the management node and the blockchain nodes corresponding to the mechanisms. The block chain link point is mainly responsible for storing data passing the consensus verification in the block chain, and the management node can verify a data authorization protocol corresponding to the user identifier in the data query process and broadcast a data query request containing the user identifier in the whole consensus network after determining that the data authorization protocol passes the verification.
The data recording layer of the third-party platform is mainly responsible for recording specific data related to each organization or individual when the organization or individual operates on the data stored in the block chain, such as the operation type of the organization or individual operating on the data, the operated data, the time when the data is operated, and the like. The data record layer may instruct the management node to store the resulting operation records in the blockchain for review by the organizations.
The service layer of the third-party platform mainly realizes business services such as data query, data storage and the like on business logic. And the external application layer of the third-party platform is mainly used for providing various interfaces for the organizations, so that the organizations can execute various services such as data storage, data query and the like on the third-party platform through the interfaces. In addition, the external application layer can apply for data query authority to other organizations for the organization or the individual in the process of data query of the organization or the individual. For example, when the organization a performs data query, the external application layer may determine, according to the user identifier corresponding to the data to be queried, which other organizations store the data of the user corresponding to the user identifier, and further notify the other organizations that the organization a needs to query the data of the user. For each other institution, the other institution, upon receiving the notification, may determine whether to authorize institution a to query the user's data held by the other institution. If the other organization authorizes the organization A, corresponding authorization information can be returned to the organization A through the external application layer.
It should be noted that the architecture of the third-party platform is not unique, and a worker of the third-party platform may adjust the architecture of the third-party platform according to actual needs, or may set another architecture layer on the third-party platform, which is not described in detail herein.
Based on the same idea, the data query and data sharing method provided above for one or more embodiments of the present specification further provides a corresponding data query and data sharing apparatus, as shown in fig. 3 and 4.
Fig. 3 is a schematic diagram of a data query apparatus provided in this specification, which specifically includes:
the determining module 301 determines a user identifier corresponding to data to be queried;
a generating module 302, configured to generate a data query request according to the user identifier, and broadcast the data query request to each other block link node, where the data query request is used to query data of a user corresponding to the user identifier;
the query module 303 receives, for each other block link node, authorization information returned by the other block link node in response to the data query request, and decrypts, according to the authorization information, encrypted data of the user corresponding to the other block link node in the block chain stored in the device, so as to query data of the user corresponding to the other block link node in the block chain, where, for each block link node, the data of the user corresponding to the block link node is data of the user stored by a mechanism corresponding to the block link node, and the encrypted data of the user corresponding to the block link node is obtained by encrypting, by the block link node, the data of the user stored by the mechanism corresponding to the block link node.
The device further comprises:
and the risk identification module 304 is configured to perform risk identification on the user according to the user data corresponding to each other block link point decrypted from the block chain according to the authorization information returned by each other block link point and/or the user data corresponding to the device itself.
The generating module 302 broadcasts the data query request to each other blockchain node through the management node.
The device further comprises:
the verification module 305 determines a data authorization protocol corresponding to the user; and verifying the data authorization protocol through the management node.
The generating module 302, when it is determined that the data authorization protocol passes the verification, broadcasts the data query request to each other blockchain node through the management node.
The device further comprises:
a storage module 306, which records the operation executed by the user data through the management node; storing the obtained operation record in a blockchain through the management node.
Fig. 4 is a schematic diagram of a data sharing apparatus provided in this specification, which specifically includes:
an obtaining module 401, which obtains data to be stored;
the encryption module 402 encrypts the data to be stored to obtain encrypted data;
the broadcasting module 403 broadcasts the encrypted data to each other block chain node, so that each other block chain node determines that the encrypted data passes consensus and stores the encrypted data in its respective block chain.
Based on the data query method described above, the present specification further provides a device for data query, as shown in fig. 5. The apparatus includes one or more memories and a processor, the memories storing programs and configured to perform the following steps by the one or more processors:
determining a user identifier corresponding to data to be queried;
generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification;
and for each other block chain node, receiving authorization information returned by the other block chain link point for the data query request, and decrypting the encrypted data of the user corresponding to the other block chain link point in the block chain stored in the device according to the authorization information so as to query the user data corresponding to the other block chain link point in the block chain, wherein for each block chain node, the user data corresponding to the block chain link point is the user data stored by the mechanism corresponding to the block chain link point, and the encrypted data of the user corresponding to the block chain link point is obtained by encrypting the user data stored by the mechanism corresponding to the block chain link point.
Based on the data sharing method described above, the present specification further provides a device for data sharing, as shown in fig. 6. The apparatus includes one or more memories and a processor, the memories storing programs and configured to perform the following steps by the one or more processors:
acquiring data to be stored;
encrypting the data to be stored to obtain encrypted data;
and broadcasting the encrypted data to each other block chain node, so that each other block chain node stores the encrypted data in each block chain after determining that the encrypted data passes the consensus.
In one or more embodiments of the present specification, a block link point may determine a user identifier corresponding to data to be queried, generate a data query request according to the user identifier, broadcast the data query request to each of other block link nodes, and for each of the other block link nodes, when receiving authorization information returned by the other block link nodes for the data query request, decrypt, according to the authorization information, data of a user corresponding to the other block link point in a block chain stored by the block link point, so as to query data of the user corresponding to the other block link point in the block chain.
Since each organization can share the data of the users stored in each organization in the consensus network of the block chain through the corresponding block chain node, the data of the users can be effectively stored in the block chain, and the data of the users can be effectively prevented from being randomly tampered by others. In this way, the data of the users stored in the block chains can be stored in the block chains, so that a trust mechanism for data sharing can be effectively constructed among the organizations, and the organizations can store and inquire the data in the consensus network.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to one or more embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.

Claims (16)

1. A method for data query, each mechanism corresponding to each block chain node, includes:
the block chain node determines a user identifier corresponding to the data to be inquired;
generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification;
receiving authorization information returned by the other block link points aiming at the data query request aiming at each other block link node, wherein the authorization information refers to that the mechanisms corresponding to the other block link points agree that the mechanisms corresponding to the block link points have authority to query data of users stored by the mechanisms corresponding to the other block link points, decrypting encrypted data of the users corresponding to the other block link points in the block chain stored by the block link points according to the authorization information so as to query data of the users corresponding to the other block link points in the block chain, wherein for each block link node, the data of the users corresponding to the block link points are data of the users stored by the mechanisms corresponding to the block link points, and the encrypted data of the users corresponding to the block link points are data of the users stored by the mechanisms corresponding to the block link points after the data of the users are encrypted And (4) obtaining the product.
2. The method of claim 1, further comprising:
and carrying out risk identification on the user according to the user data corresponding to each other block chain link point decrypted from the block chain according to the authorization information returned by each other block chain link point and/or the user data corresponding to the block chain node.
3. The method of claim 1, wherein broadcasting the data query request to other blockchain nodes specifically comprises:
and broadcasting the data query request to other block chain nodes through the management node.
4. The method of claim 3, before broadcasting the data query request to each other blockchain node, the method further comprising:
determining a data authorization protocol corresponding to the user;
and verifying the data authorization protocol through the management node.
5. The method according to claim 4, wherein the broadcasting of the data query request to each of the other blockchain nodes by the management node specifically comprises:
and when the data authorization protocol is determined to pass the verification, broadcasting the data query request to other block chain nodes through the management node.
6. The method of claim 3, further comprising:
recording the operation executed by the data of the user through the management node;
storing the obtained operation record in a blockchain through the management node.
7. A data sharing method, each mechanism corresponding to each block chain node, includes:
acquiring data to be stored by block link points;
encrypting the data to be stored to obtain encrypted data;
broadcasting the encrypted data to each other block chain node, so that each other block chain node stores the encrypted data in each block chain after determining that the encrypted data passes consensus;
before decrypting the encrypted data provided by the block chain node by the other block chain node, authorization information of the block chain node needs to be acquired, wherein the authorization information means that a mechanism corresponding to the other block chain node agrees that a mechanism corresponding to the block chain node has the right to inquire data of users stored by the mechanism corresponding to the other block chain node.
8. An apparatus for querying data, each mechanism corresponding to each blockchain node, comprising:
the determining module is used for determining a user identifier corresponding to the data to be inquired;
the generating module is used for generating a data query request according to the user identification, broadcasting the data query request to other block link nodes, and querying data of a user corresponding to the user identification;
a query module, configured to receive, for each other block link node, authorization information returned by the other block link node in response to the data query request, where the authorization information indicates that a mechanism corresponding to the other block link node agrees that the mechanism corresponding to the block link node has authority to query data of a user stored in the mechanism corresponding to the other block link node, and decrypt, according to the authorization information, encrypted data of the user corresponding to the other block link node in the block chain stored in the device, so as to query data of the user corresponding to the other block link node in the block chain, where, for each block link node, the data of the user corresponding to the block link node is the data of the user stored in the mechanism corresponding to the block link node, and the encrypted data of the user corresponding to the block link node is the data of the user stored in the mechanism corresponding to the block link node by adding the data of the user stored in the block link node to the mechanism corresponding to the block link node And (4) sealing to obtain the product.
9. The apparatus of claim 8, further comprising:
and the risk identification module is used for carrying out risk identification on the user according to the user data corresponding to each other block chain link point decrypted from the block chain according to the authorization information returned by each other block chain link point and/or the user data corresponding to the device.
10. The apparatus of claim 8, the generation module broadcasts the data query request to each other blockchain node through a management node.
11. The apparatus of claim 10, further comprising:
the verification module is used for determining a data authorization protocol corresponding to the user; and verifying the data authorization protocol through the management node.
12. The apparatus of claim 11, the generating module, when it is determined that the data authorization protocol is validated, broadcasts the data query request to each other blockchain node through the management node.
13. The apparatus of claim 10, further comprising:
the storage module is used for recording the operation executed by the data of the user through the management node; storing the obtained operation record in a blockchain through the management node.
14. A data sharing device, each mechanism corresponding to each block chain node, comprises:
the acquisition module acquires data to be stored;
the encryption module encrypts the data to be stored to obtain encrypted data;
the broadcast module broadcasts the encrypted data to other block chain nodes so that the other block chain nodes store the encrypted data in respective block chains after determining that the encrypted data passes consensus; before decrypting the encrypted data provided by the block chain node by the other block chain node, authorization information of the block chain node needs to be acquired, wherein the authorization information means that a mechanism corresponding to the other block chain node agrees that a mechanism corresponding to the block chain node has the right to inquire data of users stored by the mechanism corresponding to the other block chain node.
15. An apparatus for data querying, each mechanism corresponding to each of the apparatuses comprising each blockchain node, the apparatus comprising one or more memories and a processor, the memories storing a program and configured to be executed by the one or more processors to perform the steps of:
determining a user identifier corresponding to data to be queried;
generating a data query request according to the user identification, and broadcasting the data query request to other block chain nodes, wherein the data query request is used for querying data of a user corresponding to the user identification;
receiving authorization information returned by the other block link points aiming at the data query request aiming at each other block link node, wherein the authorization information refers to that the mechanisms corresponding to the other block link points agree that the mechanisms corresponding to the block link points have authority to query data of users stored by the mechanisms corresponding to the other block link points, decrypting encrypted data of the users corresponding to the other block link points in the block chain stored by the equipment according to the authorization information so as to query data of the users corresponding to the other block link points in the block chain, wherein for each block link node, the data of the users corresponding to the block link points are the data of the users stored by the mechanisms corresponding to the block link points, and the encrypted data of the users corresponding to the block link points are obtained by encrypting the data of the users stored by the mechanisms corresponding to the block link points by the block link points .
16. A data sharing apparatus, each mechanism corresponding to each of the apparatuses constituting each blockchain node, the apparatus comprising one or more memories and a processor, the memories storing programs and configured to perform the following steps by the one or more processors:
acquiring data to be stored;
encrypting the data to be stored to obtain encrypted data;
broadcasting the encrypted data to each other block chain node, so that each other block chain node stores the encrypted data in each block chain after determining that the encrypted data passes consensus; before decrypting the encrypted data provided by the block chain node by the other block chain node, authorization information of the block chain node needs to be acquired, wherein the authorization information means that a mechanism corresponding to the other block chain node agrees that a mechanism corresponding to the block chain node has the right to inquire data of users stored by the mechanism corresponding to the other block chain node.
CN201810555396.4A 2018-06-01 2018-06-01 Data query method, data sharing method, device and equipment Active CN108932297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810555396.4A CN108932297B (en) 2018-06-01 2018-06-01 Data query method, data sharing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810555396.4A CN108932297B (en) 2018-06-01 2018-06-01 Data query method, data sharing method, device and equipment

Publications (2)

Publication Number Publication Date
CN108932297A CN108932297A (en) 2018-12-04
CN108932297B true CN108932297B (en) 2022-03-22

Family

ID=64449350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810555396.4A Active CN108932297B (en) 2018-06-01 2018-06-01 Data query method, data sharing method, device and equipment

Country Status (1)

Country Link
CN (1) CN108932297B (en)

Families Citing this family (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510840B (en) * 2018-12-24 2021-07-13 中国南方电网有限责任公司 Method and device for sharing unstructured data, computer equipment and storage medium
CN109886026A (en) * 2019-01-11 2019-06-14 平安科技(深圳)有限公司 Data save querying method, device, computer system and readable storage medium storing program for executing
CN109740384B (en) * 2019-01-11 2023-11-10 众安信息技术服务有限公司 Data certification method and device based on blockchain
CN109918402A (en) * 2019-01-31 2019-06-21 平安科技(深圳)有限公司 Education based on block chain proves acquisition methods, device, computer equipment
US11010394B2 (en) * 2019-02-15 2021-05-18 Drfirst.Com, Inc. Efficient access of chainable records
CN110119428B (en) * 2019-04-19 2023-05-12 腾讯科技(深圳)有限公司 Block chain information management method, device, equipment and storage medium
CN110035130B (en) * 2019-04-24 2021-07-13 中国联合网络通信集团有限公司 Data processing method and device
CN110223159A (en) * 2019-05-22 2019-09-10 深圳壹账通智能科技有限公司 Credit data query method, apparatus, computer equipment and storage medium
CN111164594B (en) * 2019-07-02 2023-08-25 创新先进技术有限公司 System and method for mapping a de-centralized identity to a real entity
US11251963B2 (en) 2019-07-31 2022-02-15 Advanced New Technologies Co., Ltd. Blockchain-based data authorization method and apparatus
US11057189B2 (en) 2019-07-31 2021-07-06 Advanced New Technologies Co., Ltd. Providing data authorization based on blockchain
CN110457875B (en) * 2019-07-31 2021-04-27 创新先进技术有限公司 Data authorization method and device based on block chain
US11252166B2 (en) 2019-07-31 2022-02-15 Advanced New Technologies Co., Ltd. Providing data authorization based on blockchain
CN110599328B (en) * 2019-09-09 2021-03-19 腾讯科技(深圳)有限公司 Block chain based risk user determination method, device, equipment and storage medium
CN111127206B (en) 2019-12-25 2021-04-16 中国银联股份有限公司 Block chain data access control method and device based on intelligent contract
US11310051B2 (en) 2020-01-15 2022-04-19 Advanced New Technologies Co., Ltd. Blockchain-based data authorization method and apparatus
CN111047313B (en) * 2020-03-12 2020-12-04 支付宝(杭州)信息技术有限公司 Code scanning payment, information sending and key management method, device and equipment
CN113452735B (en) * 2020-03-25 2022-12-13 山东浪潮科学研究院有限公司 Narrow-band transmission method and equipment based on block chain
CN111666507B (en) * 2020-05-28 2023-10-20 中国工商银行股份有限公司 Personal track retrieval system and method based on block chain
CN111935240B (en) * 2020-07-16 2023-04-28 四川爱联科技股份有限公司 Internet of things data sharing method and device
CN111835570B (en) * 2020-07-20 2022-11-11 中国银行股份有限公司 Global state persistence decentralized blockchain network node device and working method
CN112612849B (en) 2020-07-24 2024-06-18 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and medium
CN111858611A (en) * 2020-07-28 2020-10-30 北京金山云网络技术有限公司 Data access method and device, computer equipment and storage medium
CN111737322B (en) * 2020-07-31 2020-12-04 支付宝(杭州)信息技术有限公司 Data sharing method, device and equipment
CN111818094B (en) 2020-08-28 2021-01-05 支付宝(杭州)信息技术有限公司 Identity registration method, device and equipment
CN111814172A (en) 2020-08-28 2020-10-23 支付宝(杭州)信息技术有限公司 Method, device and equipment for acquiring data authorization information
CN113657960A (en) 2020-08-28 2021-11-16 支付宝(杭州)信息技术有限公司 Matching method, device and equipment based on trusted asset data
CN111741036B (en) 2020-08-28 2020-12-18 支付宝(杭州)信息技术有限公司 Trusted data transmission method, device and equipment
CN113434849A (en) 2020-09-04 2021-09-24 支付宝(杭州)信息技术有限公司 Data management method, device and equipment based on trusted hardware
CN111814196B (en) 2020-09-04 2021-01-05 支付宝(杭州)信息技术有限公司 Data processing method, device and equipment
CN111814156B (en) 2020-09-04 2022-04-29 支付宝(杭州)信息技术有限公司 Data acquisition method, device and equipment based on trusted equipment
CN111930846B (en) 2020-09-15 2021-02-23 支付宝(杭州)信息技术有限公司 Data processing method, device and equipment
CN113255005B (en) 2020-09-15 2024-05-28 支付宝(杭州)信息技术有限公司 Block chain-based data asset circulation method, device and equipment
CN113012008B (en) 2020-09-15 2022-06-03 支付宝(杭州)信息技术有限公司 Identity management method, device and equipment based on trusted hardware
CN112215602B (en) * 2020-10-12 2023-03-17 支付宝(中国)网络技术有限公司 Data query method, device and system and electronic equipment
CN112765640A (en) * 2021-01-29 2021-05-07 重庆卡歌科技有限公司 Data sharing method based on block chain technology

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354994A (en) * 2016-08-22 2017-01-25 布比(北京)网络技术有限公司 Method and system for processing medical data
CN106991334A (en) * 2016-11-24 2017-07-28 阿里巴巴集团控股有限公司 A kind of method, system and device of data access
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107295002A (en) * 2017-07-12 2017-10-24 联动优势科技有限公司 The method and server of a kind of high in the clouds data storage
CN107767265A (en) * 2017-11-07 2018-03-06 中积有限公司 A kind of data sharing method and server
CN107846282A (en) * 2017-11-03 2018-03-27 法信公证云(厦门)科技有限公司 A kind of electronic data distribution keeping method and system based on block chain technology
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10135921B2 (en) * 2016-09-20 2018-11-20 Keir Finlow-Bates System and method for announcing cryptographic keys on a blockchain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354994A (en) * 2016-08-22 2017-01-25 布比(北京)网络技术有限公司 Method and system for processing medical data
CN106991334A (en) * 2016-11-24 2017-07-28 阿里巴巴集团控股有限公司 A kind of method, system and device of data access
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107295002A (en) * 2017-07-12 2017-10-24 联动优势科技有限公司 The method and server of a kind of high in the clouds data storage
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device
CN107846282A (en) * 2017-11-03 2018-03-27 法信公证云(厦门)科技有限公司 A kind of electronic data distribution keeping method and system based on block chain technology
CN107767265A (en) * 2017-11-07 2018-03-06 中积有限公司 A kind of data sharing method and server

Also Published As

Publication number Publication date
CN108932297A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN108932297B (en) Data query method, data sharing method, device and equipment
CN112818380B (en) Backtracking processing method, device, equipment and system for business behaviors
US10931439B2 (en) Data storage method, data query method and apparatuses
CN108364223B (en) Data auditing method and device
US11362815B2 (en) Trusted data transmission methods, apparatuses, and devices
CN109697204B (en) Data auditing method and device
CN111401902B (en) Service processing method, device and equipment based on block chain
AU2018257226A1 (en) Consensus verification method and device
CN111047313B (en) Code scanning payment, information sending and key management method, device and equipment
CN111342966B (en) Data storage method, data recovery method, device and equipment
CN113076527B (en) Block chain-based digital asset processing method and device
CN111814196A (en) Data processing method, device and equipment
CN112287376A (en) Method and device for processing private data
CN113037764B (en) System, method and device for executing service
CN111737304B (en) Processing method, device and equipment of block chain data
CN110866274A (en) Data fusion method, data fusion platform, data fusion system and data processing platform
CN114626944A (en) Service processing method and device
CN117094014A (en) Service processing method and device, storage medium and electronic equipment
CN116455657A (en) Service providing method, device, equipment and system
CN115982742A (en) Service execution method, device, storage medium and electronic equipment
CN112231757A (en) Privacy protection method, device and equipment for embedded application
CN116432235A (en) Privacy protection method and device for account data in blockchain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201022

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201022

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant