CN112418874A - Data tracing method and device and computer equipment - Google Patents

Data tracing method and device and computer equipment Download PDF

Info

Publication number
CN112418874A
CN112418874A CN202010523784.1A CN202010523784A CN112418874A CN 112418874 A CN112418874 A CN 112418874A CN 202010523784 A CN202010523784 A CN 202010523784A CN 112418874 A CN112418874 A CN 112418874A
Authority
CN
China
Prior art keywords
data
block chain
query
blockchain
target data
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.)
Pending
Application number
CN202010523784.1A
Other languages
Chinese (zh)
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202010523784.1A priority Critical patent/CN112418874A/en
Publication of CN112418874A publication Critical patent/CN112418874A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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 discloses a data tracing method, a data tracing device and computer equipment, wherein the method comprises the following steps: receiving a query request of target data of a query object sent by a user; acquiring an attribute value of the query object in the query request; polling each block chain in the block chain group through a JS unified interface to find out target data comprising the attribute value; and outputting the target data. The present application also provides a computer-readable storage medium. According to the method and the device, the JS unified interface is established for executing enterprise ranking data query of each block chain in the block chain group, so that switching operation among the block chains is avoided, time consumption of query of target data is reduced, and query efficiency is improved.

Description

Data tracing method and device and computer equipment
Technical Field
The application relates to the technical field of internet, in particular to a data tracing method and device and computer equipment.
Background
In recent years, the problems of counterfeit goods and environmental pollution are frequently exploded, and how to avoid buying counterfeit goods and manage and control pollution source enterprises is a big problem which cannot be thoroughly solved by people. To address this problem, a variety of data tracing platforms have emerged. Most of the tracing platforms store target data based on a blockchain, and then the data is difficult to modify due to the inherent properties of the blockchain.
However, since different technology blockchains may be used in different places to record the target data, for the different technology blockchains, due to the difference of the protocol architectures of the blockchains, only the interface protocol that is the same as or compatible with the protocol architecture of the blockchain is used to access the blockchain. Therefore, if target data query needs to be performed on different block chains in a block chain cluster which is already networked, block link interfaces JSSDKs adopting different interface protocols need to be called through different calling programs, so that switching from one block chain to another block chain is realized, and the process is complex in operation, time-consuming and low in efficiency.
Disclosure of Invention
The application provides a data tracing method, a data tracing device and computer equipment, which can solve the problems of complex operation, low efficiency and long time consumption when searching target data of a query object from a block chain group comprising a plurality of block chains in the prior art.
First, to achieve the above object, the present application provides a data tracing method, including:
receiving a query request of target data of a query object sent by a user; acquiring an attribute value of the query object in the query request; polling each block chain in the block chain group through a JS unified interface to find out target data comprising the attribute value; and outputting the target data.
In one example, the polling each blockchain in the blockchain group through the JS unified interface includes: calling a web end JSSDK corresponding to the target block chain in the block chain group in the JS class library; and accessing and calling the intelligent contract of the target block chain through the web terminal JSSDK, thereby executing the data query operation of the target block chain.
In one example, the blockchain in the blockchain group includes at least one of an etherhouse blockchain, an EOS blockchain, and a TRON blockchain.
In one example, the JS class library includes a web-side JSSDK corresponding to each block chain in the block chain group, which is packaged in advance, and the web-side JSSDK is used for executing an intelligent contract of the corresponding block chain.
In one example, prior to obtaining the attribute values of the query object in the query request, the method further comprises: checking whether the account number and the secret key of the user are legal or not; and when the inquiry request is illegal, rejecting the inquiry request and prompting an error.
In one example, when the query object is a business and the target data is pollution discharge data, the attribute values of the query object are: at least one of an enterprise name, business information, enterprise legal information, and business address information.
In one example, when the query object is a commodity and the target data is vending data, the attribute value of the query object is: at least one of commodity name, commodity model, commodity manufacturer and commodity parts.
In addition, in order to achieve the above object, the present application also provides a data tracing apparatus, the apparatus including:
the receiving module is used for receiving a query request of target data of a query object sent by a user; an obtaining module, configured to obtain an attribute value of the query object in the query request; the searching module is used for polling each block chain in the block chain group through the JS unified interface and searching the target data comprising the attribute value; and the output module is used for outputting the target data.
Further, the present application also proposes a computer device, which includes a memory and a processor, where the memory stores a computer program that can be executed on the processor, and the computer program, when executed by the processor, implements the steps of the data tracing method as described above.
Further, to achieve the above object, the present application also provides a computer-readable storage medium storing a computer program, which is executable by at least one processor to cause the at least one processor to execute the steps of the data tracing method as described above.
Compared with the prior art, the data tracing method, the data tracing device, the computer equipment and the computer readable storage medium can receive the query request of the target data of the query object sent by the user; then obtaining the attribute value of the query object in the query request; polling each block chain in the block chain group through a JS unified interface to find out target data comprising the attribute value; and finally outputting the target data. The JS unified interface is established for executing enterprise ranking data query on each block chain in the block chain group, so that switching operation among the block chains is avoided, time consumption for querying target data is reduced, and query efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of an application environment according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating an embodiment of a data tracing method of the present application;
FIG. 3 is a flowchart of one embodiment of polling each blockchain in the set of blockchains via the JS uniform interface at step S202 in FIG. 2;
FIG. 4 is a diagram illustrating the effect of chaining target data of a query object;
FIG. 5 is a flowchart illustrating the effect of tracing the pollution discharge data of an enterprise;
FIG. 6 is a block diagram of a program module of an embodiment of the data trace back device of the present application;
FIG. 7 is a diagram of an alternative hardware architecture of the computer device of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Fig. 1 is a schematic diagram of an application environment according to an embodiment of the present application. Referring to fig. 1, the computer apparatus 1 is communicatively connected to a blockchain group, where the blockchain group is a blockchain cluster composed of a plurality of or multiple blockchains, and for the blockchain group, the blockchain group may include a plurality of blockchains based on the same blockchain technology, and may also include a plurality of blockchains based on different blockchain technologies, for example, the blockchains in the blockchain group include at least one of an ethernet blockchain, an EOS blockchain, and a TRON blockchain. The computer device 1 may receive an inquiry request of target data of an inquiry object sent by a user, then obtain an attribute value of the inquiry object in the inquiry request, poll each blockchain in a blockchain group through a JS unified interface, find out the target data including the attribute value, and finally output the target data. In this embodiment, the user terminal device 2 may be a mobile phone, a tablet, a portable device, or a PC, and specifically, the computer device 1 implements the above functional steps through the DApp running thereon.
Example one
Fig. 2 is a schematic flowchart of an embodiment of a data tracing method according to the present application. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is made by way of example with the computer apparatus 1 as the execution subject.
As shown in fig. 2, the data tracing method may include steps S200 to S206, where:
step S200, receiving an inquiry request of target data of an inquiry object sent by a user.
Step S202, obtaining the attribute value of the query object in the query request.
DApp (Decentralized Application) generally refers to an Application that runs on a distributed network, where information of participants is secured (possibly anonymous), and where Decentralized operations are performed by different persons through network nodes.
Firstly, the application based on the DApp can not be mastered by a third-party enterprise or a group to utilize private data information (such as staff account information) generated in the application, and has high reliability; secondly, the DApp guarantees the authenticity and completeness of pollution source data stored in the block chain based on the characteristic that the block chain cannot be tampered, and prevents the pollution discharge enterprise or primary law enforcement personnel from tampering the detection result; finally, the DApp ensures the safety and reliability of data based on the characteristic of block chain decentralization, and even if the data of the node is lost, the data can be quickly recovered by other nodes.
Therefore, in this embodiment, the computer device 1 provides the user with interaction through DApp, and further implements the method steps in the present application. Of course, in other embodiments, the computer device 1 may also provide user interaction through other applications, so as to implement the method steps of the present application.
Specifically, the computer device 1 receives, through the DApp interaction interface, a query request for target data of a query object triggered by a user, and of course, in other embodiments, the computer device 1 may also be connected to other user terminals, and then receives a query request for target data of a query object sent by the user to the computer device 1 through other user terminals.
In a specific embodiment, the computer device 1 receives a query request for querying target data of an object sent by a user, and also verifies whether an account and a key of the user are legal; and when the inquiry request is illegal, rejecting the inquiry request and prompting an error. For example, a user registers an account through the DApp, the computer device 1 pre-allocates an authentication key corresponding to the registered account to the user, when the user queries target data at the DApp, the computer device 1 checks whether the account and the key of the user are correct, and if not, the computer device rejects the query and performs an error prompt. In the embodiment, the account and the key of the user are verified, and when the verification fails, the prompt is given, so that the user can be reminded to input the account and the key again.
Next, the computer device 1 acquires the attribute value of the query object in the query request. In an illustrative example, when the query object is a commodity and the target data is vending data, the attribute values of the query object are: at least one of commodity name, commodity model, commodity manufacturer and commodity parts. In another illustrative example, when the query object is a business and the target data is pollution discharge data, the attribute values of the query object are: at least one of an enterprise name, business information, enterprise legal information, and business address information. The attribute value of the query object can uniquely represent the query object, so that the target data can be searched in the block chain according to the attribute value of the query object.
And step S204, polling each block chain in the block chain group through the JS unified interface, and finding out the target data comprising the attribute value.
And step S206, outputting the target data.
Specifically, after the computer device 1 obtains the attribute value of the query object, the computer device 1 searches the target data of the query object from the blockchain group according to the attribute value. The blockchain group includes a plurality of blockchains, and each blockchain may be one of an etherhouse blockchain, an EOS blockchain, and a TRON blockchain.
As shown in fig. 3, in an exemplary embodiment, polling each blockchain in the blockchain group through the JS unified interface in step S202 includes steps S300 to S302.
And step S300, calling a web end JSSDK corresponding to the target block chain in the block chain group in the JS class library.
Step S302, the intelligent contract of the target block chain is accessed and called through the web terminal JSSDK, and therefore data query operation of the target block chain is executed.
Specifically, the computer device 1 sets in advance a JS unified interface of the block chain group. Since JS (javascript) is a lightweight, interpreted, or just-in-time high-level programming language with function preference, although it is named as a scripting language for developing Web pages, it is also used in many non-browser environments, and therefore, most applications, including blockchains, are capable of supporting the JS scripting language. In this embodiment, the computer device 1 is connected to the blockchain group, and then can acquire the web-end JSSDK of each blockchain in the blockchain group, where the web-end JSSDK includes an intelligent contract of the blockchain, and the web-end JSSDK may be directly called by the same caller. Then, the computer device 1 pre-packages the web end JSSDK corresponding to each block chain in the block chain group into a JS class library, and then sets a JS unified interface, through which any web end JSSDK in the JS class library can be called.
That is to say, computer device 1 can pass through the JS unified interface calls the JS class library, and include the web end JSSDK that encapsulates in advance each blockchain corresponds in the blockchain group in the JS class library, the web end JSSDK is used for executing the intelligent contract of the corresponding blockchain. Thus, the computer device 1 can call the web-end JSSDK of any blockchain in the blockchain group, thereby accessing the blockchain. Compared with the prior art that different block chain interfaces JSSDKs are called by different calling programs to sequentially switch, log and access different block chains in a block chain cluster, the computer equipment 1 packages intelligent contracts of the different block chains into the web-end JSSDKs, the web-end JSSKs can be stored in the JS class library, and then the calling can be switched and called by one calling program of the application end. Therefore, the data access speed and efficiency of the blockchain cluster are improved.
In this embodiment, the computer device 1, according to the preset attribute value of the query object, sequentially compares the attribute value with the target data in each block chain in the block chain group, and finds out the target data including the attribute value. For example, when the query object is an enterprise and the target data is the sewage discharge data, the attribute values corresponding to the enterprise, that is, the enterprise name, the business information, the enterprise legal information, the business address information, or the authentication unit, may be sequentially compared with the sewage discharge data in each block chain in the block chain group to find the sewage discharge data including the attribute values. It is noted that the pollution discharge data may also be uploaded to the block chain by the computer device 1, for example, the pollution discharge data collected by the user from the enterprise includes at least one of atmospheric pollution discharge data and wastewater pollution discharge data; the atmosphere pollution discharge data comprises an atmosphere pollutant category, an atmosphere pollutant discharge rule and an atmosphere pollutant execution standard, and the wastewater pollution discharge data comprises a wastewater pollutant category, a wastewater pollutant discharge rule and a wastewater pollutant execution standard; the pollution discharge data is then associated with the attribute values of the enterprise and linked together into any blockchain of the blockchain group by the computer device 1. And subsequently, when the user needs to trace the pollution discharge data of the enterprise, polling each block chain in the block chain group according to the attribute value of the enterprise and the JS uniform interface to find out the pollution discharge data of the enterprise. Finally, the computer device 1 outputs the target data. For example, printed in a report form, or displayed via a DApp display interface.
In another exemplary embodiment, when the query object is a commodity and the target data is selling data, the computer device 1 may find the selling data of the commodity from the block chain by using an attribute value of the commodity, that is, a commodity name, a commodity model, a commodity manufacturer, or a dedicated commodity part, so as to track a track of the commodity.
As shown in fig. 4, in an exemplary embodiment, the computer apparatus 1 executes an application effect map of the target data uplink. The computer equipment is connected with the block chain group through the DAPP, and the application functions of the DAPP comprise an information input module and an information data assembly module.
In this embodiment, the information entry module is an information entry function module of the DApp, and includes writing to the query object and the target data, or receiving the query object and the target data input by the user. The information data assembly module is a functional module which assembles the query object and the target data collected by the information input module into a JSON format and transmits the JSON format to the intelligent contract. The intelligent contract is a program script deployed on the blockchain and is a bridge for communication between the DApp and the blockchain, and the DApp can store the assembled JSON format data to the blockchain through the intelligent contract.
In an illustrative example, when the query object is an enterprise and the target data is pollution discharge data, as shown in fig. 5, the process effect diagram of enterprise pollution discharge data tracing is shown. Which comprises the following steps:
1. the worker logs into Dapp using Token and connects any blockchain of the blockchain group.
2. And the staff records the enterprise information directory of the target enterprise to be checked, including enterprise name, business information, operation address, certificate issuing unit and other information into the block chain through Dapp.
3. The working personnel collects the pollution discharge data of the target enterprise, and the pollution discharge data comprises an atmospheric pollutant discharge rule, an atmospheric pollutant execution standard, and the types of main wastewater pollutants, wastewater pollutant discharge rules, wastewater pollutant execution standards and the like which are input into a block chain and correspond to the name of the target enterprise.
4. The blowdown data of the target enterprise is automatically synchronized to other blockchains of the blockchain group.
5. Staff and administrators can view the entered emissions data, but not tamper with it.
In summary, the data tracing method provided in this embodiment can receive a query request of target data of a query object sent by a user; then obtaining the attribute value of the query object in the query request; polling each block chain in the block chain group through a JS unified interface to find out target data comprising the attribute value; and finally outputting the target data. The JS unified interface is established for executing enterprise ranking data query on each block chain in the block chain group, so that switching operation among the block chains is avoided, time consumption for querying target data is reduced, and query efficiency is improved.
Example two
Fig. 6 schematically shows a block diagram of a data tracing apparatus according to the second embodiment of the present application, which may be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete the second embodiment of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can perform specific functions, and the following description will specifically describe the functions of the program modules in the embodiments.
As shown in fig. 6, the data tracing apparatus 400 may include a receiving module 410, an obtaining module 420, a searching module 430, and an outputting module 440, wherein:
the receiving module 410 is configured to receive a query request for querying target data of an object sent by a user.
An obtaining module 420, configured to obtain an attribute value of the query object in the query request.
And the searching module 430 is configured to poll each blockchain in the blockchain group through the JS unified interface, and search for the target data including the attribute value.
An output module 440, configured to output the target data.
In an exemplary embodiment, the lookup module 430 is further configured to: calling a web end JSSDK corresponding to the target block chain in the block chain group in the JS class library; and accessing and calling the intelligent contract of the target block chain through the web terminal JSSDK, thereby executing the data query operation of the target block chain. Wherein the blockchain in the blockchain group comprises at least one of an Ethernet blockchain, an EOS blockchain and a TRON blockchain. The JS class library comprises a web end JSSDK corresponding to each block chain in the block chain group which is packaged in advance, and the web end JSSK is used for executing intelligent contracts of the corresponding block chains.
In an exemplary embodiment, the receiving module 410 is further configured to: checking whether the account number and the secret key of the user are legal or not; and when the inquiry request is illegal, rejecting the inquiry request and prompting an error.
In an exemplary embodiment, when the query object is a business and the target data is pollution discharge data, the attribute values of the query object are: at least one of an enterprise name, business information, enterprise legal information, and business address information. When the query object is a commodity and the target data is selling data, the attribute value of the query object is as follows: at least one of commodity name, commodity model, commodity manufacturer and commodity parts.
EXAMPLE III
Fig. 7 schematically shows a hardware architecture diagram of a computer device 1 suitable for implementing the data tracing method according to the third embodiment of the present application. In the present embodiment, the computer device 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. For example, the server may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers) with a gateway function. As shown in fig. 7, the computer device 1 includes at least, but is not limited to: memory 510, processor 520, and network interface 530 may be communicatively linked to each other by a system bus. Wherein:
the memory 510 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 510 may be an internal storage module of the computer device 1, such as a hard disk or a memory of the computer device 1. In other embodiments, the memory 510 may also be an external storage device of the computer device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 1. Of course, the memory 510 may also comprise both an internal memory module of the computer device 1 and an external memory device thereof. In this embodiment, the memory 510 is generally used for storing an operating system installed in the computer device 1 and various types of application software, such as program codes of a data tracing method. In addition, the memory 510 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 520 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 520 is generally used for controlling the overall operation of the computer device 1, such as performing control and processing related to data interaction or communication with the computer device 1. In this embodiment, processor 520 is configured to execute program codes stored in memory 510 or process data.
Network interface 530 may include a wireless network interface or a wired network interface, and network interface 530 is typically used to establish communication links between computer device 1 and other computer devices. For example, the network interface 530 is used to connect the computer apparatus 1 with an external terminal through a network, establish a data transmission channel and a communication link between the computer apparatus 1 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), or Wi-Fi.
It should be noted that FIG. 7 only shows a computer device having components 510 and 530, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the program code of the data tracing method stored in the memory 510 may also be divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 520) to implement the embodiments of the present application.
Example four
The present embodiments also provide a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
extracting a preset number of service requests from a thread pool; configuring each service request into an assembly task according to a configuration rule, wherein the assembly task comprises task attributes; distributing different assembly tasks to different task processing pipelines for processing according to the task attributes to obtain corresponding feedback results; and respectively returning the feedback results to the corresponding requesters.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in a computer device, for example, a program code of a component management method of a service platform in an embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
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.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications that can be made by the use of the equivalent structures or equivalent processes in the specification and drawings of the present application or that can be directly or indirectly applied to other related technologies are also included in the scope of the present application.

