Did-based payment method and apparatus, readable storage medium, and electronic device
By using biometric authentication to protect the DID private key in the DID system, the payment security problem caused by the theft of the DID private key is solved, payment authentication and signature are completed locally, ensuring the security and decentralization of payment. Applicability to application scenarios.
Patent Information
- Application Number
- PCT/CN2023/141831
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2023-12-26
- Publication Date
- 2024-09-19
AI Technical Summary
In the DID system, payment security will be threatened if the DID private key is stolen by an attacker. Existing technology is difficult to effectively protect the security of the private key, especially in offline or weak network scenarios.
Protect the DID private key through biometric authentication, use the DID SDK to locally compare biometric features with pre-stored standard biometric features, and only use the pre-stored DID private key to sign the payment request after the authentication is passed, thereby realizing the payment function and ensuring Payment security.
It achieves local biometric authentication, avoids dependence on centralized biometric authentication servers and networks, ensures that DID private keys are not stolen, and improves payment security and applicability in decentralized application scenarios.
Smart Images

Figure CN2023141831_19092024_PF_FP_ABST
Abstract
Description
DID-based payment method, device, readable storage medium, and electronic device Technical Field
[0001] This specification relates to the field of decentralized identity, and more specifically to a DID-based payment method, device, readable storage medium, and electronic device. Background Art
[0002] Decentralized Identity (DID) is a type of digital identity that evolves from traditional centralized identity. In a DID system, each entity (including individuals, organizations, devices, and so on) is assigned a DID identifier, a string in a specific format that represents the entity's digital identity. Each DID identifier corresponds to a DID document. The DID system achieves decentralization, resulting in greater security and privacy, and has promising applications in the payment field.
[0003] In the DID system, the disclosure, display, and transfer of all DID-based physical assets (verifiable VC, carbon data, etc.) require authorization through a DID private key signature. Therefore, whoever controls the DID private key holds the DID and enjoys the associated benefits. If the DID private key is stolen by an attacker during the payment process, financial losses will result.
[0004] Therefore, how to ensure that the DID private key is not stolen and thus ensure the security of payment is a technical problem that needs to be solved urgently by those skilled in the art.
[0005] Summary of the Invention
[0006] One of the purposes of this specification is to provide a DID-based payment method that can locally implement biometric authentication and, after authentication, use the DID private key to sign the payment request, thereby implementing the payment function through DID and ensuring security.
[0007] Based on the above purpose, this specification provides a DID-based payment method, which is applied to a payment application, which is installed on a mobile terminal and has a DID SDK embedded in it. The method includes: generating a payment request; obtaining a biometric feature to be authenticated input by a user; comparing the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the TEE by the DID SDK through the DID SDK; when a first local comparison result is obtained through the DID SDK and the first local comparison result is the same, signing the payment request through the DID SDK using a pre-stored DID private key to implement the payment function through DID.
[0008] In some embodiments, before generating a payment request, it also includes: receiving a DID biometric authentication activation request through the DID SDK; obtaining the payment standard biometric feature stored in the TEE by the payment application; and storing the payment standard biometric feature as a DID standard biometric feature in the TEE through the DID SDK.
[0009] In some embodiments, the method further includes: receiving a DID biometric authentication update request through the DID SDK; obtaining a first biometric feature input by a user; comparing the first biometric feature with the DID standard biometric feature through the DID SDK to obtain a second local comparison result; when the second local comparison result is the same, obtaining a second biometric feature input by the user; and storing the second biometric feature as a DID standard biometric feature in the TEE through the DID SDK.
[0010] In some embodiments, when the DID SDK cannot obtain the first local comparison result, it also includes: sending the biometric feature to be authenticated to the DID server through the DID SDK, so that the DID server compares the biometric feature to be authenticated with the pre-stored DID standard biometric feature, obtains a server-side comparison result, and sends the server-side comparison result to the DID SDK; receiving the server-side comparison result through the DID SDK; when the server-side comparison results are the same, signing the payment request through the DID SDK using a pre-stored DID private key to realize the payment function through DID.
[0011] Another purpose of this specification is to provide a DID-based payment device that can locally perform biometric authentication and, after authentication, use the DID private key to sign the payment request, thereby implementing the payment function through DID and ensuring security.
[0012] Based on the above purpose, this specification provides a DID-based payment device, which is applied to a payment application, which is installed on a mobile terminal, and the payment application has a DID SDK embedded in it. The device includes: a generation module for generating a payment request; an acquisition module for acquiring a biometric feature to be authenticated input by a user; a comparison module for comparing the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the TEE by the DID SDK through the DID SDK; a signing module for signing the payment request through the DID SDK using a pre-stored DID private key when a first local comparison result is obtained through the DID SDK and the first local comparison result is the same, so as to realize the payment function through DID.
[0013] In some embodiments, the device also includes an activation module, which is used to: receive a DID biometric authentication activation request through the DID SDK; obtain the payment standard biometric features stored in the TEE by the payment application; and store the payment standard biometric features as DID standard biometric features in the TEE through the DID SDK.
[0014] In some embodiments, the device also includes an update module, which is used to: receive a DID biometric authentication update request through the DID SDK; obtain a first biometric feature input by a user; compare the first biometric feature with the DID standard biometric feature through the DID SDK to obtain a second local comparison result; when the second local comparison result is the same, obtain a second biometric feature input by the user; and store the second biometric feature as a DID standard biometric feature in the TEE through the DID SDK.
[0015] In some embodiments, the device also includes a server-side comparison module, which is used to: when the DID SDK cannot obtain the first local comparison result, send the biometric feature to be authenticated to the DID server through the DID SDK, so that the DID server compares the biometric feature to be authenticated with the pre-stored DID standard biometric feature, obtains a server-side comparison result, and sends the server-side comparison result to the DID SDK; receive the server-side comparison result through the DID SDK; when the server-side comparison results are the same, use the pre-stored DID private key to sign the payment request through the DID SDK to realize the payment function through DID.
[0016] Another object of this specification is to provide a readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the steps of the DID-based payment method as described above.
[0017] Another object of this specification is to provide an electronic device, which includes a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it performs the steps of the DID-based payment method as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1 is a flow chart of a DID-based payment method according to an embodiment of this specification;
[0019] FIG2 is a schematic diagram of the structure of a DID-based payment device according to an embodiment of this specification. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present specification are given below in conjunction with the accompanying drawings and described in detail.
[0021] In the DID system, each entity (including individuals, organizations, devices, etc.) is assigned a DID identifier, a string in a specific format that represents the entity's digital identity. Each DID identifier corresponds to a DID document. A DID identifier can serve as a Uniform Resource Identifier (URI) for locating DID documents. A DID identifier consists of a scheme, a DID method, and a DID method-specific string. The scheme is fixed and indicates that the string is a DID identifier string. The DID method indicates the set of methods used to define and operate the DID identifier. The DID method-specific string represents the unique identifier string under the DID method. Each DID identifier corresponds to a DID document. A DID identifier can serve as a Uniform Resource Identifier (URI) for locating DID documents. A DID document is a descriptive text in a pre-defined format (e.g., JSON-LD) that includes information about the DID identifier and its owner. A DID document may include various properties, such as context, DID subject, public key, authentication, authorization and delegation, service endpoint, creation, update, proof, extensibility, and other suitable properties, or any combination thereof. A DID document can define or point to resources that define multiple operations that can be performed against the DID. In a DID system, each entity maintains its own DID private key, and its DID document is stored on the blockchain. The entity's DID identifier can be used to query the blockchain for the corresponding DID document.
[0022] In a DID-based payment process, if entity A has a payment request, it will generate a payment request through its installed payment application, sign the payment request using its DID private key, and then send the signed payment request to entity B. Entity B, on the other hand, has a payment application server installed to authenticate the signed payment request and, if authentication is successful, complete the payment function based on the payment request. Since both entities A and B are members of the DID system and each possesses a unique DID identifier, upon receiving the signed payment request from A, entity B will first query the blockchain for the corresponding DID document based on A's DID identifier. It will then verify the signed payment request using the public key in the DID document. If verification is successful, it indicates that the payment request originated from entity A, and entity B's payment application server will complete the payment operation based on the payment request, thus enabling the payment function. If verification fails, it indicates that the signed payment request did not originate from entity A, and entity B's payment application server will not execute the payment operation, thus failing to enable the payment function. As can be seen from the above, the DID private key is the prerequisite for ensuring secure payment. If the DID private key is stolen by an attacker, the attacker can use the DID private key to sign a forged payment request and then implement the payment function, thereby causing financial loss.
[0023] To ensure the security of the DID private key, some approaches can protect the DID private key with a password key. Specifically, a password key is set when the DID private key is generated. When the DID private key is needed for signing, a preset password is entered to obtain access to the DID private key. However, password keys are easily forgotten and lack a retrieval mechanism, making them expensive to use. In other approaches, biometrics can replace password keys. For example, when the DID private key is generated, a statement is included stating that biometric authentication is required before the DID private key can be used. When the DID private key is needed, the user's biometric input is first obtained and then sent to a biometric authentication server for authentication. If the biometric is authenticated, the DID private key can be used; otherwise, the DID private key cannot be used. However, this approach requires a centralized biometric authentication server to authenticate the biometric, thus requiring an internet connection, limiting its use in certain offline or weak network scenarios. Furthermore, since the key must be approved by the centralized biometric authentication server before it can be used, it conflicts with the decentralized nature of the DID system.
[0024] Based on this, the embodiments of this specification provide a DID-based payment method, which can realize biometric authentication locally, and after the authentication is passed, use the DID private key to sign the payment request, thereby realizing the payment function through DID and ensuring security.
[0025] As shown in FIG1 , an embodiment of this specification provides a DID-based payment method, which is applied to a payment application installed on a mobile terminal, and has a DID SDK embedded in the payment application. The method includes steps S100 to S400 .
[0026] S100: Generate a payment request.
[0027] In some embodiments, the payment application may be a payment application. The payment request may be triggered by a user operating the payment application, or by a user operating a third-party application linked to the payment application. For example, the payment application may be Alipay, and the third-party application may be Meituan, Ele.me, etc. The payment request may be initiated directly by the user through Alipay, or by the third-party application through Alipay.
[0028] S200: Obtaining the biometric feature to be authenticated input by the user.
[0029] Payment applications can collect biometrics by calling system APIs (application programming interfaces). Specifically, after generating a payment request, the payment application can call the system API for collecting biometrics and call up the collection interface. The user enters the biometric to be authenticated through the mobile biometric sensor, and the payment application obtains the biometric to be authenticated through the system API.
[0030] In some embodiments, biometric acquisition and authentication can be implemented based on the Internet Finance Authentication Alliance (IFAA). The IFAA is committed to developing financial-grade, full-link, standardized industry security solutions around identity recognition and authentication technologies, establishing trusted connections for the Internet of Things. IFAA is a financial-grade mobile biometric product that leverages the computing power embedded in the mobile device's hardware encryption zone, combined with native biometric capabilities such as fingerprint and facial recognition, to perform financial-grade, hardware-level identity authentication.
[0031] In some embodiments, an IFAA SDK (Software Development Kit) may be embedded in the payment application. By calling the IFAA SDK, the payment application may implement biometric recognition functions, such as obtaining biometric features input by the user, identifying or authenticating the biometric features, and the like.
[0032] S300: The DID SDK compares the biometric to be authenticated with the DID standard biometric pre-stored in the TEE (Trusted Execution Environment) of the DID SDK.
[0033] The DID SDK is used to implement DID functions, including DID registration, verifiable claim (VC) generation, DID private key storage, and data encryption using the DID private key. After obtaining the biometric to be authenticated, the payment application can use the DID SDK to compare the biometric to be authenticated with the DID standard biometric pre-stored in the TEE (i.e., authentication), and then determine whether the DID private key can be used based on the comparison result.
[0034] S400: When a first local comparison result is obtained through the DID SDK and the first local comparison result is the same, the payment request is signed by the DID SDK using a pre-stored DID private key to implement a payment function through the DID.
[0035] When the DID SDK obtains the first local comparison result, and the local first comparison result is the same, it means that the biometric to be authenticated is the same as the DID standard biometric. After authentication, the DID private key can be used. Therefore, the payment request can be signed by the DID SDK using the pre-stored DID private key to realize the payment function through DID. If the local first comparison result obtained by the DID SDK is different, it means that the biometric to be authenticated is different from the DID standard biometric. The user cannot use the DID private key, so the DID private key will not be used to sign the payment request. In this way, the payment function cannot be realized through DID, thereby realizing the protection of the DID private key. Since the DID standard biometric is pre-stored in the local TEE, the entire comparison process is completed locally and can be realized without an Internet connection (extending the use scenarios of no network or weak network), and there is no dependence on the centralized biometric authentication server (decentralization).
[0036] In some scenarios, the mobile terminal may not support local comparison, in which case authentication can also be completed through a centralized biometric authentication server. In some embodiments, when the DID SDK cannot obtain the first local comparison result, the method further includes: the payment application can send the biometric feature to be authenticated to the DID server through the DID SDK, and the DID server then compares the biometric feature to be authenticated with the DID standard biometric feature pre-stored on the DID server to obtain a server-side comparison result, and then sends the server-side comparison result to the DID SDK; the payment application receives the server-side comparison result through the DID SDK. If the server-side comparison result is the same, it means that the biometric feature to be authenticated is the same as the DID standard biometric feature, and the authentication is successful. The payment application can use the pre-stored DID private key to sign the payment request through the DID SDK to implement the payment function through the DID; if the server-side comparison result is different, it means that the biometric feature to be authenticated is different from the DID standard biometric feature, the authentication fails, and the DID private key cannot be used. At this time, the DID server acts as a biometric authentication server to achieve centralized authentication.
[0037] In some embodiments, DID standard biometrics can be obtained through an activation process, which includes the following steps: S402: receiving a DID biometric authentication activation request through the DID SDK; S404: obtaining the payment standard biometrics stored in the TEE by the payment application itself; S406: storing the payment standard biometrics as DID standard biometrics in the TEE through the DID SDK.
[0038] In other words, you need to activate the DID biometric authentication function before you can use biometrics to protect the DID private key from being stolen. The above activation process is usually completed before payment.
[0039] Because biometric authentication function is a mature function on mobile terminal, therefore the method of this specification can be realized on the basis of existing biometric authentication function.In certain embodiments, biometric authentication SDK (below taking IFAA SDK as an example) is embedded in payment application, IFAA SDK can realize the payment biometric authentication of payment application, on this basis, the method of this specification can realize the biometric authentication of DID private key, without having to modify the underlying framework of the biometric authentication function of mobile terminal.For example, after receiving DID biometric authentication opening request, payment application can obtain the payment standard biometrics stored in TEE by IFAA SDK by IFAA SDK, and then payment standard biometrics is sent to IFAA server by IFAA SDK, IFAA server then sends payment standard biometrics to DID server, DID server stores payment standard biometrics as DID standard biometrics, then payment standard biometrics is sent to DID SDK, stored in TEE by DID SDK, as DID standard biometrics;Like this, DID server and local are all stored with DID standard biometrics, complete opening process.
[0040] If the payment application itself does not enable biometric authentication during the activation process, then in step S404, the payment standard biometric features cannot be obtained. In this case, it is necessary to enable biometric authentication for the payment application first, that is, obtain the biometric features input by the user through the IFAA SDK, and then store them in the TEE as the payment standard biometric features through the IFAA SDK.
[0041] In some embodiments, the method may further include an update process so that users can update the DID standard biometrics according to their own needs. The update process includes the following steps: S502: receiving a DID biometric authentication update request through the DID SDK; S504: obtaining a first biometric input by the user; S506: comparing the first biometric with the DID standard biometric through the DID SDK to obtain a second local comparison result; S508: when the second local comparison result is the same, obtaining a second biometric input by the user; S510: storing the second biometric as a new DID standard biometric in the TEE through the DID SDK.
[0042] When a user wants to update the DID standard biometric, they can trigger a biometric authentication update request through the DID SDK. The payment application will then obtain the user's first biometric for authentication, ensuring that the update process is triggered by the user corresponding to the DID standard biometric. After the authentication is passed, the new DID standard biometric can be entered to complete the update.
[0043] The DID-based payment method of the embodiments of this specification can only use the DID private key to sign the payment request after biometric authentication is passed, ensuring that the DID private key is not stolen, thereby ensuring payment security; biometric authentication can be completed locally without relying on a centralized server or the network.
[0044] As shown in FIG2 , another embodiment of the present specification provides a DID-based payment device, including a generation module 10 , an acquisition module 20 , a comparison module 30 and a signature module 40 .
[0045] The generating module 10 is used to generate a payment request.
[0046] In some embodiments, the payment application may be a payment application. The payment request may be triggered by a user operating the payment application, or by a user operating a third-party application linked to the payment application. For example, the payment application may be Alipay, and the third-party application may be Meituan, Ele.me, etc. The payment request may be initiated directly by the user through Alipay, or by the third-party application through Alipay.
[0047] The acquisition module 20 is used to acquire the biometric feature to be authenticated input by the user.
[0048] Payment applications can collect biometrics by calling system APIs (application programming interfaces). Specifically, after generating a payment request, the payment application can call the system API for collecting biometrics and call up the collection interface. The user enters the biometric to be authenticated through the mobile biometric sensor, and the payment application obtains the biometric to be authenticated through the system API.
[0049] In some embodiments, the IFAA SDK may be embedded in the payment application. By calling the IFAA SDK, the payment application may implement biometric recognition functions, such as obtaining biometric features input by the user, identifying or authenticating the biometric features, and the like.
[0050] The comparison module 30 is used to compare the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the TEE (Trusted Execution Environment) of the DID SDK through the DID SDK.
[0051] The signature module 40 is used to sign the payment request using the pre-stored DID private key through the DID SDK when the first local comparison result is obtained through the DID SDK and the first local comparison result is the same, so as to realize the payment function through the DID.
[0052] When the DID SDK obtains the first local comparison result, and the local first comparison result is the same, it means that the biometric to be authenticated is the same as the DID standard biometric. After authentication, the DID private key can be used. Therefore, the payment request can be signed by the DID SDK using the pre-stored DID private key to realize the payment function through DID. If the local first comparison result obtained by the DID SDK is different, it means that the biometric to be authenticated is different from the DID standard biometric. The user cannot use the DID private key, so the DID private key will not be used to sign the payment request. In this way, the payment function cannot be realized through DID, thereby realizing the protection of the DID private key. Since the DID standard biometric is pre-stored in the local TEE, the entire comparison process is completed locally and can be realized without an Internet connection (extending the use scenarios of no network or weak network), and there is no dependence on the centralized biometric authentication server (decentralization).
[0053] In some scenarios, the mobile terminal may not support local comparison. In this case, authentication can also be completed through a centralized biometric authentication server. In some embodiments, the device also includes a server-side comparison module. When the DID SDK cannot obtain the first local comparison result, the server-side module can send the biometric feature to be authenticated to the DID server through the DID SDK, so that the DID server compares the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the DID server, obtains the server-side comparison result, and then sends the server-side comparison result to the DID SDK; the server-side module receives the server-side comparison result through the DID SDK. If the server-side comparison result is the same, it means that the biometric feature to be authenticated is the same as the DID standard biometric feature, and the authentication is successful. The server-side module can use the pre-stored DID private key to sign the payment request through the DID SDK to realize the payment function through the DID; if the server-side comparison result is different, it means that the biometric feature to be authenticated is different from the DID standard biometric feature, the authentication fails, and the DID private key cannot be used. At this time, the DID server acts as a biometric authentication server to realize centralized authentication.
[0054] In some embodiments, DID standard biometrics can be obtained through an activation process, and the device may include an activation module, which is used to: receive a DID biometric authentication activation request through the DID SDK; obtain the payment standard biometrics stored in the TEE by the payment application itself; and store the payment standard biometrics as DID standard biometrics in the TEE through the DID SDK.
[0055] In some embodiments, IFAA SDK is embedded in the payment application for realizing the payment biometric authentication of payment application. For example, after receiving the DID biometric authentication opening request, the opening module can obtain the payment standard biometrics stored in TEE by IFAA SDK by IFAA SDK, and then send the payment standard biometrics to IFAA server by IFAA SDK, and IFAA server sends the payment standard biometrics to DID server, and DID server stores the payment standard biometrics as DID standard biometrics, and then sends the payment standard biometrics to DID SDK, which is stored in TEE by DID SDK as DID standard biometrics;Like this, DID server and local are both stored with DID standard biometrics, complete the opening process.
[0056] If the payment application itself does not enable biometric authentication during the activation process, then in step S404, the payment standard biometric features cannot be obtained. In this case, it is necessary to enable biometric authentication for the payment application first, that is, obtain the biometric features input by the user through the IFAA SDK, and then store them in the TEE as the payment standard biometric features through the IFAA SDK.
[0057] In some embodiments, the device may further include an update module so that users can update the DID standard biometrics according to their own needs. The update module is used to: receive a DID biometric authentication update request through the DID SDK; obtain a first biometric input by the user; compare the first biometric with the DID standard biometric through the DID SDK to obtain a second local comparison result; when the second local comparison result is the same, obtain a second biometric input by the user; and store the second biometric as a new DID standard biometric in the TEE through the DID SDK.
[0058] The biometric features involved in the biometric authentication described in the embodiments of this specification may include, for example, eye features, voiceprints, fingerprints, palm prints, heartbeat, pulse, chromosomes, DNA, bite marks, etc. Eye prints may include irises, sclera, and other biometric features.
[0059] The DID-based payment device of the embodiment of this specification can use the DID private key to sign the payment request only after the biometric authentication is passed, ensuring that the DID private key is not stolen, thereby ensuring payment security; biometric authentication can be completed locally without relying on a centralized server or the network.
[0060] Another embodiment of the present specification provides a readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute the steps of the DID-based payment method in the above embodiment of the present specification.
[0061] Another embodiment of the present specification provides an electronic device, which includes a memory and a processor, wherein the memory stores executable code. When the processor executes the executable code, it performs the steps of the DID-based payment method in the above embodiment of the present specification.
[0062] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0063] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0064] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0065] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0066] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0068] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0069] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0070] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0071] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0072] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0073] This specification may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.
[0074] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0075] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0076] The above description is merely a preferred embodiment of this specification and is not intended to limit the scope of this specification. Various variations are possible in the above embodiments of this specification. In other words, any simple, equivalent variations and modifications made in accordance with the claims and description of this specification fall within the scope of protection of the patent claims of this specification. Anything not fully described in this specification is conventional technology.
Claims
1. A payment method based on DID, the method is applied to a payment application, the payment application is installed on a mobile terminal, the payment application is embedded with a DID SDK, the method comprises: Generate payment request; Obtain the biometric features to be authenticated input by the user; Comparing the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the TEE by the DID SDK through the DID SDK; When the first local comparison result is obtained through the DID SDK and the first local comparison result is the same, the payment request is signed by the DID SDK using a pre-stored DID private key to implement a payment function through the DID.
2. The DID-based payment method according to claim 1, before generating the payment request, further comprising: Receiving a DID biometric authentication activation request through the DID SDK; Obtain payment standard biometrics stored in the TEE by the payment application; The payment standard biometric is stored in the TEE as a DID standard biometric through the DID SDK.
3. The DID-based payment method according to claim 2, further comprising: Receiving a DID biometric authentication update request through the DID SDK; Obtaining a first biometric feature input by a user; Comparing the first biometric feature with the DID standard biometric feature through the DID SDK to obtain a second local comparison result; When the second local comparison result is the same, obtaining a second biometric feature input by the user; The second biometric is stored in the TEE as a DID standard biometric through the DID SDK.
4. The DID-based payment method according to claim 1, when the DID SDK cannot obtain the first local comparison result, further comprising: Sending the biometric feature to be authenticated to the DID server through the DID SDK, so that the DID server compares the biometric feature to be authenticated with the pre-stored DID standard biometric feature, obtains a server comparison result, and sends the server comparison result to the DID SDK; Receiving the comparison result of the server through the DID SDK; When the comparison result on the server side is the same, the payment request is signed by the DID SDK using the pre-stored DID private key to implement the payment function through DID.
5. A payment device based on DID, the device is applied to a payment application, the payment application is installed on a mobile terminal, the payment application is embedded with a DID SDK, and the device comprises: A generation module, used for generating a payment request; An acquisition module, used to acquire the biometric features to be authenticated input by the user; A comparison module, used to compare the biometric feature to be authenticated with the DID standard biometric feature pre-stored in the TEE by the DID SDK through the DID SDK; A signature module is used to sign the payment request using a pre-stored DID private key through the DID SDK when the first local comparison result is obtained through the DID SDK and the first local comparison result is the same, so as to realize the payment function through the DID.
6. The DID-based payment device according to claim 5, further comprising an activation module, wherein the activation module is used to: Receiving a DID biometric authentication activation request through the DID SDK; Obtain payment standard biometrics stored in the TEE by the payment application; The payment standard biometric is stored in the TEE as a DID standard biometric through the DID SDK.
7. The DID-based payment device according to claim 6, further comprising an update module, wherein the update module is configured to: Receiving a DID biometric authentication update request through the DID SDK; Obtaining a first biometric feature input by a user; Comparing the first biometric feature with the DID standard biometric feature through the DID SDK to obtain a second local comparison result; When the second local comparison result is the same, obtaining a second biometric feature input by the user; The second biometric is stored in the TEE as a DID standard biometric through the DID SDK.
8. The DID-based payment device according to claim 5, further comprising a server-side comparison module, wherein the server-side comparison module is used to: When the DID SDK cannot obtain the first local comparison result, the biometric feature to be authenticated is sent to the DID server through the DID SDK, so that the DID server compares the biometric feature to be authenticated with the pre-stored DID standard biometric feature, obtains a server comparison result, and sends the server comparison result to the DID SDK; Receiving the comparison result of the server through the DID SDK; When the comparison result on the server side is the same, the payment request is signed by the DID SDK using the pre-stored DID private key to implement the payment function through DID.
9. A readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the DID-based payment method as described in any one of claims 1 to 4.
10. An electronic device comprising a memory and a processor, wherein an executable code is stored in the memory, and when the processor executes the executable code, it executes the DID-based payment method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
A decentralized signature process, under biometric control and subject to personal identification, for a transaction intended for a blockchain.
CH716293A2
Identity verification method and system
CN110046482A
System and method for securely processing an electronic identity
CN110383757A
Block chain cryptocurrency transaction method and terminal equipment
CN115544526A
DID-based payment method and device, readable storage medium and electronic equipment
CN116452204A
