CN110119429B - Data processing method, data processing device, computer equipment and storage medium - Google Patents

Data processing method, data processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN110119429B
CN110119429B CN201910322601.7A CN201910322601A CN110119429B CN 110119429 B CN110119429 B CN 110119429B CN 201910322601 A CN201910322601 A CN 201910322601A CN 110119429 B CN110119429 B CN 110119429B
Authority
CN
China
Prior art keywords
information
blockchain system
target object
screening server
preset
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
CN201910322601.7A
Other languages
Chinese (zh)
Other versions
CN110119429A (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.)
Juzix Technology Shenzhen Co ltd
Original Assignee
Juzix Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Juzix Technology Shenzhen Co ltd filed Critical Juzix Technology Shenzhen Co ltd
Priority to CN201910322601.7A priority Critical patent/CN110119429B/en
Publication of CN110119429A publication Critical patent/CN110119429A/en
Application granted granted Critical
Publication of CN110119429B publication Critical patent/CN110119429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The application provides a data processing method, a data processing device, computer equipment and a storage medium, wherein the method comprises the following steps: the screening server acquires characteristic information of a target object stored in the blockchain system; the screening server determines whether preset key information exists in the characteristic information; and in the case that the preset key information exists in the characteristic information, returning a processing request to the blockchain system by the screening server, wherein the processing request is used for instructing the blockchain system to execute a preset processing operation on the target object. The technical problem that a scheme for effectively processing the on-chain sensitive information is lacked at present is solved, and the technical effects of effectively processing the on-chain sensitive information and reducing the processing cost and the processing difficulty are achieved.

Description