Claims (10)

1. A method for data tracing, the method comprising:
receiving a query request of target data of a query object sent by a user;
acquiring an attribute value of the query object in the query request;
polling each block chain in the block chain group through a JS unified interface to find out target data comprising the attribute value;
and outputting the target data.
2. The data tracing method of claim 1, wherein said polling each blockchain in the set of blockchains through the JS unified interface comprises:
calling a web end JSSDK corresponding to the target block chain in the block chain group in the JS class library;
and accessing and calling the intelligent contract of the target block chain through the web terminal JSSDK, thereby executing the data query operation of the target block chain.
3. A data tracing method according to claim 1 or 2, wherein the blockchains in the blockchain group comprise at least one of an etherhouse blockchain, an EOS blockchain and a TRON blockchain.
4. The data tracing method of claim 1, wherein the JS class library includes a web-end JSSDK corresponding to each blockchain in the group of blockchains that is pre-packaged, and the web-end JSSDK is used to execute an intelligent contract for the corresponding blockchain.
5. A data tracing method as claimed in claim 1, wherein prior to obtaining attribute values of the query object in the query request, the method further comprises:
checking whether the account number and the secret key of the user are legal or not;
and when the inquiry request is illegal, rejecting the inquiry request and prompting an error.
6. A data tracing method according to claim 1, wherein when the query object is an enterprise and the target data is pollution discharge data, the attribute values of the query object are: at least one of an enterprise name, business information, enterprise legal information, and business address information.
7. The data tracing method according to claim 1, wherein when the query object is a commodity and the target data is vending data, the attribute value of the query object is: at least one of commodity name, commodity model, commodity manufacturer and commodity parts.
8. A data tracing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a query request of target data of a query object sent by a user;
an obtaining module, configured to obtain an attribute value of the query object in the query request;
the searching module is used for polling each block chain in the block chain group through the JS unified interface and searching the target data comprising the attribute value;
and the output module is used for outputting the target data.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory, a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, implementing the steps of the data tracing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program that is executable by at least one processor to cause the at least one processor to perform the steps of the data tracing method according to any one of claims 1-7.
CN202010523784.1A 2020-06-10 2020-06-10 Data tracing method and device and computer equipment Pending CN112418874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010523784.1A CN112418874A (en) 2020-06-10 2020-06-10 Data tracing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010523784.1A CN112418874A (en) 2020-06-10 2020-06-10 Data tracing method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN112418874A true CN112418874A (en) 2021-02-26

