CN110597868A - 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 PDFInfo
- Publication number
- CN110597868A CN110597868A CN201910903615.8A CN201910903615A CN110597868A CN 110597868 A CN110597868 A CN 110597868A CN 201910903615 A CN201910903615 A CN 201910903615A CN 110597868 A CN110597868 A CN 110597868A
- Authority
- CN
- China
- Prior art keywords
- information
- item
- article
- cleaning
- block chain
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004140 cleaning Methods 0.000 claims abstract description 271
- 230000006870 function Effects 0.000 description 88
- 238000010586 diagram Methods 0.000 description 22
- 238000007726 management method Methods 0.000 description 16
- 230000001960 triggered effect Effects 0.000 description 12
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000012795 verification Methods 0.000 description 10
- 230000001133 acceleration Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 6
- 238000005406 washing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000000977 initiatory effect Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 239000000919 ceramic Substances 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2425—Iterative querying; Query formulation based on the results of a preceding query
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- Economics (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses an information query method, an information query device, a terminal and a storage medium based on a block chain, and belongs to the technical field of block chains. The method comprises the following steps: acquiring an article identifier of an article; sending an inquiry request to a block chain system, wherein the inquiry request carries the item identifier and the cleaning record type, and the cleaning record of the item is stored in a block chain of the block chain 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 by the blockchain system based on the item identifier. According to the method and the device, the user can conveniently inquire the cleaning record of the article, and the information stored in the block chain system is difficult to tamper, so that the inquired cleaning record has high credibility.
Description
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for querying information based on a block chain.
Background
When a user enters a hotel, the user can pay more attention to the sanitation condition of the bedding in the hotel, and how to provide the cleaning record of the bedding for the user is important to prove that the bedding has no sanitation problem.
At present, the hotel generally regularly washs bedding articles and guarantees there is not sanitary problem, but hardly has the washing record that shows bedding articles to the user of convincing power, and the user often needs whether the bedding articles are clean of visual observation to this judgement hotel has washed bedding articles, and the user often can not convincing to the self judgement result, consequently, need provide an information inquiry method to urgent need for, make the user can inquire the washing record that has convincing power.
Disclosure of Invention
The embodiment of the application provides an information query method, an information query device, a terminal and a storage medium based on a block chain, and can solve the problem that a cleaning record with confidence can not be queried in the related technology. The technical scheme is as follows:
in one aspect, an information query method based on a block chain is provided, where the method includes:
acquiring an article identifier of an article;
sending an inquiry request to a block chain system, wherein the inquiry request carries the item identifier and the cleaning record type, and the cleaning record of the item is stored in a block chain of the block chain 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 by the blockchain system based on the item identifier.
In a possible implementation manner, the cleaning record is written into the block chain by a cleaning device, the first information is written into the block chain by a node device corresponding to an article manufacturer of the article, the second information is written into the block chain by a node device corresponding to an apparatus manufacturer of the cleaning device, the third information is written into the block chain by a node device corresponding to an article user of the article, and the fourth information is written into the block chain by a node device corresponding to an article cleaner of the article.
In one possible implementation, after obtaining the item identifier of the item, the method further includes:
sending a second query request to the blockchain system, wherein the second query request carries the item identifier and the item user type of the item;
and receiving the item user returned by the blockchain system based on the second query request.
In one possible implementation, after obtaining 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 the item identifier and the item cleaner type of the item;
and receiving the article washers returned by the blockchain system based on the third query request.
In one possible implementation, the fifth information is written by the article into the block chain, and the sixth information is written by the cleaning device into the block chain.
In one possible implementation, after obtaining 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 the item identifier and the position route type of the item;
receiving a location route of the item returned by the blockchain system based on the fourth query request, the location route including location information of the item at different times.
In one possible implementation, the cleaning record includes the article identifier, an equipment identifier of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
after receiving the cleaning record returned by the blockchain system based on the query request, the method further comprises:
acquiring the equipment identifier, the article identifier and the cleaning starting time from the cleaning record;
sending a fifth query request to the blockchain system, wherein the fifth query request carries the item identifier, the equipment identifier, the cleaning start time and the position information type;
receiving first position information and second position information returned by the block chain system based on the fifth query request, wherein the first position information is position information of the article at the cleaning start time, and the second position information is position information of the cleaning equipment at the cleaning start time;
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, the obtaining the item identifier of the item includes any one of:
scanning the graphic identification code on the article to obtain an article identification of the article;
and acquiring the item identification of the item input in the interface.
In a 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 block chain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining a current time, the positioning function is used for determining current location 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 block chain writing function is used for writing information into the block chain;
a second chip is embedded in the article, and the second chip has an equipment identification function, a time function, a positioning function, a public and private key management function and a block chain writing function; the device identification function is used for storing a 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 a public key and a private key corresponding to the cleaning device, and the block chain writing function is used for writing information into the block chain.
In one aspect, an apparatus for querying information based on a block chain is provided, the apparatus including:
the acquisition module is used for acquiring an article identifier of an article;
a sending module, configured to send an inquiry request to a blockchain system, where the inquiry request carries the item identifier and the type of the cleaning record, and a blockchain of the blockchain system stores a cleaning record of the item; a receiving module, configured to receive the cleaning record returned by the blockchain system based on the query request, where the cleaning 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;
cleaning node equipment corresponding to an equipment manufacturer of the equipment;
the node equipment corresponding to the article user of the article;
and the node equipment corresponds to the article washer of the article.
In one possible implementation, the following information is further stored in the block chain:
first information, wherein the first information comprises an item identifier of the item and a public key corresponding to the item;
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 comprising an equipment identity of the cleaning equipment, tax registration information of the item washer, and a name of the item washer.
In a possible implementation manner, the cleaning record is written into the block chain by a cleaning device, the first information is written into the block chain by a node device corresponding to an article manufacturer of the article, the second information is written into the block chain by a node device corresponding to an apparatus manufacturer of the cleaning device, the third information is written into the block chain by a node device corresponding to an article user of the article, and the fourth information is written into the block chain by a node device corresponding to an article cleaner of the article.
In a possible implementation manner, a storage form of the first information in the block chain is a first key-value pair, a key name of the first key-value pair is an article identifier of the article, and a key value is a public key corresponding to the article;
the storage form of the second information in the block chain is a second key value pair, the key name of the second key value pair is the equipment identification of the cleaning equipment, and the key value is a public key corresponding to the cleaning equipment;
the third information is stored in the block chain in the form of a third key value pair, the key name of the third key value pair is the item identifier of the item and the tax registration information of the item user, and the key value is the item identifier of the item, the tax registration information of the item user and the name of the item user;
the storage form of the fourth information in the block chain is 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 a possible implementation manner, 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 and an item user type of the item;
the receiving module is further used for receiving the item user returned by the blockchain system based on the second query request.
In one possible implementation manner, 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 and an item cleaner type of the item;
the receiving module is further used for receiving the article washers returned by the blockchain system based on the third query request.
In one possible implementation, the following information is further stored in the block chain:
fifth information, the fifth information comprising an item identifier, time information, location information, and a private key signature of the item;
and sixth information, wherein the sixth information comprises equipment identification, time information, position information and a private key signature of the cleaning equipment.
In one possible implementation, the fifth information is written by the article into the block chain, and the sixth information is written by the cleaning device into the block chain.
In a possible implementation manner, the storage form of the fifth information in the block chain is a fifth key value pair, a key name of the fifth key value pair is an article identifier and time information of the article, and a key value is an article identifier, time information, location information, and a private key signature of the article;
the storage form of the sixth information in the block chain 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 a possible implementation manner, 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 article identifier, an equipment identifier of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
the device further comprises:
the acquisition module is further used for acquiring the equipment identifier, the article identifier 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 device 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;
a comparison module, configured to compare the first location information with the second location information to obtain a location comparison result, where the location comparison result is used to indicate whether the locations of the article and the cleaning device are the same when the article is cleaned.
In one possible implementation, the cleaning record includes the article identifier, an equipment identifier of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
the storage form of the cleaning record in the block chain is a seventh key value pair, the key name of the seventh key value pair is the equipment identifier, the cleaning start time and the cleaning duration of the cleaning equipment, and the key value is the cleaning record.
In one possible implementation, the obtaining module is configured to:
scanning the graphic identification code on the article to obtain an article identification of the article;
and acquiring the item identification of the item input in the interface.
In a 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 block chain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining a current time, the positioning function is used for determining current location 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 block chain writing function is used for writing information into the block chain;
a second chip is embedded in the article, and the second chip has an equipment identification function, a time function, a positioning function, a public and private key management function and a block chain writing function; the device identification function is used for storing a 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 a public key and a private key corresponding to the cleaning device, and the block chain writing function is used for writing information into the block chain.
In one aspect, a terminal is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the operations performed by the above block chain-based information query method.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the operations performed by the above block chain-based information query method.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
and sending the article identifier to the node equipment in the block chain system, so that the node equipment returns the cleaning record after acquiring the cleaning record of the article from the block chain according to the article identifier. The method enables a user to conveniently inquire the cleaning record of the article, and the inquired cleaning record has high credibility because the information stored in the block chain system is difficult to be falsified.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an information query system based on a block chain according to an embodiment of the present application;
fig. 2 is a flowchart of an information query method based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a blockchain according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a process for generating a block according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of data in a blockchain according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an information query apparatus based on a block chain 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
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below:
blockchain (Blockchain): the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The block chain, which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. Each tile contains a timestamp and a link to the previous tile. In a narrow sense, a blockchain is a distributed ledger of data blocks assembled in a sequential manner into a chain data structure in chronological order and cryptographically secured as non-falsifiable and non-forgeable, i.e. the data in the blockchain will be irreversible once recorded.
Consensus mechanism (Consensus mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
Smart contract (Smart contract): is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Each node in the blockchain system can automatically execute a contract program according to a specific condition, can operate data stored in the chain, and is an important way for a user to interact with the blockchain and realize business logic by using the blockchain. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts, which allows for trusted transactions that are traceable and irreversible without third parties.
Public Key (Public Key) and Private Key (Private Key): the 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 required, and a decryptor can obtain the key pair through various channels; the private key is an undisclosed part, and only the key held by the encryption party needs to be kept secret. Public keys are typically used to encrypt data, verify digital signatures, and the like. By means of such an algorithm it is ensured that the resulting pair of keys is unique, which pair of keys, if one of the keys is used to encrypt a piece of data, must be decrypted with the other key, e.g. encrypting data with a public key, must be decrypted with the corresponding private key, if encrypted with a private key, must also be decrypted with the corresponding public key, otherwise the decryption will not succeed.
Fig. 1 is a schematic diagram of an information query system based on a blockchain according to an embodiment of the present disclosure, and referring to fig. 1, the system includes a terminal 110, a blockchain system 120, an article 130, and a cleaning apparatus 140. The terminal 110 and the blockchain system 120 establish a communication connection through a wired or wireless network, the article 130 and the blockchain system 120 establish a communication connection through a wired or wireless network, and the cleaning apparatus 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 article manufacturer of an article), a second node device 122 (a node device corresponding to an apparatus manufacturer of a cleaning apparatus), a third node device 123 (a node device corresponding to an article user), and a fourth node device 124 (a node device corresponding to an article cleaner). The plurality of node devices are configured with the same blockchain.
The terminal 110 can 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 manner, the terminal 110 may send a query request to any node device in the blockchain system 120, and receive information returned by the node device based on the query request.
Terminal 110 may be a user device such as a mobile phone or a tablet computer, any node device in blockchain system 120 may be a server, and article 130 and cleaning device 140 may be embedded with chips to implement various functions.
The embodiment of the application provides a specific application scenario of an information query method based on a block chain. In this application scenario, the article may be a bedding article, the cleaning device may be a bedding article cleaning device, such as a washing machine, the article manufacturer may be a bedding article manufacturer, the cleaning device manufacturer may be a bedding article cleaning device manufacturer, the article user may be a hotel, and the article cleaning device may be a bedding article cleaning company. The information query method based on the block chain 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, scans the graphic identification code of the bedding through the terminal to acquire the article identification of the bedding (or the user directly inputs the article identification of the bedding on the terminal), then the terminal sends a query request to the block chain system according to the article identification, receives the cleaning record returned by the block chain system based on the query request, and displays the cleaning record after the cleaning record is acquired.
Fig. 2 is a flowchart of an information query method based on a block chain according to an embodiment of the present application. Referring to fig. 2, the method may include:
201. a first node device in the block chain system writes first information into the block chain, wherein the first information comprises an item identifier of an item and a public key corresponding to the item.
Information is written into the block chain, that is, the information is stored in the block chain, which may also be referred to as an 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, and the first chip may have an article identification function, a time function, a location function, a public-private key management function, and a block chain 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 block chain writing function is used for writing information into a block chain. 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 corresponding public key of the item may be a public key managed by the chip.
In one possible implementation manner, the first node device may write the first information into the blockchain after the article manufacturer produces the article, and thus the blockchain may store the first information. The first node device may write first information into the blockchain based on the intelligent contract. For example, when the first node device initiates a uplink request for the first information, an intelligent contract may be triggered, so that other node devices in the block chain system verify the device initiating the uplink request, for example, verify whether the device is a node device corresponding to an article manufacturer, and after the verification is passed, execute the step of writing the first information into the block chain. The reliability of the first information can be ensured by ensuring that only the manufacturer of the article can write the first information through the intelligent contract.
The first node device may store the first information into the blockchain based on a consensus mechanism. Specifically, data sharing can be performed between node devices in the blockchain system, each node device can receive input information (in this step, the input information may be first information) during normal operation, and the shared data in the blockchain system is maintained based on the received input information. In order to ensure information intercommunication in the blockchain system, information connection can exist between each node device in the blockchain system, and information transmission can be carried out between the node devices 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 in all the node devices in the blockchain system are consistent.
Each node device in the blockchain system has a corresponding node identifier, and each node device in the blockchain system can store the node identifiers of other node devices in the blockchain system, so that the generated block can be broadcast to other node devices in the blockchain system according to the node identifiers of 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) address and any other information that can be used to identify the node device, and table 1 only illustrates the IP address as an example.
TABLE 1
Node device name | Node identification |
Node device 1 | 117.114.151.174 |
Node device 2 | 117.116.189.145 |
… | … |
Node device N | 119.123.789.258 |
Each node device in the blockchain system stores one identical blockchain. The block chain is composed of a plurality of blocks, referring to fig. 3, the block chain is composed of a plurality of blocks, the starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp 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 parent 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 parent 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 is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 4, when the node device where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in the memory pool, and the hash tree for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node equipment where the block chain is located respectively sends the newly generated blocks to other node equipment in the block chain system where the newly generated blocks are located according to the node identifiers of the other node equipment in the block chain system, the newly generated blocks are verified by the other node equipment, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification 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 disclosure, and as shown in fig. 5, a storage form of first information in the blockchain may be a first Key-Value pair, where 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. And writing second information into the block chain by second node equipment in the block chain system, wherein the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment.
The second node device may be a node device corresponding to a device manufacturer of the cleaning device. The cleaning device can be embedded with a second chip, and the second chip can have a device identification function, a time function, a positioning function, a public and private key management function and a block chain writing function. The device identification function is used for storing a 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 a public key and a private key corresponding to the cleaning device, and the block chain writing function is used for writing information into a block chain. 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 manner, the second node device may write the second information into the blockchain after the device manufacturer produces the cleaning device, so that the blockchain may store the second information. The second node device may write second information into the blockchain based on the intelligent contract. For example, when the second node device initiates an uplink request for the second information, the intelligent contract may be triggered, so that other node devices in the block chain system verify the device initiating the uplink request, for example, verify whether the device is a node device corresponding to a device manufacturer, and after the verification is passed, execute the step of writing the second information into the block chain. The reliability of the second information can be ensured by ensuring that only the device manufacturer of the cleaning device can write the second information through the intelligent contract.
The step of writing the second information into the block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 6, fig. 6 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 6, a storage form of the second information in the blockchain is a second key value pair, 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. The third node device in the blockchain system writes third information into the blockchain, wherein the third information comprises the item identification of the item, the tax registration information of the item user and the name of the item user.
Wherein, the third node device can 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 the third information into the blockchain after the item consumer purchases the item, and thus the blockchain may store the third information. The third node device may write third information into the blockchain based on the intelligent contract. For example, when the third node device initiates a uplink request for the third information, the 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 initiating the uplink request, for example, verify whether the device is a node device corresponding to an item user, and after the verification passes, execute the step of writing the third information into the blockchain. The article identification of the article in the third information is ensured to exist through the intelligent contract, and meanwhile, only the article user of the article can write the third information, so that the reliability of the third information can be ensured.
The step of writing the third information into the block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 7, fig. 7 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 7, the third information is stored in the blockchain in the form of a third key value pair, a key name of the third key value pair is an item identifier of the item and tax registration information of a user of the item, and a key value is an item identifier of the item, tax registration information of the user of the item and a name of the user of the item.
204. And writing fourth information into the block chain by fourth node equipment in the block chain system, wherein the fourth information comprises the equipment identification of the cleaning equipment, the tax registration information of the article cleaner and the name of the article cleaner.
The fourth node device may be a node device corresponding to an article washer of the article.
In a possible implementation manner, the fourth node device may write the fourth information into the blockchain after the item cleaner purchases the cleaning device, so that the blockchain may store the fourth information. The fourth node device may write fourth information into the block chain based on the intelligent contract. For example, when the fourth node device initiates a uplink request for the fourth information, the 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 initiating the uplink request, for example, verify whether the device is a node device corresponding to a device user, and after the verification is passed, execute the step of writing the fourth information into the blockchain. The device identification of the cleaning device in the fourth information is ensured to exist through an intelligent contract, and meanwhile, the fourth information can be ensured to be written only by a device user of the cleaning device, so that the reliability of the fourth information can be ensured.
The step of writing the fourth information into the block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 8, fig. 8 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 8, the fourth information is stored in the blockchain in the form of a fourth key value pair, a key name of the fourth key value pair is an equipment identifier of the cleaning equipment and tax registration information of the item cleaner, and a key value is an equipment identifier of the cleaning equipment, tax registration information of the item cleaner and a name of the item cleaner.
205. And writing fifth information into the block chain by the article through any node equipment in the block chain system, wherein the fifth information comprises article identification, time information, position information and private key signature of the article.
The position information may include GPS (Global Positioning System) information and altitude information, among others.
In a possible implementation manner, the article may write the fifth information into the blockchain at regular time by any node device in the blockchain system, so that the blockchain may store the fifth information. The node device may write fifth information into the block chain based on the intelligent contract. Specifically, when the node device initiates a link request for the fifth information, an intelligent contract may be triggered, so that other node devices in the block chain 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 block chain, verify the private key signature by using the public key corresponding to the article, and after the verification is passed, execute the step of writing the fifth information into the block chain. And the article identification in the fifth information is ensured to exist and the signature is correct through the intelligent contract, so that the reliability of the fifth information can be ensured.
The step of writing the fifth information into the block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 9, fig. 9 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 9, the fifth information is stored in the blockchain in the form of a fifth key pair, a key name of the fifth key pair is the item identifier and the time information of the item, and a key is the item identifier, the time information, the location information, and the private key signature of the item.
206. And the cleaning equipment writes sixth information into the block chain through any node equipment in the block chain system, wherein the sixth information comprises equipment identification, time information, position information and a private key signature of the cleaning equipment.
In a possible implementation manner, the cleaning device may write the sixth information into the blockchain at regular time through any node device in the blockchain system, so that the blockchain may store the sixth information. The node device may write sixth information into the block chain based on the intelligent contract. For example, when the node device initiates a uplink request for sixth information, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether an device identifier of the cleaning device in the sixth information exists, and verify a private key signature in the sixth information, for example, based on the device identifier of the cleaning device, obtain a public key corresponding to the cleaning device from the blockchain, verify the private key signature by using the public key corresponding to the cleaning device, and after the verification is passed, perform a step of writing the sixth information into the blockchain. And the device identification in the sixth information is ensured to exist and the signature is correct through the intelligent contract, so that the reliability of the sixth information can be ensured.
The step of writing the sixth information into the block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 10, fig. 10 is a schematic structural diagram 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 the form of a sixth key value pair, a key name of the sixth key value pair is the device identifier and the 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 cleaning records of articles into the blockchain through any node device in the blockchain system, wherein the cleaning records comprise article identifiers of the articles, device identifiers of the cleaning device, cleaning start time, cleaning duration and private key signatures.
In one possible implementation, the cleaning device may write a cleaning record into the blockchain through any node device in the blockchain system when starting to clean the article, so that the blockchain can store the cleaning record. The node device may write a flush record into the blockchain based on the intelligent contract. Specifically, when the node device initiates a cochain request for a cleaning record, an intelligent contract may be triggered, so that other node devices in the blockchain system check whether an equipment 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 equipment identifier of the cleaning device, obtain a public key corresponding to the cleaning device from the blockchain, verify the private key signature by using the public key corresponding to the cleaning device, and after the verification is passed, perform a step of writing the cleaning record into the blockchain. 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 block chain is the same as the process of writing the first information into the block chain in step 201, and is not described herein again. Referring to fig. 11, fig. 11 is a schematic structural diagram of data in a blockchain according to an embodiment of the present application, and as shown in fig. 11, the storage form of the cleansing record in the blockchain is a seventh key pair, a key name of the seventh key pair is a device identifier, a cleansing start time, and a cleansing duration of a cleansing device, and a key value is the cleansing record.
It should be noted that, step 201 to step 207 are steps of writing information into the block chain, and step 201 to step 207 are optional steps, which are steps that need to be executed before the terminal performs information query, and are not required to be executed each time the terminal performs information query, so that it is ensured that the above information is already stored in the block chain of the block chain system when performing information query.
208. The terminal obtains an article identifier of the article.
In a possible implementation manner, the terminal may perform the step of acquiring 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 the first button to trigger the first query instruction.
The terminal obtains the item identifier of the item, including but not limited to the following two possible implementations:
in the first mode, the graphic identification code on the article is scanned 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.
And the second mode is to obtain the item identification of the item input in the interface.
The terminal can display an article identification input interface, a user can view the article identification of the article from the label of the article, and then the article identification of the article is input in the article identification input interface, so that the terminal can acquire the input article identification.
209. And the terminal sends an inquiry request to the block chain system, wherein the inquiry request carries the item identifier and the cleaning record type, and the cleaning record of the item is stored in the block chain of the block chain system.
The type of the cleaning record means that the type of the information to be inquired is the cleaning record. The type of the cleaning record can be defaulted by the terminal, or the terminal can determine according to user operation, for example, after the user clicks a first button and triggers a first query instruction, the terminal can determine that the information that the user wants to query is the cleaning record of the article.
After obtaining the article identifier, the terminal may carry the article identifier and the cleaning record type in an inquiry request and send the inquiry request to the blockchain system, and specifically, the terminal may send the inquiry request to any node device in the blockchain system, where the inquiry request is used to inquire the cleaning record of the article.
210. After receiving the query request, the blockchain system acquires a cleaning record of the article from the blockchain based on the article identifier.
The block chain system may query whether a cleaning record corresponding to the item identifier is stored in the block chain based on the item identifier of the item, for example, query whether a cleaning record including the item identifier is stored in the block chain, and if so, acquire the cleaning record as the cleaning record of the item. The cleaning record may have one or more pieces. It is understood that step 210 may be performed by any node device in the blockchain system.
211. The blockchain system returns a wash record for 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 there are multiple cleaning records, the blockchain system may sort the multiple cleaning records according to the cleaning start time in each cleaning record and return the multiple cleaning records to the terminal, and the blockchain system may return all the multiple cleaning records to the terminal, may select a cleaning record whose cleaning start time is closest to the current time and return the cleaning record to the terminal, and may select a cleaning record within a recent period of time and return the cleaning record to the terminal. It is understood that this step 211 can be performed by any node device in the blockchain system.
212. And the terminal receives the cleaning record returned by the block chain system based on the query request.
After receiving the cleaning record, the terminal can display the cleaning record, so that the user can see all the cleaning records of the article.
In addition to querying the cleaning record of the article, the scheme can also provide a function of querying other information of the article. For the sake of distinction, which will be referred to as a first query request, in one possible implementation, after the terminal obtains the item identifier of the item, the method further includes: sending a second query request to the blockchain system, wherein the second query request carries the item identifier and the item user type of the item; and receiving the article user returned by the blockchain system based on the second query request, wherein the article user is acquired from the blockchain by the blockchain system based on the article identifier.
Wherein the type of the commodity user is used for indicating that the type of the information to be inquired is the commodity user. In a possible implementation manner, the terminal may perform the step of obtaining the item identifier of the item when receiving a second query instruction, where the second query instruction is used for querying an item user of the item. The second query instruction may be triggered by a user operation, for example, an application installed on the terminal may be further configured to obtain an item user of the item in addition to the washing record of the item, a second button may be further provided in an interface of the application, and the user may click the second button to trigger the second query instruction, where the second query instruction is used to query the item user of the item. The terminal may carry the item identifier and the item user type of the item in the second query request and send the second query request to the blockchain system, and after receiving the second query request, the blockchain system may obtain the item user of the item from the blockchain based on the item identifier, and return the item user of the item to the terminal based on the second query 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, if so, obtain at least one of a name of an item user and tax registration information in the third information, and return the at least one of the name of the item user and the tax registration information to the terminal.
In one possible implementation, after obtaining 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 the item identifier and the item cleaner type of the item; and receiving the article washers returned by the blockchain system based on the third query request, wherein the article washers are acquired from the blockchain by the blockchain system based on the article identifiers.
Wherein the item washer type is used to indicate that the type of the information to be queried is an item washer. In one possible implementation, the terminal may perform the step of obtaining the item identifier of the item upon receiving a third query instruction for querying an item washer of the item. The third query instruction may be triggered by a user operation, for example, an application installed on the terminal may be used to obtain an item cleaner of the item in addition to the cleaning record of the item, and a third button may be provided in an interface of the application, and the user may click the third button to trigger the third query instruction, which is used to query the item cleaner of the item. The terminal may carry the article identifier and the article washer type of the article in a third query request and send the third query request to the blockchain system, and after receiving the third query request, the blockchain system may obtain the article washer of the article from the blockchain based on the article identifier, and return the article washer of the article to the terminal based on the third query request. For example, the blockchain system may first query a cleaning record including the item identifier based on the item identifier, acquire an equipment identifier of the cleaning equipment from the cleaning record, then query whether fourth information including the equipment identifier is stored in the blockchain based on the equipment identifier, if so, acquire at least one of a name of an item cleaner and tax registration information in the fourth information, and return at least one of the name of the item cleaner and the tax registration information to the terminal.
In one possible implementation, after obtaining 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 the item identifier and the position route type of the item; receiving a location route of the item returned by the blockchain system based on the fourth query request, wherein the location route comprises location information of the item at different times.
The location route type is used for indicating that the type of the information to be inquired is a location route. In one possible implementation manner, the terminal may perform the step of acquiring the item identifier of the item when receiving a fourth query instruction, where the fourth query instruction is used for querying a location route of the item. The fourth query instruction may be triggered by a user operation, for example, an application installed on the terminal may be further configured to obtain a location route of the item in addition to the washing record of the item, for example, a fourth button may be provided in an interface of the application, and the user may click the fourth button to trigger the fourth query instruction. The terminal may carry the item identifier and the location route type of the item in a fourth query request and send the fourth query request to the blockchain system, and after receiving the fourth query request, the blockchain system may obtain the location route of the item from the blockchain based on the item identifier, 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 a blockchain stores fifth information including the item identifier based on the item identifier, and if so, determine the location route of the item according to the location information and the time information in the fifth information, for example, if a plurality of pieces of fifth information including the item identifier are stored in the blockchain system, determine the order of the plurality of pieces of location information according to the order of the plurality of pieces of time information in the plurality of pieces of fifth information, and constitute the location route of the item.
In one possible implementation, after receiving the cleansing 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 starting time from the cleaning record; sending a fifth query request to the blockchain system, wherein the fifth query request carries the item identifier, the equipment identifier, the cleaning start time and the position information type; receiving first position information and second position information returned by the block chain system based on the fifth query request, wherein the first position information is position information of the article at the cleaning starting time, and the second position information is 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 a possible implementation manner, the terminal may perform the step of acquiring the article identifier of the article when receiving a fifth query instruction, where the fifth query instruction is used to query the position information of the article and the cleaning device when the article is cleaned by the cleaning device. The fifth query instruction may be triggered by a user operation, for example, an application installed on the terminal may be used to obtain, in addition to the 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, and the user may click the fifth button to trigger the fifth query instruction. The terminal may carry the device identifier, the article identifier, the cleaning start time, and the position information type in a fifth query request and send the fifth query request to the blockchain system, after receiving the fifth query request, the blockchain system may obtain first position information of the article at the cleaning start time from the blockchain based on the article identifier and the cleaning start time, obtain second position information of the cleaning device at the cleaning start time from the blockchain based on the device identifier and the cleaning start 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 a blockchain stores fifth information including the item identifier and the cleaning start time based on the item identifier, if so, acquire position information in the fifth information as first position information, query whether a blockchain system stores sixth information including the equipment identifier and the cleaning start time based on the equipment identifier, if so, acquire position information in the sixth information as second position information, and return the first position information and the second position information to the terminal.
According to the method provided by the embodiment of the application, the node equipment sends the article identifier to the node equipment in the block chain system, so that the node equipment returns the cleaning record after acquiring the cleaning record of the article from the block chain according to the article identifier. The method enables a user to conveniently inquire the cleaning record of the article, and the inquired cleaning record has high credibility because the information stored in the block chain system is difficult to be falsified.
Fig. 12 is a schematic structural diagram of an information query apparatus based on a block chain according to an embodiment of the present application. Referring to fig. 12, the apparatus includes:
an obtaining module 1201, configured to obtain an article identifier of an article;
a sending module 1202, configured to send an inquiry request to a blockchain system, where the inquiry request carries the item identifier and the type of the cleaning record, and a cleaning record of the item is stored in a blockchain of the blockchain system;
a receiving module 1203, configured to receive the cleaning record returned by the blockchain system based on the query request, where the cleaning record is obtained from the blockchain by 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;
cleaning node equipment corresponding to an equipment manufacturer of the equipment;
the node equipment corresponding to the article user of the article;
the node equipment corresponding to the article washer of the article.
In one possible implementation, the following information is further stored in the blockchain:
first information, wherein the first information comprises an item identifier of the item and a public key corresponding to the item;
the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information, the third information includes the article identification of the article, the tax registration information of the article user and the name of the article user;
fourth information including an equipment identification of the washing equipment, tax registration information of the item washer, and a name of the item washer.
In a possible implementation manner, the cleaning record is written into the block chain by the cleaning device, the first information is written into the block chain by the node device corresponding to the article manufacturer of the article, the second information is written into the block chain by the node device corresponding to the apparatus manufacturer of the cleaning device, the third information is written into the block chain by the node device corresponding to the article user of the article, and the fourth information is written into the block chain by the node device corresponding to the article cleaner of the article.
In a possible implementation manner, the storage form of the first information in the block chain is a first key-value pair, a key name of the first key-value pair is an article identifier of the article, and a key value is a public key corresponding to the article;
the storage form of the second information in the block chain is a second key value pair, the key name of the second key value pair is the equipment identification of the cleaning equipment, and the key value is a public key corresponding to the cleaning equipment;
the third information is stored in the block chain in the form of a third key value pair, the key name of the third key value pair is the item identifier of the item and the tax registration information of the item user, and the key value is the item identifier 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 block chain in the form of 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 washer, and the key value is the equipment identifier of the cleaning equipment, the tax registration information of the article washer and the name of the article washer.
In a possible implementation manner, the sending module 1202 is further configured to send a second query request to the blockchain system, where the second query request carries the item identifier and the item user type of the item;
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, where the third query request carries the item identifier and the item cleaner type of the item;
the receiving module 1203 is further configured to receive the article washer returned by the blockchain system based on the third query request.
In one possible implementation, the following information is further stored in the blockchain:
fifth information, the fifth information including an item identifier, time information, location information, and a private key signature of the item;
and sixth information, wherein the sixth information comprises equipment identification, time information, position information and a private key signature of the cleaning equipment.
In one possible implementation, the fifth information is written into the blockchain by the article, and the sixth information is written into the blockchain by the cleaning device.
In one possible implementation manner, the fifth information is stored in the block chain in the form of a fifth key-value pair, a key name of the fifth key-value pair is the item identifier and the time information of the item, and a key value is the item identifier, the time information, the location information, and the private key signature of the item;
the storage form of the sixth information in the block chain 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 a possible implementation manner, the sending module 1202 is further configured to send a fourth query request to the blockchain system, where the fourth query request carries the item identifier 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 identifier, an equipment identifier of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
the device also includes:
the obtaining module 1201 is further configured to obtain the device identifier, the article 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 identifier, an equipment identifier of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
the storage form of the cleaning record in the block chain is a seventh key value pair, the key name of the seventh key value pair is the equipment identifier, the cleaning start 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;
and acquiring the item identification of the item input in the interface.
In a 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 block chain writing function, the article identification function is used for storing an article identification of the article, the time function is used for determining a current time, the positioning function is used for determining current location 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 block chain writing function is used for writing information into the block chain;
the article is embedded with a second chip, and the second chip has an equipment identification function, a time function, a positioning function, a public and private key management function and a block chain writing function; the device identification function is used for storing a 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 a public key and a private key corresponding to the cleaning device, and the block chain writing function is used for writing information into the block chain.
It should be noted that: in the above-mentioned embodiment, when querying information based on a block chain, the block chain-based information querying apparatus is exemplified by only the division of the above-mentioned functional modules, and in practical applications, the above-mentioned function distribution may be completed 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 above-mentioned functions. In addition, the block chain-based information query apparatus provided in the above embodiments and the block chain-based information query method embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
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 video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, 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. The processor 1301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The 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 herein.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, display 1305, camera 1306, audio circuitry 1307, positioning component 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and 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, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation 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 are not limited in this application.
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 screen 1305 is a touch display screen, the display screen 1305 also has the ability to capture touch signals on or over the surface of the display screen 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, display 1305 may be one, providing the front panel of terminal 1300; in other embodiments, display 1305 may be at least two, either on different surfaces of terminal 1300 or in a folded design; in still other embodiments, display 1305 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1300. Even further, the display 1305 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, 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 realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for positioning the current geographic position of the terminal 1300 for implementing navigation or LBS (Location Based Service). The positioning component 1308 may be a positioning component based on a GPS (global positioning System) of the united states, a beidou System of china, a graves System of russia, or a galileo System of the european union.
Power supply 1309 is used to provide power to various components in terminal 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 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, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitude of acceleration 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. The processor 1301 may control the display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to acquire a 3D motion of the user with respect to the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1313 may be disposed on a side bezel of terminal 1300 and/or underlying display 1305. When the pressure sensor 1313 is disposed on the side frame of the terminal 1300, a user's holding signal to the terminal 1300 may be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the holding signal acquired by the pressure sensor 1313. When the pressure sensor 1313 is disposed at a lower layer of the display screen 1305, the processor 1301 controls an operability control on the UI interface according to a pressure operation of the user on the display screen 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user, and the processor 1301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the identity of the user according to the collected fingerprint. When the identity of the user is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1314 may be disposed on the front, back, or side of the terminal 1300. When a physical button or vendor Logo is provided on the terminal 1300, the fingerprint sensor 1314 may be integrated with the physical button or vendor Logo.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 may control the display brightness of the display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the display screen 1305 is reduced. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front panel of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the processor 1301 controls the display 1305 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually decreases; the display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 is gradually increasing.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one instruction, at least one program, a set of codes, or a set of instructions, which may be loaded and executed by a processor to perform the block chain based information query method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random-Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an 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 instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
Claims (10)
1. An information query method based on a block chain is characterized in that the method comprises the following steps:
acquiring an article identifier of an article;
sending an inquiry request to a block chain system, wherein the inquiry request carries the item identifier and the cleaning record type, and the cleaning record of the item is stored in a block chain of the block chain 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 by the blockchain system based on the item identifier.
2. The method of claim 1, wherein the blockchain system comprises the following node devices:
node equipment corresponding to an article manufacturer of the article;
cleaning node equipment corresponding to an equipment manufacturer of the equipment;
the node equipment corresponding to the article user of the article;
and the node equipment corresponds to the article washer of the article.
3. The method of claim 1, wherein the blockchain further stores the following information:
first information, wherein the first information comprises an item identifier of the item and a public key corresponding to the item;
the second information comprises an equipment identifier of the cleaning equipment and a public key corresponding to the cleaning equipment;
third information, the third information includes the article identification of the article, tax registration information of the article user and the name of the article user;
fourth information comprising an equipment identity of the cleaning equipment, tax registration information of an item washer, and a name of the item washer.
4. The method according to claim 3, wherein the first information is stored in the blockchain in a form of 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 block chain is a second key value pair, the key name of the second key value pair is the equipment identification of the cleaning equipment, and the key value is a public key corresponding to the cleaning equipment;
the third information is stored in the block chain in the form of a third key value pair, the key name of the third key value pair is the item identifier of the item and the tax registration information of the item user, and the key value is the item identifier of the item, the tax registration information of the item user and the name of the item user;
the storage form of the fourth information in the block chain is 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 blockchain further stores the following information:
fifth information, the fifth information comprising an item identifier, time information, location information, and a private key signature of the item;
and sixth information, wherein the sixth information comprises equipment identification, time information, position information and a private key signature of the cleaning equipment.
6. The method according to claim 5, wherein the fifth information is stored in the block chain in the form of 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;
the storage form of the sixth information in the block chain 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.
7. The method of claim 1, wherein the cleaning record comprises the item identification, an equipment identification of the cleaning equipment, a cleaning start time, a cleaning duration, and a private key signature;
the storage form of the cleaning record in the block chain is a seventh key value pair, the key name of the seventh key value pair is the equipment identifier, the cleaning start time and the cleaning duration of the cleaning equipment, and the key value is the cleaning record.
8. An information query apparatus based on block chain, the apparatus comprising:
the acquisition module is used for acquiring an article identifier of an article;
a sending module, configured to send an inquiry request to a blockchain system, where the inquiry request carries the item identifier and the type of the cleaning record, and a blockchain of the blockchain system stores a cleaning record of the item;
a receiving module, configured to receive the cleaning record returned by the blockchain system based on the query request, where the cleaning record is obtained by the blockchain system from the blockchain based on the item identifier.
9. A terminal, characterized in that the terminal comprises a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the blockchain-based information query method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the blockchain based information query method according to any one of claims 1 to 7.
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 true CN110597868A (en) | 2019-12-20 |
CN110597868B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143889A (en) * | 2019-12-26 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Stimulant detection information management method, device and equipment based on block chain |
CN112286881A (en) * | 2020-10-28 | 2021-01-29 | 金蝶云科技有限公司 | Document authentication and tracing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160055197A1 (en) * | 2014-08-20 | 2016-02-25 | Embarcadero Technologies, Inc. | Tracking change data in a database |
US20170364454A1 (en) * | 2016-06-21 | 2017-12-21 | TmaxData Co., Ltd. | Method, apparatus, and computer program stored in computer readable medium for reading block in database system |
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 |
US20190123895A1 (en) * | 2017-10-23 | 2019-04-25 | Cygnetise Limited | Methods and apparatus for verifying a user transaction |
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 |
CN112602106A (en) * | 2018-08-23 | 2021-04-02 | 埃克索迪翁有限公司 | Block chain-based article generation method |
-
2019
- 2019-09-24 CN CN201910903615.8A patent/CN110597868B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160055197A1 (en) * | 2014-08-20 | 2016-02-25 | Embarcadero Technologies, Inc. | Tracking change data in a database |
US20170364454A1 (en) * | 2016-06-21 | 2017-12-21 | TmaxData Co., Ltd. | Method, apparatus, and computer program stored in computer readable medium for reading block in database system |
US20190123895A1 (en) * | 2017-10-23 | 2019-04-25 | Cygnetise Limited | Methods and apparatus for verifying a user transaction |
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 |
CN112602106A (en) * | 2018-08-23 | 2021-04-02 | 埃克索迪翁有限公司 | Block chain-based article generation method |
CN109583956A (en) * | 2018-11-30 | 2019-04-05 | 众安信息技术服务有限公司 | The method and device of barter based on block chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143889A (en) * | 2019-12-26 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Stimulant detection information management method, device and equipment based on block chain |
CN112286881A (en) * | 2020-10-28 | 2021-01-29 | 金蝶云科技有限公司 | Document authentication and tracing method and device |
CN112286881B (en) * | 2020-10-28 | 2024-04-05 | 金蝶云科技有限公司 | Document authentication tracing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110597868B (en) | 2023-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110687821B (en) | Intelligent home control system and method based on block chain | |
CN108614878B (en) | Protocol data management method, device, storage medium and system | |
CN111245745B (en) | Message sending method, device, node equipment and storage medium | |
CN111340482B (en) | Conflict detection method, device, node equipment and storage medium | |
CN110602206A (en) | Data sharing method and device based on block chain and storage medium | |
CN111080443B (en) | Block chain-based service processing method, device, equipment and storage medium | |
CN110597924B (en) | Block chain-based user identification processing method, device, equipment and storage medium | |
CN111339086A (en) | Block processing method, and data query method and device based on block chain | |
CN110826103B (en) | Method, device, equipment and storage medium for processing document authority based on blockchain | |
CN110555780B (en) | Insurance data processing method, device and equipment based on block chain and storage medium | |
CN110690999B (en) | Bandwidth allocation method, device and equipment based on block chain and storage medium | |
CN111339181B (en) | Block storage method, block storage device, node equipment and storage medium | |
CN111241115B (en) | Data synchronization method, device, equipment and storage medium | |
CN110365501B (en) | Method and device for group joining processing based on graphic code | |
CN111193702B (en) | Method and device for data encryption transmission | |
CN110677262B (en) | Information notarization method, device and system based on blockchain | |
CN110597868B (en) | Information query method, device, terminal and storage medium based on block chain | |
CN111901283B (en) | Resource transfer method, device, terminal and storage medium | |
CN111212074A (en) | Qualification determination method, device, equipment and storage medium based on block chain | |
CN111145034A (en) | Block chain-based social security management method, device and system and storage medium | |
CN110597840A (en) | Partner relationship establishing method, device, equipment and storage medium based on block chain | |
CN111198922A (en) | Game resource management method and device based on block chain | |
CN110727894A (en) | Target material setting method, device, equipment and storage medium | |
CN111327427B (en) | Method, device, node equipment, system and storage medium for submitting alternative blocks | |
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 |