Data processing method, data processing device, computer equipment and storage medium
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a data processing method and apparatus, a computer device, and a storage medium.
Background
The blockchain technology is a brand new distributed infrastructure and computing mode which utilizes a blockchain data structure to verify and store data, utilizes a distributed node consensus algorithm to generate and update data, utilizes a cryptographic mode to ensure the safety of data transmission and access, and utilizes an intelligent contract composed of automatic script codes to program and operate data, and the blockchain can solve the problems of trust and safety of transactions.
However, the application of the blockchain also has certain defects and problems, for example, in the commodity inquiry class application based on the blockchain, if some sensitive information appears when inquiring commodity information on the chain, or the information is not allowed to be displayed, the application has extremely serious influence on the public and the society. Therefore, how to process the sensitive information on the blockchain becomes a problem that needs to be solved by each blockchain platform at present.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, computer equipment and a storage medium, so as to solve the problem of how to process sensitive information on a chain.
The embodiment of the application provides a data processing method, which comprises the following steps: the screening server acquires characteristic information of a target object stored in the blockchain system; the screening server determines whether preset key information exists in the characteristic information; and in the case that the preset key information exists in the characteristic information, returning a processing request to the blockchain system by the screening server, wherein the processing request is used for instructing the blockchain system to execute a preset processing operation on the target object.
In one embodiment, the characteristic information includes at least one of: identification information, name information, description information, logistics information, brand information, and production information.
In one embodiment, the characteristic information includes identification information, and the processing request carries the identification information; the preset processing operation comprises the following steps: and storing the identification information of the target object into a filtering pool of the block chain system.
In one embodiment, the screening server obtains feature information of a target object stored in a blockchain system, and comprises: the screening server initiates a data synchronization request to the blockchain system; the screening server receives characteristic information of the target object returned by the blockchain system in response to the data synchronization request.
In one embodiment, the screening server determines whether preset key information exists in the feature information, including: the screening server calls a preset data list, wherein a plurality of preset key information are stored in the preset data list; the screening server compares the characteristic information with a plurality of preset key information in the data list one by one; under the condition that at least one piece of key information in a plurality of pieces of preset key information exists in the feature information, the screening server determines that the preset key information exists in the feature information; and under the condition that any one of a plurality of pieces of preset key information does not exist in the feature information, the screening server determines that the preset key information does not exist in the feature information.
The embodiment of the application provides a data processing device, is located screening server, includes: the acquisition module is used for acquiring the characteristic information of the target object stored in the block chain system; the determining module is used for determining whether preset key information exists in the characteristic information; and the returning module is used for returning a processing request to the blockchain system under the condition that the preset key information exists in the characteristic information, wherein the processing request is used for indicating the blockchain system to execute preset processing operation on the target object.
The embodiment of the present application further provides a computer device, which includes a processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the steps of the data processing method described in any of the above embodiments.
Embodiments of the present application further provide a computer-readable storage medium, on which computer instructions are stored, and when executed, the instructions implement the steps of the data processing method described in any of the above embodiments.
An embodiment of the present application further provides a data processing method, including: the block chain system receives an acquisition request sent by a screening server; the block chain system responds to the acquisition request and returns the characteristic information of the target object to the screening server; the block chain system receives a processing request returned by the screening server, wherein the processing request is used for indicating that preset key information exists in the characteristic information of the target object; the blockchain system executes preset processing operation on the target object in response to the processing request.
In one embodiment, the characteristic information includes at least one of: identification information, name information, description information, logistics information, brand information, and production information.
In one embodiment, the characteristic information includes identification information, and the processing request carries the identification information; the block chain system executes preset processing operation on the target object, and the preset processing operation comprises the following steps: the blockchain system stores the identification information of the target object into a filtering pool of the blockchain system.
In one embodiment, after the blockchain system stores the identification information of the target object in the filtering pool of the blockchain system, the method further comprises: a block chain system receives a data query request initiated by a user side, wherein the data query request carries identification information of a query object; in response to the received data query request, the blockchain system determines whether identification information of the query object exists in a filter pool of the blockchain system; and under the condition that the identification information of the query object is determined not to exist in the filtering pool, the blockchain system returns the characteristic information of the query object stored on the blockchain system to the user terminal.
In one embodiment, after the blockchain system determines whether the identification information of the query object exists in the filtering pool of the blockchain system, the method further comprises: in the case that the identification information of the query object exists in the filtering pool, the blockchain system returns indication information to the user terminal and hides the characteristic information of the query object, wherein the indication information is used for indicating that the query object is processed.
An embodiment of the present application further provides a data processing apparatus, located in a blockchain system, including: the first receiving module is used for receiving an acquisition request sent by the screening server; the return module is used for responding to the acquisition request and returning the characteristic information of the target object to the screening server; the second receiving module is used for receiving a processing request returned by the screening server, wherein the processing request is used for indicating that preset key information exists in the characteristic information of the target object; and the processing module is used for responding to the processing request to execute preset processing operation on the target object.
The embodiment of the present application further provides a computer device, which includes a processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the steps of the data processing method described in any of the above embodiments.
Embodiments of the present application further provide a computer-readable storage medium, on which computer instructions are stored, and when executed, the instructions implement the steps of the data processing method described in any of the above embodiments.
In the embodiment of the application, a data processing method is provided, in which a screening server synchronizes feature information of a target object stored in a blockchain system and determines whether preset key information exists in the feature information, and sends a processing request to the blockchain system when it is determined that the preset key information exists, so as to perform a processing operation on the target object whose feature information includes the preset key information. In the scheme, compared with the determination on the blockchain system, the feature information of the target object stored in the server synchronous blockchain system is screened and whether the preset key information exists in the feature information is determined, so that the maintenance cost of the key information can be reduced, the difficulty of determining whether the key information exists is reduced, and the computing resources of the blockchain system can be saved; in addition, the screening server sends the processing request to the blockchain system under the condition that the preset key information is determined to exist, the target object with the characteristic information containing the preset key information can be processed on the blockchain system, sensitive information is prevented from appearing when a user inquires the information on the blockchain system, and therefore serious negative effects on the public and the society are avoided. The scheme solves the shielding problem of the target object containing the preset key information in a mode of combining on-chain processing and off-chain processing. The technical problem that a scheme for effectively processing the on-chain sensitive information is lacked at present is solved through the scheme, and the technical effects of effectively processing the on-chain sensitive information and reducing the processing cost and the processing difficulty are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, are incorporated in and constitute a part of this application, and are not intended to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating an application scenario of a data processing method in an embodiment of the present application;
FIG. 2 is a flow chart illustrating a data processing method in an embodiment of the present application;
FIG. 3 shows a flow diagram of a data processing method in an embodiment of the present application;
fig. 4 shows a sequence diagram of a data processing method in an embodiment of the present application;
FIG. 5 shows a schematic diagram of a data processing apparatus in an embodiment of the present application;
FIG. 6 shows a schematic diagram of a data processing apparatus in an embodiment of the present application;
fig. 7 shows a schematic diagram of a computer device in an embodiment of the application.
Detailed Description
The principles and spirit of the present application will be described with reference to a number of exemplary embodiments. It should be understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present application, and are not intended to limit the scope of the present application in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present application may be embodied as a system, apparatus, device, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Considering the existing data query application based on the blockchain, if some sensitive information or information which is not allowed to be displayed appears when commodity information is queried on the chain, the extremely serious influence on the public and the society is caused, and how to process the sensitive information on the blockchain becomes a problem which needs to be solved urgently by each blockchain platform at present. In view of the above problems, if a system similar to the conventional information recognition filtering system is built on a chain, a keyword library needs to be stored on the chain, and the keyword library is matched for filtering when data is queried on the chain, but it is basically not feasible to do so: 1) the key word library on the chain has higher maintenance cost; 2) the intelligent contracts lack a plurality of class libraries of common programming languages (such as various operation methods based on character strings), and need to write special contract methods, so that the difficulty is high; 3) even if a similar method is written, the performance of recognition and filtering on the chain is a problem (only basic traversal can be performed, word segmentation cannot be performed, indexes cannot be built, and the like), and the query experience of a user is directly influenced by the fact that the keyword library is slightly large. Therefore, the inventors thought that the above problem could be solved by performing information recognition by a server under the link, and performing on-link processing on a target object including key information.
Based on the above problems, embodiments of the present application provide a data processing method. Fig. 1 shows an application scenario of the data processing method provided in the embodiment of the present application. The screening server can send a data synchronization request to the blockchain system; the blockchain system responds to the received request and returns the characteristic information of the target object to the screening server; the screening server determines whether the characteristic information contains preset key information or not, and sends a processing request to the blockchain system under the condition that the characteristic information contains the preset key information; and the block chain system responds to the processing request to process the target object with the characteristic information containing the preset key information. The user terminal may send a data query request to the blockchain system, and the blockchain system returns corresponding information to the user terminal in response to the data query request.
The screening server is a server independent of the blockchain system, that is, the screening server is not a part of the blockchain system, and the screening server may be a single server, a server cluster, or a cloud server, and the specific components form the present application without limitation. The user side may be a desktop computer, a notebook, a mobile phone terminal, a PDA, etc., and any device that can display content and receive operation instructions to a user or a service person may be used, and the present application is not limited to the formation of the user side.
Fig. 2 shows a flowchart of a data processing method in an embodiment of the present application. Although the present application provides method operational steps or apparatus configurations as illustrated in the following examples or figures, more or fewer operational steps or modular units may be included in the methods or apparatus based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution sequence of the steps or the module structure of the apparatus is not limited to the execution sequence or the module structure described in the embodiments and shown in the drawings of the present application. When the described method or module structure is applied in an actual device or end product, the method or module structure according to the embodiments or shown in the drawings can be executed sequentially or executed in parallel (for example, in a parallel processor or multi-thread processing environment, or even in a distributed processing environment).
Specifically, as shown in fig. 2, a data processing method provided by an embodiment of the present application may include the following steps:
in step S201, the screening server obtains feature information of the target object stored in the blockchain system.
The method comprises the steps that feature information of a plurality of target objects is stored in a blockchain system, and in order to determine whether the feature information of each target object contains preset key information, the feature information of the target objects stored in the blockchain system is acquired through a screening server.
Further, in some embodiments of the present application, the acquiring, by the screening server, the feature information of the target object stored in the blockchain system may include: the screening server initiates a data synchronization request to the blockchain system; the screening server receives characteristic information of the target object returned by the blockchain system in response to the data synchronization request.
Specifically, in some embodiments of the present application, the characteristic information may include, but is not limited to, at least one of: identification information, name information, description information, logistics information, brand information, and production information. The identification information is a unique identification of the target object, and may be a two-dimensional code, a barcode, a character string, and the like. The production information may include information such as a production address, a production date, and a production manufacturer.
In step S202, the screening server determines whether preset key information exists in the feature information.
Specifically, after acquiring the feature information of a plurality of target objects stored in the blockchain system, the screening server needs to determine whether preset key information exists in the feature information of each target object one by one. The preset key information may be preset keyword information, preset picture information, and the like. Whether preset key information exists in the feature information or not is determined by the screening server, so that the maintenance cost of the key information can be reduced, the determination difficulty is reduced, and the processing speed is increased. The preset key information may specifically be preset sensitive information, for example, may be information that is specified and cannot be displayed and presented.
In order to determine whether the feature information includes preset key information, a preset data list may be stored in the screening server, where a plurality of preset key information are stored in the preset data list. Therefore, in some embodiments of the present application, the determining, by the screening server, whether preset key information exists in the feature information may include: the screening server calls a preset data list, wherein a plurality of preset key information are stored in the preset data list; the screening server compares the characteristic information with a plurality of preset key information in the data list one by one; under the condition that at least one piece of key information in a plurality of pieces of preset key information exists in the feature information, the screening server determines that the preset key information exists in the feature information; and under the condition that any one of a plurality of pieces of preset key information does not exist in the feature information, the screening server determines that the preset key information does not exist in the feature information.
In addition, in order to determine whether preset key information exists in the feature information, a screening server can be used for calling a recognition server to recognize the feature information, wherein a preset data list is stored in the recognition server, and a plurality of preset key information are stored in the preset data list. Therefore, in some embodiments of the present application, the determining, by the screening server, whether preset key information exists in the feature information may include: the screening server sends an identification request to an identification server, wherein the identification request carries characteristic information of a target object; the screening server receives a recognition result returned by the recognition server in response to the recognition request; and the screening server determines whether preset key information exists in the characteristic information according to the identification result. The identification result comprises an identification result passing identification and an identification result failing identification. Under the condition that the identification result is that the identification is passed, the screening server determines that the characteristic information of the target object does not contain preset key information; and under the condition that the identification result is not passed, the screening server determines that the characteristic information of the target object comprises preset key information. The screening server can send identification requests of the characteristic information of each target object one by one, and can also send identification requests of the characteristic information of all target objects in batches; accordingly, the recognition server may return the recognition results of the target objects one by one, or may return the recognition results of all the target objects in batch. The recognition result of each target object may include identification information of the target object.
In step S203, in a case that it is determined that the preset key information exists in the feature information, the screening server returns a processing request to the blockchain system, where the processing request is used to instruct the blockchain system to perform a preset processing operation on the target object.
Specifically, under the condition that the preset key information exists in the feature information, the screening server returns a processing request to the blockchain system, so that the blockchain system executes preset processing operation on a target object containing the preset key information in the feature information, and the sensitive information is shielded.
Further, considering that information on the blockchain system cannot be tampered, a concept of introducing a filtering pool on the blockchain system can be considered, a target object to be processed or shielded is stored in the filtering pool, and when a user side performs on-chain data query, the target object in the filtering pool is firstly shielded, so that the user cannot query feature information of the target object containing preset key information. Therefore, in some embodiments of the present application, the feature information may include identification information, and the processing request may carry the identification information; the preset processing operation may include: and storing the identification information of the target object into a filtering pool of the block chain system. According to the mode, the identification information of the target object containing the preset key information is stored in the filtering pool, the shielding of sensitive information can be conveniently realized, the processing cost is low, the difficulty is low, the occupied block chain resources are less, the performance of a block chain system can be prevented from being greatly reduced, the user query efficiency is improved, and the user experience is improved.
An embodiment of the present invention further provides a data processing method, as shown in fig. 3, which may include the following steps:
in step S301, the blockchain system receives an acquisition request sent by the screening server.
In step S302, the blockchain system returns the feature information of the target object to the screening server in response to the acquisition request.
Specifically, in order to determine whether the feature information of the target object contains preset key information through the screening server, the blockchain system receives an acquisition request sent by the screening server, and returns the feature information of the target object to the screening server in response to the acquisition request.
Further, in some embodiments of the present application, the characteristic information may include, but is not limited to, at least one of: identification information, name information, description information, logistics information, brand information, and production information. The identification information is a unique identification of the target object, and may be a two-dimensional code, a barcode, a character string, and the like. The production information may include information such as a production address, a production date, and a production manufacturer.
In step S303, the blockchain system receives a processing request returned by the screening server, where the processing request is used to indicate that preset key information exists in the feature information of the target object.
In step S304, the blockchain system performs a preset processing operation on the target object in response to the processing request.
Specifically, after acquiring the feature information of the target object, the screening server determines whether the feature information of the target object contains preset key information, and sends a processing request to the blockchain system if the feature information of the target object contains the preset key information. After receiving the processing request, the blockchain system performs a preset processing operation on the corresponding target object in response to the processing request to shield the target object containing preset key information in the feature information.
Further, considering that information on the blockchain system cannot be tampered, a concept of introducing a filtering pool on the blockchain system can be considered, a target object to be processed or shielded is stored in the filtering pool, and when a user side performs on-chain data query, the target object in the filtering pool is firstly shielded, so that the user cannot query feature information of the target object containing preset key information. Therefore, in some embodiments of the present application, the feature information may include identification information, and the processing request may carry the identification information; the blockchain system performs preset processing operations on the target object, which may include: the blockchain system stores the identification information of the target object into a filtering pool of the blockchain system. According to the mode, the identification information of the target object containing the preset key information is stored in the filtering pool, the shielding of sensitive information can be conveniently realized, the processing cost is low, the difficulty is low, the occupied block chain resources are less, the performance of a block chain system can be prevented from being greatly reduced, the user query efficiency is improved, and the user experience is improved.
When a user performs data query on the blockchain system, in order to shield feature information containing preset key information, the blockchain system may first determine whether an object queried by the user is in the filtering pool, and only if the object queried by the user is not in the filtering pool, the feature information of the object is returned to the user. Therefore, in some embodiments of the present application, after the blockchain system stores the identification information of the target object in the filtering pool of the blockchain system, the method may further include: a block chain system receives a data query request initiated by a user side, wherein the data query request carries identification information of a query object; in response to the received data query request, the blockchain system determines whether identification information of the query object exists in a filter pool of the blockchain system; and under the condition that the identification information of the query object is determined not to exist in the filtering pool, the blockchain system returns the characteristic information of the query object stored on the blockchain system to the user terminal.
Specifically, a user side sends a data query request to the blockchain system, wherein the data query request may include identification information of a query object; after receiving the data query request, the block chain system determines whether the identification information of the query object exists in the filter tank; and under the condition that the identification information of the query object is determined not to exist in the filtering pool, the blockchain system returns the characteristic information of the query object stored on the blockchain system to the user terminal. In the above way, the feature information of the query object is returned only in the case that the query object does not exist in the filtering tank.
Further, in some embodiments of the present application, after the blockchain system determines whether the identification information of the query object exists in the filtering pool of the blockchain system, the method may further include: in the case that the identification information of the query object exists in the filtering pool, the blockchain system returns indication information to the user terminal and hides the characteristic information of the query object, wherein the indication information is used for indicating that the query object is processed. By the method, the characteristic information of the query object containing the preset key information cannot be queried by the user. The method can be applied to an application scene that a consumer conducts tracing or anti-counterfeiting verification after purchasing commodities, and can send a data query request by scanning a two-dimensional code or a bar code and the like, wherein the two-dimensional code or the bar code is identification information of a query object.
When the data query request sent by the user side does not contain the identification information of the query object, for example, when only the name of the query object is contained, the blockchain system finds out all objects containing the name according to the received data query request, judges whether the identification information of each object in all the found objects exists in the filter tank, returns the feature information of the object to the user for the object which does not exist in the filter tank, and returns the information that the object has been processed and hides the feature information of the object to the user for the object which exists in the filter tank. By the method, data query can be performed on the block chain system, characteristic information of the object which does not contain sensitive information can be queried by the data, the characteristic information of the object which contains the sensitive information cannot be checked, and shielding processing of the sensitive information is effectively achieved.
The above method is described below with reference to a specific example, however, it should be noted that the specific example is only for better describing the present application and is not to be construed as limiting the present application.
Fig. 4 shows a sequence diagram of a data processing method in an embodiment of the present application. As shown in fig. 4, the data processing method in this embodiment may include the following steps:
step 1, a screening server sends a data synchronization request to a block chain system;
step 2, the blockchain system responds to the data synchronization request and returns characteristic information of the target object stored on the blockchain system to the screening server;
step 3, the screening server sends an identification request to an identification server, wherein the identification request carries characteristic information of the target object;
step 4, the identification server responds to the identification request, and calls a preset key information data table to identify whether the feature information of the target object contains preset key information or not, wherein the key information data table stores a plurality of preset key information;
step 5, when the characteristic information is determined to contain at least one piece of key information in the preset key information, the identification server returns an identification result that the identification fails to pass to the screening server; under the condition that the feature information is determined not to contain any one of the preset key information, the identification server returns an identification result passing the identification to the screening server;
step 6, the screening server determines whether the characteristic information contains preset key information according to the received identification result, and determines that the characteristic information does not contain the preset key information under the condition that the identification result is that the identification is passed; determining that the characteristic information contains preset key information under the condition that the identification result is that the identification is not passed;
step 7, sending a processing request to the blockchain system under the condition that the characteristic information contains preset key information, wherein the processing request can contain identification information of a target object;
step 8, the blockchain system responds to the processing request, puts the identification information of the target object into a filtering pool in the blockchain system, and returns a processing result to the screening server;
step 9, a user side sends a data query request to a blockchain system, wherein the data query request can include identification information of a query object;
step 10, the blockchain system responds to the data query request, and determines whether the identification information of the query object exists in a filtering pool of the blockchain system;
step 11, in the case that the identification information of the query object is determined to exist in the filtering pool, the block chain system returns indication information to the user side and hides the characteristic information of the query object, wherein the indication information indicates that the query object has been processed;
and step 12, under the condition that the identification information of the query object is determined not to exist in the filtering pool, the blockchain system returns the characteristic information of the query object stored on the blockchain system to the user terminal.
Compared with the data processing method in the embodiment, in the step of determining on the blockchain system, the screening server synchronizes the feature information of the target object stored in the blockchain system, and the screening server calls the recognition server to determine whether preset key information exists in the feature information, so that the determination of sensitive information can be realized under a chain, the maintenance cost of the key information is reduced, the difficulty in determining whether the key information exists is reduced, and the calculation resources of the blockchain system can be saved; in addition, the screening server sends a processing request to the blockchain system under the condition that the preset key information is determined to exist, and the identification information of the target object containing the preset key information in the characteristic information is stored in the filtering pool on the blockchain system, so that the target object in the filtering pool can be firstly shielded when a user side conducts on-chain data query, and the identification information of the target object containing the preset key information is stored in the filtering pool, so that sensitive information shielding can be conveniently realized, the processing cost is low, the difficulty is low, and the occupied blockchain resources are less, the performance of the blockchain system can be prevented from being greatly reduced, the user query efficiency is improved, and the user experience is improved. The scheme solves the shielding problem of the target object containing the preset key information in a mode of combining on-chain processing and off-chain processing.
Based on the same inventive concept, the embodiment of the present application further provides a data processing apparatus, which is located in the screening server, as described in the following embodiments. Because the principle of the data processing apparatus for solving the problem is similar to the data processing method, the implementation of the data processing apparatus can refer to the implementation of the data processing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 5 is a block diagram of a data processing apparatus according to an embodiment of the present application, and as shown in fig. 5, the data processing apparatus includes: an acquisition module 501, a determination module 502, and a return module 503, the structure of which is described below.
The obtaining module 501 is configured to obtain feature information of a target object stored in a blockchain system.
The determining module 502 is configured to determine whether preset key information exists in the feature information.
The returning module 503 is configured to, if it is determined that the preset key information exists in the feature information, return a processing request to the blockchain system, where the processing request is used to instruct the blockchain system to perform a preset processing operation on the target object.
In some embodiments of the present application, the characteristic information may include, but is not limited to, at least one of: identification information, name information, description information, logistics information, brand information, and production information.
In some embodiments of the present application, the feature information may include identification information, and the processing request may carry the identification information; the preset processing operation may include: and storing the identification information of the target object into a filtering pool of the block chain system.
In some embodiments of the present application, the obtaining module 501 may specifically be configured to: initiating a data synchronization request to a blockchain system; and receiving characteristic information of the target object returned by the blockchain system in response to the data synchronization request.
In some embodiments of the present application, the determining module 502 may be specifically configured to: calling a preset data list, wherein a plurality of preset key information are stored in the preset data list; comparing the characteristic information with a plurality of preset key information in the data list one by one; determining that preset key information exists in the feature information under the condition that at least one piece of key information of a plurality of pieces of preset key information exists in the feature information; and under the condition that any one of a plurality of pieces of preset key information does not exist in the feature information, determining that the preset key information does not exist in the feature information.
Based on the same inventive concept, the embodiment of the present application further provides a data processing apparatus, which is located in a block chain system, as described in the following embodiments. Because the principle of the data processing apparatus for solving the problem is similar to the data processing method, the implementation of the data processing apparatus can refer to the implementation of the data processing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 6 is a block diagram of a data processing apparatus according to an embodiment of the present application, and as shown in fig. 6, the data processing apparatus includes: the first receiving module 601, the returning module 602, the second receiving module 603, and the processing module 604, and the configuration thereof will be described below.
The first receiving module 601 is configured to receive an acquisition request sent by a screening server.
The return module 602 is configured to return characteristic information of the target object to the screening server in response to the acquisition request.
The second receiving module 603 is configured to receive a processing request returned by the screening server, where the processing request is used to indicate that preset key information exists in the feature information of the target object.
The processing module 604 is configured to perform a preset processing operation on the target object in response to the processing request.
In some embodiments of the present application, the characteristic information may include, but is not limited to, at least one of: identification information, name information, description information, logistics information, brand information, and production information.
In some embodiments of the present application, the feature information may include identification information, and the processing request may carry the identification information; the processing module 604 may be specifically configured to: and storing the identification information of the target object into a filtering pool of the block chain system.
In some embodiments of the present application, the data processing apparatus may further include a query module, and the query module may be specifically configured to: after the identification information of the target object is stored in the filtering pool, receiving a data query request initiated by a user side, wherein the data query request carries the identification information of the query object; determining whether identification information of a query object exists in a filtering pool in response to a received data query request; and under the condition that the identification information of the query object is determined not to exist in the filtering pool, returning the characteristic information of the query object stored on the client side.
In some embodiments of the present application, the query module may be further specifically configured to: after determining whether the identification information of the query object exists in the filtering pool, in case that the identification information of the query object exists in the filtering pool, returning indication information to the user terminal and hiding the characteristic information of the query object, wherein the indication information is used for indicating that the query object is processed.
From the above description, it can be seen that the embodiments of the present application achieve the following technical effects: compared with the determination on the blockchain system, the server is screened to synchronize the characteristic information of the target object stored in the blockchain system and determine whether preset key information exists in the characteristic information, so that the maintenance cost of the key information can be reduced, the difficulty of determining whether the key information exists can be reduced, and the computing resources of the blockchain system can be saved; in addition, the screening server sends the processing request to the blockchain system under the condition that the preset key information is determined to exist, the target object with the characteristic information containing the preset key information can be processed on the blockchain system, sensitive information is prevented from appearing when a user inquires the information on the blockchain system, and therefore serious negative effects on the public and the society are avoided. The scheme solves the shielding problem of the target object containing the preset key information in a mode of combining on-chain processing and off-chain processing. The technical problem that a scheme for effectively processing the on-chain sensitive information is lacked at present is solved through the scheme, and the technical effects of effectively processing the on-chain sensitive information and reducing the processing cost and the processing difficulty are achieved.
The embodiment of the present application further provides a computer device, which may specifically refer to a schematic structural diagram of a computer device based on the data processing method provided in the embodiment of the present application shown in fig. 7, where the computer device may specifically include an input device 71, a processor 72, and a memory 73. Wherein the memory 73 is configured to store processor-executable instructions. The processor 72, when executing the instructions, performs the steps of the data processing method described in any of the embodiments above.
In this embodiment, the input device may be one of the main apparatuses for information exchange between a user and a computer system. The input device may include a keyboard, a mouse, a camera, a scanner, a light pen, a handwriting input board, a voice input device, etc.; the input device is used to input raw data and a program for processing the data into the computer. The input device can also acquire and receive data transmitted by other modules, units and devices. The processor may be implemented in any suitable way. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores 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, an embedded microcontroller, and so forth. The memory may in particular be a memory device used in modern information technology for storing information. The memory may include multiple levels, and in a digital system, the memory may be any memory as long as it can store binary data; in an integrated circuit, a circuit without a physical form and with a storage function is also called a memory, such as a RAM, a FIFO and the like; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card and the like.
In this embodiment, the functions and effects of the specific implementation of the computer device can be explained in comparison with other embodiments, and are not described herein again.
The present application further provides a computer storage medium based on a data processing method, where the computer storage medium stores computer program instructions, and the computer program instructions, when executed, implement the steps of the data processing method in any of the above embodiments.
In this embodiment, the storage medium includes, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Cache (Cache), a Hard Disk Drive (HDD), or a Memory Card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set in accordance with a standard prescribed by a communication protocol.
In this embodiment, the functions and effects specifically realized by the program instructions stored in the computer storage medium can be explained by comparing with other embodiments, and are not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different from that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
It is to be understood that the above description is intended to be illustrative, and not restrictive. Many embodiments and many applications other than the examples provided will be apparent to those of skill in the art upon reading the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead should be determined with reference to the pending claims along with the full scope of equivalents to which such claims are entitled.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and it will be apparent to those skilled in the art that various modifications and variations can be made in the embodiment of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A data processing method, comprising:
a screening server acquires characteristic information of a target object stored in a blockchain system, wherein the screening server is a server independent of the blockchain system;
the screening server determines whether preset key information exists in the characteristic information;
and if the feature information is determined to have preset key information, the screening server returns a processing request to the blockchain system, wherein the processing request is used for instructing the blockchain system to execute a preset processing operation on the target object.
2. The method of claim 1, wherein the feature information comprises at least one of: identification information, name information, description information, logistics information, brand information, and production information.
3. The method according to claim 1, wherein the feature information includes identification information, and the processing request carries the identification information;
the preset processing operation comprises the following steps: and storing the identification information of the target object into a filtering pool of the block chain system.
4. The method of claim 1, wherein the screening server obtains feature information of target objects stored in a blockchain system, comprising:
the screening server initiates a data synchronization request to the blockchain system;
the screening server receives characteristic information of the target object returned by the blockchain system in response to the data synchronization request.
5. The method of claim 1, wherein the screening server determines whether preset key information exists in the feature information, comprising:
the screening server calls a preset data list, wherein a plurality of preset key information are stored in the preset data list;
the screening server compares the characteristic information with a plurality of preset key information in the data list one by one;
under the condition that at least one piece of key information in the plurality of pieces of preset key information exists in the feature information, the screening server determines that the preset key information exists in the feature information;
and under the condition that any one of the plurality of preset key information does not exist in the feature information, the screening server determines that the preset key information does not exist in the feature information.
6. A data processing method, comprising:
the method comprises the steps that a blockchain system receives an acquisition request sent by a screening server, wherein the screening server is a server independent of the blockchain system;
the blockchain system returns characteristic information of a target object to the screening server in response to the acquisition request;
the block chain system receives a processing request returned by the screening server, wherein the processing request is used for indicating that preset key information exists in the feature information of the target object;
and the block chain system responds to the processing request and executes preset processing operation on the target object.
7. The method of claim 6, wherein the feature information comprises at least one of: identification information, name information, description information, logistics information, brand information, and production information.
8. The method according to claim 6, wherein the feature information includes identification information, and the processing request carries the identification information;
the block chain system executes preset processing operation on the target object, and the preset processing operation comprises the following steps:
and the blockchain system stores the identification information of the target object into a filtering pool of the blockchain system.
9. The method of claim 8, after the blockchain system stores identification information of the target object in a filtering pool of the blockchain system, further comprising:
the block chain system receives a data query request initiated by a user side, wherein the data query request carries identification information of a query object;
in response to a received data query request, the blockchain system determines whether identification information of the query object is present in a filter pool of the blockchain system;
in the case that it is determined that the identification information of the query object does not exist in the filtering pool, the blockchain system returns the feature information of the query object stored on the blockchain system to the user terminal.
10. The method of claim 9, after the blockchain system determines whether the identification information of the query object is present in a filter pool of the blockchain system, further comprising:
in the case that the identification information of the query object is determined to exist in the filtering pool, the blockchain system returns indication information to the user terminal and hides characteristic information of the query object, wherein the indication information is used for indicating that the query object is processed.
11. A data processing apparatus, located in a screening server, wherein the screening server is a server that exists independent of a blockchain system, comprising:
the acquisition module is used for acquiring the characteristic information of the target object stored in the block chain system;
the determining module is used for determining whether preset key information exists in the characteristic information;
and a returning module, configured to return a processing request to the blockchain system when it is determined that preset key information exists in the feature information, where the processing request is used to instruct the blockchain system to perform a preset processing operation on the target object.
12. A data processing apparatus, in a blockchain system, comprising:
a first receiving module, configured to receive an acquisition request sent by a screening server, where the screening server is a server that exists independently from the blockchain system;
the return module is used for responding to the acquisition request and returning the characteristic information of the target object to the screening server;
the second receiving module is used for receiving a processing request returned by the screening server, wherein the processing request is used for indicating that preset key information exists in the feature information of the target object;
and the processing module is used for responding to the processing request and executing preset processing operation on the target object.
13. A computer device comprising a processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 1 to 5.
14. A computer device comprising a processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 6 to 10.
15. A computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of claims 1 to 5.
16. A computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of claims 6 to 10.
CN201910322601.7A 2019-04-22 2019-04-22 Data processing method, data processing device, computer equipment and storage medium Active CN110119429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910322601.7A CN110119429B (en) 2019-04-22 2019-04-22 Data processing method, data processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910322601.7A CN110119429B (en) 2019-04-22 2019-04-22 Data processing method, data processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110119429A CN110119429A (en) 2019-08-13
CN110119429B true CN110119429B (en) 2021-12-03

