Information processing method and device

By sending visiting user information in the visitor management system to the blockchain node and storing it, the problem of easy loss of information stored by the database server is solved, and the persistent storage and traceability of information is realized.

CN111291111BActive Publication Date: 2025-02-21BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201811485137.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-06
Publication Date
2025-02-21
Estimated Expiration
2038-12-06

AI Technical Summary

Technical Problem

In the existing visitor registration management system, the visit-related information stored in the database server is easily lost, resulting in other users being unable to trace back to the visit-related information.

Method used

By sending the basic information and reservation codes of visiting users to the blockchain node, blocks are generated and stored to ensure that information is not lost, and the hash value of the block is associated with the basic information and reservation codes in the database server. Enable other users to trace relevant information.

Benefits of technology

It realizes the persistent storage of visit-related information, prevents information loss, and provides a traceability mechanism to ensure the integrity and reliability of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111291111B_ABST
    Figure CN111291111B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an information processing method and device, the method comprising: obtaining basic information of a visiting user, generating a first appointment code according to the basic information, and sending the basic information and the first appointment code to a blockchain node; obtaining a first hash value of a first block from the blockchain node, the first block including the basic information and the first appointment code, and sending the first hash value, the basic information and the first appointment code to a database server, so that the database server stores the first hash value, the basic information and the first appointment code in association. The embodiment of the present application can prevent visit-related information from being lost, and other users can trace back visit-related information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of blockchain technology, and in particular, to a method and device for processing information. Background Art

[0002] Visitor registration management system is a practical need of various enterprises and institutions. It is mainly to better manage the visitor records of office buildings, provide enterprises with an orderly management platform, and prevent unnecessary troubles caused by the infiltration of some non-company outsiders. The currently widely used visitor management system is mainly composed of multiple terminals, application servers and database servers, and the specific business process is divided into two parts: appointment and registration.

[0003] During the visitor reservation phase, the application server will obtain the visitor's basic information and reservation code, which are stored in the database server. During the visitor's visit phase, the application server will obtain the visitor's registration information, which is also stored in the database server. However, the above visit-related information stored in the database server is easily lost, making it impossible for other users to trace the visit-related information. Summary of the invention

[0004] The embodiment of the present invention provides an information processing method and device, so that the information related to the visit will not be lost, and other users can trace the information related to the visit.

[0005] In a first aspect, an embodiment of the present application provides a method for processing information, including:

[0006] Obtaining basic information of the visiting user, and generating a first reservation code according to the basic information;

[0007] Sending the basic information and the first appointment code to a blockchain node;

[0008] Acquire a first hash value of a first block from the blockchain node, where the first block includes the basic information and the first appointment code;

[0009] The first Hash value, the basic information and the first appointment code are sent to a database server, so that the database server stores the first Hash value, the basic information and the first appointment code in association with each other.

[0010] In a possible design, after generating the first appointment code according to the basic information, the method further includes:

[0011] Generate a second hash value according to the basic information and the first appointment code;

[0012] Sending the second hash value to the blockchain node;

[0013] Correspondingly, the first block also includes the second hash value.

[0014] In one possible design, the method further includes:

[0015] Obtaining registration information of the visiting user;

[0016] Verify the registration information.

[0017] In one possible design, if the registration information is verified, the registration information is sent to the blockchain node;

[0018] Obtaining a third hash value of a second block from the blockchain node, where the second block includes the registration information;

[0019] The registration information and the third Hash value are sent to the database server, so that the database server associates and stores the third Hash value with the registration information.

[0020] In one possible design, it also includes;

[0021] Generate a fourth Hash value according to the registration information;

[0022] Sending the fourth hash value to the blockchain node;

[0023] Correspondingly, the second block also includes the fourth hash value.

[0024] In one possible design, the method further includes:

[0025] Obtaining a second reservation code of the visiting user;

[0026] The second reservation code is verified.

[0027] In a second aspect, an embodiment of the present application provides a method for processing user information, including:

[0028] Acquire basic information and a first reservation code of the visiting user from the application server, where the first reservation code is generated by the application server according to the basic information;

[0029] Generate a first block according to the basic information and the first reservation code;

[0030] Sending a first hash value of the first block to the application server.

[0031] In one possible design, it also includes:

[0032] Acquire a second Hash value from the application server, where the second Hash value is a Hash value generated by the application server according to the basic information and the first reservation code;

[0033] The step of generating the first block according to the basic information and the first reservation code includes:

[0034] A first block is generated according to the basic information, the first reservation code and the second hash value.

[0035] In one possible design, it also includes:

[0036] Obtaining registration information of a visiting user from the application server;

[0037] generating a second block according to the registration information;

[0038] Sending a third hash value of the second block to the application server.

[0039] In one possible design, it also includes:

[0040] acquiring a fourth Hash value from the application server, where the fourth Hash value is a Hash value generated by the application server according to the registration information;

[0041] The step of generating a second block according to the registration information includes:

[0042] A second block is generated according to the registration information and the fourth hash value.

[0043] In a third aspect, an embodiment of the present application provides an information processing device, including:

[0044] The acquisition module is used to obtain the basic information of the visiting user;

[0045] A generating module, used for generating a first appointment code according to the basic information;

[0046] A sending module, used for sending the basic information and the first appointment code to a blockchain node;

[0047] The acquisition module is further used to acquire a first hash value of a first block from the blockchain node, where the first block includes the basic information and the first appointment code;

[0048] The sending module is further configured to send the first Hash value, the basic information and the first appointment code to a database server, so that the database server stores the first Hash value, the basic information and the first appointment code in association with each other.

[0049] In a possible design, the generating module is used to generate a second hash value according to the basic information and the first appointment code after generating the first appointment code according to the basic information;

[0050] The sending module is further used to send the second hash value to the blockchain node;

[0051] Correspondingly, the first block also includes the second hash value.

[0052] In a possible design, the acquisition module is further used to acquire the registration information of the visiting user;

[0053] The device also includes: a verification module, used for verifying the registration information.

[0054] In a possible design, if the registration information is verified, the sending module is further used to send the registration information to the blockchain node;

[0055] The acquisition module is further configured to acquire a third hash value of a second block from the blockchain node, where the second block includes the registration information;

[0056] The sending module is further used to send the registration information and the third Hash value to the database server, so that the database server associates and stores the third Hash value with the registration information.

[0057] In a possible design, the generating module is further used to generate a fourth Hash value according to the registration information;

[0058] The sending module is further used to send the fourth hash value to the blockchain node;

[0059] Correspondingly, the second block also includes the fourth hash value.

[0060] In a fourth aspect, an embodiment of the present application provides an information processing device, including:

[0061] An acquisition module, used for acquiring basic information of a visiting user and a first appointment code from an application server, where the first appointment code is generated by the application server according to the basic information;

[0062] A generating module, configured to generate a first block according to the basic information and a first reservation code;

[0063] A sending module is used to send the first hash value of the first block to the application server.

[0064] In a possible design, the acquisition module is further used to acquire a second hash value from the application server, where the second hash value is a hash value generated by the application server according to the basic information and the first reservation code;

[0065] The generating module is specifically configured to generate a first block according to the basic information, the first reservation code and the second hash value.

[0066] In a possible design, the acquisition module is further used to obtain the registration information of the visiting user from the application server;

[0067] The generating module is further used to generate a second block according to the registration information;

[0068] The sending module is further used to send the third hash value of the second block to the application server.

[0069] In a possible design, the acquisition module is further used to obtain a fourth Hash value from the application server, where the fourth Hash value is a Hash value generated by the application server according to the registration information;

[0070] The generating module is specifically configured to generate a second block according to the registration information and the fourth hash value.

[0071] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor, wherein the processor is coupled to a memory;

[0072] The memory is used to store computer programs;

[0073] The processor is used to call the computer program stored in the memory to implement the method in the first aspect and any possible design of the first aspect or the method in the second aspect and any possible design of the second aspect.

[0074] In a sixth aspect, an embodiment of the present application provides a readable storage medium, comprising a program or instructions. When the program or instructions are run on a computer, the method in the first aspect and any possible design of the first aspect or the method in the second aspect and any possible design of the second aspect is executed.

[0075] In the present application, the basic information and reservation code of the visiting user are stored in the database server as well as in the blockchain node of the blockchain system. The basic information and reservation code stored in the blockchain system are generated into blocks and will not be lost. The first hash value of the generated block is associated with the basic information and reservation code of the visiting user in the database server and stored, so that other users can trace the basic information and reservation code of the visiting user. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0077] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0078] Figure 2 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 1 ;

[0079] Figure 3 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 2 ;

[0080] Figure 4 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 3 ;

[0081] Figure 5 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 4 ;

[0082] Figure 6 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 1 ;

[0083] Figure 7 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 2 ;

[0084] Figure 8 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 3 ;

[0085] Fig. 9 A schematic diagram of the structure of the application server provided in the embodiment of the present application;

[0086] Fig.10 A schematic diagram of the structure of a blockchain node provided in an embodiment of the present application. DETAILED DESCRIPTION

[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0088] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In this application, the terms "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. The association or associated storage of A and B means that B can be obtained based on A, or A can be obtained based on B.

[0089] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar contents will not be repeatedly described in different embodiments.

[0090] Figure 1 For the application scenario diagram provided by the embodiment of the present application, see Figure 1 When a visiting user makes an appointment for a visit, the application server 11 receives the basic information of the visiting user from the appointment terminal 12 and generates a first appointment code based on the basic information. The application server 11 sends the basic information and the first appointment code to the blockchain node in the blockchain system 13, and the blockchain node generates a first block based on the basic information and the first appointment code.

[0091] When a visiting user visits, the application server 11 receives the registration information of the visiting user from the registration terminal 14, and sends the registration information to the blockchain node in the blockchain system 13, and the blockchain node generates a second block according to the registration information; the application server 11 also receives the second appointment code of the visiting user from the code scanning terminal 15, and verifies whether the second appointment code is the same as the first appointment code.

[0092] The application server 11 also sends the basic information, the first appointment code and the registration information to the database server 16 for storage.

[0093] The above method ensures that the basic information of the visiting user, the first appointment code and the registration information are all stored in the blockchain node and will not be lost or tampered with.

[0094] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar contents will not be repeatedly described in different embodiments.

[0095] The information processing method of the present application involves the information processing method of the visiting user in the reservation stage and the information processing method in the visiting stage.

[0096] First, combine Figure 2 and Figure 3 The information processing method at the reservation stage in this embodiment will be described.

[0097] Figure 2 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 1 , see Figure 2 , the method of this embodiment includes:

[0098] Step S201: The reservation terminal obtains basic information of the visiting user.

[0099] Specifically, the basic information includes at least one of the following: name, mobile phone number, ID card number, visit date, etc.

[0100] The visiting user informs the visited user of the basic information of the visiting user before the visit, and the visited user inputs the basic information of the visiting user through the user interface of the reservation terminal, and the reservation terminal obtains the basic information of the visiting user. Among them, the reservation terminal can be a terminal installed with reservation management software.

[0101] Step S202: The reservation terminal sends the basic information to an application server.

[0102] Specifically, after the reservation terminal obtains the basic information of the visiting user, it sends the basic information to the application server.

[0103] Step S203: The application server generates a first reservation code according to the basic information.

[0104] Specifically, the application server receives the basic information and generates a first reservation code according to the basic information; the method of generating a reservation code according to the basic information refers to the method in the prior art, which will not be repeated in this embodiment. The first reservation code can be in any of the following forms: a form of multiple characters, a barcode, a QR code, etc.

[0105] Step S204: The application server sends the basic information and the first reservation code to a blockchain node.

[0106] Specifically, in one embodiment, after the application server generates the first reservation code, it sends the basic information and the first reservation code to the blockchain node in the blockchain system.

[0107] In another embodiment, after receiving the basic information, the application server may send the basic information to the blockchain node in the blockchain system, and after generating the first reservation code, send the first reservation code to the blockchain node.

[0108] The blockchain system in this embodiment may be a private chain system, and the blockchain node is a node in the private chain system that can generate blocks. In a public chain system, each node can generate blocks, so in the public chain system, the blockchain node is the node that currently generates blocks the fastest.

[0109] It can be understood that the blockchain system includes multiple nodes. In addition to sending the basic information and the first reservation code to the blockchain node, the application server also sends them to other nodes in the multiple nodes of the blockchain system other than the blockchain node. The subsequent embodiments are the same and will not be repeated here.

[0110] Step S205: The application server sends the basic information and the first reservation code to a database server.

[0111] Specifically, the application server also sends the basic information and the first appointment code to the database server. After receiving the basic information and the first appointment code, the database server stores the basic information and the first appointment code in association.

[0112] Step S206: The blockchain node generates a first block according to the basic information and the first reservation code.

[0113] Specifically, the blockchain node generates a first block according to the basic information and the first reservation code, and broadcasts the block to other nodes.

[0114] Step S207: The blockchain node sends the first hash value of the first block to the application server.

[0115] Step S208: The application server sends the first hash value to the database server;

[0116] Specifically, after receiving the first hash value, the application server sends the first hash value to the database server. The first hash value is used to identify the first block, and other users can later obtain the information included in the first block through the first hash value.

[0117] Step S209: The database server stores the basic information, the first reservation code and the first hash value in association with each other.

[0118] Specifically, after receiving the basic information, the first appointment code and the first Hash value, the database server stores the basic information, the first appointment code and the first Hash value in association with each other.

[0119] Since the database service stores the basic information, the first reservation code and the first hash value in association, when other users want to view the basic information and the first reservation code of the visiting user stored in the blockchain node, the application server can obtain the first hash value through the identifier of the visiting user input by other users in the backtracking terminal (which can be the same terminal as the reservation terminal or the registration terminal, or a different terminal), because the basic information contains the identifier of the visiting user, and the first hash value is stored in association with the basic information in the database server. After obtaining the first hash value, the application server can send a viewing request carrying the first hash value to the blockchain node. After receiving the viewing request, the blockchain node sends the basic information and the first reservation code included in the first block indicated by the first hash value to the application server. The application server sends the basic information and the first reservation code included in the first block to the backtracking terminal for display, thereby achieving the purpose of viewing the basic information and the first reservation code of the visiting user stored in the blockchain node.

[0120] In addition, after the application server obtains the first hash value, it can send the first hash value to the backtracking terminal, and the backtracking terminal sends a viewing request carrying the first hash value to the blockchain node. After receiving the viewing request, the blockchain node sends the basic information included in the first block indicated by the first hash value and the first appointment code to the backtracking terminal for display.

[0121] In this embodiment, the basic information and reservation code of the visiting user are stored in the database server as well as in the blockchain node of the blockchain system. The basic information and reservation code stored in the blockchain system are generated into blocks and will not be lost. The first hash value of the generated block is associated with the basic information and reservation code of the visiting user in the database server and stored, so that other users can trace back the basic information and reservation code of the visiting user.

[0122] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0123] In order to determine whether the basic information of the visiting user and the first reservation code generated based on the basic information have been tampered with during the process of being sent to the blockchain node, this embodiment is further improved on the basis of the previous embodiment. Figure 3 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 2 , see Figure 3 The method of this embodiment includes:

[0124] Step S301: The reservation terminal obtains basic information of the visiting user.

[0125] The specific implementation refers to step S201 in the previous embodiment and will not be described again here.

[0126] Step S302: The reservation terminal sends the basic information to an application server.

[0127] The specific implementation refers to step S202 in the previous embodiment and will not be described in detail here.

[0128] Step S303: the application server generates a first reservation code according to the basic information;

[0129] The specific implementation refers to step S203 in the previous embodiment, which will not be described again here.

[0130] Step S304: the application server generates a second hash value according to the basic information and the first reservation code;

[0131] Specifically, the application server generates a second hash value according to the basic information and the first reservation code.

[0132] Step S305: The application server sends the basic information, the first reservation code and the second hash value to the blockchain node;

[0133] In addition to sending the basic information and the first reservation code to the blockchain node, the application server also sends the second hash value to the blockchain node.

[0134] The meaning of the blockchain node in this embodiment is the same as the meaning of the blockchain node in the previous embodiment.

[0135] Step S306: The application server sends the basic information and the first reservation code to a database server.

[0136] Specifically, the application server may send the second hash value to the database server in addition to sending the basic information and the first reservation code to the database server.

[0137] Step S307: the blockchain node generates a first block according to the basic information, the first reservation code and the second hash value;

[0138] If the first block includes the second hash value, a fifth hash value can be regenerated according to the basic information and the first reservation code after obtaining the basic information and the first reservation code in the first block. If the fifth hash value and the second hash value are the same, it means that the basic information, the first reservation code and the second hash value have not been tampered with in the process of sending them to the blockchain node; if the fifth hash value and the second hash value are different, it means that the basic information, the first reservation code and the second hash value have been tampered with in the process of sending them to the blockchain node, or the first reservation code has been tampered with, or the second hash value has been tampered with.

[0139] Step S308: The blockchain node sends the first hash value of the first block to the application server;

[0140] The specific implementation refers to step S307 in the previous embodiment, which will not be described in detail here.

[0141] Step S309: The application server sends the first hash value to the database server;

[0142] The specific implementation refers to step S308 in the previous embodiment, which will not be described again here.

[0143] Step S310: The database server stores the basic information, the first reservation code and the first hash value in association with each other.

[0144] If the application server also sends the second hash value to the database server, the database server stores the basic information, the first reservation code, the first hash value and the second hash value in association with each other.

[0145] In this embodiment, the application server also generates a second hash value of the basic information of the visiting user and the first appointment code. When other users obtain the basic information of the visiting user and the first appointment code in the first block, it can determine whether the basic information of the visiting user, the first appointment code and the second hash value have been tampered with in the process of sending them to the blockchain node, thereby ensuring that other users can trace the correct basic information of the visiting user and the first appointment code.

[0146] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0147] Secondly, based on the above embodiments, combined with Figure 4 and Figure 5 The information processing method in the visit phase in this embodiment is described.

[0148] Figure 4 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 3 , see Figure 4 , the method of this embodiment includes:

[0149] Step S401: The scanning terminal obtains the second appointment code of the visiting user.

[0150] Specifically, when the visiting user arrives, he / she presents his / her second appointment code. It is understandable that if the visiting user is a user who has made an appointment in the previous embodiment, and the visiting user presents the first appointment code obtained during the appointment stage, the second appointment code is the same as the first appointment code.

[0151] The code scanning terminal scans the second appointment code to obtain the second appointment code.

[0152] Step S402: The code scanning terminal sends the second reservation code to the application server.

[0153] Specifically, after the code scanning terminal obtains the second reservation code, it sends the second reservation code to the application server.

[0154] Step S403: The application server verifies the second reservation code.

[0155] Specifically, if the visiting user has made an appointment, the database server stores a first appointment code obtained by the visiting user during the appointment stage, and the application server obtains the first appointment code from the database server. If the second appointment code is the same as the first appointment code, it is determined that the second appointment code has been verified. If they are not the same or the database server does not store the first appointment code obtained by the visiting user during the appointment stage, it is determined that the second appointment code has failed to be verified.

[0156] After the application server determines that the second reservation code has been verified, it may send a message indicating successful verification to the code scanning terminal.

[0157] Step S404: The registration terminal obtains the registration information of the visiting user.

[0158] Specifically, after the reservation code presented by the visiting user is successfully verified, the visiting user's registration information can be input through the user interface of the registration terminal, and the registration terminal obtains the registration information.

[0159] The registration information may include at least one of the following: name, personal identity, relationship with the visitee, reason for visit, date of visit, etc.

[0160] Step S405: The registration terminal sends the registration information to the application server.

[0161] Specifically, after the registration terminal obtains the registration information, it sends the registration information to the application server.

[0162] Step S406: The application server verifies the registration information.

[0163] Specifically, the specific method for the application server to verify the registration information may be as follows:

[0164] The application server sends a first request to the database server, where the first request is used to instruct the database server to obtain basic information corresponding to a first identifier. The first request includes the first identifier, which is the identifier of the visiting user included in the registration information, such as the user's name.

