CN111783154A - Method and system for generating electronic license of old people - Google Patents

Method and system for generating electronic license of old people Download PDF

Info

Publication number
CN111783154A
CN111783154A CN202010634955.8A CN202010634955A CN111783154A CN 111783154 A CN111783154 A CN 111783154A CN 202010634955 A CN202010634955 A CN 202010634955A CN 111783154 A CN111783154 A CN 111783154A
Authority
CN
China
Prior art keywords
electronic certificate
packet data
node
index information
electronic
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
Application number
CN202010634955.8A
Other languages
Chinese (zh)
Other versions
CN111783154B (en
Inventor
江万鑫
赵立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Zefu Software Co ltd
Original Assignee
Fujian Zefu Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Zefu Software Co ltd filed Critical Fujian Zefu Software Co ltd
Priority to CN202010634955.8A priority Critical patent/CN111783154B/en
Publication of CN111783154A publication Critical patent/CN111783154A/en
Application granted granted Critical
Publication of CN111783154B publication Critical patent/CN111783154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a system for generating an electronic license of an old person, wherein the method comprises the following steps: the processing center node stores an electronic certificate generation rule, the electronic certificate is a two-dimensional code picture, and the processing center node is used for generating the electronic certificate; the service nodes are multiple, store the identification code of the processing center node and are used for receiving and checking the electronic certificate; the processing center node generates a user photo identification code according to the user photo, and the user photo identification code, the identity number and the effective time length generate an electronic certificate according to the two-dimensional code rule; the processing center node generates electronic certificate index information according to the electronic certificate and encrypts the identity number and the user photo into a photo data packet. The invention realizes the decentralization of the use and the verification of the electronic certificate and realizes the use record of the electronic certificate.

Description

Method and system for generating electronic license of old people
Technical Field
The invention relates to the technical field of electronic certificate processing, in particular to an electronic certificate generation method and system for old people.
Background
In the prior art, a physical certificate is used for indicating identity information of a user. When a user goes to do things related to the user, the user needs to show the certificate so as to verify the identity of the user and record user information. However, the existing certificates of users are easy to lose, the certificates are falsely used after the certificates are lost, and the use of the certificates has no history, namely, the certificates of the users are falsely used by others. In particular, the loss of credentials is more likely to occur due to the memory loss of the elderly.
Disclosure of Invention
Therefore, the method and the system for generating the electronic certificate of the old people are needed to solve the problems that the real object certificate of the old people is easy to lose and falsely use and the like.
In order to achieve the above object, the inventor provides an electronic license generation method for the elderly, comprising the following steps:
the processing center node stores an electronic certificate generation rule, the electronic certificate is a two-dimensional code picture, and the processing center node is used for generating the electronic certificate; the service nodes are multiple, store the identification code of the processing center node and are used for receiving and checking the electronic certificate;
the service node shoots a user picture, acquires an identity number input by the user and sends the identity number to the processing center node;
the processing center node generates a user photo identification code according to a user photo, generates an electronic certificate according to a two-dimensional code rule by the user photo identification code, an identity number and an effective time length, sends the electronic certificate to the service node for shooting the user photo, and sends the electronic certificate received by the service node to the handheld device of the user;
the processing center node generates electronic certificate index information according to the electronic certificate and encrypts the identity number and the user photo into a photo data packet;
the processing center node divides the electronic certificate into a preset number of electronic certificate fragments, the sizes of the divided electronic certificate fragments are the same, sequence numbers are generated according to the sequence of the electronic certificate fragments, and the electronic certificate index information, each sequence number, the corresponding electronic certificate fragments and the corresponding photo data packet are packaged into a fragment packet data to form the preset number of fragment packet data;
sending all fragment packet data to different nodes, wherein each node receives one fragment packet data;
after each node receives one piece of fragment packet data, caching the piece of fragment packet data in a memory, acquiring electronic certificate index information according to the piece of fragment packet data, judging whether a legality notice of the electronic certificate index information is contained in a received notice message by the node, and if the legality notice exists, determining whether the piece of fragment packet data is stored according to the result of the legality notice;
if the validity notice does not exist, sending the electronic certificate index information to a processing central node for verification, if the information passing the verification is received, considering the verification result to be legal, and if not, considering the verification result to be illegal;
if the verification result is legal, storing the fragment packet data into a memory, and if the verification result is illegal, deleting the fragment packet data; broadcasting the electronic certificate index information and the verification result as the legality notice of the electronic certificate index information to other nodes, and simultaneously recording the legality notice into a data chain;
the service node acquires the electronic certificate through code scanning, generates electronic certificate index information according to the electronic certificate, acquires the stored fragment packet data according to the electronic certificate index information, divides the electronic certificate according to the size of the fragment packet data, and acquires the fragment packet data and the corresponding sequence number after division; the service node broadcasts the electronic certificate index information to other nodes, and the other nodes reply the sequence numbers; the service node sends the corresponding segmented electronic certificate data according to the received sequence number, and other nodes compare the electronic certificate fragments in the fragment packet data after receiving the electronic certificate data to generate and reply a comparison result, wherein the comparison result comprises electronic certificate index information and an electronic certificate sequence number; after comparison, recording the comparison result into a data chain;
the service node receives the comparison results of all the electronic certificate serial numbers, analyzes the electronic certificates to obtain electronic certificate data after the comparison results meet the legitimacy requirement, decrypts photo packet data according to the identity numbers in the electronic certificate data to obtain user photos, checks whether the user photos are consistent with current personnel, and inputs the checking results and service handling items, wherein the checking results and the service handling items comprise electronic certificate index information, the service node updates the checking results and the service handling items to a data chain, broadcasts the checking results and the service handling items, and other nodes update the data chain after receiving the checking results and the service handling items.
Further, the determining whether to store the fragmented packet data according to the result of the validity notification includes:
judging whether the number of the legality notices is larger than a first preset value or not, if so, judging whether the number of the same results in the legality notices is larger than a second preset value or not, if so, taking the same results as the results of the verification notices of the electronic certificate index information, and determining whether the fragment packet data is stored or not according to the results;
if the number of the legal notices is less than or equal to a first preset value, ignoring the legal notices;
and if the number of the same results indicated in the legality notification is less than or equal to a second preset value, ignoring the legality notification.
Further, the step of segmenting the electronic document by the processing center node comprises the steps of:
the processing center node copies the electronic certificates into a plurality of groups and generates group identification numbers, each group of electronic certificates is combined with the group identification numbers and then is divided, and the preset number of the divided electronic certificate fragments in each group is different in size;
said packetizing into a fragmented packet data comprises the steps of:
packing the group identification number corresponding to the fragment packet data into the fragment packet data;
the step of comparing the result of the electronic certificate with the electronic certificate index information and the electronic certificate serial number comprises the following steps:
the comparison result comprises electronic certificate index information, electronic certificate sequence numbers and group identification numbers.
Further, the transmitting all fragmented packet data to different nodes comprises the steps of:
dividing fields of the IP addresses into IP groups with the same number as the preset number according to the preset number, wherein one IP group corresponds to one fragment packet data;
and then sending the fragment packet data to the node of which the node IP conforms to the corresponding IP group format.
Further, all nodes comprise a master node; after determining the fragmentation packet data, the host node further comprises the following steps:
caching fragment packet data with a preset time length in a memory by a main node;
and when the step "generating electronic certificate index information according to the electronic certificate, and acquiring the fragment packet data which is stored according to the electronic certificate index information" includes: and the main node acquires the fragment packet data cached in the memory from the memory according to the electronic certificate index information, and if the fragment packet data which is stored is not acquired from the memory any more.
Further, the service node broadcasts the electronic certificate index information and the logout information to other nodes according to the loss report or the logout request of the user, and all the nodes record the electronic certificate index information and the logout information to a data chain of the service node;
then when the electronic certificate index information is generated according to the electronic certificate, the method comprises the following steps: and searching whether electronic certificate index information and logout information exist in the data chain, if so, directly generating a comparison result of the error request, and otherwise, performing a subsequent segmentation step.
The invention provides a safe electronic certificate processing system, which comprises a plurality of nodes, wherein each node comprises a memory and a processor, the memory stores a computer program, and the computer program realizes the steps of the method according to any one embodiment of the invention when being executed by the processor.
Different from the prior art, the electronic certificate is generated through the processing center node in the technical scheme, the uniqueness of certificate generation is realized, then the electronic certificate data can be divided and distributed to different nodes, the nodes can be checked with the nodes generating the electronic certificate in the initial stage, then the check result is diffused, and the subsequent nodes can directly store the divided fragment packet data of the electronic certificate according to the check result. Therefore, the electronic certificate data are partial data of other nodes, original whole data cannot be acquired, and safety is guaranteed. And then the user acquires and saves the electronic certificate. When service authentication is needed, the service node can scan the electronic certificate, then the electronic certificate is obtained, the electronic certificate is broadcasted, and other nodes check the electronic certificate according to the fragment packet data stored by the other nodes. After a large number of nodes are verified and pass, photo data can be obtained according to data in the electronic certificate, and then whether the certificate is used by the user or not is checked according to the photo. All verification processes and certificate use processes are recorded in a data chain, and a user can know the use history of the certificate at any time. After people are known to use the electronic certificate falsely, the certificate before logout can be requested to regenerate the certificate, so that the certificate before logout can be invalidated, and the safety of the electronic certificate can be ensured.
Drawings
FIG. 1 is a flow diagram of a method according to an embodiment;
FIG. 2 is a flow diagram of a method according to an embodiment;
FIG. 3 is a schematic illustration of segmentation in accordance with an embodiment.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1 to 3, the present embodiment provides a method for generating an electronic certificate of an old person, wherein a processing process is performed between a processing center node and a service node. The processing center node stores electronic certificate generation rules; so as to generate the two-dimension code picture of the electronic certificate according to the data. There are multiple service nodes, and the service nodes are used for performing service processing, such as departments like a financial center and a work center, and need to check electronic certificates provided by users. The service node does not have the generation authority of the electronic certificate and only has the verification authority. The service node stores an identification code of the processing center node, and is used for receiving and checking the electronic certificate. Certainly, in order to achieve the acquisition of the picture information of the two-dimensional code of the electronic certificate, the service node stores an analysis rule for analyzing the picture of the electronic certificate and acquiring the information contained in the picture of the electronic certificate.
Step S100, the service node shoots a user photo, acquires an identity number input by the user and sends the identity number to the processing center node.
Step S101, a processing center node generates a user photo identification code according to a user photo, generates an electronic certificate according to a two-dimensional code rule by the user photo identification code, an identity number and an effective time length, sends the electronic certificate to a service node for shooting the user photo, and sends the electronic certificate to a handheld device of a user after the service node receives the electronic certificate. This allows the electronic certificate to be sent to the user by the personnel of the service node, for example, by way of a WeChat. The user's handheld device (e.g., a cell phone) stores the electronic certificate. Therefore, the electronic certificate is convenient to use on the mobile phone of the old. Meanwhile, a copy can be sent to a user mailbox for backup. Of course, the processing center node verifies the uploaded photos and the uploaded identity numbers to be checked, for example, remote face recognition checking is adopted, and the remote checking modes can refer to the existing checking mode. The information is basic identity information, and can be uploaded by a user or uploaded to a processing center node after being acquired by a service node on site. Wherein: the user photo, namely the photo of the head portrait of the user, is used for subsequently consulting whether the current user is consistent with the photo user, the identification code of the user photo is a unique code generated according to the user photo, the identification codes in the invention are all generated unique codes, and can be codes with similar MD5 values. The identity number is a number convenient for people to remember, and each person has a unique identity number. The effective time length can be set as a cut-off time, after the electronic certificate is obtained by scanning the codes subsequently, the electronic certificate is analyzed to obtain the effective time, if the effective time is less than the current time, the electronic certificate is invalid, and the data in the electronic certificate is not responded subsequently. The processing center node identification code is used for identifying the processing center node and realizing the fixed point communication between the service node and the processing center node.
Step S102, the processing center node generates electronic certificate index information according to the electronic certificate, wherein the generated electronic certificate index information is a unique code, such as an MD5 code. And the identity number and the user photo are encrypted into a photo data packet, in some embodiments, a user password can be encrypted into the photo data packet together, the user password is a password set by the user, and the password can be input when the user uses the photo data packet. Of course, the old people can easily forget the password, and the password is not needed. The encryption is similar to the compression of a compressed packet, and only when the correct identity number and the user password are obtained, the user photo can be obtained through decompression, and the user photo can be checked and used subsequently.
And S103, the processing center node divides the electronic certificate into a preset number of electronic certificate fragments, the divided electronic certificate fragments have the same size, sequence numbers are generated according to the sequence of the electronic certificate fragments, and the electronic certificate index information, each sequence number, the corresponding electronic certificate fragments and the corresponding photo data packet are packaged into a fragment packet data to form the preset number of fragment packet data. In order to enable the fragments of the electronic certificate after being divided to be the same in size, the total data size of the current electronic certificate can be divided by a preset number to see whether the fragments can be divided completely, and if the fragments can be divided, the fragments are the same in size. If the electronic certificate fragment size cannot be divided completely, subtracting one from the preset number to serve as a divisor, dividing the total electronic certificate data size by the divisor to obtain the electronic certificate fragment size, wherein the redundant remainder is the last electronic certificate fragment data, and then filling blank data to enable the last electronic certificate fragment data to be the same as the previous electronic certificate fragment size.
Step S104, all the fragment packet data are sent to different nodes, and each node receives one fragment packet data; as shown in fig. 3, each node receives a fragment packet data, which includes fragments 1 to N, and since there are more nodes than fragments, different nodes may receive the same fragment packet data.
In step S105, after each node receives one fragment packet data, the fragment packet data is cached in a memory, where the memory is a volatile memory, and is different from a non-volatile memory such as a hard disk. Acquiring electronic certificate index information from the fragment packet data, judging whether a legality notice of the electronic certificate index information is contained in the received notice message by the node, and if the legality notice exists, entering S115 to determine whether the fragment packet data is stored according to the result of the legality notice. The validity notice is a validity message containing the electronic certificate index information and is a validity message verified by other nodes. Of course, if the node currently receiving the fragment packet subsequently has the authentication, the node will also generate the validity notification, and other nodes will receive the validity notification. Through the validity notice, each node does not need to process the verification of the central node, and the nodes which are more than the preset number broadcast in the whole network as long as the verification of the nodes passes, and the subsequent nodes can directly operate according to the received node information. And determining whether to store the fragmented packet data according to the result of the validity notification, wherein the number of validity notifications is generally greater than a preset number, such as 100 node notifications. If more than the predetermined number of notifications are received and the notifications indicate legitimacy, the fragment package is stored. If more than the preset number of notifications are received and the notifications indicate an illegal one, the fragment packets are deleted. If the notification result indicates legality and illegally exists at the same time, the condition that the number of the same result is large is taken as the criterion.
If the validity notice does not exist, step S106 sends the electronic certificate index information to the processing center node for verification, if the information passing the verification is received, the verification result is considered to be legal, otherwise, the verification result is considered to be illegal. Since the electronic certificate index information is unique and the processing center node identification code is also unique, the electronic certificate index information needs to be verified by the node which originally generated the data (i.e. the processing center node above) before no other node verifies the notification. If the electronic certificate index information is generated by the previous processing center node, the previous node replies legal information which passes verification, and if the electronic certificate index information is not generated by the node of the previous node, the previous node replies illegal information.
If the verification result is legal, step S107 stores the fragmented packet data into a memory, here a non-volatile memory. To save the fragmented packet data, the fragmented packet data may be packed into a check chain. The check chain is different from the data chain, the data chain is used for storing data information, the check chain is used for storing check information such as fragment packet data, and the performance of different working processes can be improved by separately storing the check information. If the verification result is illegal, the step S108 deletes the fragment packet data; and after the execution of the step S107 is completed or the execution of the step S108 is completed, the step S109 is carried out to broadcast the electronic certificate index information and the verification result as the validity notice of the electronic certificate index information to other nodes, and simultaneously record the validity notice into a data chain. The other nodes may subsequently implement a direct check of the fragmented packet data according to the notification, i.e. the received notification message in step S105. Therefore, the processing center node can be offline for maintenance when the electronic certificate is not generated, and fragment packet data containing electronic certificate data can be received and stored by the whole network.
At this time, other nodes cannot acquire all the electronic certificate data, and only part of the electronic certificate data. And the processing center node can send the generated electronic certificate to a user, the user stores the electronic certificate, the user can directly show the two-dimensional code of the electronic certificate in subsequent use, and the service node can scan and obtain the two-dimensional code of the electronic certificate. And then, step S201 is carried out, the service node acquires the electronic certificate through code scanning, the electronic certificate is sent to other nodes, and the service node can generate electronic certificate index information according to the electronic certificate. When the electronic certificate is cut, similar to the time of generating the fragment packet data, the electronic certificate is cut according to a preset sequence, for example, the electronic certificate is converted into binary data, and then the received electronic certificate is cut according to the size of the electronic certificate data in the fragment packet data. I.e. reverse splitting in the way of splitting the node of the previously generated electronic certificate, if the same electronic certificate is generated before, the split data should be consistent. And then the other nodes in the step S202 receive the electronic certificate, generate electronic certificate index information according to the electronic certificate, acquire the stored fragment packet data according to the electronic certificate index information, and divide the electronic certificate according to the size and the sequence number of the fragment packet data. When the electronic certificate is cut, similar to the time of generating the fragment packet data, the electronic certificate is cut according to a preset sequence, for example, the electronic certificate is converted into binary data, and then the received electronic certificate is cut according to the size of the electronic certificate data in the fragment packet data. I.e. reverse splitting in the way of splitting the node of the previously generated electronic certificate, if the same electronic certificate is generated before, the split data should be consistent. And then, comparing the electronic certificate data divided in the step S203 with the electronic certificate fragments in the fragment packet data, generating a comparison result, and broadcasting the comparison result to other nodes, wherein the comparison result comprises electronic certificate index information and electronic certificate sequence numbers.
And entering step S204, the service node receives the comparison result of all the electronic certificate sequence numbers, wherein all the electronic certificate sequence numbers correspond to all the numbers of a complete electronic certificate. If the electronic certificate is divided into 20 parts, the sequential code should have 1-20. And after the validity requirement is met, the validity requirement is a set requirement, for example, each number needs to have a notification that the verification is passed, wherein the number is greater than a preset number (for example, 100). Then, the electronic certificate is analyzed to obtain the electronic certificate data, and in step S205, the photo package data is decrypted according to the identity number in the electronic certificate data to obtain the user photo, and if the user password exists, the user also needs to input the password. The node personnel checks whether the user photo is consistent with the current personnel and inputs a checking result and a service handling item, the checking result and the service handling item comprise electronic certificate index information, the service node updates the checking result and the service handling item to a data chain and broadcasts the checking result and the service handling item, and other nodes update the data chain after receiving the checking result and the service handling item. Therefore, when the electronic certificate is processed, the participation of the processing center node is not needed. And when the electronic certificate is processed, the processing center node for generating the electronic certificate can be off-line, a center server is not needed, and the decentralization of electronic certificate verification and processing is completed. Meanwhile, the verification and the use process of the electronic certificate can be stored in the data chain, the user can look up the use condition of the electronic certificate, and the problem that the user still can not know after the existing entity certificate is used is avoided.
In some embodiments, said determining whether to store the fragmented packet data according to the result of the validity notification comprises the steps of: judging whether the number of the legality notices is larger than a first preset value or not, if so, judging whether the number of the same results in the legality notices is larger than a second preset value or not, if so, taking the same results as the results of the verification notices of the electronic certificate index information, and determining whether the fragment packet data is stored or not according to the results; if the number of the legal notices is less than or equal to a first preset value, ignoring the legal notices; and if the number of the same results indicated in the legality notification is less than or equal to a second preset value, ignoring the legality notification. In this way, it can be ensured that the validity notification is relatively reliable.
In order to further improve the safety of the electronic certificate fragment packet data, the processing center node divides the electronic certificate and comprises the following steps: the processing center node copies the electronic certificates into a plurality of groups and generates group identification numbers, each group of electronic certificates is combined with the group identification numbers and then is divided, and the preset number of the divided electronic certificate fragments in each group is different in size; so that different groups of fragmented packet data cannot be combined. Even if the electronic certificate is acquired, the original electronic certificate data cannot be combined and restored, and the safety of the electronic certificate is guaranteed. Said packetizing into a fragmented packet data comprises the steps of: and packaging the group identification number corresponding to the fragment packet data into the fragment packet data. The step of comparing the result of the electronic certificate with the electronic certificate index information and the electronic certificate serial number comprises the following steps: the comparison result comprises electronic certificate index information, electronic certificate sequence numbers and group identification numbers. Then, the group identification number is required to be brought when the package is sent and the follow-up verification is carried out. Therefore, after all fragment packets of different groups are verified, the verification of the electronic certificate can be completed once. And other users are more difficult to acquire all data of the electronic certificate corresponding to the original node, so that the safety of the electronic certificate is ensured.
In order to improve the speed of verification, different fragment packet data can be divided into specific IP groups, namely, IP classification optimization. Then at the time of distribution, said transmitting all fragmented packet data to different nodes comprises the steps of: dividing fields of the IP addresses into IP groups with the same number as the preset number according to the preset number, wherein one IP group corresponds to one fragment packet data; and then sending the fragment packet data to the node of which the node IP conforms to the corresponding IP group format. E.g., IP6 address, last field, predetermined number of fragmented packets is 16 groups, then last field is grouped every 4096 IPs. The first fragmented packet data is then assigned to the first group 4096 of IP addresses, the second fragmented packet data is assigned to the second group 4096 of IP addresses, and so on in sequence. Therefore, when the subsequent code scanning verification is carried out, the verification can be preferentially distributed to a part of IP addresses of each group for verification, the verification of all serial numbers of the electronic certificate can be quickly completed, and the verification speed is improved. When the plurality of electronic certificates are copied and randomly divided, the fields of the IP address can be divided into the IP groups with the same number as the group identification numbers according to the number of the group identification numbers on the other fields of the IP address, and then the other fields in the IP corresponding to each group identification number are divided into the IP groups with the same preset number as the divided groups in the group, so that the speed of subsequent verification can be further improved, and the safety can be improved through the verification of different groups.
In order to ensure the fast operation of the nodes, all the nodes include a master node, and the system processing performance of the master node is higher than that of other nodes, and the master node is generally composed of a server host. After determining the fragmentation packet data, the host node further comprises the following steps: caching fragment packet data with a preset time length in a memory by a main node; and when the step "generating electronic certificate index information according to the electronic certificate, and acquiring the fragment packet data which is stored according to the electronic certificate index information" includes: and the main node acquires the fragment packet data cached in the memory from the memory according to the electronic certificate index information, and if the fragment packet data which is stored is not acquired from the memory any more. Therefore, the main node can cache the latest fragment packet data, and subsequently can quickly take out the data for verification when the data is verified, the data does not need to be fetched by a hard disk, and the verification speed of the electronic certificate is improved.
In order to log off the previous electronic certificate after a user finds that the electronic certificate is falsely used or lost, the security is ensured. Then also includes the log-off step: the service node broadcasts the electronic certificate index information and the logout information to other nodes according to the loss report or the logout request of the user, and all the nodes record the electronic certificate index information and the logout information to the data chain of the service node. Then when the electronic certificate index information is generated according to the electronic certificate, the method comprises the following steps: and searching whether electronic certificate index information and logout information exist in the data chain, if so, directly generating a comparison result of the error request, and otherwise, performing a subsequent segmentation step. Wherein, the logout information indicates that the electronic certificate index information is in a logout state. If the electronic certificate index information is received later, the electronic certificate index information can be directly prompted to be cancelled without any check and verification operation.
The invention can also comprise an active loss reporting step, after the business node finds that the current user is not checked with the user photo, the loss reporting information and the electronic certificate index information are stored in the data chain, and the loss reporting information and the electronic certificate index information are broadcasted, so that the electronic certificate is in a loss reporting state. The user can then regenerate the electronic certificate to the processing center node, and the electronic certificate which is lost or cancelled before can not be used continuously. When a user needs to perform service operation for looking up the use history of the electronic certificate, the service node reads and displays a service handling item from the current data chain after checking the identity of the user, so that the user can know the previous service handling item.
The invention provides a safe electronic certificate processing system, which comprises a plurality of nodes, wherein each node comprises a memory and a processor, the memory stores a computer program, and the computer program realizes the steps of the method according to any one embodiment of the invention when being executed by the processor. The system of the invention can realize the safe processing process of the electronic certificate.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (7)

1. An electronic license generation method for the old is characterized by comprising the following steps:
the processing center node stores an electronic certificate generation rule, the electronic certificate is a two-dimensional code picture, and the processing center node is used for generating the electronic certificate; the service nodes are multiple, store the identification code of the processing center node and are used for receiving and checking the electronic certificate;
the service node shoots a user picture, acquires an identity number input by the user and sends the identity number to the processing center node;
the processing center node generates a user photo identification code according to a user photo, generates an electronic certificate according to a two-dimensional code rule by the user photo identification code, an identity number and an effective time length, sends the electronic certificate to the service node for shooting the user photo, and sends the electronic certificate received by the service node to the handheld device of the user;
the processing center node generates electronic certificate index information according to the electronic certificate and encrypts the identity number and the user photo into a photo data packet;
the processing center node divides the electronic certificate into a preset number of electronic certificate fragments, the sizes of the divided electronic certificate fragments are the same, sequence numbers are generated according to the sequence of the electronic certificate fragments, and the electronic certificate index information, each sequence number, the corresponding electronic certificate fragments and the corresponding photo data packet are packaged into a fragment packet data to form the preset number of fragment packet data;
sending all fragment packet data to different nodes, wherein each node receives one fragment packet data;
after each node receives one piece of fragment packet data, caching the piece of fragment packet data in a memory, acquiring electronic certificate index information according to the piece of fragment packet data, judging whether a legality notice of the electronic certificate index information is contained in a received notice message by the node, and if the legality notice exists, determining whether the piece of fragment packet data is stored according to the result of the legality notice;
if the validity notice does not exist, sending the electronic certificate index information to a processing central node for verification, if the information passing the verification is received, considering the verification result to be legal, and if not, considering the verification result to be illegal;
if the verification result is legal, storing the fragment packet data into a memory, and if the verification result is illegal, deleting the fragment packet data; broadcasting the electronic certificate index information and the verification result as the legality notice of the electronic certificate index information to other nodes, and simultaneously recording the legality notice into a data chain;
the service node acquires the electronic certificate through code scanning, generates electronic certificate index information according to the electronic certificate, acquires the stored fragment packet data according to the electronic certificate index information, divides the electronic certificate according to the size of the fragment packet data, and acquires the fragment packet data and the corresponding sequence number after division; the service node broadcasts the electronic certificate index information to other nodes, and the other nodes reply the sequence numbers; the service node sends the corresponding segmented electronic certificate data according to the received sequence number, and other nodes compare the electronic certificate fragments in the fragment packet data after receiving the electronic certificate data to generate and reply a comparison result, wherein the comparison result comprises electronic certificate index information and an electronic certificate sequence number; after comparison, recording the comparison result into a data chain;
the service node receives the comparison results of all the electronic certificate serial numbers, analyzes the electronic certificates to obtain electronic certificate data after the comparison results meet the legitimacy requirement, decrypts photo packet data according to the identity numbers in the electronic certificate data to obtain user photos, checks whether the user photos are consistent with current personnel, and inputs the checking results and service handling items, wherein the checking results and the service handling items comprise electronic certificate index information, the service node updates the checking results and the service handling items to a data chain, broadcasts the checking results and the service handling items, and other nodes update the data chain after receiving the checking results and the service handling items.
2. The method for generating the electronic license of the old people according to claim 1, wherein the method comprises the following steps: the step of determining whether to store the fragmented packet data according to the result of the validity notification includes the steps of:
judging whether the number of the legality notices is larger than a first preset value or not, if so, judging whether the number of the same results in the legality notices is larger than a second preset value or not, if so, taking the same results as the results of the verification notices of the electronic certificate index information, and determining whether the fragment packet data is stored or not according to the results;
if the number of the legal notices is less than or equal to a first preset value, ignoring the legal notices;
and if the number of the same results indicated in the legality notification is less than or equal to a second preset value, ignoring the legality notification.
3. The method for generating the electronic license of the old people according to claim 1, wherein the method comprises the following steps:
the processing center node segmenting the electronic certificate comprises the following steps:
the processing center node copies the electronic certificates into a plurality of groups and generates group identification numbers, each group of electronic certificates is combined with the group identification numbers and then is divided, and the preset number of the divided electronic certificate fragments in each group is different in size;
said packetizing into a fragmented packet data comprises the steps of:
packing the group identification number corresponding to the fragment packet data into the fragment packet data;
the step of comparing the result of the electronic certificate with the electronic certificate index information and the electronic certificate serial number comprises the following steps:
the comparison result comprises electronic certificate index information, electronic certificate sequence numbers and group identification numbers.
4. The method for generating the electronic license of the elderly as claimed in claim 1, wherein the step of sending all fragmented packet data to different nodes comprises the steps of:
dividing fields of the IP addresses into IP groups with the same number as the preset number according to the preset number, wherein one IP group corresponds to one fragment packet data;
and then sending the fragment packet data to the node of which the node IP conforms to the corresponding IP group format.
5. The method for generating the electronic license of the old people according to claim 1, wherein all nodes comprise a main node; after determining the fragmentation packet data, the host node further comprises the following steps:
caching fragment packet data with a preset time length in a memory by a main node;
and when the step "generating electronic certificate index information according to the electronic certificate, and acquiring the fragment packet data which is stored according to the electronic certificate index information" includes: and the main node acquires the fragment packet data cached in the memory from the memory according to the electronic certificate index information, and if the fragment packet data which is stored is not acquired from the memory any more.
6. The method for generating the electronic license of the old people according to claim 1, wherein the method comprises the following steps: further comprising the steps of: the service node broadcasts the electronic certificate index information and the logout information to other nodes according to the loss report or the logout request of the user, and all the nodes record the electronic certificate index information and the logout information to a data chain of the service node;
then when the electronic certificate index information is generated according to the electronic certificate, the method comprises the following steps: and searching whether electronic certificate index information and logout information exist in the data chain, if so, directly generating a comparison result of the error request, and otherwise, performing a subsequent segmentation step.
7. The utility model provides an old person's electron license generation system which characterized in that: comprising a plurality of nodes including a memory, a processor, the memory having stored thereon a computer program which, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202010634955.8A 2020-07-03 2020-07-03 Old people electronic license generation method and system Active CN111783154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010634955.8A CN111783154B (en) 2020-07-03 2020-07-03 Old people electronic license generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010634955.8A CN111783154B (en) 2020-07-03 2020-07-03 Old people electronic license generation method and system

Publications (2)

Publication Number Publication Date
CN111783154A true CN111783154A (en) 2020-10-16
CN111783154B CN111783154B (en) 2023-05-16

Family

ID=72758401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010634955.8A Active CN111783154B (en) 2020-07-03 2020-07-03 Old people electronic license generation method and system

Country Status (1)

Country Link
CN (1) CN111783154B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243097A1 (en) * 2016-02-23 2017-08-24 The Chinese University Of Hong Kong Method and apparatus for decoding or generating multi-layer color or code, method for recommending setting parameters in generation of multi-layer or code, and product comprising multi-layer color or code
CN108053313A (en) * 2018-01-02 2018-05-18 中国工商银行股份有限公司 Cross-border data processing method of opening an account, apparatus and system
CN109064120A (en) * 2018-07-10 2018-12-21 马上游科技股份有限公司 Tourism electric contract number deposit system based on region chain and deposit card method
CN109508563A (en) * 2018-12-11 2019-03-22 南京大学 Electronic document authenticity guarantee method based on block chain
CN110493323A (en) * 2019-07-29 2019-11-22 华南理工大学 Fairness document distribution method, system and storage medium based on block chain
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium
CN111126950A (en) * 2019-12-10 2020-05-08 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243097A1 (en) * 2016-02-23 2017-08-24 The Chinese University Of Hong Kong Method and apparatus for decoding or generating multi-layer color or code, method for recommending setting parameters in generation of multi-layer or code, and product comprising multi-layer color or code
CN108053313A (en) * 2018-01-02 2018-05-18 中国工商银行股份有限公司 Cross-border data processing method of opening an account, apparatus and system
CN109064120A (en) * 2018-07-10 2018-12-21 马上游科技股份有限公司 Tourism electric contract number deposit system based on region chain and deposit card method
CN109508563A (en) * 2018-12-11 2019-03-22 南京大学 Electronic document authenticity guarantee method based on block chain
CN110493323A (en) * 2019-07-29 2019-11-22 华南理工大学 Fairness document distribution method, system and storage medium based on block chain
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium
CN111126950A (en) * 2019-12-10 2020-05-08 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment based on block chain

Also Published As

Publication number Publication date
CN111783154B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN107749848B (en) Internet of things data processing method and device and Internet of things system
CN107342867B (en) Signature verification method and device
US7925615B1 (en) Reducing duplication of files on a network
EP1401143B1 (en) Methods and system for providing a public key fingerprint list in a PK system
CN101552669A (en) Method and system of data transmission
CN111881481B (en) Medical data processing method, device, equipment and storage medium based on blockchain
CN109409079B (en) Weak password checking method and device
CN110990335B (en) Log archiving method, device, equipment and computer readable storage medium
CN110995446B (en) Evidence verification method, device, server and storage medium
CN106899563B (en) Authentication method and device, authentication code generation method and device and authentication system
CN115225409B (en) Cloud data safety duplicate removal method based on multi-backup joint verification
CN113486309A (en) Technical document processing method, digital watermark server and processing system
CN110213232B (en) fingerprint feature and key double verification method and device
CN111783918B (en) Safe two-dimensional code distribution method and system
CN111835711A (en) Digital encryption cloud service information protection method and cloud service system
CN107133517B (en) Data recovery method based on data encryption and calculation in memory
CN110602051B (en) Information processing method based on consensus protocol and related device
CN111783155B (en) Electronic certificate processing method and system
CN113542187A (en) File uploading and downloading method and device, computer device and medium
CN111783157B (en) Trusted two-dimensional code electronic certificate processing method and system
CN111783154A (en) Method and system for generating electronic license of old people
CN116094786A (en) Data processing method, system, device and storage medium based on double-factor protection
CN111800256B (en) Old people two-dimensional code electronic license application method and system
CN111324914B (en) File transmission method, device, server, equipment and medium
CN111783156B (en) Cloud electronic contract processing method and system

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