Family

ID=67521280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910322601.7A Active CN110119429B (en) 2019-04-22 2019-04-22 Data processing method, data processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110119429B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781200B (en) * 2019-10-30 2022-07-08 百度在线网络技术(北京)有限公司 Processing method, device, equipment and medium for block chain abnormal data
CN112532709A (en) * 2020-11-24 2021-03-19 杭州趣链科技有限公司 Uplink request processing method and device and block link point equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140375A1 (en) * 2015-11-15 2017-05-18 Michael Kunstel System and Method for Permissioned Distributed Block Chain
CN106796688A (en) * 2016-12-26 2017-05-31 深圳前海达闼云端智能科技有限公司 Permission control method, device and system of block chain and node equipment
CN106899412A (en) * 2017-03-30 2017-06-27 北京链银博科技有限责任公司 A kind of block chain method for secret protection, apparatus and system
US20180341775A1 (en) * 2017-05-23 2018-11-29 International Business Machines Corporation Digital license authentication with secure privacy logging
CN109362079A (en) * 2018-11-05 2019-02-19 北京小米移动软件有限公司 Data processing method and device
CN109377221A (en) * 2018-10-16 2019-02-22 杭州趣链科技有限公司 A method of the privacy based on alliance's block chain, which is traded, to be protected
CN109495515A (en) * 2019-01-02 2019-03-19 腾讯科技(深圳)有限公司 Sensitive information processing method and computer readable storage medium
CN109558748A (en) * 2018-11-23 2019-04-02 泰康保险集团股份有限公司 Data processing method, device, electronic equipment and storage medium
CN109639406A (en) * 2018-12-24 2019-04-16 国泰君安证券股份有限公司 Efficient trust solution based on block chain and IPFS

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377239B (en) * 2018-04-27 2021-02-12 腾讯科技(深圳)有限公司 Data signature method, device, server, system and storage medium
CN109559136B (en) * 2018-11-28 2021-03-09 中国医学科学院药用植物研究所 Information management system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140375A1 (en) * 2015-11-15 2017-05-18 Michael Kunstel System and Method for Permissioned Distributed Block Chain
CN106796688A (en) * 2016-12-26 2017-05-31 深圳前海达闼云端智能科技有限公司 Permission control method, device and system of block chain and node equipment
CN106899412A (en) * 2017-03-30 2017-06-27 北京链银博科技有限责任公司 A kind of block chain method for secret protection, apparatus and system
US20180341775A1 (en) * 2017-05-23 2018-11-29 International Business Machines Corporation Digital license authentication with secure privacy logging
CN109377221A (en) * 2018-10-16 2019-02-22 杭州趣链科技有限公司 A method of the privacy based on alliance's block chain, which is traded, to be protected
CN109362079A (en) * 2018-11-05 2019-02-19 北京小米移动软件有限公司 Data processing method and device
CN109558748A (en) * 2018-11-23 2019-04-02 泰康保险集团股份有限公司 Data processing method, device, electronic equipment and storage medium
CN109639406A (en) * 2018-12-24 2019-04-16 国泰君安证券股份有限公司 Efficient trust solution based on block chain and IPFS
CN109495515A (en) * 2019-01-02 2019-03-19 腾讯科技(深圳)有限公司 Sensitive information processing method and computer readable storage medium