[0165] The database server inquires whether basic information including the identifier is stored, and sends a first response to the application server, which receives the first response; if basic information including the first identifier is stored in the database server, the first response includes the basic information, and the application server compares the registration information with the basic information. If the registration information and the basic information have the same content, the application server determines that the registration information has been verified; if basic information including the first identifier is not stored in the database server, the first response does not include the basic information, and at this time, the application server determines that the registration information has failed to be verified.

[0166] Among them, the contents of the items that are the same as the registration information and the basic information are the same, which means that if the registration information includes the "item" - ID card number, the basic information also includes the "item" - ID card number, the content of the ID card number item in the registration information is 1234567890, and the content of the ID card number item in the basic information is also 1234567890.

[0167] After the application server determines that the registration information has been verified, it may send a message indicating successful verification to the registration terminal.

[0168] Step S407: If the second reservation code and the registration information are verified, the application server sends the registration information to the blockchain node.

[0169] Specifically, after the second appointment code and the registration information are verified, the application server sends the registration information to the blockchain node.

[0170] The meaning of the blockchain node in this embodiment is the same as the meaning of the blockchain node in the above embodiments.

[0171] Step S408: If the second reservation code and the registration information are verified, the registration information is sent to the database server.

[0172] Specifically, after the second appointment code and the registration information are verified, the application server also sends the registration information to the blockchain node.

[0173] Step S409: the blockchain node generates a second block according to the registration information;

[0174] Specifically, the blockchain node generates a second block according to the registration information, and broadcasts the second block to other nodes.

[0175] Step S410: The blockchain node sends the third hash value of the second block to the application server.

[0176] Specifically, the third hash value is used to identify the second block, and other users can later obtain the information included in the second block through the third hash value.

[0177] Step S411: The application server sends the third hash value to the database server.

[0178] Specifically, after receiving the third Hash value, the application server sends the third Hash value to the database server.

[0179] Step S412: The database server associates and stores the registration information with the third Hash value.

[0180] Specifically, after receiving the registration information and the third Hash value, the database server stores the registration information and the third Hash value in association with each other.

[0181] Since the database service associates and stores the registration information with the third hash value, when other users subsequently want to view the registration information of the visiting user stored in the blockchain node, the application server can obtain the third hash value through the identifier of the visiting user entered by other users in the backtracking terminal (which can be the same terminal as the reservation terminal or the registration terminal, or a different terminal), because the registration information contains the identifier of the visiting user, and the third hash value is associated and stored with the registration information in the database server. After obtaining the third hash value, the application server can send a viewing request carrying the third hash value to the blockchain node. After receiving the viewing request, the blockchain node sends the registration information included in the second block indicated by the third hash value to the application server. The application server sends the registration information included in the second block to the backtracking terminal for display, thereby achieving the purpose of viewing the registration information of the visiting user stored in the blockchain node.

[0182] In addition, after the application server obtains the third hash value, it can send the third hash value to the backtracking terminal, and the backtracking terminal sends a viewing request carrying the third hash value to the blockchain node. After receiving the viewing request, the blockchain node sends the registration information included in the second block indicated by the third hash value to the backtracking terminal for display.

[0183] In this embodiment, the registration information of visiting users is stored not only in the database server, but also in each node of the blockchain system. The registration information stored in the blockchain system is generated into blocks and will not be lost, so that other users can trace the user's registration information.

[0184] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0185] In order to determine whether the registration information of the visiting user has been tampered with during the process of being sent to the blockchain node, this embodiment is further improved on the basis of the previous embodiment. Figure 5 Signaling interaction of the information processing method provided in the embodiment of the present application Figure 4 , see Figure 5 , the method of this embodiment includes:

[0186] Step S501: The scanning terminal obtains the second appointment code of the visiting user.

[0187] Step S502: The code scanning terminal sends the second reservation code to the application server.

[0188] Step S503: the application server verifies the second reservation code;

[0189] Step S504: The registration terminal obtains the registration information of the visiting user.

[0190] Step S505: The registration terminal sends the registration information to an application server.

[0191] Step S506: The application server verifies the registration information.

[0192] The specific implementation of steps S501 to S506 refers to the description of steps S401 to S406 in the previous embodiment, which will not be repeated here.

[0193] Step S507: The application server generates a fourth Hash value according to the registration information.

[0194] Specifically, the application server generates a fourth hash value according to the registration information.

[0195] If the second block includes the fourth hash value, a sixth hash value can be regenerated according to the registration information after obtaining the registration information in the second block. If the sixth hash value is the same as the fourth hash value, it means that neither the registration information nor the fourth hash value has been tampered with in the process of sending the registration information and the fourth hash value to the blockchain system; if the sixth hash value is different from the fourth hash value, it means that the registration information has been tampered with or the fourth hash value has been tampered with in the process of sending the registration information and the fourth hash value to the blockchain node.

[0196] Step S508: If the second reservation code and the registration information are verified, the application server sends the registration information and the fourth hash value to the blockchain node.

[0197] The meaning of the blockchain node in this embodiment is the same as the meaning of the blockchain node in the above embodiments.

[0198] Step S509: If the second reservation code and the registration information are verified, the application server also sends the registration information to the database server.

[0199] Specifically, the application server may also send the fourth Hash value to the database server.

[0200] Step S510: The blockchain node generates a second block according to the registration information and the fourth hash value.

[0201] Specifically, the blockchain node generates a second block according to the registration information and the fourth hash value, and broadcasts the second block to other nodes.

[0202] Step S511: The blockchain node sends the third hash value of the second block to the application server;

[0203] Step S512: The application server sends the third hash value to the database server.

[0204] Step S513: The database server associates and stores the registration information with the third Hash value.

[0205] The specific implementation of steps S511 to S513 refers to the description of steps S410 to S412 in the previous embodiment, which will not be repeated here.

[0206] If the application server also sends the fourth Hash value to the database server, the database server stores the registration information, the third Hash value, and the fourth Hash value in association with each other.

[0207] In this embodiment, the application server also generates a fourth hash value of the visiting user's registration information. When other users obtain the visiting user's registration information included in the second block, it can determine whether the visiting user's registration information and the fourth hash value have been tampered with in the process of sending the visiting user's registration information to the blockchain node, thereby ensuring that other users can trace the correct registration information of the visiting user.

[0208] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0209] Figure 6 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 1 ,like Figure 6 As shown, the device of this embodiment may include: an acquisition module 61, a generation module 62 and a sending module 63;

[0210] The acquisition module 61 is used to acquire the basic information of the visiting user;

[0211] A generating module 62, configured to generate a first appointment code according to the basic information;

[0212] A sending module 63, used to send the basic information and the first appointment code to a blockchain node;

[0213] The acquisition module 61 is further configured to acquire a first hash value of a first block from the blockchain node, wherein the first block includes the basic information and the first reservation code;

[0214] The sending module 63 is further configured to send the first Hash value, the basic information and the first appointment code to a database server, so that the database server stores the first Hash value, the basic information and the first appointment code in association with each other.

[0215] Optionally, the generating module 62 is configured to generate a second hash value according to the basic information and the first appointment code after generating the first appointment code according to the basic information;

[0216] The sending module 63 is further used to send the second hash value to the blockchain node;

[0217] Correspondingly, the first block also includes the second hash value.

[0218] Optionally, the acquisition module 61 is further used to acquire the registration information of the visiting user;

[0219] Optionally, if the registration information is verified, the sending module 63 is further used to send the registration information to the blockchain node;

[0220] The acquisition module 61 is further used to acquire a third hash value of a second block from the blockchain node, where the second block includes the registration information;

[0221] The sending module 63 is further configured to send the registration information and the third Hash value to the database server, so that the database server associates and stores the third Hash value with the registration information.

[0222] Optionally, the generating module 62 is further configured to generate a fourth hash value according to the registration information;

[0223] The sending module 63 is further used to send the fourth hash value to the blockchain node;

[0224] Correspondingly, the second block also includes the fourth hash value.

[0225] The device of this embodiment can be used to execute the technical solution corresponding to the application server in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0226] Figure 7 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 2 ,like Figure 7 As shown, the device of this embodiment is Figure 6 On the basis of the device structure shown, further, it may also include: a verification module 64.

[0227] The verification module 64 is used to verify the registration information.

[0228] Optionally, the acquisition module 61 is further used to acquire a second appointment code of the visiting user; and the verification module 64 is further used to verify the second appointment code.

[0229] The device of this embodiment can be used to execute the technical solution corresponding to the application server in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0230] Figure 8 A schematic diagram of the structure of the information processing device provided in the embodiment of the present application Figure 3 ,like Figure 8 As shown, the device of this embodiment may include: an acquisition module 71, a generation module 72 and a sending module 73;

[0231] An acquisition module 71 is used to acquire basic information of a visiting user and a first appointment code from an application server, where the first appointment code is generated by the application server according to the basic information;

[0232] A generating module 72, configured to generate a first block according to the basic information and a first reservation code;

[0233] The sending module 73 is used to send the first hash value of the first block to the application server.

[0234] Optionally, the acquisition module 71 is further configured to acquire a second hash value from the application server, where the second hash value is a hash value generated by the application server according to the basic information and the first reservation code;

[0235] The generating module 72 is specifically configured to generate a first block according to the basic information, the first reservation code and the second hash value.

[0236] Optionally, the acquisition module 71 is further used to acquire the registration information of the visiting user from the application server;

[0237] The generating module 72 is further used to generate a second block according to the registration information;

[0238] The sending module 73 is further configured to send the third hash value of the second block to the application server.

[0239] Optionally, the acquisition module 71 is further configured to acquire a fourth Hash value from the application server, where the fourth Hash value is a Hash value generated by the application server according to the registration information;

[0240] The generating module 72 is specifically configured to generate a second block according to the registration information and the fourth hash value.

[0241] The device of this embodiment can be used to execute the technical solution corresponding to the blockchain node of the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0242] Fig. 9 A schematic diagram of the structure of the application server provided in the embodiment of the present application, such as Fig. 9 As shown, the application server 800 of this embodiment includes: a processor 81, which is coupled to a memory 82;

[0243] The memory 82 is used to store computer programs;

[0244] The processor 81 is configured to execute the computer program stored in the memory so that the application server executes the method corresponding to the application server in any of the above method embodiments.

[0245] Optionally, the memory 82 may also be a memory outside the application server 800 .

[0246] Fig.10 A schematic diagram of the structure of the blockchain node provided in the embodiment of the present application is shown in FIG. Fig.10 As shown, the blockchain node 900 of this embodiment includes: a processor 91, which is coupled to a memory 92;

[0247] The memory 92 is used to store computer programs;

[0248] The processor 91 is used to execute the computer program stored in the memory so that the blockchain node executes the method corresponding to the blockchain node in any of the above method embodiments.

[0249] Optionally, the memory 92 may also be a memory external to the blockchain node 900.

[0250] The embodiment of the present application also provides an information processing system, the system comprising: a first device and a second device, wherein the first device can use Figure 6-7 The structure of any device embodiment can be executed accordingly. Figure 2 to Figure 5 The technical solution corresponding to the application server of any method embodiment in the embodiment of the present invention is similar in implementation principle and technical effect, which will not be described in detail here; the second device can adopt Figure 8 The structure of the device embodiment, which can be executed accordingly Figure 2 to Figure 5 The technical solution corresponding to the blockchain node of any method embodiment has similar implementation principles and technical effects, which will not be repeated here.

[0251] Optionally, the system of this embodiment may further include a database server and / or a terminal.

[0252] An embodiment of the present invention provides a readable storage medium, including a program or an instruction. When the program or the instruction is executed on a computer, the method corresponding to the application server described in any of the above method embodiments is executed.

[0253] An embodiment of the present invention provides a readable storage medium, including a program or an instruction. When the program or the instruction is executed on a computer, the method corresponding to the blockchain node described in any of the above method embodiments is executed.

[0254] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0255] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the embodiments of the present invention have been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the embodiments of the present invention.

Claims

1. A method for processing information, characterized in that: include: Obtaining basic information of the visiting user, and generating a first reservation code according to the basic information; Sending the basic information and the first appointment code to a blockchain node; Acquire a first hash value of a first block from the blockchain node, where the first block includes the basic information and the first appointment code; sending the first Hash value, the basic information and the first appointment code to a database server, so that the database server stores the first Hash value, the basic information and the first appointment code in association with each other; The method further comprises: Obtaining the first hash value through the identifier of the visiting user input by other users in the backtracking terminal; Sending a viewing request carrying the first hash value to the blockchain node; Receive basic information and a first reservation code included in the first block indicated by the first hash value sent by the blockchain node; Sending the basic information and the first reservation code included in the first block to the tracing terminal for display; After generating the first appointment code according to the basic information, the method further includes: Generate a second hash value according to the basic information and the first appointment code; Sending the second hash value to the blockchain node; accordingly, the first block also includes the second hash value; The method further includes: regenerating a fifth hash value according to the basic information and the first reservation code, and if the fifth hash value is the same as the second hash value, then the basic information, the first reservation code and the second hash value have not been tampered with in the process of being sent to the blockchain node; The method further comprises: obtaining registration information of the visiting user; Verifying the registration information; if the registration information passes the verification, sending the registration information to the blockchain node; Obtaining a third hash value of a second block from the blockchain node, where the second block includes the registration information; The registration information and the third Hash value are sent to the database server, so that the database server associates and stores the third Hash value with the registration information.

2. The method according to claim 1, characterized in that Also includes; Generate a fourth Hash value according to the registration information; Sending the fourth hash value to the blockchain node; Correspondingly, the second block also includes the fourth hash value.

3. The method according to claim 1, characterized in that The method further comprises: Obtaining a second reservation code of the visiting user; The second reservation code is verified.

4. A method for processing user information, characterized in that: include: Acquire basic information and a first reservation code of the visiting user from the application server, where the first reservation code is generated by the application server according to the basic information; generating a first block according to the basic information and the first appointment code; Sending a first hash value of the first block to the application server, so that the application server obtains the first hash value of the first block from the blockchain node, wherein the first block includes the basic information and the first appointment code; sending the first Hash value, the basic information and the first reservation code to a database server so that the database server stores the first Hash value, the basic information and the first reservation code in association with each other; obtaining the first Hash value through an identifier of a visiting user input by other users in a tracing back terminal; Sending a viewing request carrying the first hash value to the blockchain node; receiving basic information and a first reservation code included in the first block indicated by the first hash value sent by the blockchain node; Sending the basic information and the first reservation code included in the first block to the tracing terminal for display; Also includes: Obtaining a second hash value and a fifth hash value from the application server, wherein the second hash value is a hash value generated by the application server according to the basic information and the first reservation code, and the fifth hash value is regenerated according to the basic information and the first reservation code, and if the fifth hash value is the same as the second hash value, then the basic information, the first reservation code and the second hash value have not been tampered with during the process of being sent to the blockchain node; The step of generating a first block according to the basic information and the first appointment code includes: Generate a first block according to the basic information, the first appointment code and the second hash value; Also includes: Obtaining registration information of a visiting user from the application server; generating a second block according to the registration information; Sending the third hash value of the second block to the application server so that the application server obtains the third hash value of the second block from the blockchain node, wherein the second block includes the registration information; sending the registration information and the third hash value to the database server so that the database server associates the third hash value with the registration information and stores it.

