Resource voucher generation method and device, equipment, medium and product
When the first device receives the request information sent by the second device, the device identification is determined from the corresponding relationship between the user identification and the user device identification, and sends verification information to the user device, and requires the user to enter the card identification, solving the problem of resource credential leakage and security, real-time generation and secure redemption of resource credentials are realized.
Patent Information
- Application Number
- CN202411523723.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the user's resource credentials are easily leaked, resulting in the resource credentials being stolen by others, which has security problems and affects the user experience.
When the first device receives the request information sent by the second device, the device identification corresponding to the user identification is determined from the correspondence relationship between the user identification and the user device identification, and the verification information is sent to the user equipment, and the user is required to enter the card identification. Then, it is detected whether the card identifier is included in the storage data of the device. If included, the identifier is generated and sent to the blockchain device, and the resource credentials are generated based on the credential factor, user identification, identification and timestamp.
Real-time generation of resource credentials is realized, the security of credentials is enhanced, the leakage is avoided, and the user's experience when redeeming resources is improved.
Smart Images

Figure CN119515464A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, device, equipment, medium and product for generating resource credentials. Background Art
[0002] Currently, users can exchange resources at resource issuers based on resource vouchers, such as redemption codes, included in user devices. The resource issuer device completes the redemption by verifying the resource vouchers received from the user device. However, the above process may cause security issues such as leakage of user resource vouchers and theft of user resource vouchers by others, resulting in a poor user experience. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device, medium and product for generating a resource credential, which can improve the security of the resource credential and enhance the user experience.
[0004] In a first aspect, an embodiment of the present application provides a method for generating a resource credential, which is applied to a first device, and the generating method includes:
[0005] Receiving first request information sent by the second device, where the first request information is information generated by the second device based on the first user identifier when the second device receives first user request information for obtaining resource credentials sent by the first user device, wherein the first user request information includes the first user identifier and a credential factor, the first request information includes the first user identifier, and the credential factor is associated with the second user identifier;
[0006] Determine a first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier, and send first verification information to the first user device corresponding to the first device identifier, so that the user can input the first card identifier based on the first verification information displayed by the first user device;
[0007] receiving a first card identifier of a user identity SIM card sent by a first user device, detecting whether the first card identifier is included in the stored data of the first device, and obtaining a first detection result, wherein the first card identifier is an identifier included in an input of the user to the first user device;
[0008] In a case where the first detection result includes a first card identifier in the storage data of the first device, a first identifier is generated and sent to a second device, so that the second device can send a credential factor, a first user identifier, and a first identifier to a blockchain device, so that the blockchain device can generate a resource credential based on the credential factor, the first user identifier, the first identifier, and a first timestamp, and send the resource credential to the second device, so that the second device can send the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0009] In a second aspect, an embodiment of the present application provides a method for generating a resource credential, which is applied to a second device, and the generating method includes:
[0010] In the case of receiving first user request information for obtaining resource credentials sent by a first user device, sending first request information to the first device, so that the first device determines a first device identifier corresponding to the first user identifier from a correspondence between the user identifier and the user device identifier, and sending first verification information to the first user device corresponding to the first device identifier, so that the user inputs a first card identifier based on the first verification information displayed by the first user device, wherein the first user request information includes a credential factor and a first user identifier, the first request information includes the first user identifier, and the credential factor is associated with a second user identifier;
[0011] Receive a first identifier sent by a first device, and send a credential factor, a first user identifier, and a first identifier to a blockchain device, so that the blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier, and a first timestamp, wherein the first identifier is a first card identifier of a user identity identification SIM card sent by a first user device, and the first device detects whether the first card identifier is included in the stored data of the first device to obtain a first detection result, and generates the first identifier and sends it to the second device when the first detection result includes that the first card identifier is included in the stored data of the first device, wherein the resource credential is associated with the second user identifier;
[0012] The receiving blockchain device sends a resource credential, and sends the resource credential to the first user device.
[0013] In a third aspect, an embodiment of the present application provides a method for generating a resource credential, which is applied to a blockchain device, and the generation method includes:
[0014] The blockchain device receiving the credential factor, the first user identifier and the first identifier sent by the second device, wherein the credential factor and the first user identifier are the credential factor and the first user identifier included in the first user request information for obtaining resource credentials sent by the first user device to the second device, and the first identifier is the first device identifier corresponding to the first user identifier determined from the correspondence between the user identifier and the user device identifier when the first device receives the first request information sent by the second device, and sends the first verification information to the first user device corresponding to the first device identifier, so that the user inputs the first card identifier based on the first verification information displayed by the first user device, receives the first card identifier of the user identity identification SIM card sent by the first user device, detects whether the first card identifier is included in the stored data of the first device, obtains the first detection result, and generates the first identifier and sends it to the second device when the first detection result includes the first card identifier in the stored data of the first device, wherein the first request information includes the first user identifier, the first card identifier is the identifier included in the user's input to the first user device, and the credential factor is associated with the second user identifier;
[0015] A resource credential is generated based on the credential factor, the first user identifier, the first identifier and the first timestamp, and the resource credential is sent to the second device so that the second device sends the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0016] In a fourth aspect, an embodiment of the present application provides a device for generating a resource credential, which is applied to a first device, and the generating device includes:
[0017] A receiving module, configured to receive first request information sent by a second device, wherein the first request information is information generated by the second device based on a first user identifier when the second device receives first user request information for obtaining a resource credential sent by a first user device, wherein the first user request information includes the first user identifier and a credential factor, the first request information includes the first user identifier, and the credential factor is associated with the second user identifier;
[0018] a determination module, configured to determine a first device identifier corresponding to a first user identifier from a correspondence between user identifiers and user device identifiers, and to send first verification information to a first user device corresponding to the first device identifier, so that the user can input a first card identifier based on the first verification information displayed by the first user device;
[0019] The receiving module is further used to receive a first card identifier of a user identity SIM card sent by a first user device, detect whether the first card identifier is included in the storage data of the first device, and obtain a first detection result, wherein the first card identifier is an identifier included in the user input for the first user device;
[0020] A generation module is used to generate a first identifier and send the first identifier to a second device when a first detection result includes a first card identifier in the storage data of the first device, so that the second device can send a credential factor, a first user identifier and a first identifier to a blockchain device, so that the blockchain device can generate a resource credential based on the credential factor, the first user identifier, the first identifier and a first timestamp, and send the resource credential to the second device, so that the second device can send the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0021] In a fifth aspect, an embodiment of the present application provides a device for generating a resource credential, which is applied to a second device, and the generating device includes:
[0022] a sending module, configured to, upon receiving first user request information for obtaining a resource credential sent by a first user device, send first request information to the first device, so that the first device determines a first device identifier corresponding to the first user identifier from a correspondence between the user identifier and the user device identifier, and send first verification information to the first user device corresponding to the first device identifier, so that the user inputs a first card identifier based on the first verification information displayed by the first user device, wherein the first user request information includes a credential factor and a first user identifier, the first request information includes the first user identifier, and the credential factor is associated with a second user identifier;
[0023] A receiving module, configured to receive a first identifier sent by a first device, and to send a credential factor, a first user identifier, and a first identifier to a blockchain device, so that the blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier, and a first timestamp, wherein the first identifier is a first card identifier of a user identity identification SIM card sent by a first user device, when the first device detects whether the first card identifier is included in the stored data of the first device to obtain a first detection result, and when the first detection result includes that the first card identifier is included in the stored data of the first device, generates the first identifier and sends it to the second device, wherein the resource credential is associated with the second user identifier;
[0024] The receiving module is also used to receive the resource certificate sent by the blockchain device and send the resource certificate to the first user device.
[0025] In a sixth aspect, an embodiment of the present application provides a device for generating a resource credential, which is applied to a blockchain device, and the generating device includes:
[0026] A receiving module, configured to receive a blockchain device-sent credential factor, a first user identifier, and a first identifier sent by a second device, wherein the credential factor and the first user identifier are included in a first user request message for obtaining a resource credential sent by the first user device to the second device, and the first identifier is, when the first device receives the first request message sent by the second device, a first device identifier corresponding to the first user identifier is determined from a correspondence between a user identifier and a user device identifier, and a first verification message is sent to the first user device corresponding to the first device identifier, so that the user inputs a first card identifier based on the first verification information displayed by the first user device, receives a first card identifier of a user identity identification SIM card sent by the first user device, detects whether the first card identifier is included in the stored data of the first device, obtains a first detection result, and generates a first identifier and sends it to the second device when the first detection result includes the first card identifier in the stored data of the first device, wherein the first request message includes the first user identifier, the first card identifier is an identifier included in the user's input to the first user device, and the credential factor is associated with the second user identifier;
[0027] A sending module is used to generate a resource credential based on the credential factor, the first user identifier, the first identifier and the first timestamp, and send the resource credential to the second device, so that the second device sends the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0028] In a seventh aspect, an embodiment of the present application provides an electronic device, the device comprising:
[0029] a processor and a memory storing computer program instructions;
[0030] When the processor executes the computer program instructions, it is used to execute the method for generating resource credentials of the first aspect, the second aspect or the third aspect.
[0031] In an eighth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for generating resource credentials of the first aspect, the second aspect or the third aspect described above is implemented.
[0032] In a ninth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when processed by a processor, implements the method for generating resource credentials of the first aspect, the second aspect or the third aspect mentioned above.
[0033] The resource credential generation method, apparatus, device, medium and product provided in the embodiments of the present application, when the first device receives the first request information sent by the second device, determines the first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier, sends the first verification information to the first user device corresponding to the first device identifier, so that the user inputs the first card identifier based on the first verification information displayed by the first user device, receives the user's input based on the first verification information, and sends the first card identifier of the user identity identification SIM card to the first device, and detects whether the first card identifier is included in the storage data of the first device by the first device to obtain a first detection result, thereby verifying the user identity, and then generates a first identifier and sends the first identifier to the second device when the first detection result includes that the first card identifier is included in the storage data of the first device, so that the second device sends the credential factor, the first user identifier and the first identifier to the blockchain device, so that the blockchain device generates the resource credential based on the credential factor, the first user identifier, the first identifier and the first timestamp, and sends the resource credential to the second device, so that the second device sends the resource credential to the first user device, thereby realizing the real-time generation of the resource credential, avoiding the leakage of the resource credential, improving the security of the resource credential, and improving the user experience of the user's subsequent redemption of resources based on the resource credential. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0035] Figure 1 A flowchart of a method for generating resource credentials provided in some embodiments of the present application.
[0036] Figure 2 A schematic diagram of an exemplary first user device displaying verification information provided for some embodiments of the present application.
[0037] Figure 3 A flowchart of another method for generating resource credentials provided in some embodiments of the present application.
[0038] Figure 4 A flowchart of another method for generating resource credentials provided in some embodiments of the present application.
[0039] Figure 5 A schematic diagram of a device for generating a resource credential provided in some embodiments of the present application.
[0040] Figure 6A schematic diagram of another device for generating resource credentials provided in some embodiments of the present application.
[0041] Figure 7 A schematic diagram of another device for generating resource credentials provided in some embodiments of the present application.
[0042] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0044] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0045] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:
[0046] With the continuous development of the Internet, users may go to the resource issuer for verification based on the resource voucher issued by the resource issuer, such as the redemption code. The current verification process mainly includes three stages. The first stage is that the resource issuer generates the resource voucher based on the server. The second stage is that the server issues the resource voucher to the user's user device. The third stage is that the user goes to the resource issuer for verification based on the resource voucher of the user device. However, the above process may have security issues such as the leakage of the user's resource voucher and the theft of the user's resource voucher by others, resulting in a poor user experience.
[0047] Based on this, the embodiment of the present application provides a method, device, equipment, medium and product for generating a resource credential, which can solve the above problems.
[0048] In some embodiments, Figure 1 As shown, the embodiment of the present application provides a method for generating a resource credential, which may include the following steps S110-S210:
[0049] S110: The first user device sends first user request information for obtaining a resource credential to the second device, where the first user request information includes a first user identifier and a credential factor, and the credential factor is associated with the second user identifier.
[0050] The user can send a first user request to obtain a resource credential to the second device based on the first user device. Here, the second device can be a server device. The second user device of the resource issuer can generate a corresponding verification tool such as a redemption code associated with the second user identifier based on the server in advance. The second user identifier is the user identifier of the resource issuer.
[0051] Here, the first user request information includes a first user identifier and a credential factor. The first user identifier is an identifier for identifying the user, such as the user's mobile phone number. The credential factor is a credential factor associated with the verification tool. The credential factor can be used to generate a resource voucher, and the subsequent user can redeem the resource based on the resource voucher. It is conceivable that the credential factor can be associated with both the first user identifier and the second user identifier, representing the corresponding unique user and resource issuer.
[0052] S120: The first device receives first request information sent by the second device, where the first request information includes a first user identifier.
[0053] The first device may receive the first request information sent by the second device, and the first request information may include the above-mentioned first user identification. For example, the first device sends the above-mentioned user's mobile phone number to the second device. Here, to prevent user information leakage, the second device may send an encrypted mobile phone number to the first device. The encrypted mobile phone number is the mobile phone number that the first device encrypts when the user obtains the first card identification from the first device based on the mobile phone number and sends it to the second device.
[0054] Here, the first device is a device that stores the user's SIM card identifier.
[0055] S130: The first device determines a first device identifier corresponding to the first user identifier from a correspondence between user identifiers and user device identifiers, and sends first verification information to a first user device corresponding to the first device identifier.
[0056] The first device can determine the first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier. Here, the above correspondence is the identifier included in the request information when the first user device sends a request information for obtaining the first card identifier to the first device. The first device can establish a correspondence based on the first user device sent by the user and the first device.
[0057] After determining the first device identifier, the first device may send first verification information to the first user device corresponding to the first device identifier, for example, sending pop-up information to the first user device.
[0058] S140: The first user equipment displays first verification information.
[0059] The first user device may display the first verification information, for example, the first user device may display the first verification information based on Figure 2 The pop-up window information shown displays the first verification information.
[0060] S150: The first user equipment receives a user input for the first user equipment, where the input includes a first card identifier of a SIM card for user identification.
[0061] The first user device may receive user input for the first user device, where the input may include a first card identifier of a user identity SIM card, and the first card identifier may be an identifier sent by the first device to the first user device when the first device receives the request information sent by the first user device.
[0062] S160: The first user equipment sends a first card identifier to the first device.
[0063] The first user equipment may send the first card identifier to the first device.
[0064] S170: The first device detects whether the stored data of the first device includes the first card identifier, and obtains a first detection result.
[0065] The first device can detect whether the stored data of the first device includes the above-mentioned first card identifier to obtain a first detection result. It can be imagined that when the user's first user device is connected to the SIM card, the first device will store the first card identifier associated with both the first user identifier and the first device identifier.
[0066] S180: When the first detection result includes that the first card identifier is included in the stored data of the first device, the first device generates a first identifier and sends the first identifier to the second device.
[0067] In the case that the first detection result includes the first card identifier in the stored data of the first device, it indicates that the first card identifier is authentic and valid, and the first device may generate the first identifier and send the first identifier to the second device.
[0068] In some examples, when the first device detects whether the stored data of the first device includes the first card identifier, it may generate a detection task in the system log, the detection task may carry a task identifier, and the first device may send the task identifier to the second device.
[0069] It can be imagined that the first device will send the above-mentioned first identification to the second device only when the first device determines that the first detection result includes the first card identification included in the stored data of the first device. When the first device determines that the first detection result includes the first card identification not included in the stored data of the first device, the first device will not send the above-mentioned first identification to the second device.
[0070] S190: The second device sends the credential factor, the first user identifier, and the first identifier to the blockchain device.
[0071] S200: The blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier, and the first timestamp, and sends the resource credential to the second device.
[0072] The blockchain device can use the smart contract to generate a resource certificate based on the certificate factor, the first user identifier, the first identifier and the first timestamp. Here, the first timestamp can be the timestamp of the blockchain device receiving the above-mentioned certificate factor, the first user identifier and the first identifier. After the blockchain device generates the resource certificate, it can send the resource certificate to the second device.
[0073] In some examples, the smart contract records a generation task when generating a resource credential, and the generation task may carry an identifier, and the resource credential may be generated based on the identifier, the credential factor, the first user identifier, the first identifier, and the first timestamp.
[0074] In some examples, the credential factor is associated with the first user identifier, and the blockchain device can detect all credentials associated with the first user identifier based on the first user identifier, and detect whether all credentials include the resource factor, thereby detecting the validity of the credential factor. When it is detected that the credential includes the credential factor, a resource credential is generated based on the credential factor, the first user identifier, the first identifier, and the first timestamp.
[0075] In some examples, the blockchain device can detect whether the timestamp included in the above-mentioned credential factor is within a preset time period. When it is determined that the timestamp included in the credential factor is within the preset time period, a resource credential can be generated based on the credential factor, the first user identifier, the first identifier, and the first timestamp.
[0076] S210: The second device sends a resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0077] When receiving the resource credential, the second device may send the resource credential to the first user device corresponding to the first user identifier based on storing the resource credential and based on the first user identifier included in the resource credential.
[0078] In the embodiment of the present application, when the first device receives the first request information sent by the second device, the first device identifier corresponding to the first user identifier is determined from the correspondence between the user identifier and the user device identifier, and the first verification information is sent to the first user device corresponding to the first device identifier, so that the user inputs the first card identifier based on the first verification information displayed by the first user device, receives the user's input based on the first verification information, and sends the first card identifier of the user identity identification SIM card to the first device, and detects whether the first card identifier is included in the storage data of the first device by the first device to obtain a first detection result, thereby verifying the user identity, and then, when the first detection result includes that the first card identifier is included in the storage data of the first device, the first identifier is generated and sent to the second device, so that the second device sends the credential factor, the first user identifier and the first identifier to the blockchain device, so that the blockchain device generates the resource credential based on the credential factor, the first user identifier, the first identifier and the first timestamp, and sends the resource credential to the second device, so that the second device sends the resource credential to the first user device, thereby realizing the real-time generation of the resource credential, avoiding the leakage of the resource credential, improving the security of the resource credential, and improving the user experience of the user's subsequent redemption of resources based on the resource credential.
[0079] In some embodiments, Figure 3 As shown, before the first device receives the first request information sent by the second device, the generating method may further include the following steps S310-S410:
[0080] S310: The first user device sends second user request information for obtaining a credential factor to the second device, where the second user request information includes a first user identifier.
[0081] Here, the first user device may send a second user request message for obtaining a credential factor to the first device, and it is conceivable that the credential factor is associated with both the first user identifier and the second user identifier. The first user identifier may be a mobile phone number.
[0082] S320: The first device receives second request information sent by the second device, where the second request information includes the first user identifier.
[0083] When receiving the first user identifier, the second device may send second request information to the first device, and the first device may verify the user identity based on the first user identifier included in the request information.
[0084] S330: The first device determines a first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier, and sends second verification information to the first user device corresponding to the first user identifier.
[0085] The first device identifier can determine the first device identifier corresponding to the first user identifier based on the correspondence between the user identifier and the user device identifier, and send the second verification information to the first user device corresponding to the first user identifier.
[0086] S340: The first user equipment displays the second verification information.
[0087] Similarly, the first user equipment can display the second verification information based on the above pop-up window format.
[0088] S350: The first user device receives a user input for the first user device, where the input includes a first card identifier.
[0089] The user may input the first card identification for the first user device.
[0090] S360: The first device receives the first card identifier sent by the first user equipment.
[0091] S370: The first device detects whether the stored data of the first device includes the first card identifier, and obtains a second detection result.
[0092] S380: When the second detection result includes that the first card identifier is included in the stored data of the first device, the first device generates a second identifier and sends the second identifier to the second device.
[0093] When the second detection result includes the first card identifier in the stored data of the first device, it indicates that the first card identifier is authentic and valid. The first device may generate a second identifier and send the first identifier to the second device.
[0094] Similarly, when the first device detects whether the first card identifier is included in the stored data of the first device, a detection task may be generated in the system log, the detection task may carry the first task identifier, and the first device may send the first task identifier to the second device. It is conceivable that the first task identifier is an identifier different from the aforementioned task identifier.
[0095] S390: The second device sends the first user identifier and the second identifier to the blockchain device.
[0096] S400: The blockchain device generates a credential factor based on the first user identifier, the second identifier, and the second timestamp, and sends the credential factor to the second device.
[0097] The blockchain device can generate a credential factor based on the first user identifier, the second identifier, and the second timestamp through a smart contract. The second timestamp can be a timestamp when the blockchain device receives the first user identifier and the second identifier.
[0098] In some examples, the smart contract records a generation task when generating a credential factor. The generation task may carry a new identifier, and a resource credential may be generated based on the new identifier, the first user identifier, the second identifier, and the second timestamp.
[0099] S410: The second device sends a credential factor to the first user device.
[0100] In the embodiment of the present application, when the first device receives the second request information sent by the second device, the first device identifier corresponding to the first user identifier is determined from the correspondence between the user identifier and the user device identifier, and the second verification information is sent to the first user device corresponding to the first device identifier, so that the first user device displays the second verification information, receives the user's input based on the second verification information, and sends the first card identifier to the first device. The first device detects whether the first card identifier is included in the storage data of the first device to obtain the second detection result, thereby verifying the user identity when generating the credential factor. Then, when the second detection result includes that the first card identifier is included in the storage data of the first device, the second identifier is generated and sent to the second device, so that the second device sends the second identifier and the first user identifier to the blockchain device, so that the blockchain device generates the credential factor based on the second identifier, the first user identifier and the second timestamp, and sends the credential factor to the second device, so that the second device sends the credential factor to the first user device, so that the user can subsequently generate a resource credential based on the credential to exchange resources, which is "double encryption" of the resource credential, improves the security of the resource credential, and improves the user experience of the user's subsequent exchange of resources based on the resource credential.
[0101] In some embodiments, Figure 4 As shown, in the case where the first detection result includes that the first card identifier is included in the stored data of the first device, after the first device generates the first identifier and sends the first identifier to the second device, the generation method may further include the following steps S510-S640:
[0102] S510: The first user equipment sends fourth user request information to the second user equipment, where the fourth user request information includes a resource credential.
[0103] After receiving the resource credential, the first user equipment may send fourth user request information including the resource credential to the second user equipment. The second user equipment is the user equipment of the resource issuer.
[0104] S520: The second user equipment sends third user request information to the second device, where the third user request information includes a second user identifier and a resource credential.
[0105] The second user device may send third user request information to the second device, where the third user request information includes a second user identifier and a resource credential, and the second user identifier may be a mobile phone number of a resource issuer.
[0106] S530: The first device receives third request information sent by the second device, where the third request information includes the second user identifier.
[0107] The first device may receive the third request information sent by the second device, and verify the user identity of the resource issuer based on the second user identifier included in the third request information.
[0108] S540: The first device determines a second device identifier corresponding to the second user identifier from the correspondence between the user identifier and the user device identifier, and sends third verification information to the second user device corresponding to the second device identifier.
[0109] S550: The second user device displays the third verification information.
[0110] S560: The second user equipment receives a user input for the second user equipment, where the input includes a second card identifier of the SIM card used to identify the user.
[0111] Here, the first device can send the third information to the second device corresponding to the second user identifier. Similarly, the user of the resource issuer can input the second card identifier based on the third verification information displayed by the second user device. It is conceivable that the second card identifier is an identifier pre-acquired by the second user device based on the first device.
[0112] S570: The first device receives a second card identifier of a user identity identification SIM card sent by a second user device.
[0113] S580: The first device detects whether the storage data of the second device includes the second card identifier, and obtains a third detection result.
[0114] S590: When the third detection result includes that the second card identifier is included in the stored data of the first device, the first device generates a third identifier and sends the third identifier to the second device.
[0115] When the first device determines that the second card identifier is included in the stored data of the first device, a third identifier may be generated, and the third identifier indicates that the second card identifier is authentic and valid.
[0116] S600: The second device detects whether the resource credential meets a preset condition and obtains a fourth detection result.
[0117] The second device can detect whether the resource credential meets preset conditions, for example, detecting whether the first credential associated with the first user identifier includes the above-mentioned resource credential, detecting whether the second credential associated with the second user identifier includes the above-mentioned resource credential, and verifying whether the second timestamp included in the above-mentioned resource credential is within a preset time period, to obtain a fourth detection result.
[0118] S610: When the fourth detection result includes that the resource credential meets a preset condition, the first device sends the resource credential to the blockchain device.
[0119] When the fourth detection result includes that the resource credential meets the preset condition, it indicates that the resource credential is associated with both the first user identifier and the second user identifier, and the resource credential is within the validity period.
[0120] S620: The blockchain device verifies the resource certificate and sends a response message to the second device.
[0121] S630: The second device performs a write-off process on the resource voucher to obtain a write-off result.
[0122] S640: The second device sends the verification result to the second user device.
[0123] The resource certificate can be verified through the blockchain, and after the blockchain verification is completed, a response message is sent to the second device, and the second device verifies the resource certificate.
[0124] In an embodiment of the present application, when the first device redeems a resource based on a resource voucher, the first device receives a third request message sent by the second device, the first device determines the second device identifier corresponding to the second user identifier from the correspondence between the user identifier and the user device identifier, sends second verification information to the second user device corresponding to the second device identifier, so that the second user device displays the third verification information, receives user input based on the third verification information, and sends the second card identifier to the first device, and detects by the first device whether the second card identifier is included in the storage data of the first device to obtain a third detection result, thereby verifying the user identity of the resource issuer, and then, when the third detection result includes that the first card identifier is included in the storage data of the first device, generates a third identifier and sends the third identifier to the second device, so that the second device verifies the resource voucher, verifies the authenticity and validity of the resource voucher, realizes one-to-one exchange of resource vouchers, and improves the security of users when redeeming resources.
[0125] In some embodiments, before the first device receives the first request information sent by the second device, the generating method further includes:
[0126] The first device receives user request information for obtaining a first card identifier sent by the first user device, where the user request information includes the first user identifier and the first user device identifier of the first user device, and the user request information is information generated when the first user device is connected to a SIM card; the first device determines the first card identifier corresponding to the first user identifier based on a pre-established correspondence between the user identifier and the card identifier, sends the first card identifier to the first user device, and establishes an association relationship between the first user identifier and the first user device identifier.
[0127] Here, when the first user device is connected to the SIM card, the first device can send user request information for obtaining the first card identifier to the first device, and the request information may include the first user identifier and the first user device identifier. The first device can determine the first card identifier corresponding to the first user identifier based on the pre-established correspondence between the user identifier and the card identifier, and then establish an association relationship between the first user identifier and the first user device identifier, and then send the first card identifier, such as the SIM card number, to the first user device.
[0128] In the embodiment of the present application, when the first user device is connected to the SIM card, user request information for obtaining the card identifier is sent to the first device. The first device determines the first card identifier corresponding to the first user identifier based on a pre-established correspondence between the user identifier and the card identifier, and sends the above-mentioned first card identifier to the first user device, thereby realizing the user's acquisition of the card identifier. The first device establishes an association relationship between the first user identifier and the first user device identifier to facilitate the subsequent sending of verification information to the first user device.
[0129] It is conceivable that the second user equipment can obtain the second card identifier based on the same process, which will not be described in detail here.
[0130] Based on the same inventive concept, an embodiment of the present application also provides a device for generating a resource credential.
[0131] In some embodiments, Figure 5 As shown, an embodiment of the present application provides a device for generating a resource credential, which is applied to a first device, and the generating device includes:
[0132] The receiving module 501 is used to receive first request information sent by the second device, where the first request information is information generated by the second device based on the first user identifier when the second device receives first user request information for obtaining resource credentials sent by the first user device, wherein the first user request information includes the first user identifier and the credential factor, the first request information includes the first user identifier, and the credential factor is associated with the second user identifier;
[0133] A determination module 502, configured to determine a first device identifier corresponding to a first user identifier from a correspondence between user identifiers and user device identifiers, and to send first verification information to a first user device corresponding to the first device identifier, so that the user can input a first card identifier based on the first verification information displayed by the first user device;
[0134] The receiving module 501 is further configured to receive a first card identifier of a user identity SIM card sent by a first user device, detect whether the first card identifier is included in the storage data of the first device, and obtain a first detection result, wherein the first card identifier is an identifier included in the user input for the first user device;
[0135] A generation module 503 is used to generate a first identifier and send the first identifier to a second device when the first detection result includes a first card identifier in the storage data of the first device, so that the second device can send a credential factor, a first user identifier and a first identifier to a blockchain device, so that the blockchain device can generate a resource credential based on the credential factor, the first user identifier, the first identifier and a first timestamp, and send the resource credential to the second device, so that the second device can send the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0136] In some embodiments, the receiving module 501 may also be used to:
[0137] receiving second request information sent by the second device, where the second request information is information generated by the second device based on the first user identifier when the second device receives second user request information for obtaining a credential factor sent by the first user device, the second request information includes the first user identifier, and the second user request information includes the first user identifier;
[0138] Determine a first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier, and send second verification information to the first user device corresponding to the first user identifier, so that the first user device displays the second verification information;
[0139] receiving a first card identifier sent by a first user device, detecting whether the first card identifier is included in the stored data of the first device, and obtaining a second detection result;
[0140] In a case where the second detection result includes the first card identifier in the stored data of the first device, a second identifier is generated and sent to the second device, so that the second device can send the first user identifier and the second identifier to the blockchain device, so that the blockchain device can generate a credential factor based on the first user identifier, the second identifier and the second timestamp, and send the credential factor to the second device, so that the second device can send the credential factor to the first user device.
[0141] In some embodiments, the receiving module 501 may also be used to:
[0142] receiving third request information sent by the second device, where the third request information is information generated by the second device based on the second user identifier when the second device receives third user request information sent by the second user device, and the third user request information is information generated by the second user device when the second user device receives fourth user request information sent by the first user device, wherein the third request information includes the second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential;
[0143] Determine a second device identifier corresponding to the second user identifier from the correspondence between the user identifier and the user device identifier, and send third verification information to the second user device corresponding to the second device identifier, so that the second user device displays the third verification information;
[0144] receiving a second card identifier of a user identity identification SIM card sent by a second user device, detecting whether the second card identifier is included in the storage data of the second device, and obtaining a third detection result, wherein the second card identifier is an identifier included in the user input for the second user device;
[0145] When the third detection result includes the second card identifier in the storage data of the first device, a third identifier is generated and sent to the second device for the second device to detect whether the resource credential meets the preset conditions, and a fourth detection result is obtained. When the fourth detection result includes that the resource credential meets the preset conditions, the resource credential is sent to the blockchain device for the blockchain device to verify the resource credential, and a response message is sent to the second device for the second device to verify the resource credential.
[0146] In some embodiments, the receiving module 501 may also be used to:
[0147] receiving user request information for obtaining a first card identifier sent by a first user equipment, where the user request information includes the first user identifier and a first user equipment identifier of the first user equipment, and the user request information is information generated when the first user equipment is connected to a SIM card;
[0148] The first card identifier corresponding to the first user identifier is determined based on the pre-established correspondence between the user identifier and the card identifier, the first card identifier is sent to the first user equipment, and an association relationship between the first user identifier and the first user equipment identifier is established.
[0149] In some embodiments, Figure 6 As shown, an embodiment of the present application provides a device for generating a resource credential, which is applied to a second device, and the generating device includes:
[0150] A sending module 601 is configured to, upon receiving first user request information for obtaining a resource credential sent by a first user device, send first request information to the first device, so that the first device determines a first device identifier corresponding to the first user identifier from a correspondence between the user identifier and the user device identifier, and send first verification information to the first user device corresponding to the first device identifier, so that the user inputs a first card identifier based on the first verification information displayed by the first user device, wherein the first user request information includes a credential factor and a first user identifier, the first request information includes the first user identifier, and the credential factor is associated with a second user identifier;
[0151] A receiving module 602 is used to receive a first identifier sent by a first device, and to send a credential factor, a first user identifier, and a first identifier to a blockchain device, so that the blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier, and a first timestamp, wherein the first identifier is a first card identifier of a user identity identification SIM card sent by a first user device, and when the first device receives the first card identifier, it detects whether the first card identifier is included in the stored data of the first device to obtain a first detection result, and when the first detection result includes that the first card identifier is included in the stored data of the first device, generates the first identifier and sends it to the second device, wherein the resource credential is associated with the second user identifier;
[0152] The receiving module 602 is further used to receive the resource certificate sent by the blockchain device and send the resource certificate to the first user device.
[0153] In some embodiments, the sending module 602 may also be used to:
[0154] In the case of receiving the second user request information for obtaining the credential factor sent by the first user device, sending the second request information to the first device, so that the first device determines the first device identifier corresponding to the first user identifier from the correspondence between the user identifier and the user device identifier, and sending the second verification information to the first user device corresponding to the first user identifier, so that the first user device displays the second verification information, wherein the second user request information includes the first user identifier, and the second request information includes the first user identifier;
[0155] Receive a second identifier sent by the first device, and send the second identifier and the first user identifier to the blockchain device, so that the blockchain device generates a credential factor based on the second identifier, the first user identifier, and the second timestamp, wherein the second identifier is an identifier that the first device detects whether the first card identifier is included in the stored data of the first device when receiving the first card identifier sent by the first user device, obtains a second detection result, and generates the second identifier and sends it to the second device when the second detection result includes that the first card identifier is included in the stored data of the first device;
[0156] The receiving blockchain device sends the credential factor, and sends the credential factor to the first user device.
[0157] In some embodiments, the sending module 602 may also be used to:
[0158] When receiving third user request information sent by the second user device, send third request information to the first device, where the third user request information is information generated by the second user device when receiving fourth user request information sent by the first user device, wherein the third request information includes the second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential;
[0159] Receive a third identifier sent by the first device, and detect whether the resource credential meets the preset conditions to obtain a fourth detection result, and send the resource credential to the blockchain device if the fourth detection result includes that the resource credential meets the preset conditions, so that the blockchain device can perform verification processing on the resource credential, and send a response message to the second device, wherein the third identifier is a second device identifier corresponding to the second user identifier determined by the first device from the correspondence between the user identifier and the user device identifier when the first device receives the third request information sent by the second device, and sends third verification information to the second user device corresponding to the second device identifier, so that the second user device can display the third verification information, and when receiving the second card identifier of the user identity identification SIM card sent by the second user device, detect whether the second card identifier is included in the stored data of the first device to obtain a third detection result, and when the third detection result includes that the second card identifier is included in the stored data of the first device, generate a third identifier and send it to the second device, wherein the second card identifier is an identifier included in the user's input to the second user device, and the third request information includes the second user identifier;
[0160] Receive the response information sent by the blockchain device and verify the resource certificate.
[0161] In some embodiments, Figure 7 As shown, the embodiment of the present application provides a device for generating a resource credential, which is applied to a blockchain device, and the generating device includes:
[0162] The receiving module 701 is configured to receive a credential factor, a first user identifier and a first identifier sent by a second device, wherein the credential factor and the first user identifier are the credential factor and the first user identifier included in a first user request message for obtaining a resource credential sent by the first user device to the second device, the first identifier is a first device identifier corresponding to the first user identifier determined from a correspondence between a user identifier and a user device identifier by the first device when receiving the first request message sent by the second device, and to send first verification information to the first user device corresponding to the first device identifier so that the user inputs a first card identifier based on the first verification information displayed by the first user device, receive a first card identifier of a user identity identification SIM card sent by the first user device, detect whether the first card identifier is included in the stored data of the first device, obtain a first detection result, and generate a first identifier and send the identifier to the second device when the first detection result includes the first card identifier in the stored data of the first device, wherein the first request message includes the first user identifier, the first card identifier is an identifier included in the user input for the first user device, and the credential factor is associated with the second user identifier;
[0163] The sending module 702 is used to generate a resource credential based on the credential factor, the first user identifier, the first identifier and the first timestamp, and send the resource credential to the second device, so that the second device sends the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
[0164] In some embodiments, the receiving module 701 may also be used to:
[0165] Receive a first user identifier and a second identifier sent by a second device, the first user identifier being an identifier included in the second user request information for obtaining a credential factor sent by the first user device and received by the second device, the second identifier being a first device identifier corresponding to the first user identifier determined from the correspondence between the user identifier and the user device identifier when the second device receives the second request information sent by the first device, send second verification information to the first user device corresponding to the first user identifier so that the first user device displays the second verification information, receive a first card identifier sent by the first user device, detect whether the first card identifier is included in the stored data of the first device to obtain a second detection result, and generate a second identifier and send it to the second device when the second detection result includes that the first card identifier is included in the stored data of the first device, wherein the second request information includes the first user identifier, and the second user request information includes the first user identifier;
[0166] A credential factor is generated based on the first user identifier, the second identifier, and the second timestamp, and the credential factor is sent to the second device, so that the second device sends the credential factor to the first user device.
[0167] In some embodiments, the receiving module 701 may also be used to:
[0168] Receive a resource credential sent by a second device, the resource credential being the resource credential detected by the second device when receiving a third identifier sent by the first device to determine whether the resource credential meets a preset condition, obtain a fourth detection result, and send the resource credential to the blockchain device when the fourth detection result includes that the resource credential meets the preset condition, the third identifier being the second device identifier corresponding to the second user identifier determined from the correspondence between the user identifier and the user device identifier when the first device receives a third request information sent by the second device, and sending third verification information to the second user device corresponding to the second device identifier, so that the second user device displays the third verification information, receive a second card identifier of a user identity identification SIM card sent by the second user device, detect whether the second card identifier is included in the stored data of the second device to obtain a third detection result, and generate a third identifier and send it to the second device when the third detection result includes that the second card identifier is included in the stored data of the first device, the third request information is information generated by the second device when receiving the third user request information sent by the second user device, and the third user request information is information generated by the second user device when receiving the fourth user request information sent by the first user device, wherein the third request information includes the second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential;
[0169] The resource voucher is cancelled, and response information is sent to the second device so that the second device can cancel the resource voucher.
[0170] The device of the above embodiment is used to implement the corresponding resource credential generation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0171] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an application embodiment.
[0172] The electronic device 800 may include a processor 801 and a memory 802 storing computer program instructions.
[0173] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0174] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0175] In certain embodiments, memory 802 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.
[0176] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0177] The processor 801 implements any one of the resource credential generation methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0178] In one example, the electronic device may further include a communication interface 803 and a bus 804. Figure 8 The processor 801, the memory 802, and the communication interface 803 are connected via a bus 804 and communicate with each other.
[0179] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0180] Bus 804 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 804 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0181] The electronic device of the above embodiment is used to implement the corresponding resource credential generation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0182] In addition, in combination with the resource credential generation method in the above embodiment, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any resource credential generation method in the above embodiment is implemented.
[0183] In addition, in combination with the resource credential generation method in the above embodiment, the present application embodiment can provide a computer program product for implementation. When the computer program product instructions are executed by a processor of an electronic device, any resource credential generation method in the above embodiment is implemented.
[0184] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0185] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0186] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or devices based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0187] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (device) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0188] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.
Claims
1. A method for generating a resource credential, characterized in that: Applied to the first device, the generating method includes: receiving first request information sent by a second device, where the first request information is information generated by the second device based on a first user identifier when the second device receives first user request information for obtaining a resource credential sent by a first user device, wherein the first user request information includes the first user identifier and a credential factor, the first request information includes the first user identifier, and the credential factor is associated with a second user identifier; Determine a first device identifier corresponding to the first user identifier from a correspondence between user identifiers and user device identifiers, and send first verification information to the first user device corresponding to the first device identifier, so that the user can input a first card identifier based on the first verification information displayed by the first user device; receiving the first card identifier of the user identity SIM card sent by the first user equipment, detecting whether the first card identifier is included in the storage data of the first equipment, and obtaining a first detection result, wherein the first card identifier is an identifier included in the user input for the first user equipment; In a case where the first detection result includes the first card identifier in the storage data of the first device, a first identifier is generated and sent to the second device, so that the second device sends the credential factor, the first user identifier and the first identifier to a blockchain device, so that the blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier and a first timestamp, and sends the resource credential to the second device, so that the second device sends the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
2. The method for generating a resource credential according to claim 1, characterized in that: Before receiving the first request information sent by the second device, the generating method further includes: receiving second request information sent by the second device, where the second request information is information generated by the second device based on the first user identifier when the second device receives second user request information for obtaining a credential factor sent by the first user device, the second request information includes the first user identifier, and the second user request information includes the first user identifier; Determine a first device identifier corresponding to the first user identifier from a correspondence between user identifiers and user device identifiers, and send second verification information to the first user device corresponding to the first user identifier, so that the first user device displays the second verification information; receiving the first card identifier sent by the first user equipment, detecting whether the first card identifier is included in the stored data of the first equipment, and obtaining a second detection result; In a case where the second detection result includes the first card identifier in the stored data of the first device, a second identifier is generated and sent to the second device, so that the second device can send the first user identifier and the second identifier to the blockchain device, so that the blockchain device can generate a credential factor based on the first user identifier, the second identifier and a second timestamp, and send the credential factor to the second device, so that the second device can send the credential factor to the first user device.
3. The method for generating a resource credential according to claim 1, characterized in that: In the case where the first detection result includes that the first card identifier is included in the stored data of the first device, after generating the first identifier and sending the first identifier to the second device, the generating method further includes: receiving third request information sent by the second device, the third request information being information generated by the second device based on the second user identifier when the second device receives third user request information sent by the second user device, the third user request information being information generated by the second user device when the second user device receives fourth user request information sent by the first user device, wherein the third request information includes the second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential; Determine a second device identifier corresponding to the second user identifier from a correspondence between user identifiers and user device identifiers, and send third verification information to the second user device corresponding to the second device identifier, so that the second user device displays the third verification information; receiving a second card identifier of a user identity identification SIM card sent by the second user equipment, detecting whether the second card identifier is included in the stored data of the second equipment, and obtaining a third detection result, wherein the second card identifier is an identifier included in an input of the user for the second user equipment; In a case where the third detection result includes that the second card identifier is included in the storage data of the first device, a third identifier is generated and sent to the second device, so that the second device detects whether the resource certificate meets a preset condition, and obtains a fourth detection result. In a case where the fourth detection result includes that the resource certificate meets a preset condition, the resource certificate is sent to the blockchain device, so that the blockchain device can cancel the resource certificate, and a response message is sent to the second device, so that the second device can cancel the resource certificate, obtain a cancellation result, and send the cancellation result to the second user device.
4. The method for generating a resource credential according to claim 1, characterized in that: Before receiving the first request information sent by the second device, the generating method further includes: receiving user request information for obtaining a first card identifier sent by the first user equipment, the user request information including the first user identifier and a first user equipment identifier of the first user equipment, the user request information being information generated when the first user equipment is connected to a SIM card; The first card identifier corresponding to the first user identifier is determined based on a pre-established correspondence between user identifiers and card identifiers, the first card identifier is sent to the first user equipment, and an association relationship between the first user identifier and the first user equipment identifier is established.
5. A method for generating a resource credential, characterized in that: Applied to the second device, the method includes: In the case of receiving first user request information for obtaining resource credentials sent by a first user device, sending first request information to the first device, so that the first device determines a first device identifier corresponding to the first user identifier from a correspondence between the user identifier and the user device identifier, and sending first verification information to the first user device corresponding to the first device identifier, so that the user inputs a first card identifier based on the first verification information displayed by the first user device, wherein the first user request information includes a credential factor and a first user identifier, the first request information includes the first user identifier, and the credential factor is associated with a second user identifier; Receive a first identifier sent by a first device, and send the credential factor, the first user identifier and the first identifier to a blockchain device, so that the blockchain device generates a resource credential based on the credential factor, the first user identifier, the first identifier and a first timestamp, wherein the first identifier is a first detection result obtained by detecting whether the first card identifier is included in the stored data of the first device when the first device receives the first card identifier of a user identity identification SIM card sent by the first user device, and generating a first identifier and sending it to the second device when the first detection result includes that the first card identifier is included in the stored data of the first device, wherein the resource credential is associated with the second user identifier; Receive the resource credential sent by the blockchain device, and send the resource credential to the first user device.
6. The method for generating a resource credential according to claim 5, characterized in that: In the case of receiving the first user request information for obtaining the resource credential sent by the first user device, before sending the first request information to the first device, the generating method further includes: In the case of receiving second user request information for obtaining a credential factor sent by a first user device, sending second request information to the first device, so that the first device determines a first device identifier corresponding to the first user identifier from a correspondence between user identifiers and user device identifiers, and sending second verification information to the first user device corresponding to the first user identifier, so that the first user device displays the second verification information, wherein the second user request information includes the first user identifier, and the second request information includes the first user identifier; receiving a second identifier sent by a first device, and sending the second identifier and the first user identifier to a blockchain device, so that the blockchain device generates a credential factor based on the second identifier, the first user identifier, and a second timestamp, wherein the second identifier is an identifier for the first device to detect whether the first card identifier is included in the stored data of the first device when the first device receives the first card identifier sent by the first user device, obtain a second detection result, and generate a second identifier and send it to the second device when the second detection result includes that the first card identifier is included in the stored data of the first device; Receive the credential factor sent by the blockchain device, and send the credential factor to the first user device.
7. The method for generating a resource credential according to claim 5, characterized in that: After receiving the resource credential sent by the blockchain device and sending the resource credential to the first user device, the generating method further includes: In a case where third user request information sent by a second user device is received, third request information is sent to the first device, where the third user request information is information generated by the second user device when fourth user request information sent by the first user device is received, wherein the third request information includes a second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential; Receive a third identifier sent by the first device, and detect whether the resource credential meets a preset condition to obtain a fourth detection result, and send the resource credential to the blockchain device if the fourth detection result includes that the resource credential meets the preset condition, so that the blockchain device can perform verification processing on the resource credential, and send a response message to the second device, wherein the third identifier is a second device identifier corresponding to the second user identifier determined by the first device from the correspondence between the user identifier and the user device identifier when the first device receives the third request information sent by the second device, and sends third verification information to the second user device corresponding to the second device identifier, so that the second user device can display the third verification information, and detect whether the second card identifier is included in the stored data of the first device to obtain a third detection result when the second card identifier of the user identity identification SIM card sent by the second user device is received, and generate a third identifier and send it to the second device if the third detection result includes that the second card identifier is included in the stored data of the first device, wherein the second card identifier is an identifier included in the input of the user to the second user device, and the third request information includes the second user identifier; Receive the response information sent by the blockchain device, perform verification processing on the resource certificate, obtain a verification result, and send the verification result to the second user device.
8. A method for generating a resource credential, characterized in that: Applied to blockchain devices, the generation method includes: receiving a credential factor, a first user identifier and a first identifier sent by a second device, wherein the credential factor and the first user identifier are the credential factor and the first user identifier included in a first user request message for obtaining resource credentials sent by the first user device to the second device, the first identifier being, when the first device receives the first request message sent by the second device, a first device identifier corresponding to the first user identifier determined from a correspondence between a user identifier and a user device identifier, sending first verification information to the first user device corresponding to the first device identifier for the user to input a first card identifier based on the first verification information displayed by the first user device, receiving a first card identifier of a user identity identification SIM card sent by the first user device, detecting whether the first card identifier is included in the stored data of the first device, obtaining a first detection result, and generating a first identifier and sending the identifier to the second device when the first detection result includes the first card identifier in the stored data of the first device, wherein the first request message includes the first user identifier, the first card identifier is an identifier included in the user input to the first user device, and the credential factor is associated with the second user identifier; A resource credential is generated based on the credential factor, the first user identifier, the first identifier and a first timestamp, and the resource credential is sent to the second device so that the second device sends the resource credential to the first user device, wherein the resource credential is associated with the second user identifier.
9. The method for generating a resource credential according to claim 8, characterized in that: Before receiving the credential factor, the first user identifier and the first identifier sent by the second device, the generating method further includes: receiving the first user identifier and the second identifier sent by the second device, wherein the first user identifier is an identifier included in the second user request information for obtaining the credential factor sent by the first user device and received by the second device, and the second identifier is a first device identifier corresponding to the first user identifier determined from the correspondence between the user identifier and the user device identifier when the second device receives the second request information sent by the first device, sending second verification information to the first user device corresponding to the first user identifier so that the first user device displays the second verification information, receiving the first card identifier sent by the first user device, detecting whether the first card identifier is included in the stored data of the first device to obtain a second detection result, and generating an identifier and sending it to the second device when the second detection result includes that the first card identifier is included in the stored data of the first device, wherein the second request information includes the first user identifier, and the second user request information includes the first user identifier; A credential factor is generated based on the first user identifier, the second identifier, and a second timestamp, and the credential factor is sent to the second device, so that the second device sends the credential factor to the first user device.
10. The method for generating a resource credential according to claim 8, characterized in that: After generating a resource credential based on the credential factor, the first user identifier, the first identifier, and the first timestamp, and sending the resource credential to the second device, the generating method further includes: Receive the resource credential sent by the second device, the resource credential being the resource credential detected by the second device when receiving the third identifier sent by the first device to determine whether the resource credential meets the preset condition, obtain a fourth detection result, and send the resource credential to the blockchain device when the fourth detection result includes that the resource credential meets the preset condition, the third identifier being the first device determining the second device identifier corresponding to the second user identifier from the correspondence between the user identifier and the user device identifier when receiving the third request information sent by the second device, and sending third verification information to the second user device corresponding to the second device identifier, so that the second user device displays the third verification information, and receiving the user identity identification SIM card sent by the second user device a second card identifier of a card, detecting whether the storage data of the second device includes the second card identifier to obtain a third detection result, and generating a third identifier and sending the identifier to the second device when the third detection result includes that the storage data of the first device includes the second card identifier, the third request information is information generated by the second device when receiving third user request information sent by the second user device, the third user request information is information generated by the second user device when receiving fourth user request information sent by the first user device, wherein the third request information includes the second user identifier, the third user request information includes the second user identifier and the resource credential, and the fourth user request information includes the resource credential; The resource voucher is cancelled, and response information is sent to the second device, so that the second device can cancel the resource voucher, obtain a cancellation result, and send the cancellation result to the second user device.