Also Published As

Publication number Publication date
CN110119429A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
CN108228814B (en) Data synchronization method and device
CN110569311B (en) Data synchronization method and device for database and computer storage medium
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN108985066B (en) Intelligent contract security vulnerability detection method, device, terminal and storage medium
US20160307264A1 (en) Method and device for processing service request
CN110019873B (en) Face data processing method, device and equipment
CN109885612B (en) Synchronous validation method and device for intelligent contracts of block chains
CN110119429B (en) Data processing method, data processing device, computer equipment and storage medium
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN107025145B (en) Error code analysis method and device
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN111147605B (en) Service registration method, device and equipment
CN111597553A (en) Process processing method, device, equipment and storage medium in virus searching and killing
CN109783385B (en) Product testing method and device
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
CN110855812B (en) Positioning method, device and equipment based on IP address
CN103812908A (en) Cloud file processing method and system
CN115174594B (en) Data synchronization method, device, equipment and medium of distributed system
CN115277408B (en) Agent configuration information updating method, device, equipment and storage medium
CN108256989B (en) Data display method and system of fund preparation system
CN109683926B (en) Network component updating method, device, equipment and computer readable storage medium
CN115840768A (en) Data processing method, device, equipment and storage medium
CN115309836A (en) Git warehouse operation method, git warehouse operation device, server and storage medium
CN116055202A (en) Identification method, device and equipment of risk equipment and storage medium
CN116450248A (en) Component-based data processing method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant