A blockchain-based business processing method, device, and medium

By associating user identity with electronic certificates on a blockchain and using encrypted identifiers, the method addresses inefficiencies in government services, enabling secure and efficient access to multiple documents with a single identifier, enhancing user experience.

CN114511431BActive Publication Date: 2025-07-15浪潮工业互联网股份有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210108148.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2025-07-15
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

In the context of government services, users often face inefficiencies due to the need to carry multiple paper documents, and the process of obtaining electronic certificates is cumbersome, especially for the elderly, leading to poor user experience and reduced efficiency.

Method used

A method utilizing blockchain to associate user identity with electronic certificates, generating unique identifiers, and creating a mapping table to automate certificate retrieval across different government services, ensuring secure and efficient access through encrypted codes and watermarks.

Benefits of technology

This approach enhances user experience by enabling seamless access to required documents across multiple services using a single identifier, ensuring data security and improving overall efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114511431B_ABST
    Figure CN114511431B_ABST
Patent Text Reader

Abstract

The present application discloses a business processing method, device and medium based on blockchain. The method includes: constructing a mapping table between government affairs sample scenarios and electronic sample certificates; obtaining electronic certificates related to a user, uploading the electronic certificates to the blockchain, and associating the unique identity identifier of the user with the electronic certificates; in the mapping table, sequentially traversing the electronic sample certificates in each government affairs sample scenario according to the electronic certificates to determine the government affairs sample scenarios related to the user; taking the government affairs sample scenarios as the government affairs scenarios related to the user; associating the electronic certificates required by the government affairs scenarios with the government affairs scenarios, and associating the unique identity identifier with the government affairs scenarios; generating identification codes respectively corresponding to the electronic certificates required by each government affairs scenario according to the unique identity identifier; sending the identification codes to the user, so that the service provider can scan the identification codes through a scanning device, obtain permissions from the user, and obtain the electronic certificates from the blockchain through the permissions. The business processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of business processing, and in particular, to a business processing method, device, and medium based on blockchain. Background Art

[0002] In the business processing of government affairs scenarios (such as property transfer), since users need to carry a variety of paper materials, the situation where users' paper materials are incomplete often occurs, bringing a bad experience to users.

[0003] Currently, with the continuous development of the Internet, electronic certificates, as professional and credential electronic documents with legal and administrative effects, have increasingly become the main electronic certificates for market entities and citizens to handle affairs. However, due to the importance of electronic certificates, government departments need to effectively ensure the security of electronic certificates, resulting in users having to perform multiple steps during the process of applying for electronic certificates, which also brings a bad experience to users. Especially for the elderly, it is more inconvenient and requires assistance from business personnel, thus reducing the efficiency of business processing in government affairs scenarios. Summary of the Invention

[0004] Embodiments of this application provide a business processing method, device, and medium based on blockchain, which are used to solve the problem of low efficiency of business processing in government affairs scenarios.

[0005] Embodiments of this application adopt the following technical solutions:

[0006] On the one hand, an embodiment of the present application provides a business processing method based on a blockchain. The method includes: a government affairs server constructing a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table being used to represent the electronic sample certificates required for different government affairs sample scenarios; obtaining electronic certificates related to a user, uploading the electronic certificates to the blockchain, and associating the unique identity identifier of the user with the electronic certificates; in the mapping table, sequentially traversing the electronic sample certificates in each of the government affairs sample scenarios according to the electronic certificates, and determining the government affairs sample scenarios related to the user; wherein the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and taking the government affairs sample scenarios as the government affairs scenarios related to the user; associating the electronic certificates required for the government affairs scenarios with the government affairs scenarios, and associating the unique identity identifier with the government affairs scenarios; generating an identification code corresponding to each of the electronic certificates required for the government affairs scenarios according to the unique identity identifier; in response to the user's request for applying for the identification code, sending identity verification information to the user; if the user's identity verification is passed, sending the identification code to the user, so that a business party can scan the identification code through a scanning device; in response to the authorization request of the business party, obtaining permissions from the user, so that the business party can obtain the electronic certificates from the blockchain through the permissions.