Family

ID=74844065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010523784.1A Pending CN112418874A (en) 2020-06-10 2020-06-10 Data tracing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112418874A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282630A (en) * 2021-06-22 2021-08-20 中国平安财产保险股份有限公司 Data query method and device based on interface switching
CN113791764A (en) * 2021-09-09 2021-12-14 四川启睿克科技有限公司 Method for automatically monitoring surplus energy of wave field area block chain account and giving alarm

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449336A (en) * 2018-03-16 2018-08-24 浙江创邻科技有限公司 Data traceability based on block chain and strong encryption method, apparatus, medium and system
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN109255255A (en) * 2018-10-22 2019-01-22 北京锐安科技有限公司 Data processing method, device, equipment and storage medium based on block chain
CN109683869A (en) * 2018-12-29 2019-04-26 北京阿斯特时代科技有限公司 The development approach and device of DAPP
CN110069564A (en) * 2017-08-23 2019-07-30 杭州嘉楠耘智信息科技有限公司 Information query system and method based on block chain
CN111078799A (en) * 2019-12-27 2020-04-28 中钞信用卡产业发展有限公司杭州区块链技术研究院 Tracing information storage method, device, equipment and readable storage medium
CN111245624A (en) * 2020-01-14 2020-06-05 杭州趣链科技有限公司 Multi-type block chain deployment management system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069564A (en) * 2017-08-23 2019-07-30 杭州嘉楠耘智信息科技有限公司 Information query system and method based on block chain
CN108449336A (en) * 2018-03-16 2018-08-24 浙江创邻科技有限公司 Data traceability based on block chain and strong encryption method, apparatus, medium and system
CN108616578A (en) * 2018-04-09 2018-10-02 上海点融信息科技有限责任公司 Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain
CN109255255A (en) * 2018-10-22 2019-01-22 北京锐安科技有限公司 Data processing method, device, equipment and storage medium based on block chain
CN109683869A (en) * 2018-12-29 2019-04-26 北京阿斯特时代科技有限公司 The development approach and device of DAPP
CN111078799A (en) * 2019-12-27 2020-04-28 中钞信用卡产业发展有限公司杭州区块链技术研究院 Tracing information storage method, device, equipment and readable storage medium
CN111245624A (en) * 2020-01-14 2020-06-05 杭州趣链科技有限公司 Multi-type block chain deployment management system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282630A (en) * 2021-06-22 2021-08-20 中国平安财产保险股份有限公司 Data query method and device based on interface switching
CN113282630B (en) * 2021-06-22 2023-09-26 中国平安财产保险股份有限公司 Data query method and device based on interface switching
CN113791764A (en) * 2021-09-09 2021-12-14 四川启睿克科技有限公司 Method for automatically monitoring surplus energy of wave field area block chain account and giving alarm
CN113791764B (en) * 2021-09-09 2023-06-16 四川启睿克科技有限公司 Method for automatically monitoring residual energy of wave field block chain account and giving alarm

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108494771B (en) Electronic device, firewall opening verification method and storage medium
CN106897072B (en) Service engineering calling method and device and electronic equipment
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN111343168B (en) Identity authentication method and device, computer equipment and readable storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
CN110457311B (en) Method, server and storage medium for automatically generating reconciliation document
CN110266872B (en) Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium
CN113434910A (en) Business data chaining method and device
CN112418874A (en) Data tracing method and device and computer equipment
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN111198677A (en) Equipment object generation method, device and equipment
CN110874365B (en) Information query method and related equipment thereof
US20160004850A1 (en) Secure download from internet marketplace
CN111813418A (en) Distributed link tracking method, device, computer equipment and storage medium
CN113259154B (en) Method and device for informing middle station data verification, computer equipment and storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN111026613B (en) Log processing method and device
CN114048457A (en) Multi-platform user relationship creation method, device, system and storage medium
CN112417324A (en) Chrome-based URL (Uniform resource locator) interception method and device and computer equipment
CN113778423B (en) Interface document generation method and system
CN112583761A (en) Management method and device of security entity, computer equipment and storage medium
CN111651469A (en) Method and device for managing block chain system contract

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