[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110597868B - Information query method, device, terminal and storage medium based on block chain - Google Patents

Information query method, device, terminal and storage medium based on block chain Download PDF

Info

Publication number
CN110597868B
CN110597868B CN201910903615.8A CN201910903615A CN110597868B CN 110597868 B CN110597868 B CN 110597868B CN 201910903615 A CN201910903615 A CN 201910903615A CN 110597868 B CN110597868 B CN 110597868B
Authority
CN
China
Prior art keywords
information
article
item
blockchain
cleaning
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
CN201910903615.8A
Other languages
Chinese (zh)
Other versions
CN110597868A (en
Inventor
李亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910903615.8A priority Critical patent/CN110597868B/en
Publication of CN110597868A publication Critical patent/CN110597868A/en
Application granted granted Critical
Publication of CN110597868B publication Critical patent/CN110597868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/242Query formulation
    • G06F16/2425Iterative querying; Query formulation based on the results of a preceding query
    • 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/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a block chain-based information query method, a block chain-based information query device, a block chain-based information query terminal and a block chain-based information query storage medium, and belongs to the technical field of block chains. The method comprises the following steps: acquiring an article identifier of an article; sending a query request to a blockchain system, wherein the query request carries the article identifier and the cleaning record type, and the cleaning record of the article is stored in a blockchain of the blockchain system; and receiving the cleaning record returned by the blockchain system based on the query request, wherein the cleaning record is acquired from the blockchain system based on the item identifier. The application enables a user to conveniently inquire the cleaning record of the article, and the inquired cleaning record has higher confidence and authority because the information stored in the blockchain system is difficult to tamper.

Description

Information query method, device, terminal and storage medium based on block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based information query method, device, terminal, and storage medium.
Background
When a user is in a hotel, the user is concerned about the sanitation condition of the bedding articles of the hotel, and how to provide the cleaning record of the bedding articles for the user is particularly important to prove that the bedding articles have no sanitation problem.
At present, a hotel generally cleans bedding regularly to ensure no sanitary problem, but the user is hard to have a trust to indicate the cleaning record of the bedding, and the user often needs to visually observe whether the bedding is clean or not so as to judge whether the hotel cleans the bedding or not, however, the user often cannot trust the self-judging result, so that the user needs to provide an information query method so as to query the cleaning record with trust.
Disclosure of Invention
The embodiment of the application provides a block chain-based information query method, a block chain-based information query device, a block chain-based information query terminal and a block chain-based information query storage medium, which can solve the problem that a cleaning record with trust can not be queried in the related technology. The technical scheme is as follows:
in one aspect, a blockchain-based information query method is provided, the method including:
acquiring an article identifier of an article;
sending a query request to a blockchain system, wherein the query request carries the article identifier and the cleaning record type, and the cleaning record of the article is stored in a blockchain of the blockchain system;
and receiving the cleaning record returned by the blockchain system based on the query request, wherein the cleaning record is acquired from the blockchain system based on the item identifier.
In one possible implementation, the cleaning record is written into the blockchain by a cleaning device, the first information is written into the blockchain by a node device corresponding to an article manufacturer of the article, the second information is written into the blockchain by a node device corresponding to an apparatus manufacturer of the cleaning device, the third information is written into the blockchain by a node device corresponding to an article user of the article, and the fourth information is written into the blockchain by a node device corresponding to an article cleaner of the article.
In one possible implementation manner, after the acquiring the article identifier of the article, the method further includes:
sending a second query request to the blockchain system, wherein the second query request carries an article identifier of the article and an article user type;
and receiving an article user returned by the blockchain system based on the second query request.
In one possible implementation manner, after the acquiring the article identifier of the article, the method further includes:
sending a third query request to the blockchain system, wherein the third query request carries an article identifier of the article and an article cleaner type;
And receiving an article washer returned by the blockchain system based on the third query request.
In one possible implementation, the fifth information is written by the item into the blockchain, and the sixth information is written by the washing device into the blockchain.
In one possible implementation manner, after the acquiring the article identifier of the article, the method further includes:
sending a fourth query request to the blockchain system, wherein the fourth query request carries an article identifier and a location route type of the article;
and receiving a position route of the article returned by the blockchain system based on the fourth inquiry request, wherein the position route comprises position information of the article at different times.
In one possible implementation, the cleaning record includes the item identification, a device identification of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature;
after the receiving the purge record returned by the blockchain system based on the query request, the method further includes:
acquiring the equipment identifier, the article identifier and the cleaning start time from the cleaning record;
Sending a fifth query request to the blockchain system, wherein the fifth query request carries the article identifier, the equipment identifier, the cleaning starting time and the position information type;
receiving first position information and second position information returned by the blockchain system based on the fifth query request, wherein the first position information is the position information of the article at the cleaning starting time, and the second position information is the position information of the cleaning equipment at the cleaning starting time;
and comparing the first position information with the second position information to obtain a position comparison result, wherein the position comparison result is used for indicating whether the positions of the article and the cleaning equipment are the same when the article is cleaned.
In one possible implementation manner, the acquiring the article identifier of the article includes any one of the following:
scanning the graphic identification code on the article to obtain an article identification of the article;
and acquiring the article identification of the article input in the interface.
In one possible implementation manner, the article is embedded with a first chip, the first chip has an article identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining the current time, the positioning function is used for determining the current position information of the article, the public and private key management function is used for managing a public key and a private key corresponding to the article, and the blockchain writing function is used for writing information into the blockchain;
The article is embedded with a second chip, and the second chip has a device identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function; the device identification function is used for storing the device identification of the cleaning device, the time function is used for determining the current time, the positioning function is used for determining the current position information of the cleaning device, the public and private key management function is used for managing the public key and the private key corresponding to the cleaning device, and the blockchain writing function is used for writing information into the blockchain.
In one aspect, there is provided a blockchain-based information querying device, the device comprising:
the acquisition module is used for acquiring the article identification of the article;
the sending module is used for sending a query request to a blockchain system, wherein the query request carries the article identifier and the cleaning record type, and the cleaning record of the article is stored in a blockchain of the blockchain system;
and the receiving module is used for receiving the cleaning record returned by the blockchain system based on the query request, wherein the cleaning record is acquired from the blockchain system based on the item identifier.
In one possible implementation, the blockchain system includes the following node devices:
node equipment corresponding to an article manufacturer of the article;
node equipment corresponding to equipment manufacturers of cleaning equipment;
node equipment corresponding to an article user of the article;
and the node equipment corresponds to the article cleaner of the article.
In one possible implementation, the blockchain also stores the following information:
the first information comprises an article identifier of the article and a public key corresponding to the article;
the second information comprises equipment identification of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information including an item identification of the item, tax registration information of the item user, and a name of the item user;
fourth information including an equipment identification of the washing equipment, tax registration information of the article washer, and a name of the article washer.
In one possible implementation, the cleaning record is written into the blockchain by a cleaning device, the first information is written into the blockchain by a node device corresponding to an article manufacturer of the article, the second information is written into the blockchain by a node device corresponding to an apparatus manufacturer of the cleaning device, the third information is written into the blockchain by a node device corresponding to an article user of the article, and the fourth information is written into the blockchain by a node device corresponding to an article cleaner of the article.
In one possible implementation manner, the first information is stored in the blockchain in a first key value pair, a key name of the first key value pair is an item identifier of the item, and a key value is a public key corresponding to the item;
the storage form of the second information in the blockchain is a second key value pair, the key name of the second key value pair is the equipment identifier of the cleaning equipment, and the key value is the public key corresponding to the cleaning equipment;
the storage form of the third information in the blockchain is a third key value pair, wherein the key name of the third key value pair is the item identification of the item and the tax registration information of the item user, and the key value is the item identification of the item, the tax registration information of the item user and the name of the item user;
the fourth information is stored in the blockchain in a fourth key value pair, the key name of the fourth key value pair is the equipment identifier of the cleaning equipment and the tax registration information of the article cleaner, and the key value is the equipment identifier of the cleaning equipment, the tax registration information of the article cleaner and the name of the article cleaner.
In one possible implementation, the sending module is further configured to send a second query request to the blockchain system, where the second query request carries an item identifier of the item and an item user type;
The receiving module is further configured to receive an item user returned by the blockchain system based on the second query request.
In one possible implementation, the sending module is further configured to send a third query request to the blockchain system, where the third query request carries an item identifier of the item and an item washer type;
the receiving module is further configured to receive an item washer returned by the blockchain system based on the third query request.
In one possible implementation, the blockchain also stores the following information:
fifth information including an item identification, time information, location information, and a private key signature of the item;
sixth information including a device identification of the cleaning device, time information, location information, and a private key signature.
In one possible implementation, the fifth information is written by the item into the blockchain, and the sixth information is written by the washing device into the blockchain.
In one possible implementation manner, the fifth information is stored in the blockchain in a fifth key value pair, wherein a key name of the fifth key value pair is an item identifier and time information of the item, and a key value is an item identifier, time information, position information and a private key signature of the item;
The storage form of the sixth information in the blockchain is a sixth key value pair, the key name of the sixth key value pair is the equipment identifier and the time information of the cleaning equipment, and the key value is the equipment identifier, the time information, the position information and the private key signature of the cleaning equipment.
In one possible implementation, the sending module is further configured to send a fourth query request to the blockchain system, where the fourth query request carries an item identifier and a location route type of the item;
the receiving module is further configured to receive a location route of the item returned by the blockchain system based on the fourth query request, where the location route includes location information of the item at different times.
In one possible implementation, the cleaning record includes the item identification, a device identification of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature;
the apparatus further comprises:
the acquisition module is further used for acquiring the equipment identifier, the article identifier and the cleaning starting time from the cleaning record;
the sending module is further configured to send a fifth query request to the blockchain system, where the fifth query request carries the item identifier, the equipment identifier, the cleaning start time and the location information type;
The receiving module is further configured to receive first location information and second location information returned by the blockchain system based on the fifth query request, where the first location information is location information of the article at the cleaning start time, and the second location information is location information of the cleaning device at the cleaning start time;
and the comparison module is used for comparing the first position information with the second position information to obtain a position comparison result, and the position comparison result is used for indicating whether the positions of the article and the cleaning equipment are the same when the article is cleaned.
In one possible implementation, the cleaning record includes the item identification, a device identification of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature;
the storage form of the cleaning record in the blockchain is a seventh key value pair, the key name of the seventh key value pair is the equipment identifier, the cleaning starting time and the cleaning duration of the cleaning equipment, and the key value is the cleaning record.
In one possible implementation manner, the acquiring module is configured to:
scanning the graphic identification code on the article to obtain an article identification of the article;
And acquiring the article identification of the article input in the interface.
In one possible implementation manner, the article is embedded with a first chip, the first chip has an article identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining the current time, the positioning function is used for determining the current position information of the article, the public and private key management function is used for managing a public key and a private key corresponding to the article, and the blockchain writing function is used for writing information into the blockchain;
the article is embedded with a second chip, and the second chip has a device identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function; the device identification function is used for storing the device identification of the cleaning device, the time function is used for determining the current time, the positioning function is used for determining the current position information of the cleaning device, the public and private key management function is used for managing the public key and the private key corresponding to the cleaning device, and the blockchain writing function is used for writing information into the blockchain.
In one aspect, a terminal is provided, the terminal including a processor and a memory having stored therein at least one instruction, at least one program, code set, or instruction set loaded and executed by the processor to perform the operations performed by the blockchain-based information querying method described above.
In one aspect, a computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set loaded and executed by a processor to implement operations performed by a blockchain-based information query method as described above is provided.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
and sending the item identification to node equipment in the blockchain system, so that the node equipment returns the cleaning record after acquiring the cleaning record of the item from the blockchain according to the item identification. The method enables a user to conveniently inquire the cleaning record of the article, and the inquired cleaning record has higher confidence and authority because the information stored in the blockchain system is difficult to tamper.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a blockchain-based information query system according to an embodiment of the present application;
FIG. 2 is a flowchart of a blockchain-based information query method provided by an embodiment of the present application;
FIG. 3 is a block chain architecture diagram according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a block generation process according to an embodiment of the present application;
FIG. 5 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 6 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 7 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 8 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 9 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 10 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 11 is a block chain diagram illustrating a block chain data structure according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a block chain based information query apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a terminal 1300 according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
For convenience of understanding, the terms involved in the embodiments of the present application are explained below:
blockchain (Blockchain): is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain is essentially a decentralised database, and is a series of data blocks which are generated by association by using a cryptography method, and each data block contains information of a batch of network transactions and is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. Each block contains a time stamp and a link to the previous block. In a narrow sense, a blockchain is a chain data structure that combines blocks of data in a sequential manner in time order, and cryptographically guaranteed, non-tamperable and non-counterfeitable, distributed ledgers, i.e., the data in the blockchain will be irreversible once recorded.
Consensus mechanism (Consensus mechanism): is a mathematical algorithm for realizing trust establishment and rights acquisition among different nodes in a block chain system. In a blockchain system, the verification and confirmation of a transaction can be completed in a short time through voting of special nodes, and if a plurality of nodes with irrelevant interests can reach consensus for one transaction, all the nodes in the system can be considered to reach consensus for the same.
Smart contract: is a computer protocol that aims to propagate, verify or execute contracts in an informative manner. Each node in the blockchain system can operate the data stored on the chain according to the contract program automatically executed by the specific condition, and is an important way for users to interact with the blockchain and realize business logic by using the blockchain. The purpose of smart contracts is to provide a secure method over traditional contracts and reduce other transaction costs associated with the contracts, which allows trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
Public Key (Public Key) and Private Key (Private Key): the method is characterized in that the method comprises the steps that a key pair (namely a public key and a private key) is obtained through an algorithm, the public key is a public part of the key pair, confidentiality is not needed, and a decryption party can obtain the key through various channels; the private key is a non-public part, and needs to be kept secret only by the secret key held by the encryption party. Public keys are commonly used to encrypt data, verify digital signatures, and the like. By means of this algorithm it is ensured that the resulting key pair is unique, and when using this key pair, if one of the keys is used to encrypt a piece of data, it must be decrypted with the other key, e.g. the data encrypted with the public key must be decrypted with the corresponding private key, and if the data is encrypted with the private key it must also be decrypted with the corresponding public key, otherwise the decryption will not succeed.
Fig. 1 is a schematic diagram of a blockchain-based information query system provided in an embodiment of the present application, referring to fig. 1, the system includes a terminal 110, a blockchain system 120, an item 130, and a cleaning device 140. The terminal 110 and the blockchain system 120 establish a communication connection through a wired or wireless network, the item 130 and the blockchain system 120 establish a communication connection through a wired or wireless network, and the cleaning device 140 and the blockchain system 120 establish a communication connection through a wired or wireless network.
As shown in fig. 1, the blockchain system 120 includes a plurality of node devices, such as a first node device 121 (a node device corresponding to an item manufacturer of an item), a second node device 122 (a node device corresponding to an equipment manufacturer of a cleaning device), a third node device 123 (a node device corresponding to an item user), and a fourth node device 124 (a node device corresponding to an item cleaner). The plurality of node devices are configured with the same blockchain.
The terminal 110 may send a query request to the blockchain system 120 and receive information returned by the blockchain system 120 based on the query request. In one possible implementation, the terminal 110 may send a query request to any node device in the blockchain system 120 and receive information returned by the any node device based on the query request.
The terminal 110 may be a user device such as a mobile phone or a tablet computer, any node device in the blockchain system 120 may be a server, and the article 130 and the cleaning device 140 may be embedded with chips to implement various functions.
The embodiment of the application provides a specific application scene of an information query method based on a block chain. In this application scenario, the article may be a bedding article, the washing device may be a bedding article washing device, such as a washing machine, the article producer may be a bedding article producer, the washing device producer may be a bedding article washing device producer, the article consumer may be a hotel, and the article washer may be a bedding article washing company. The information query method based on the blockchain can be applied to a terminal, an application program for acquiring the cleaning record of the bedding is installed in the terminal, a user opens the application program, after the terminal scans the graphic identification code of the bedding to acquire the article identification of the bedding (or the user directly inputs the article identification of the bedding on the terminal), the terminal sends a query request to the blockchain system according to the article identification, receives the cleaning record returned by the blockchain system based on the query request, and displays the cleaning record after the cleaning record is acquired.
Fig. 2 is a flowchart of a blockchain-based information query method according to an embodiment of the present application. Referring to fig. 2, the method may include:
201. a first node device in the blockchain system writes first information into the blockchain, the first information including an item identification of an item and a public key corresponding to the item.
Where information is written into the blockchain, i.e., information is stored into the blockchain, also referred to as the uplink. The first node device may be a node device corresponding to an item manufacturer of the item. The article may be embedded with a first chip that may have an article identification function, a time function, a location function, a public and private key management function, and a blockchain writing function. The article identification function is used for storing an article identification of the article, the time function is used for determining the current time, the positioning function is used for determining the current position information of the article, the public and private key management function is used for managing a public key and a private key corresponding to the article, and the blockchain writing function is used for writing information into a blockchain. The item identifier of the item is used to uniquely identify the item, for example, the item identifier may be an identifier (id) of the chip, and the public key corresponding to the item may be a public key managed by the chip.
In one possible implementation, the first node device may write the first information into the blockchain after the item manufacturer produces the item, such that the first information may be stored in the blockchain. The first node device may write first information into the blockchain based on the smart contract. For example, when the first node device initiates a request for the first information, an intelligent contract may be triggered, so that other node devices in the blockchain system verify the device that initiates the request for the first information, for example, verify whether the device is a node device corresponding to the article manufacturer, and after the verification is passed, execute the step of writing the first information into the blockchain. By ensuring that only the article manufacturer of the article can write the first information through the smart contract, the reliability of the first information can be ensured.
The first node device may store first information into a blockchain based on a consensus mechanism. Specifically, data sharing may be performed between node devices in the blockchain system, each node device may receive input information (in this step, the input information may be first information) when performing normal operation, and maintain shared data in the blockchain system based on the received input information. In order to ensure the information intercommunication in the blockchain system, information connection can exist between every node equipment in the blockchain system, and the node equipment can transmit information through the information connection. For example, when any node device in the blockchain system receives input information, other node devices in the blockchain system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all node devices in the blockchain system are consistent.
Each node device in the blockchain system has a node identifier corresponding to the node device, and each node device in the blockchain system can store the node identifiers of other node devices in the blockchain system so as to broadcast the generated blocks to other node devices in the blockchain system according to the node identifiers of the other node devices. Each node device may maintain a node identifier list as shown in the following table, and store the node device name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node device, and table 1 is only illustrated by taking an IP address as an example.
TABLE 1
Each node device in the blockchain system stores one and the same blockchain. The blockchain is composed of a plurality of blocks, referring to fig. 3, the blockchain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a father block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
When each block in the blockchain is generated, referring to fig. 4, when the node equipment where the blockchain is located receives input information, checking the input information, after the checking is completed, storing the input information into a memory pool, and updating a hash tree used for recording the input information; then, updating the update time stamp to the time of receiving the input information, trying different random numbers, and calculating the characteristic value for a plurality of times, so that the calculated characteristic value can meet the following formula:
wherein,,SHA256a eigenvalue algorithm used for calculating eigenvalues;version(version number) is version information of the related block protocol in the block chain;prev_hasha block header characteristic value of a parent block of the current block;merkle_rootis a characteristic value of the input information;ntimeupdate time for the update timestamp;nbitsthe current difficulty is a fixed value in a period of time, and is determined again after exceeding a fixed period of time;xis a random number;TARGETis a characteristic value threshold value, which can be based onnbitsAnd determining to obtain the product.
Thus, when the random number meeting the formula is calculated, the information can be correspondingly stored to generate the block head and the block main body, and the current block is obtained. And then, the node equipment of the block chain respectively sends the newly generated blocks to other node equipment in the block chain system according to the node identification of other node equipment in the block chain system, the other node equipment checks the newly generated blocks, and the newly generated blocks are added into the stored block chain after the checking is completed.
Referring to fig. 5, fig. 5 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 5, a storage form of first information in the blockchain may be a first Key Value pair, a Key name (Key) of the first Key Value pair is an item identifier of the item, and a Key Value (Value) is a public Key corresponding to the item.
202. A second node device in the blockchain system writes second information into the blockchain, wherein the second information comprises a device identification of the cleaning device and a public key corresponding to the cleaning device.
The second node device may be a node device corresponding to a device manufacturer of the cleaning device. The cleaning device may be embedded with a second chip that may have a device identification function, a time function, a location function, a public and private key management function, and a blockchain writing function. The device identification function is used for storing the device identification of the cleaning device, the time function is used for determining the current time, the positioning function is used for determining the current position information of the cleaning device, the public and private key management function is used for managing the public key and the private key corresponding to the cleaning device, and the blockchain writing function is used for writing information into the blockchain. The device identifier of the cleaning device is used to uniquely identify the cleaning device, for example, the device identifier may be an identifier (id) of the chip, and the public key corresponding to the cleaning device may be a public key managed by the chip.
In one possible implementation, the second node device may write second information to the blockchain after the device manufacturer produces the cleaning device, such that the second information may be stored in the blockchain. The second node device may write second information into the blockchain based on the smart contract. For example, when the second node device initiates the uplink request for the second information, the intelligent contract may be triggered, so that other node devices in the blockchain system perform verification on the device that initiates the uplink request, for example, verify whether the device is a node device corresponding to the device manufacturer, and after the verification is passed, perform the step of writing the second information into the blockchain. By ensuring that only the equipment manufacturer of the cleaning equipment can write the second information by means of the smart contract, the reliability of the second information can be ensured.
The step of writing the second information into the blockchain is the same as the step of writing the first information into the blockchain in step 201, and will not be described here. Referring to fig. 6, fig. 6 is a schematic diagram of a structure of data in a blockchain according to an embodiment of the present application, and as shown in fig. 6, the second information is stored in the blockchain in a second key value pair, where a key name of the second key value pair is a device identifier of the cleaning device, and a key value is a public key corresponding to the cleaning device.
203. A third node device in the blockchain system writes third information into the blockchain, the third information including an item identification of the item, tax registration information of the item user, and a name of the item user.
The third node device may be a node device corresponding to an article user of the article. The tax registration information may be a tax registration number.
In one possible implementation, the third node device may write third information into the blockchain after the item user purchases the item, such that the third information may be stored in the blockchain. The third node device may write third information into the blockchain based on the smart contract. For example, when the third node device initiates a request for the third information, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether the item identifier in the third information exists, and verify the device that initiates the request for the third information, for example, verify whether the device is a node device corresponding to the item user, and after the verification is passed, execute the step of writing the third information into the blockchain. The existence of the article identification of the article in the third information is ensured through the intelligent contract, meanwhile, the fact that only the article user of the article can write the third information is ensured, and the reliability of the third information can be ensured.
The step of writing the third information into the blockchain is the same as the step of writing the first information into the blockchain in step 201, and will not be described here. Referring to fig. 7, fig. 7 is a schematic diagram of a structure of data in a blockchain, where, as shown in fig. 7, the third information is stored in the blockchain in a third key value pair, and a key name of the third key value pair is an item identifier of the item and tax registration information of the item user, and a key value is an item identifier of the item, tax registration information of the item user and a name of the item user.
204. A fourth node device in the blockchain system writes fourth information into the blockchain, the fourth information including a device identification of the washing device, tax registration information of the item washer, and a name of the item washer.
The fourth node device may be a node device corresponding to an article washer of the article.
In one possible implementation, the fourth node device may write fourth information to the blockchain after the item cleaner purchases the cleaning device, such that the fourth information may be stored in the blockchain. The fourth node device may write fourth information into the blockchain based on the smart contract. For example, when the fourth node device initiates a request for the uplink of the fourth information, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether the device identifier of the cleaning device in the fourth information exists, and verify the device that initiates the uplink request, for example, verify whether the device is a node device corresponding to the device user, and after the verification is passed, execute the step of writing the fourth information into the blockchain. The existence of the equipment identifier of the cleaning equipment in the fourth information is ensured through the intelligent contract, meanwhile, the condition that only the equipment user of the cleaning equipment can write the fourth information is ensured, and the reliability of the fourth information can be ensured.
The writing of the fourth information into the blockchain is the same as the writing of the first information into the blockchain in step 201, and will not be described here. Referring to fig. 8, fig. 8 is a schematic diagram of a structure of data in a blockchain, where, as shown in fig. 8, the fourth information is stored in the blockchain in a fourth key value pair, where a key name of the fourth key value pair is a device identifier of the cleaning device and tax registration information of the article cleaner, and a key value is a device identifier of the cleaning device, tax registration information of the article cleaner and a name of the article cleaner.
205. The item writes fifth information into the blockchain through any node device in the blockchain system, the fifth information including an item identification, time information, location information, and a private key signature of the item.
The location information may include, among other things, GPS (Global Positioning System ) information and altitude information.
In one possible implementation, the item may be timed to write fifth information to the blockchain by any node device in the blockchain system such that the fifth information may be stored in the blockchain. The node device may write fifth information into the blockchain based on the smart contract. Specifically, when the node device initiates a request for uplink of the fifth information, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether an article identifier of an article in the fifth information exists, and verify a private key signature in the fifth information, for example, based on the article identifier of the article, obtain a public key corresponding to the article from the blockchain, verify the private key signature through the public key corresponding to the article, and execute the step of writing the fifth information into the blockchain after the verification is passed. The intelligent contract ensures that the object identification in the fifth information exists and the signature is correct, so that the reliability of the fifth information can be ensured.
The step of writing the fifth information into the blockchain is the same as the step of writing the first information into the blockchain in step 201, and will not be described here. Referring to fig. 9, fig. 9 is a schematic structural diagram of data in a blockchain, where, as shown in fig. 9, the fifth information is stored in the blockchain in a fifth key value pair, a key name of the fifth key value pair is an item identifier and time information of the item, and a key value is an item identifier, time information, location information and a private key signature of the item.
206. The cleaning device writes sixth information into the blockchain through any node device in the blockchain system, wherein the sixth information comprises device identification, time information, position information and private key signature of the cleaning device.
In one possible implementation, the cleaning device may write sixth information to the blockchain at regular intervals through any node device in the blockchain system, such that the sixth information may be stored in the blockchain. The node device may write sixth information into the blockchain based on the smart contract. For example, when the node device initiates a request for uplink of the sixth information, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether the device identifier of the cleaning device in the sixth information exists, and verify the private key signature in the sixth information, for example, based on the device identifier of the cleaning device, obtain the public key corresponding to the cleaning device from the blockchain, verify the private key signature through the public key corresponding to the cleaning device, and after the verification, execute the step of writing the sixth information into the blockchain. The intelligent contract ensures that the device identifier in the sixth information exists and the signature is correct, so that the reliability of the sixth information can be ensured.
The step of writing the sixth information into the blockchain is the same as the step of writing the first information into the blockchain in step 201, and will not be described here. Referring to fig. 10, fig. 10 is a schematic diagram of a structure of data in a blockchain according to an embodiment of the present application, and as shown in fig. 10, the sixth information is stored in the blockchain in a sixth key value pair, where a key name of the sixth key value pair is a device identifier and time information of the cleaning device, and a key value is a device identifier, time information, location information and a private key signature of the cleaning device.
207. The cleaning device writes a cleaning record of the article into the blockchain through any node device in the blockchain system, wherein the cleaning record comprises an article identifier of the article, a device identifier of the cleaning device, a cleaning start time, a cleaning duration and a private key signature.
In one possible implementation, the cleaning device may write a cleaning record to the blockchain by any node device in the blockchain system at the beginning of cleaning the item, such that the cleaning record may be stored in the blockchain. The node device may write a cleansing record into the blockchain based on the smart contract. Specifically, when the node device initiates a request for uplink of a cleaning record, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether a device identifier and an article identifier in the cleaning record exist, and verify a private key signature in the cleaning record, for example, based on the device identifier of the cleaning device, a public key corresponding to the cleaning device is obtained from the blockchain, the private key signature is verified through the public key corresponding to the cleaning device, and after verification, a step of writing the cleaning record into the blockchain is executed. The intelligent contract ensures that the mark in the cleaning record exists and the signature is correct, so that the reliability of the cleaning record can be ensured.
The process of writing the cleaning record into the blockchain is the same as the process of writing the first information into the blockchain in step 201, and will not be described here. Referring to fig. 11, fig. 11 is a schematic diagram of a structure of data in a blockchain according to an embodiment of the present application, as shown in fig. 11, a storage form of the cleaning record in the blockchain is a seventh key value pair, and a key name of the seventh key value pair is a device identifier, a cleaning start time and a cleaning duration of the cleaning device, and a key value is the cleaning record.
It should be noted that, steps 201 to 207 are steps of writing information into the blockchain, and steps 201 to 207 are optional steps, which are steps to be executed before the terminal performs the information query, and are not required to be executed each time the terminal performs the information query, so that the blockchain of the blockchain system is guaranteed to have the above information stored when the information query is performed.
208. The terminal acquires the article identification of the article.
In one possible implementation, the terminal may perform the step of obtaining the item identifier of the item when receiving a first query instruction, where the first query instruction is used to query the cleaning record of the item. The first query instruction may be triggered by a user operation, for example, an application program for acquiring a cleaning record of an article may be installed on the terminal, a first button may be provided in an interface of the application program, and the user may click on the first button to trigger the first query instruction.
The terminal obtains the object identifier of the object, including but not limited to the following two possible implementations:
the first way is to scan the graphic identification code on the article to obtain the article identification of the article.
The graphic identification code can be a bar code or a two-dimensional code, and can be generated based on the article identification of the article, so that the terminal can obtain the article identification of the article by scanning the graphic identification code and analyzing the graphic identification code.
The second way is to acquire the item identification of the item entered in the interface.
The terminal can display an article identification input interface, and a user can check the article identification of the article from the label of the article and then input the article identification of the article in the article identification input interface, so that the terminal can acquire the input article identification.
209. The terminal sends a query request to a blockchain system, wherein the query request carries the item identification and the cleaning record type, and the cleaning record of the item is stored in a blockchain of the blockchain system.
The type of the cleaning record refers to that the type of the information to be queried is the cleaning record. The cleaning record type can be defaulted by the terminal, or can be determined by the terminal according to the operation of the user, for example, after the user clicks the first button and triggers the first inquiry command, the terminal can determine that the information which the user wants to inquire is the cleaning record of the article.
After acquiring the item identifier, the terminal may send the item identifier and the cleaning record type to the blockchain system with a query request, and in particular, the terminal may send the query request to any node device in the blockchain system, where the query request is used to query the cleaning record of the item.
210. The blockchain system obtains the cleaning record of the article from the blockchain based on the article identification after receiving the query request.
The blockchain system may query whether a purge record corresponding to the item identification is stored in the blockchain based on the item identification of the item, e.g., query whether a purge record including the item identification is stored in the blockchain, and if so, obtain the purge record as a purge record for the item. The cleaning record can be one or a plurality of cleaning records. It is to be appreciated that this step 210 can be performed by any node device in the blockchain system.
211. The blockchain system returns a cleaning record of the item to the terminal.
After querying the cleaning record of the article, the blockchain system can return the cleaning record to the terminal as a response to the query request. Optionally, if the cleaning record has multiple cleaning records, the blockchain system may sort the multiple cleaning records according to the cleaning start time in each cleaning record and then return the cleaning records to the terminal, and the blockchain system may return all the cleaning records to the terminal, may select one cleaning record with the cleaning start time closest to the current time to return the cleaning record to the terminal, and may select the cleaning record within the latest time range to return the cleaning record to the terminal. It is to be appreciated that this step 211 can be performed by any node device in the blockchain system.
212. The terminal receives the cleaning record returned by the block chain system based on the inquiry request.
After receiving the cleaning record, the terminal may display the cleaning record so that the user can see all cleaning records of the item.
In addition to querying a cleaning record of an item, the present solution may also provide the functionality of querying other information of the item. For ease of distinction, will be referred to as a first query request, in one possible implementation, after the terminal obtains the item identification of the item, the method further comprises: sending a second query request to the blockchain system, wherein the second query request carries an article identifier of the article and an article user type; the article user returned by the blockchain system based on the second query request is received, and the article user is obtained from the blockchain based on the article identification by the blockchain system.
Wherein the type of the article user is used for indicating that the type of the information to be queried is the article user. In one possible implementation, the terminal may perform the step of obtaining the item identification of the item upon receiving a second query instruction for querying an item user of the item. The second inquiry command may be triggered by a user operation, for example, an application program installed on the terminal may be used for acquiring an article user of the article in addition to the cleaning record of the article, a second button may be provided in an interface of the application program, and the user may click on the second button to trigger the second inquiry command, where the second inquiry command is used for inquiring the article user of the article. The terminal can send the article identifier and the article user type of the article to the blockchain system in the second inquiry request, and after receiving the second inquiry request, the blockchain system can acquire the article user of the article from the blockchain based on the article identifier, and return the article user of the article to the terminal based on the second inquiry request. For example, the blockchain system may query whether third information including the item identifier is stored in the blockchain based on the item identifier, and if so, obtain at least one of a name or tax registration information of an item user in the third information, and return the at least one of the name or tax registration information of the item user to the terminal.
In one possible implementation, after acquiring the item identifier of the item, the method further includes: sending a third query request to the blockchain system, wherein the third query request carries an article identifier of the article and an article cleaner type; the article washer returned by the blockchain system based on the third query request is received, and the article washer is obtained from the blockchain by the blockchain system based on the article identification.
Wherein the type of the article washer is used for indicating that the type of the information to be queried is the article washer. In one possible implementation, the terminal may perform the step of obtaining the item identification of the item upon receiving a third query instruction for querying an item washer of the item. The third inquiry command may be triggered by a user operation, for example, an application program installed on the terminal may be used for acquiring an article cleaner of the article in addition to acquiring a cleaning record of the article, a third button may be provided in an interface of the application program, and the user may click on the third button to trigger the third inquiry command, where the third inquiry command is used for inquiring the article cleaner of the article. The terminal can send the article identifier and the type of the article cleaner to the blockchain system in a third inquiry request, and after receiving the third inquiry request, the blockchain system can acquire the article cleaner of the article from the blockchain based on the article identifier, and return the article cleaner of the article to the terminal based on the third inquiry request. For example, the blockchain system may first query a cleaning record including the item identifier based on the item identifier, obtain a device identifier of a cleaning device from the cleaning record, and then query whether fourth information including the device identifier is stored in the blockchain based on the device identifier, and if so, obtain at least one of a name or tax registration information of an item cleaner in the fourth information, and return the at least one of the name or tax registration information of the item cleaner to the terminal.
In one possible implementation, after acquiring the item identifier of the item, the method further includes: sending a fourth query request to the blockchain system, wherein the fourth query request carries an item identifier and a location route type of the item; the blockchain system is received to return a location route of the item based on the fourth query request, the location route including location information of the item at different times.
The type of the position route is used for indicating that the type of the information to be queried is the position route. In one possible implementation, the terminal may perform the step of obtaining the item identifier of the item when receiving a fourth query instruction, where the fourth query instruction is used to query the location route of the item. The fourth inquiry command may be triggered by a user operation, for example, an application program installed on the terminal may be used to obtain a position route of the article in addition to the cleaning record of the article, for example, a fourth button may be provided in an interface of the application program, and the user may click on the fourth button to trigger the fourth inquiry command. The terminal can carry the item identifier and the location route type of the item in a fourth query request and send the item identifier and the location route type of the item to the blockchain system, and the blockchain system can acquire the location route of the item from the blockchain based on the item identifier after receiving the fourth query request and return the location route of the item to the terminal based on the fourth query request. For example, the blockchain system may query whether fifth information including the item identifier is stored in the blockchain based on the item identifier, and if so, determine a location route of the item according to the location information and the time information in the fifth information, e.g., store a plurality of pieces of fifth information including the item identifier in the blockchain system, determine a sequence of a plurality of location information according to a sequence of a plurality of time information in the plurality of pieces of fifth information, and form the location route of the item.
In one possible implementation, after the receiving the purge record returned by the blockchain system based on the query request, the method further includes: acquiring the equipment identifier, the article identifier and the cleaning start time from the cleaning record; sending a fifth query request to the blockchain system, the fifth query request carrying the item identification, the equipment identification, the cleaning start time and the location information type; receiving first position information and second position information returned by the blockchain system based on the fifth query request, wherein the first position information is the position information of the article at the cleaning starting time, and the second position information is the position information of the cleaning equipment at the cleaning starting time; and comparing the first position information with the second position information to obtain a position comparison result, wherein the position comparison result is used for indicating whether the position of the article is the same as that of the cleaning equipment when the article is cleaned.
In one possible implementation, the terminal may perform the step of acquiring the item identification of the item when receiving a fifth query instruction for querying the location information of the item and the cleaning device when the item is cleaned by the cleaning device. The fifth inquiry command may be triggered by a user operation, for example, an application program installed on the terminal may be used to obtain, in addition to a cleaning record of the article, position information of the article and the cleaning device when the article is cleaned by the cleaning device, for example, a fifth button may be provided in an interface of the application program, and the user may click on the fifth button to trigger the fifth inquiry command. The terminal can carry the equipment identifier, the article identifier, the cleaning starting time and the position information type in a fifth query request and send the fifth query request to the blockchain system, the blockchain system can acquire the first position information of the article at the cleaning starting time from the blockchain based on the article identifier and the cleaning starting time after receiving the fifth query request, acquire the second position information of the cleaning equipment at the cleaning starting time from the blockchain based on the equipment identifier and the cleaning starting time, and return the first position information and the second position information to the terminal based on the fourth query request. For example, the blockchain system may query whether fifth information including the item identifier and the cleaning start time is stored in the blockchain based on the item identifier, if so, acquire location information in the fifth information as first location information, query whether sixth information including the device identifier and the cleaning start time is stored in the blockchain system based on the device identifier, and if so, acquire location information in the sixth information as second location information, and return the first location information and the second location information to the terminal.
According to the method provided by the embodiment of the application, the article identification is sent to the node equipment in the blockchain system, so that the node equipment returns the cleaning record after acquiring the cleaning record of the article from the blockchain according to the article identification. The method enables a user to conveniently inquire the cleaning record of the article, and the inquired cleaning record has higher confidence and authority because the information stored in the blockchain system is difficult to tamper.
Fig. 12 is a schematic structural diagram of a blockchain-based information query device according to an embodiment of the present application. Referring to fig. 12, the apparatus includes:
an acquisition module 1201, configured to acquire an item identifier of an item;
a sending module 1202, configured to send a query request to a blockchain system, where the query request carries the item identifier and the cleaning record type, and a cleaning record of the item is stored in a blockchain of the blockchain system;
the receiving module 1203 is configured to receive the purge record returned by the blockchain system based on the query request, where the purge record is obtained by the blockchain system from the blockchain based on the item identifier.
In one possible implementation, the blockchain system includes the following node devices:
Node equipment corresponding to an article manufacturer of the article;
node equipment corresponding to equipment manufacturers of cleaning equipment;
node equipment corresponding to an article user of the article;
the node equipment corresponding to the article cleaner of the article.
In one possible implementation, the blockchain also stores the following information:
the first information comprises an article identifier of the article and a public key corresponding to the article;
the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information including an item identification of the item, tax registration information of the item user, and a name of the item user;
fourth information including a device identification of the washing device, tax registration information of the article washer, and a name of the article washer.
In one possible implementation, the purge record is written into the blockchain by a purge device, the first information is written into the blockchain by a node device corresponding to an item manufacturer of the item, the second information is written into the blockchain by a node device corresponding to an item manufacturer of the purge device, the third information is written into the blockchain by a node device corresponding to an item user of the item, and the fourth information is written into the blockchain by a node device corresponding to an item cleaner of the item.
In one possible implementation manner, the first information is stored in the blockchain in a first key value pair, a key name of the first key value pair is an item identifier of the item, and a key value is a public key corresponding to the item;
the storage form of the second information in the blockchain is a second key value pair, the key name of the second key value pair is the equipment identifier of the cleaning equipment, and the key value is the public key corresponding to the cleaning equipment;
the third information is stored in the blockchain in a third key value pair, wherein the key name of the third key value pair is the item identification of the item and the tax registration information of the item user, and the key value is the item identification of the item, the tax registration information of the item user and the name of the item user;
the fourth information is stored in the blockchain in a fourth key value pair, wherein the key name of the fourth key value pair is the equipment identifier of the cleaning equipment and the tax registration information of the article cleaner, and the key value is the equipment identifier of the cleaning equipment, the tax registration information of the article cleaner and the name of the article cleaner.
In one possible implementation, the sending module 1202 is further configured to send a second query request to the blockchain system, the second query request carrying the item identification of the item and the item user type;
The receiving module 1203 is further configured to receive an item user returned by the blockchain system based on the second query request.
In one possible implementation, the sending module 1202 is further configured to send a third query request to the blockchain system, the third query request carrying the item identification of the item and the item washer type;
the receiving module 1203 is further configured to receive an article washer returned by the blockchain system based on the third query request.
In one possible implementation, the blockchain also stores the following information:
fifth information including an item identification, time information, location information, and a private key signature of the item;
sixth information including a device identification of the cleaning device, time information, location information, and a private key signature.
In one possible implementation, the fifth information is written by the item into the blockchain, and the sixth information is written by the cleaning device into the blockchain.
In one possible implementation, the fifth information is stored in the blockchain in a fifth key-value pair, wherein a key name of the fifth key-value pair is an item identifier and time information of the item, and a key value is an item identifier, time information, location information and a private key signature of the item;
The sixth information is stored in the blockchain in a sixth key value pair, the key name of the sixth key value pair is the equipment identifier and the time information of the cleaning equipment, and the key value is the equipment identifier, the time information, the position information and the private key signature of the cleaning equipment.
In one possible implementation, the sending module 1202 is further configured to send a fourth query request to the blockchain system, the fourth query request carrying the item identification and the location route type of the item;
the receiving module 1203 is further configured to receive a location route of the item returned by the blockchain system based on the fourth query request, where the location route includes location information of the item at different times.
In one possible implementation, the cleaning record includes the item identification, a device identification of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature;
the apparatus further comprises:
the obtaining module 1201 is further configured to obtain the equipment identifier, the item identifier, and the cleaning start time from the cleaning record;
the sending module 1202 is further configured to send a fifth query request to the blockchain system, where the fifth query request carries the item identifier, the device identifier, the cleaning start time and the location information type;
The receiving module 1203 is further configured to receive first location information and second location information returned by the blockchain system based on the fifth query request, where the first location information is location information of the article at the cleaning start time, and the second location information is location information of the cleaning device at the cleaning start time;
and the comparison module is used for comparing the first position information with the second position information to obtain a position comparison result, and the position comparison result is used for indicating whether the positions of the article and the cleaning equipment are the same when the article is cleaned.
In one possible implementation, the cleaning record includes the item identification, a device identification of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature;
the storage form of the cleaning record in the blockchain is a seventh key value pair, the key name of the seventh key value pair is the equipment identifier, the cleaning starting time and the cleaning duration of the cleaning equipment, and the key value is the cleaning record.
In one possible implementation, the obtaining module 1201 is configured to:
scanning the graphic identification code on the article to obtain an article identification of the article;
an item identification of the item entered in the interface is obtained.
In one possible implementation manner, the article is embedded with a first chip, the first chip has an article identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining the current time, the positioning function is used for determining the current position information of the article, the public and private key management function is used for managing a public key and a private key corresponding to the article, and the blockchain writing function is used for writing information into the blockchain;
the article is embedded with a second chip, and the second chip has a device identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function; the device identification function is used for storing the device identification of the cleaning device, the time function is used for determining the current time, the positioning function is used for determining the current position information of the cleaning device, the public and private key management function is used for managing the public key and the private key corresponding to the cleaning device, and the blockchain writing function is used for writing information into the blockchain.
It should be noted that: in the information query apparatus based on blockchain provided in the above embodiment, when information query is performed based on blockchain, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the information query device based on the blockchain provided in the above embodiment and the information query method based on the blockchain belong to the same concept, and detailed implementation processes of the information query device based on the blockchain are detailed in the method embodiment, and are not described herein.
Fig. 13 is a schematic structural diagram of a terminal 1300 according to an embodiment of the present application. The terminal 1300 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 1300 includes: a processor 1301, and a memory 1302.
Processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 1301 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). Processor 1301 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, processor 1301 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 1301 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. Memory 1302 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the blockchain-based information query method provided by the method embodiments of the present application.
In some embodiments, the terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. The processor 1301, the memory 1302, and the peripheral interface 1303 may be connected by a bus or signal lines. The respective peripheral devices may be connected to the peripheral device interface 1303 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuit 1304, display screen 1305, camera 1306, audio circuit 1307, and power supply 1309.
A peripheral interface 1303 may be used to connect I/O (Input/Output) related at least one peripheral to the processor 1301 and the memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1301, the memory 1302, and the peripheral interface 1303 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1304 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal to an electromagnetic signal for transmission, or converts a received electromagnetic signal to an electrical signal. Optionally, the radio frequency circuit 1304 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication ) related circuits, which the present application is not limited to.
The display screen 1305 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1305 is a touch display, the display 1305 also has the ability to capture touch signals at or above the surface of the display 1305. The touch signal may be input to the processor 1301 as a control signal for processing. At this point, the display 1305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1305 may be one, providing the front panel of the terminal 1300; in other embodiments, the display 1305 may be at least two, disposed on different surfaces of the terminal 1300 or in a folded configuration; in still other embodiments, the display 1305 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1300. Even more, the display screen 1305 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display screen 1305 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for voice communication. For purposes of stereo acquisition or noise reduction, a plurality of microphones may be provided at different portions of the terminal 1300, respectively. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is then used to convert electrical signals from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 1307 may also comprise a headphone jack.
A power supply 1309 is used to power the various components in the terminal 1300. The power supply 1309 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1309 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyroscope sensor 1312, pressure sensor 1313, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. Processor 1301 may control display screen 1305 to display a user interface in either a landscape view or a portrait view based on gravitational acceleration signals acquired by acceleration sensor 1311. The acceleration sensor 1311 may also be used for the acquisition of motion data of a game or user.
The gyro sensor 1312 may detect a body direction and a rotation angle of the terminal 1300, and the gyro sensor 1312 may collect a 3D motion of the user on the terminal 1300 in cooperation with the acceleration sensor 1311. Processor 1301 can implement the following functions based on the data collected by gyro sensor 1312: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1313 may be disposed on a side frame of terminal 1300 and/or below display screen 1305. When the pressure sensor 1313 is disposed at a side frame of the terminal 1300, a grip signal of the terminal 1300 by a user may be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1313. When the pressure sensor 1313 is disposed at the lower layer of the display screen 1305, the processor 1301 realizes control of the operability control on the UI interface according to the pressure operation of the user on the display screen 1305. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1315 is used to collect ambient light intensity. In one embodiment, processor 1301 may control the display brightness of display screen 1305 based on the intensity of ambient light collected by optical sensor 1315. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 1305 is turned up; when the ambient light intensity is low, the display brightness of the display screen 1305 is turned down. In another embodiment, processor 1301 may also dynamically adjust the shooting parameters of camera assembly 1306 based on the intensity of ambient light collected by optical sensor 1315.
A proximity sensor 1316, also referred to as a distance sensor, is typically provided on the front panel of the terminal 1300. The proximity sensor 1316 is used to collect the distance between the user and the front of the terminal 1300. In one embodiment, when proximity sensor 1316 detects a gradual decrease in the distance between the user and the front of terminal 1300, processor 1301 controls display screen 1305 to switch from a bright screen state to a inactive screen state; when the proximity sensor 1316 detects that the distance between the user and the front surface of the terminal 1300 gradually increases, the processor 1301 controls the display screen 1305 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 13 is not limiting of terminal 1300 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one instruction, at least one program, code set, or instruction set that is loadable and executable by a processor to perform the blockchain-based information query method of the above embodiment, is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-Access Memory (RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is only illustrative of the present application and is not to be construed as limiting thereof, but rather as various modifications, equivalent arrangements, improvements, etc., within the spirit and principles of the present application.

Claims (21)

1. A blockchain-based information query method, the method comprising:
writing fifth information into a blockchain by an article through any node equipment in the blockchain system, wherein the article is a bedding article, a first chip is embedded in the article, the first chip has an article identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function, and the fifth information comprises an article identification, time information, position information and a private key signature of the article;
the cleaning equipment writes sixth information into the blockchain through any node equipment in the blockchain system, wherein the cleaning equipment is bedding cleaning equipment, a second chip is embedded in the cleaning equipment, the second chip has an equipment identification function, a time function, a positioning function, a public and private key management function and a blockchain writing function, and the sixth information comprises equipment identification, time information, position information and a private key signature of the cleaning equipment;
The cleaning equipment writes a cleaning record of the article into the blockchain through any node equipment in the blockchain system, wherein the cleaning record comprises an article identifier of the article, an equipment identifier of the cleaning equipment, cleaning starting time, cleaning duration and a private key signature;
the terminal acquires the object identification of the object;
the terminal sends a query request to the blockchain system, wherein the query request carries the article identifier and the cleaning record type;
the terminal receives the cleaning record returned by the blockchain system based on the query request, wherein the cleaning record is acquired from the blockchain system based on the item identification.
2. The method of claim 1, wherein the blockchain system includes the following node devices:
node equipment corresponding to an article manufacturer of the article;
node equipment corresponding to equipment manufacturers of the cleaning equipment;
node equipment corresponding to an article user of the article;
and the node equipment corresponds to the article cleaner of the article.
3. The method of claim 1, wherein the blockchain also has stored therein the following information:
The first information comprises an article identifier of the article and a public key corresponding to the article;
the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information including an item identification of the item, tax registration information of an item user, and a name of the item user;
fourth information including an equipment identification of the washing equipment, tax registration information of an article washer, and a name of the article washer.
4. The method of claim 3, wherein the first information is stored in the blockchain in a first key-value pair, the key name of the first key-value pair being an item identification of the item, and the key value being a public key corresponding to the item;
the storage form of the second information in the blockchain is a second key value pair, the key name of the second key value pair is the equipment identifier of the cleaning equipment, and the key value is the public key corresponding to the cleaning equipment;
the storage form of the third information in the blockchain is a third key value pair, wherein the key name of the third key value pair is the item identification of the item and the tax registration information of the item user, and the key value is the item identification of the item, the tax registration information of the item user and the name of the item user;
The fourth information is stored in the blockchain in a fourth key value pair, the key name of the fourth key value pair is the equipment identifier of the cleaning equipment and the tax registration information of the article cleaner, and the key value is the equipment identifier of the cleaning equipment, the tax registration information of the article cleaner and the name of the article cleaner.
5. The method of claim 1, wherein the fifth information is stored in the blockchain in a fifth key-value pair, the key name of the fifth key-value pair being the item identification and time information of the item, the key value being the item identification, time information, location information, and a private key signature of the item;
the storage form of the sixth information in the blockchain is a sixth key value pair, the key name of the sixth key value pair is the equipment identifier and the time information of the cleaning equipment, and the key value is the equipment identifier, the time information, the position information and the private key signature of the cleaning equipment.
6. The method of claim 1, wherein the cleaning record is stored in the blockchain in a seventh key-value pair, wherein a key name of the seventh key-value pair is a device identifier of the cleaning device, a cleaning start time, and a cleaning duration, and wherein a key value is the cleaning record.
7. A blockchain-based information querying device, the device comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring an article identifier of an article, the article is a bedding article, a first chip is embedded in the article, the first chip has an article identifier function, a time function, a positioning function, a public and private key management function and a blockchain writing function, the article can write fifth information into a blockchain through any node equipment in the blockchain system, and the fifth information comprises the article identifier, the time information, the position information and a private key signature of the article;
a sending module, configured to send a query request to the blockchain system, where the query request carries the item identifier and a cleaning record type, a cleaning record of the item is stored in a blockchain of the blockchain system, the cleaning record is written into the blockchain by a cleaning device, the cleaning record includes an item identifier of the item, a device identifier of the cleaning device, a cleaning start time, a cleaning duration, and a private key signature, the cleaning device is a bedding cleaning device, a second chip is embedded in the cleaning device, the second chip has a device identifier function, a time function, a positioning function, a public and private key management function, and a blockchain writing function, and the cleaning device is capable of writing sixth information into the blockchain, where the sixth information includes the device identifier, the time information, the location information, and the private key signature of the cleaning device;
And the receiving module is used for receiving the cleaning record returned by the blockchain system based on the query request, wherein the cleaning record is acquired from the blockchain system based on the item identifier.
8. The apparatus of claim 7, wherein the blockchain system includes the following node devices:
node equipment corresponding to an article manufacturer of the article;
node equipment corresponding to equipment manufacturers of the cleaning equipment;
node equipment corresponding to an article user of the article;
and the node equipment corresponds to the article cleaner of the article.
9. The apparatus of claim 7, wherein the blockchain further has stored therein the following information:
the first information comprises an article identifier of the article and a public key corresponding to the article;
the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information including an item identification of the item, tax registration information of the item user, and a name of the item user;
fourth information including an equipment identification of the washing equipment, tax registration information of the article washer, and a name of the article washer.
10. The apparatus of claim 9, wherein the purge record is written into the blockchain by the purge device, the first information is written into the blockchain by a node device corresponding to an item manufacturer of the item, the second information is written into the blockchain by a node device corresponding to an item manufacturer of the purge device, the third information is written into the blockchain by a node device corresponding to an item user of the item, and the fourth information is written into the blockchain by a node device corresponding to an item cleaner of the item.
11. The apparatus of claim 9, wherein the first information is stored in the blockchain in a first key-value pair, the key name of the first key-value pair being an item identification of the item, the key value being a public key corresponding to the item;
the storage form of the second information in the blockchain is a second key value pair, the key name of the second key value pair is the equipment identifier of the cleaning equipment, and the key value is the public key corresponding to the cleaning equipment;
the storage form of the third information in the blockchain is a third key value pair, wherein the key name of the third key value pair is the item identification of the item and the tax registration information of the item user, and the key value is the item identification of the item, the tax registration information of the item user and the name of the item user;
The fourth information is stored in the blockchain in a fourth key value pair, the key name of the fourth key value pair is the equipment identifier of the cleaning equipment and the tax registration information of the article cleaner, and the key value is the equipment identifier of the cleaning equipment, the tax registration information of the article cleaner and the name of the article cleaner.
12. The apparatus of claim 7, wherein the sending module is further configured to send a second query request to the blockchain system, the second query request carrying an item identification of the item and an item user type;
the receiving module is further configured to receive an item user returned by the blockchain system based on the second query request.
13. The apparatus of claim 7, wherein the sending module is further configured to send a third query request to the blockchain system, the third query request carrying an item identification of the item and an item washer type;
the receiving module is further configured to receive an item washer returned by the blockchain system based on the third query request.
14. The apparatus of claim 7, wherein the fifth information is stored in the blockchain in a fifth key-value pair, the key name of the fifth key-value pair being the item identification and time information of the item, the key value being the item identification, time information, location information, and a private key signature of the item;
The storage form of the sixth information in the blockchain is a sixth key value pair, the key name of the sixth key value pair is the equipment identifier and the time information of the cleaning equipment, and the key value is the equipment identifier, the time information, the position information and the private key signature of the cleaning equipment.
15. The apparatus of claim 7, wherein the sending module is further configured to send a fourth query request to the blockchain system, the fourth query request carrying an item identification and a location route type of the item;
the receiving module is further configured to receive a location route of the item returned by the blockchain system based on the fourth query request, where the location route includes location information of the item at different times.
16. The apparatus of claim 7, wherein the means for obtaining is further configured to obtain the equipment identity, the item identity, and the cleaning start time from the cleaning record;
the sending module is further configured to send a fifth query request to the blockchain system, where the fifth query request carries the item identifier, the equipment identifier, the cleaning start time and the location information type;
The receiving module is further configured to receive first location information and second location information returned by the blockchain system based on the fifth query request, where the first location information is location information of the article at the cleaning start time, and the second location information is location information of the cleaning device at the cleaning start time;
and the comparison module is used for comparing the first position information with the second position information to obtain a position comparison result, and the position comparison result is used for indicating whether the positions of the article and the cleaning equipment are the same when the article is cleaned.
17. The apparatus of claim 7, wherein the cleaning record is stored in the blockchain in a seventh key-value pair, the key name of the seventh key-value pair being the device identification, the cleaning start time, and the cleaning duration of the cleaning device, and the key value being the cleaning record.
18. The apparatus of claim 7, wherein the acquisition module is configured to:
scanning the graphic identification code on the article to obtain an article identification of the article;
and acquiring the article identification of the article input in the interface.
19. The apparatus of claim 7, wherein the item identification function of the first chip is configured to store an item identification of the item, the time function of the first chip is configured to determine a current time, the location function of the first chip is configured to determine current location information of the item, the public and private key management function of the first chip is configured to manage a public key and a private key corresponding to the item, and the blockchain writing function of the first chip is configured to write information into the blockchain;
the device identification function of the second chip is used for storing the device identification of the cleaning device, the time function of the second chip is used for determining the current time, the positioning function of the second chip is used for determining the current position information of the cleaning device, the public and private key management function of the second chip is used for managing the public key and the private key corresponding to the cleaning device, and the blockchain writing function of the second chip is used for writing information into the blockchain.
20. A terminal comprising a processor and a memory having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by the processor to implement the blockchain-based information querying method of any of claims 1 to 6.
21. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by a processor to implement the blockchain-based information querying method of any of claims 1 to 6.
CN201910903615.8A 2019-09-24 2019-09-24 Information query method, device, terminal and storage medium based on block chain Active CN110597868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910903615.8A CN110597868B (en) 2019-09-24 2019-09-24 Information query method, device, terminal and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910903615.8A CN110597868B (en) 2019-09-24 2019-09-24 Information query method, device, terminal and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN110597868A CN110597868A (en) 2019-12-20
CN110597868B true CN110597868B (en) 2023-08-15

Family

ID=68862805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910903615.8A Active CN110597868B (en) 2019-09-24 2019-09-24 Information query method, device, terminal and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN110597868B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143889B (en) * 2019-12-26 2023-05-26 腾讯科技(深圳)有限公司 Block chain-based stimulant detection information management method, device and equipment
CN112286881B (en) * 2020-10-28 2024-04-05 金蝶云科技有限公司 Document authentication tracing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108764797A (en) * 2018-05-31 2018-11-06 腾讯科技(深圳)有限公司 Circulation information querying method, device, equipment, system and storage medium
CN109583956A (en) * 2018-11-30 2019-04-05 众安信息技术服务有限公司 The method and device of barter based on block chain
JP2019115026A (en) * 2017-12-22 2019-07-11 メタップス・プラス・インコーポレイテッドMetaps Plus Inc. Decentralized ledger device, decentralized ledger method, transaction information broadcast device, and method for sharing user information

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10430403B2 (en) * 2014-08-20 2019-10-01 Embarcadero Technologies, Inc. Tracking change data in a database
KR101884726B1 (en) * 2016-06-21 2018-08-03 주식회사 티맥스데이터 Method, apparatus, and computer program stored in computer readable medium for reading block in database system
GB2569278A (en) * 2017-10-23 2019-06-19 Cygnetise Ltd Methods and apparatus for verifying a user transaction
KR101982604B1 (en) * 2018-08-23 2019-05-27 신호열 Method for generating item based on blockchain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019115026A (en) * 2017-12-22 2019-07-11 メタップス・プラス・インコーポレイテッドMetaps Plus Inc. Decentralized ledger device, decentralized ledger method, transaction information broadcast device, and method for sharing user information
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108764797A (en) * 2018-05-31 2018-11-06 腾讯科技(深圳)有限公司 Circulation information querying method, device, equipment, system and storage medium
CN109583956A (en) * 2018-11-30 2019-04-05 众安信息技术服务有限公司 The method and device of barter based on block chain

Also Published As

Publication number Publication date
CN110597868A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110687821B (en) Intelligent home control system and method based on block chain
CN110602206B (en) Data sharing method and device based on block chain and storage medium
CN108614878B (en) Protocol data management method, device, storage medium and system
CN108833607B (en) Physical address acquisition method, device and readable medium
CN110826103B (en) Method, device, equipment and storage medium for processing document authority based on blockchain
CN111190748B (en) Data sharing method, device, equipment and storage medium
CN111080443B (en) Block chain-based service processing method, device, equipment and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110365501B (en) Method and device for group joining processing based on graphic code
CN111339181B (en) Block storage method, block storage device, node equipment and storage medium
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN110597868B (en) Information query method, device, terminal and storage medium based on block chain
CN110677262B (en) Information notarization method, device and system based on blockchain
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN111193702B (en) Method and device for data encryption transmission
CN111145034A (en) Block chain-based social security management method, device and system and storage medium
CN111901283A (en) Resource transfer method, device, terminal and storage medium
CN110597840B (en) Partner relationship establishment method, device, equipment and storage medium based on blockchain
CN110532324B (en) Block chain-based bulletin information display method, device, equipment and storage medium
CN111198922B (en) Game resource management method and device based on block chain
CN110825465B (en) Log data processing method and device, electronic equipment and storage medium
CN114253442B (en) Module processing method and device for foreground and background separation system and storage medium
CN110968549B (en) File storage method, device, electronic equipment and medium
CN111680039A (en) Storage method, query method, device, equipment and storage medium of order information

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