[0007] In one example, after generating the identification code corresponding to each of the electronic certificates required for the government affairs scenarios according to the unique identity identifier, the method further includes: encrypting the identification code with the encryption key provided by the user to obtain an encrypted identification code, and storing the encrypted identification code in the file system on the blockchain; encrypting the storage address of the encrypted identification code to obtain an encrypted storage address; generating a key index according to a preset access policy for the business party and the encrypted storage address; the preset access policy being used to determine whether the government affairs scenario key of the business party is allowed to access the encryption key; encrypting the encryption key and the keywords of the government affairs scenario to which the identification code belongs to generate a keyword index; generating a ciphertext index according to the key index and the keyword index, and storing the ciphertext index in the block on the blockchain; generating a search index corresponding to the ciphertext index according to the identity identification number of the block, and storing the search index in the smart contract on the blockchain, so as to upload the identification code corresponding to each of the electronic certificates required for the government affairs scenarios to the blockchain.

[0008] In one example, if the user authentication is passed, sending the identification code to the user specifically includes: if the user authentication is passed, generating random identity information of the user according to the unique identity identifier of the user; generating a keyword token according to the keyword of the government affairs scenario to be queried; generating a search token according to the keyword token and the random identity information, and broadcasting the search token on the chain so that the blockchain retrieves and matches the search index on the smart contract of the blockchain according to the search token; if the match is successful, determining the target block identity identifier corresponding to the matched search index, obtaining the keyword index in the ciphertext index according to the target block identity identifier, and verifying the keyword index with the keyword token in the search token, if the verification is successful, returning the target block identity identifier corresponding to the matched search index; obtaining the ciphertext index from the chain according to the target block identity identifier; obtaining the identification code of the government affairs scenario according to the ciphertext index, and sending the identification code of the government affairs scenario to the user.

[0009] In one example, obtaining the identification code of the government affairs scenario according to the ciphertext index specifically includes: obtaining the key index in the ciphertext index from the chain according to the ciphertext index; obtaining the encrypted identification code through the encrypted storage address in the key index; obtaining the encrypted key provided by the user, and decrypting the encrypted identification code according to the encrypted key to obtain the identification code of the government affairs scenario.

[0010] In one example, the power of the government affairs client is bound to the user mobile terminal, and the method further includes: in response to the application request of the service provider for the identification code, detecting whether the power of the user mobile terminal is less than a preset threshold; if so, obtaining the government affairs scenario key of the service provider; obtaining the ciphertext index according to the identity identifier of the block, and obtaining the key index in the ciphertext index from the chain according to the ciphertext index; obtaining the encrypted identification code through the encrypted storage address in the key index; if the government affairs scenario key meets the preset access policy in the key index, obtaining the encrypted key, decrypting the encrypted identification code according to the encrypted key to obtain the identification code of the government affairs scenario, and sending the identification code of the government affairs scenario to the service provider.

[0011] In one example, permissions are obtained from the user so that the service provider can obtain the electronic certificates from the chain through the permissions. Specifically, it includes: obtaining permissions from the user, and when the service provider queries the electronic certificates from the chain through the permissions, presenting the electronic certificates to the service provider; when the service provider retains the electronic certificates, generating an invisible encrypted watermark for the electronic certificates required to be provided by each government affairs scenario; wherein, the invisible encrypted watermark is related to the current government affairs scenario; sending the electronic certificates with the invisible encrypted watermark to the service provider so that the service provider can obtain the electronic certificates with the invisible encrypted watermark; wherein, if the service provider applies the electronic certificates with the invisible encrypted watermark to other government affairs scenarios except the current government affairs scenario, when decrypting the invisible encrypted watermark, it is prompted that the status of the electronic certificates with the invisible encrypted watermark is unavailable.

[0012] In one example, obtaining the electronic certificates related to the user specifically includes: obtaining the original electronic certificates related to the user; encrypting the basic information of the original electronic certificates as a digest to generate the digital signature of the original electronic certificates; generating an updated electronic seal for the original electronic certificates according to the digital signature and the electronic data graph of the special seal in the original electronic certificates; updating the original electronic seal in the original electronic certificates through the updated electronic seal to generate the electronic certificates.

[0013] In one example, after obtaining the original electronic certificates related to the user, the method further includes: within a preset period, obtaining the original electronic certificates related to the user; comparing the original electronic certificate information in the first period with the original electronic certificate information in the second period to determine whether the original electronic certificate information in the first period is consistent with the original electronic certificate information in the second period; the time of the first period is earlier than the time of the second period; if not, updating the corresponding original electronic certificate information in the first period through the inconsistent original electronic certificate information in the second period to update the original electronic certificates related to the user.