5. The method according to claim 4, characterized in that Also includes: acquiring a fourth Hash value from the application server, where the fourth Hash value is a Hash value generated by the application server according to the registration information; The step of generating a second block according to the registration information includes: A second block is generated according to the registration information and the fourth hash value.

6. An information processing device, characterized in that: include: The acquisition module is used to obtain the basic information of the visiting user; A generating module, used for generating a first appointment code according to the basic information; A sending module, used for sending the basic information and the first appointment code to a blockchain node; The acquisition module is further used to acquire a first hash value of a first block from the blockchain node, where the first block includes the basic information and the first appointment code; The sending module is further used to send the first Hash value, the basic information and the first appointment code to a database server, so that the database server stores the first Hash value, the basic information and the first appointment code in association with each other, and obtain the first Hash value through an identifier of a visiting user input by other users in a tracing back terminal; Sending a viewing request carrying the first hash value to the blockchain node; receiving basic information and a first reservation code included in the first block indicated by the first hash value sent by the blockchain node; sending the basic information and the first reservation code included in the first block to the tracing terminal for display; The generating module is configured to generate a second hash value according to the basic information and the first appointment code after generating the first appointment code according to the basic information; The sending module is further used to send the second hash value to the blockchain node; Accordingly, the first block also includes the second hash value; The device further comprises: regenerating a fifth hash value according to the basic information and the first reservation code, and if the fifth hash value is the same as the second hash value, then the basic information, the first reservation code and the second hash value have not been tampered with in the process of being sent to the blockchain node; The acquisition module is further used to acquire the registration information of the visiting user; The device further includes: a verification module, configured to verify the registration information; if the registration information passes the verification, the sending module is further configured to send the registration information to the blockchain node; The acquisition module is further configured to acquire a third hash value of a second block from the blockchain node, where the second block includes the registration information; The sending module is further used to send the registration information and the third Hash value to the database server, so that the database server associates and stores the third Hash value with the registration information.

7. The device according to claim 6, characterized in that The generating module is further configured to generate a fourth hash value according to the registration information; The sending module is further used to send the fourth hash value to the blockchain node; Correspondingly, the second block also includes the fourth hash value.

8. An information processing device, characterized in that: include: An acquisition module, used for acquiring basic information of a visiting user and a first appointment code from an application server, where the first appointment code is generated by the application server according to the basic information; A generating module, configured to generate a first block according to the basic information and a first reservation code; A sending module, configured to send a first hash value of the first block to the application server, so that the application server obtains the first hash value of the first block from the blockchain node, wherein the first block includes the basic information and the first appointment code; sending the first Hash value, the basic information and the first reservation code to a database server so that the database server stores the first Hash value, the basic information and the first reservation code in association with each other; obtaining the first Hash value through an identifier of a visiting user input by other users in a tracing back terminal; Sending a viewing request carrying the first hash value to the blockchain node; receiving basic information and a first reservation code included in the first block indicated by the first hash value sent by the blockchain node; Sending the basic information and the first reservation code included in the first block to the tracing terminal for display; Also includes: The acquisition module is further used to acquire a second hash value and a fifth hash value from the application server, wherein the second hash value is a hash value generated by the application server according to the basic information and the first reservation code, and the fifth hash value is regenerated according to the basic information and the first reservation code. If the fifth hash value is the same as the second hash value, then the basic information, the first reservation code and the second hash value have not been tampered with during the process of being sent to the blockchain node; The generating module is specifically configured to generate a first block according to the basic information, the first reservation code and the second hash value; The acquisition module is further used to acquire the registration information of the visiting user from the application server; The generating module is further used to generate a second block according to the registration information; The sending module is also used to send the third hash value of the second block to the application server, so that the application server obtains the third hash value of the second block from the blockchain node, and the second block includes the registration information; and send the registration information and the third hash value to the database server, so that the database server stores the third hash value and the registration information in association with each other.

9. The device according to claim 8, characterized in that The acquisition module is further configured to acquire a fourth Hash value from the application server, where the fourth Hash value is a Hash value generated by the application server according to the registration information; The generating module is specifically configured to generate a second block according to the registration information and the fourth hash value.

10. An electronic device, characterized in that: include: a processor coupled to the memory; The memory is used to store computer programs; The processor is used to call the computer program stored in the memory to implement the method described in any one of claims 1 to 3 or any one of claims 4 to 5.

11. A readable storage medium, characterized in that: The method comprises a program or an instruction. When the program or the instruction is executed on a computer, the method described in any one of claims 1 to 3 or the method described in any one of claims 4 to 5 is executed.

Citation Information

Patent Citations

  • Data processing method, device and system, and information acquisition device

    CN107135661A

  • Block verification method and device

    CN107396360A

  • Visitor reception method, visitor reception system, visitor system and self-help terminal

    CN108876966A

  • Access control management method, system and related equipment

    CN108877006A