[0014] On the other hand, an embodiment of the present application provides a business processing device based on a blockchain. The device includes: at least one processor; and a memory communicatively connected to the at least one processor. Wherein, the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to: construct a mapping table between government affairs sample scenarios and electronic sample certificates, where the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios; obtain electronic certificates related to a user, upload the electronic certificates to the chain, and associate the unique identity identifier of the user with the electronic certificates; in the mapping table, sequentially traverse the electronic sample certificates in each government affairs sample scenario according to the electronic certificates to determine the government affairs sample scenarios related to the user, where the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and use the government affairs sample scenarios as the government affairs scenarios related to the user; associate the electronic certificates required for the government affairs scenarios with the government affairs scenarios, and associate the unique identity identifier with the government affairs scenarios; generate identification codes respectively corresponding to the electronic certificates required for each government affairs scenario according to the unique identity identifier; in response to the user's request for applying for the identification code, send identity verification information to the user; if the user's identity verification is passed, send the identification code to the user for the business party to scan the identification code through a scanning device; in response to the authorization request of the business party, obtain permissions from the user so that the business party can obtain the electronic certificates from the chain through the permissions.

[0015] On the other hand, an embodiment of the present application provides a non-volatile computer storage medium for business processing based on blockchain, storing computer-executable instructions, and the computer-executable instructions are configured to: construct a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios; obtain electronic certificates related to a user, upload the electronic certificates to the blockchain, and associate the unique identity identifier of the user with the electronic certificates; in the mapping table, sequentially traverse the electronic sample certificates in each government affairs sample scenario according to the electronic certificates, and determine the government affairs sample scenarios related to the user; wherein, the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and use the government affairs sample scenarios as the government affairs scenarios related to the user; associate the electronic certificates required for the government affairs scenarios with the government affairs scenarios, and associate the unique identity identifier with the government affairs scenarios; generate identification codes corresponding to the electronic certificates required for each government affairs scenario respectively according to the unique identity identifier; in response to the user's request for applying for the identification code, send identity verification information to the user; if the user's identity verification is passed, send the identification code to the user, so that the service provider can scan the identification code through a scanning device; in response to the authorization request of the service provider, obtain permissions from the user, so that the service provider can obtain the electronic certificates from the blockchain through the permissions.

[0016] The above at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects:

[0017] By obtaining electronic certificates related to a user and uploading the electronic certificates to the blockchain, it is possible to record the full-life cycle certificate data of the user and ensure the security of the electronic certificate data. By associating the unique identity identifier of the user with the electronic certificates, associating the electronic certificates required for the government affairs scenarios with the government affairs scenarios, and associating the unique identity identifier with the government affairs scenarios, and finally generating identification codes corresponding to the electronic certificates required for each government affairs scenario respectively according to the unique identity identifier of the user, the realization of one code for multiple certificates enables the automatic extraction and presentation of the electronic certificates required for the corresponding government affairs scenario from the blockchain by displaying the identification code corresponding to the government affairs scenario, bringing a good experience to the user and improving the business processing efficiency. Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions of the present application, some embodiments of the present application will be described in detail below with reference to the drawings, in which:

[0019] Figure 1 is a schematic structural diagram of a business processing system based on blockchain provided by an embodiment of the present application;

[0020] Figure 2 A schematic flowchart of a blockchain-based business processing method provided by an embodiment of the present application;

[0021] Figure 3 A schematic structural diagram of a blockchain-based business processing device provided by an embodiment of the present application. Detailed implementation manners

[0022] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with specific embodiments and the corresponding drawings. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.

[0023] The following will refer to the drawings to elaborate on some embodiments of the present application in detail.

[0024] Figure 1 A schematic architecture diagram of a blockchain-based business processing system provided by an embodiment of the present application.

[0025] As Figure 1 shown, the blockchain-based business processing method is applied to the application process of the one-code multi-certificate scenario. In the application process of the one-code multi-certificate scenario, the executive entity of the certificate management end is the government affairs server, the executive entity of the certificate sharing verification management is the blockchain, the executive entity of the one-code multi-certificate digital safe is the government affairs client, and the executive entity of the application end is the government affairs party (government department).

[0026] For the government affairs server, first, the government affairs server constructs the user's personal electronic certificate file. When constructing the personal electronic certificate file, using the citizen identity number (user identity number) as the unique identifier, obtaining the electronic certificates related to the user, fusing and associating the user's personal certificate data (electronic certificates), establishing a resident personal electronic certificate file, and realizing one file per person. For example, the electronic certificates include personal certificates such as personal birth certificates, graduation certificates, social security certificates, driving licenses, vocational qualification certificates, marriage certificates, property ownership certificates, and senior citizen certificates.

[0027] Then, associate the user's unique identity identifier with the electronic certificate file, that is, associate the user's unique identity identifier with the electronic certificates.

[0028] Generate a one-code-multiple-certificates identification code based on personal electronic certificate file information and the user's unique identity identifier. For example, a QR code that has the ability to associate multiple certificates with one code. Thus, the user can show one identification code in the government affairs client and display a large number of supporting documents required in this government affairs scenario. For example, display a QR code with the ID card as the unique identifier in the government affairs APP. Among them, the identification code supports automatic refreshing to ensure the user's data security.

[0029] It should be noted that there are multiple government affairs scenarios, such as property transfer, applying for rental subsidies, etc. Different government affairs scenarios correspond to different identification codes. That is to say, the electronic certificates associated with each identification code are related to the electronic certificates required for the corresponding government affairs scenario.

[0030] Finally, data is uploaded to the blockchain, that is, the personal electronic certificate file and the identification code are uploaded to the blockchain, that is, the electronic certificates related to the user and the identification code are uploaded to the blockchain to generate a personal digital safe. Among them, based on the SM2 elliptic curve public key cryptography algorithm, personal electronic certificate digital signature and encryption are realized to ensure its immutability, non-deniability, and non-disclosure, and the ownership of the data is returned to the uploading individual to form digital materials, so that the digital certificate materials after being uploaded to the blockchain cannot be forged, tampered with, lost forever, used with authorization, and traceable.

[0031] For the blockchain, the nodes of the blockchain are government affairs departments (business parties) and users, that is, it can realize the sharing, verification and management of government affairs department certificates.

[0032] For the government affairs client and the business party, the user applies for an identification code (such as a QR code) of "one code for multiple certificates" in the client, and the government affairs server sends identity verification information to the user.

[0033] If the user's identity verification is passed, the identification code is sent to the user. After the user successfully applies, the QR code is shown to the business party. The business party scans the identification code through a scanning device. The government affairs server sends the business party's authorization request to the client. After the user confirms the authorization, the business party can obtain the electronic certificate from the blockchain and save a copy of the electronic certificate. For example, after the business personnel scan the QR code shown by the user through the scanning device, the user receives a confirmation prompt on the client and manually confirms the authorization. After authorization, the business party can obtain the corresponding certificate copy file to ensure data security and privacy during the use process.

[0034] By assigning a unique code to each individual and recording all matters throughout their life cycle, effective collection of natural person's certificate data is achieved, enabling seamless connection between business scenarios and data. Integrating data from various institutional departments from the perspective of individuals, a digital safe with multiple certificates under one code is constructed. Using the multiple-certificates-under-one-code as a carrier, it is applied to various life application scenarios such as personal government affairs handling, travel, tourism, medical care, community life, education, and sports, creating a new experience of digital and intelligent life.

[0035] More intuitively, Figure 2 FIG. is a schematic flowchart of a blockchain-based business processing method provided by an embodiment of the present application.

[0036] It should be noted that the server can be a single device or a system composed of multiple devices, that is, a distributed server, and the present application does not make specific limitations on this.

[0037] S201: The government affairs server constructs a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios.

[0038] S202: Obtain electronic certificates related to the user, upload the electronic certificates to the blockchain, and associate the unique identity identifier of the user with the electronic certificates.

[0039] In some embodiments of the present application, in order to improve the security of electronic certificates, the original electronic certificates related to the user are processed.

[0040] Specifically, first, obtain the original electronic certificates related to the user, and encrypt the basic information of the original electronic certificates as a digest to generate a digital signature of the original electronic certificates.

[0041] Then, based on the digital signature and the electronic data graphics of the special seal in the original electronic certificates, generate an updated electronic seal for the original electronic certificates.

[0042] Finally, update the original electronic seal in the original electronic certificates through the updated electronic signature to generate electronic certificates. Thus, when the certificate information is modified, the verification of the electronic certificates cannot pass.

[0043] Among them, since the original electronic certificates related to the user are in a dynamic change state, for example, multiple professional qualification certificates are added, it is necessary to update the original electronic certificates in a timely manner.

[0044] Specifically, within a preset period, obtain the original electronic certificates related to the user, and compare the original electronic certificate information in the first period with the original electronic certificate information in the second period.

[0045] Then, determine whether the original electronic certificate information in the first period is consistent with the original electronic certificate information in the second period. Here, the time of the first period is earlier than that of the second period.

[0046] If not, update the corresponding original electronic certificate information in the first period with the inconsistent original electronic certificate information in the second period to update the original electronic certificates related to the user.

[0047] If so, do not update the original electronic certificates related to the user.

[0048] S203: In the mapping table, sequentially traverse the electronic sample certificates in each of the government affairs sample scenarios according to the electronic certificate, and determine the government affairs sample scenarios related to the user; where the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificate, and use the government affairs sample scenarios as the government affairs scenarios related to the user.

[0049] S204: Associate the electronic certificates required to be provided by the government affairs scenario with the government affairs scenario, and associate the unique identity identifier with the government affairs scenario.

[0050] S205: Generate identification codes respectively corresponding to the electronic certificates required to be provided by each of the government affairs scenarios according to the unique identity identifier.

[0051] That is to say, multiple government affairs scenarios each have their own corresponding identification codes, and through the identification codes, the electronic certificates required to be provided by the government affairs scenario can be automatically extracted and presented, realizing one code for multiple certificates.

[0052] In some embodiments of the present application, in order to ensure data security, not only the electronic certificates are chained, but also the identification codes are chained.

[0053] Specifically, first, encrypt the identification code with the encryption key provided by the user to obtain an encrypted identification code, store the encrypted identification code in the file system on the chain, and encrypt the storage address of the encrypted identification code to obtain an encrypted storage address.

[0054] Then, generate a key index according to the preset access policy for the service provider and the encrypted storage address. The preset access policy is used to determine whether the government affairs scenario key of the service provider is allowed to access the encryption key.

[0055] Then, encrypt the encryption key and the keywords of the government affairs scenario to which the identification code belongs to generate a keyword index.

[0056] Then, generate a ciphertext index according to the key index and the keyword index, and store the ciphertext index in the block on the chain.

[0057] Then, according to the identity identification number of the block, a search index corresponding to the ciphertext index is generated, and the search index is stored in the smart contract on the chain, so as to upload the identification codes corresponding to the electronic certificates required by each government affairs scenario onto the chain, thereby using blockchain technology to store the index, ensuring the security and traceability of the data, and achieving efficient storage and efficient sharing.

[0058] S206: In response to the user's request for applying for the identification code, send the user authentication information to the user.

[0059] If the user authentication is passed, then execute step 207; if the user authentication fails, then return an application failure to the user.

[0060] S207: If the user authentication is passed, then send the identification code to the user so that the business party can scan the identification code through a scanning device.

[0061] In some embodiments of the present application, when sending the identification code to the user, it specifically includes: if the user authentication is passed, then generate the random identity information of the user according to the unique identity identifier of the user.

[0062] Then, according to the keyword of the government affairs scenario to be queried, generate a keyword token, generate a search token according to the keyword token and the random identity information, and broadcast the search token on the chain, so that the blockchain retrieves and matches the search index on the smart contract of the blockchain according to the search token.

[0063] If the matching is successful, then determine the target block identity identification number corresponding to the matching search index, obtain the keyword index in the ciphertext index according to the target block identity identification number, and verify the keyword index with the keyword token in the search token. If the verification is successful, then return the target block identity identification number corresponding to the matching search index. If the verification fails, then return an application failure to the user.

[0064] Finally, according to the target block identity identification number, obtain the ciphertext index from the chain, obtain the identification code of the government affairs scenario according to the ciphertext index, and send the identification code of the government affairs scenario to the user.

[0065] Among them, when obtaining the identification code of the government affairs scenario according to the ciphertext index, first, obtain the key index in the ciphertext index from the chain according to the ciphertext index. Then, obtain the encrypted identification code through the encrypted storage address in the key index. Finally, obtain the encrypted key provided by the user, and decrypt the encrypted identification code according to the encrypted key to obtain the identification code of the government affairs scenario.

[0066] It should be noted that if the matching fails, then return an application failure to the user.

[0067] Furthermore, since users usually apply for identification codes using mobile terminals for convenience during the business handling process, the user's mobile terminal may shut down, for example, due to low battery. At this time, the user may not be able to display the identification code for the corresponding government affairs scenario to the service provider. In this case, the service provider can be given the permission to apply for the identification code, so as to apply for the identification code for this government affairs scenario on behalf of the user.

[0068] Specifically, the power of the government affairs client and the user's mobile terminal are pre-bound. Thus, when receiving a request from the service provider to apply for an identification code, it is detected whether the power of the user's mobile terminal is less than a preset threshold. If so, the government affairs scenario key of the service provider is obtained, and according to the identity identification number of the block, the ciphertext index is obtained. Finally, according to the ciphertext index, the key index in the ciphertext index is obtained from the chain, and the encrypted identification code is obtained through the encrypted storage address in the key index.

[0069] Among them, if the government affairs scenario key conforms to the preset access policy in the key index, the encryption key is obtained, and according to the encryption key, the encrypted identification code is decrypted to obtain the identification code for the government affairs scenario, and the identification code for the government affairs scenario is sent to the service provider.

[0070] It should be noted that if the power of the user's mobile terminal is greater than or equal to the preset threshold, a failure to apply will be returned to the service provider.

[0071] S208: In response to the authorization request from the service provider, obtain permissions from the user so that the service provider can obtain the electronic certificates from the chain through the permissions.

[0072] That is to say, a personal data authorization access mechanism is established. When a user needs to provide data to a service provider, authorization is required, and the service provider can only use the data within the authorized scenarios and frequencies.

[0073] In some embodiments of the present application, since the service provider may use the user's electronic certificates for other purposes after obtaining them, in order to improve the security of the user's electronic certificates, the electronic certificates are processed when the service provider obtains the electronic certificates from the chain.

[0074] Specifically, obtain permissions from the user. When the service provider queries the electronic certificates from the chain through the permissions, the electronic certificates are displayed to the service provider. When the service provider retains the electronic certificates, invisible encrypted watermarks are generated for the electronic certificates required to be provided for each government affairs scenario. Among them, the invisible encrypted watermarks are related to the current government affairs scenario.

[0075] Then, the electronic certificates with invisible encrypted watermarks are sent to the service provider so that the service provider can obtain the electronic certificates with invisible encrypted watermarks.

[0076] Among them, if the business party applies the electronic certificate with the invisible encrypted watermark to other government affairs scenarios except the current government affairs scenario, when decrypting the invisible encrypted watermark, it is prompted that the status of the electronic certificate with the invisible encrypted watermark is unavailable.

[0077] It should be noted that although the embodiments of the present application are described with reference to Figure 2 to introduce and explain steps S201 to S208 in sequence, this does not mean that steps S201 to S208 must be executed in a strict order. The reason why the embodiments of the present application introduce and explain steps S201 to S208 in the order shown in Figure 2 is to facilitate those skilled in the art to understand the technical solution of the embodiments of the present application. In other words, in the embodiments of the present application, the order between steps S201 to S208 can be appropriately adjusted according to actual needs.

[0078] By Figure 2 's method, by obtaining the electronic certificate related to the user and uploading the electronic certificate to the blockchain, it is possible to record the certificate data of the user's entire life cycle, ensure the security of the electronic certificate data, by associating the user's unique identity identifier with the electronic certificate, associating the electronic certificate required by the government affairs scenario with the government affairs scenario, and associating the unique identity identifier with the government affairs scenario, and finally generating the identification codes corresponding to the electronic certificates required by each government affairs scenario according to the user's unique identity identifier, realizing one code for multiple certificates. In the corresponding government affairs scenario, by displaying the identification code corresponding to the government affairs scenario, the electronic certificate required by the government affairs scenario can be automatically extracted from the blockchain and presented, bringing a good experience to the user and improving the business processing efficiency.

[0079] Based on the same idea, some embodiments of the present application also provide the devices and non-volatile computer storage media corresponding to the above methods.

[0080] Figure 3 FIG. is a schematic structural diagram of a blockchain-based business processing device provided by an embodiment of the present application. The device includes:

[0081] At least one processor; and,

[0082] A memory communicatively connected to the at least one processor; wherein,

[0083] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0084] Construct a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios;

[0085] Obtain electronic certificates related to the user, chain the electronic certificates, and associate the unique identity identifier of the user with the electronic certificates;

[0086] In the mapping table, sequentially traverse the electronic sample certificates in each government affairs sample scenario according to the electronic certificates, and determine the government affairs sample scenarios related to the user; wherein, the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and the government affairs sample scenarios are used as the government affairs scenarios related to the user;

[0087] Associate the electronic certificates required by the government affairs scenario with the government affairs scenario, and associate the unique identity identifier with the government affairs scenario;

[0088] Generate identification codes respectively corresponding to the electronic certificates required by each government affairs scenario according to the unique identity identifier;

[0089] In response to the user's application request for the identification code, send identity verification information to the user;

[0090] If the user's identity verification is passed, send the identification code to the user so that the service provider can scan the identification code through a scanning device;

[0091] In response to the authorization request of the service provider, obtain permissions from the user so that the service provider can obtain the electronic certificates from the chain through the permissions.

[0092] A non-volatile computer storage medium for blockchain-based business processing provided by some embodiments of the present application stores computer-executable instructions, and the computer-executable instructions are set as:

[0093] Construct a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios;

[0094] Obtain electronic certificates related to the user, chain the electronic certificates, and associate the unique identity identifier of the user with the electronic certificates;

[0095] In the mapping table, sequentially traverse the electronic sample certificates in each government affairs sample scenario according to the electronic certificates, and determine the government affairs sample scenarios related to the user; wherein, the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and the government affairs sample scenarios are used as the government affairs scenarios related to the user;

[0096] Associate the electronic certificates required by the government affairs scenario with the government affairs scenario, and associate the unique identity identifier with the government affairs scenario;

[0097] Generate identification codes corresponding to the electronic certificates required by each of the government affairs scenarios according to the unique identity identifier;

[0098] In response to the user's request for applying for the identification code, send identity verification information to the user;

[0099] If the user's identity verification is passed, send the identification code to the user so that the service provider can scan the identification code through a scanning device;

[0100] In response to the authorization request of the service provider, obtain permissions from the user so that the service provider can obtain the electronic certificates from the chain through the permissions.

[0101] Each embodiment in this application is described in a progressive manner. For the same or similar parts between the embodiments, reference can be made to each other. The key point of each embodiment is to illustrate the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.

[0102] The devices and media provided in the embodiments of this application correspond one-to-one with the methods. Therefore, the devices and media also have beneficial technical effects similar to those of their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be elaborated here.

[0103] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0104] The present invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each flow and / or block in the flowchart illustrations and / or block diagrams, and combinations of flows and / or blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus create means for implementing the functions specified in the flowchart flow or flows and / or block or blocks. Figure 1 in a single flow or multiple flows and / or blocks Figure 1 or in a single block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means that implement the functions specified in the flowchart flow or flows and / or block or blocks. Figure 1 in a single flow or multiple flows and / or blocks Figure 1 or in a single block or multiple blocks.

[0106] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and / or block or blocks. Figure 1 in a single flow or multiple flows and / or blocks Figure 1 or in a single block or multiple blocks.

[0107] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0108] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read only memory (ROM) or flash memory. Memory is an example of computer-readable media.

[0109] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0110] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0111] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should all fall within the protection scope of the present application.

Claims

1. A blockchain-based business processing method, characterized in that, The method includes: The government affairs server constructs a mapping table between government affairs sample scenarios and electronic sample certificates; the mapping table is used to represent the electronic sample certificates required for different government affairs sample scenarios; Obtain electronic certificates related to the user, chain the electronic certificates, and associate the unique identity identifier of the user with the electronic certificates; In the mapping table, sequentially traverse the electronic sample certificates in each government affairs sample scenario according to the electronic certificates to determine the government affairs sample scenarios related to the user; wherein, the types of electronic sample certificates in the government affairs sample scenarios are all included in the types of the electronic certificates, and use the government affairs sample scenarios as the government affairs scenarios related to the user; Associate the electronic certificates required by the government affairs scenario with the government affairs scenario, and associate the unique identity identifier with the government affairs scenario; Generate identification codes respectively corresponding to the electronic certificates required by each government affairs scenario according to the unique identity identifier; In response to the user's application request for the identification code, send identity verification information to the user; If the user's identity verification is passed, send the identification code to the user so that the service provider can scan the identification code through a scanning device; In response to the authorization request of the service provider, obtain permissions from the user so that the service provider can obtain the electronic certificates from the chain through the permissions; After generating the identification codes respectively corresponding to the electronic certificates required by each government affairs scenario according to the unique identity identifier, the method further includes: Encrypt the identification code with the encryption key provided by the user to obtain an encrypted identification code, and store the encrypted identification code in the file system on the chain; Encrypt the storage address of the encrypted identification code to obtain an encrypted storage address; Generate a key index according to the preset access policy for the service provider and the encrypted storage address; the preset access policy is used to determine whether the government affairs scenario key of the service provider is allowed to access the encryption key; Encrypt the encryption key and the keywords of the government affairs scenario to which the identification code belongs to generate a keyword index; Generate a ciphertext index according to the key index and the keyword index, and store the ciphertext index in the block on the chain; Generate a search index corresponding to the ciphertext index according to the identity identification number of the block, and store the search index in the smart contract on the chain to chain the identification codes respectively corresponding to the electronic certificates required by each government affairs scenario; The step of if the user's identity verification is passed, send the identification code to the user specifically includes: If the user's identity verification is passed, generate random identity information of the user according to the unique identity identifier of the user; Generate a keyword token according to the keywords of the government affairs scenario to be queried; Generate a search token according to the keyword token and the random identity information, and broadcast the search token on the chain so that the blockchain can retrieve and match the search index on the smart contract of the blockchain according to the search token; If the match is successful, determine the target block identity number corresponding to the matching search index. According to the target block identity number, obtain the keyword index in the ciphertext index, and verify the keyword index with the keyword token in the search token. If the verification is successful, return the target block identity number corresponding to the matching search index; According to the target block identity number, obtain the ciphertext index from the chain; According to the ciphertext index, obtain the identification code of the government affairs scenario, and send the identification code of the government affairs scenario to the user; The government affairs client is bound to the power of the user mobile terminal, and the method further includes: In response to the application request of the service provider for the identification code, detect whether the power of the user mobile terminal is less than a preset threshold; If so, obtain the government affairs scenario key of the service provider; According to the identity number of the block, obtain the ciphertext index. According to the ciphertext index, obtain the key index in the ciphertext index from the chain; Obtain the encrypted identification code through the encrypted storage address in the key index; If the government affairs scenario key meets the preset access policy in the key index, obtain the encryption key, and decrypt the encrypted identification code according to the encryption key to obtain the identification code of the government affairs scenario, and send the identification code of the government affairs scenario to the service provider.

2. The method according to claim 1, wherein The obtaining the identification code of the government affairs scenario according to the ciphertext index specifically includes: According to the ciphertext index, obtain the key index in the ciphertext index from the chain; Obtain the encrypted identification code through the encrypted storage address in the key index; Obtain the encryption key provided by the user, and decrypt the encrypted identification code according to the encryption key to obtain the identification code of the government affairs scenario.

3. The method according to claim 1, characterized in that, Obtain permissions from the user so that the service provider can obtain the electronic license from the chain through the permissions, specifically including: Obtain permissions from the user, and when the service provider queries the electronic license from the chain through the permissions, display the electronic license to the service provider; When the service provider retains the electronic license, generate an invisible encrypted watermark for the electronic license required by each government affairs scenario; wherein, the invisible encrypted watermark is related to the current government affairs scenario; Send the electronic license with the invisible encrypted watermark to the service provider so that the service provider can obtain the electronic license with the invisible encrypted watermark; Wherein, if the service provider applies the electronic license with the invisible encrypted watermark to other government affairs scenarios except the current government affairs scenario, when decrypting the invisible encrypted watermark, prompt that the status of the electronic license with the invisible encrypted watermark is unavailable.

4. The method according to claim 1, characterized in that, The obtaining the electronic license related to the user specifically includes: Obtain the original electronic license related to the user; Encrypt the basic information of the original electronic license as a digest to generate a digital signature of the original electronic license; Generate an updated electronic seal for the original electronic license according to the digital signature and the electronic data graph of the special seal in the original electronic license; By means of the updated electronic signature, the original electronic signature in the original electronic certificate is updated to generate the electronic certificate.

5. The method according to claim 4, characterized in that, After obtaining the original electronic certificate related to the user, the method further includes: Obtaining the original electronic certificate related to the user within a preset period; Comparing the original electronic certificate information in the first period with the original electronic certificate information in the second period to determine whether the original electronic certificate information in the first period is consistent with the original electronic certificate information in the second period; the time of the first period is earlier than the time of the second period; If not, then updating the corresponding original electronic certificate information in the first period with the inconsistent original electronic certificate information in the second period to update the original electronic certificate related to the user.

6. A blockchain-based business processing device, characterized in that, The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a blockchain-based service processing method according to any one of claims 1-5 above.

7. A non-volatile computer storage medium for business processing based on blockchain, storing computer-executable instructions, characterized in that, The computer-executable instructions are set to: execute a blockchain-based service processing method according to any one of claims 1-5 above.

Citation Information

Patent Citations

  • Blockchain-based license management method

    CN113381992A