Offline interaction system and method

By introducing a trusted execution environment and asymmetric cryptographic key technology into the user device, the security problem of offline digital interaction system is solved, realizing secure and reliable offline fund exchange and preventing replay attacks and double spending of funds.

CN116158053BActive Publication Date: 2026-11-24VISA INTERNATIONAL SERVICE ASSOCIATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180059805.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-14
Filing Date
2021-07-21
Publication Date
2026-11-24
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

Existing digital interaction systems lack security when offline, failing to ensure the irreversibility of financial transactions and the authenticity of user identities, and are unable to prevent replay attacks.

Method used

By introducing a Trusted Execution Environment (TEE) into the user device, secure fund exchange in an offline interactive system is achieved using asymmetric cryptographic keys and digital signature technology. The TEE generates digital signatures to ensure the irreversibility of the interaction, while the asymmetric cryptographic keys are used for verification and signing to prevent replay attacks.

Benefits of technology

It enables secure and reliable fund transfers even offline, prevents secondary spending of funds, ensures the irreversibility of the transfer and the authenticity of the user's identity, and reduces dependence on the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116158053B_ABST
    Figure CN116158053B_ABST
Patent Text Reader

Abstract

A method includes a first device receiving an interaction request message from a second device, comprising an amount and credentials for the second device. The first device may use a server computer public key corresponding to a server computer private key to verify the credentials for the second device. A trusted application in a secure element of the first device may determine whether the amount is less than an offline amount stored in the secure element. If the amount is less than the offline amount, the trusted application may determine an updated offline amount based on the amount. The trusted application may generate an interaction response message comprising the amount and trusted application credentials. The first device may then provide the interaction response message to the second device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-referencing related applications

[0002] This application claims the benefit of U.S. Provisional Patent Application No. 63 / 055,761, filed July 23, 2020; U.S. Provisional Patent Application No. 63 / 090,104, filed October 9, 2020; and U.S. Provisional Patent Application No. 63 / 125,305, filed December 14, 2020, all of which are incorporated herein by reference in their entirety for all purposes. Background Technology

[0003] Traditionally, digital interactions are conducted through account-based systems, where ownership of funds is linked to user identity. Digital interaction systems are often based on tokens that exist as objects, where ownership of funds is determined by a user's access to a private cryptographic key. However, digital interactions lack many aspects present in physical (e.g., non-digital) interactions. One of the core characteristics of physical funds is their ability to be interacted offline in a peer-to-peer manner without the need for intermediaries. This allows physical funds to serve as a resilient interaction system that users and resource providers can use to interact without relying on third parties.

[0004] For situations where the access device cannot connect to an authorized computer to obtain authorization, existing interactive networks can provide some form of offline digital interaction. However, such methods are insecure. For example, the user may not actually have the necessary funds to perform the interaction. However, the resource provider will not know this until the interaction is completed and the resource provider is back online.

[0005] The embodiments individually and collectively address these and other problems. Summary of the Invention

[0006] One embodiment relates to a method comprising: receiving, by a first device, an interaction request message including an amount and a second device credential from a second device; verifying the second device credential by the first device using a server computer public key corresponding to a server private key; determining, by a trusted application in a secure element of the first device, whether the amount is less than an offline amount stored in the secure element; if the amount is less than the offline amount, determining an updated offline amount based on the amount by the trusted application; generating, by the trusted application, an interaction response message including the amount and a trusted application credential; signing, by the trusted application, the interaction response message using a trusted application private key to generate an interaction response message signature; and providing, by the first device, the interaction response message including the interaction response message signature to the second device.

[0007] Another embodiment relates to a first device, comprising: a processor; and a computer-readable medium coupled to the processor, the computer-readable medium including code executable by the processor to implement a method comprising: receiving, by the first device, the interaction request message including an amount and a second device credential from a second device; verifying the second device credential using a server computer public key corresponding to a server private key used for signing the second device credential; determining, by a trusted application in a secure element of the first device, whether the amount is less than an offline amount stored in the secure element; if the amount is less than the offline amount, determining, by the trusted application, an updated offline amount based on the amount; generating, by the trusted application, the interaction response message including the amount and a trusted application credential; signing, by the trusted application, the interaction response message using a trusted application private key to generate an interaction response message signature; and providing, by the first device, the interaction response message including the interaction response message signature to the second device.

[0008] Another embodiment relates to a method comprising: generating an interaction request message including an amount and a second device credential by a second device; providing the interaction request message to a first device by the second device, wherein the first device verifies the second device credential using a server computer public key corresponding to a server private key, determines whether the amount is less than an offline amount stored in a secure element on the first device, determines an updated offline amount based on the amount, generates an interaction response message including the amount and a trusted application credential, signs the interaction response message using a trusted application private key to generate an interaction response message signature; receiving the interaction response message including the interaction response message signature by the second device; and temporarily storing the interaction response message by the second device.

[0009] Further details regarding embodiments of this disclosure can be found in the detailed description and the accompanying drawings. Attached Figure Description

[0010] Figure 1 A block diagram of an interactive processing system according to an embodiment is shown.

[0011] Figure 2 A block diagram showing the components of a first device, which may be a user device, according to an embodiment.

[0012] Figure 3 An overview of an apparatus for a managed trusted execution environment according to an embodiment is illustrated.

[0013] Figure 4 A pre-interactive processing method according to an embodiment is shown.

[0014] Figure 5 An interactive processing method according to an embodiment is shown.

[0015] Figure 6 A hierarchical offline interactive system according to an embodiment is illustrated.

[0016] Figure 7 An offline interactive system integrated with a hierarchical two-level model is illustrated according to an embodiment.

[0017] Figures 8A-8C A chain of interactions is illustrated in an offline interactive system according to an embodiment.

[0018] Figures 9A-9B The illustration depicts the aggregation of chained interactions in an offline interactive system according to an embodiment. Detailed Implementation

[0019] Before discussing the embodiments of this disclosure, some terms may be described in further detail.

[0020] A “user device” can be a device operated by a user. Examples of user devices can include mobile phones, smartphones, cards, personal digital assistants (PDAs), laptops, desktop computers, server computers, vehicles (e.g., automobiles), simplified client devices, tablet PCs, and so on. Furthermore, a user device can be any type of wearable technology device, such as a watch, headphones, glasses, etc. A user device can include one or more processors capable of processing user input. A user device can also include one or more input sensors for receiving user input. Various input sensors exist capable of detecting user input, such as accelerometers, cameras, microphones, etc. User input obtained by input sensors can come from various data input types, including but not limited to audio data, visual data, or biometric data. A user device can include any electronic device that can be operated by the user, and said electronic device can also provide remote communication capabilities with a network. Examples of remote communication capabilities include using mobile phone (wireless) networks, wireless data networks (e.g., 3G, 4G, or similar networks), Wi-Fi, Wi-Max, or any other communication medium that can provide access to a network (e.g., the Internet or a private network).

[0021] "User" can include an individual. In some embodiments, a user may be associated with one or more personal accounts and / or mobile devices. In some embodiments, a user may also be referred to as a cardholder, account holder, or consumer. In some embodiments, a resource provider may be a user and may operate the user's device.

[0022] A "secure element" can include secure components. A secure element can include a cryptographically secure on-chip computer or microprocessor. A secure element can perform cryptographic operations and can be embedded in a package with one or more physical security measures. In some embodiments, a "secure element" can include a component capable of securely performing functions. A secure element can be a memory that securely stores data, making its access protected. A secure element can include a trusted execution environment on a secure region of a processor. An example of a secure element is a Universal Integrated Circuit Card (UICC). Another example of a secure element is an embedded secure element, an embedded hardware component within a larger mechanical or electrical system. Another example of a secure element is a Hardware Security Module (HSM), which is a physical computing device that protects and manages cryptographic keys used for authentication and provides cryptographic processing functions.

[0023] A Trusted Execution Environment (TEE) may include a secure area for processing data. The TEE may be a software stack stored on read-only memory (ROM). The TEE may be contained within a secure element. The TEE software stack may include a set of resources for accessing the secure element, a Trusted Operating System (TOS) that provides developers with access to the underlying secure element, and one or more Trusted Applications (TAs) that implement application-specific functionality within the Trusted Application Environment.

[0024] In some embodiments, a trusted execution environment (TEE) can be an isolated execution environment that provides security features such as isolated execution, the integrity of applications executed using the TEE, and the confidentiality of their assets. A TEE can provide an execution space that offers a higher level of security than a rich operating system and more functionality than a standalone security element for trusted applications running on the device.

[0025] A “trusted application” can include an application implemented within a trusted execution environment. A trusted application performs specific functionalities. A trusted application may be paired with an application-specific client application (CA) residing outside the isolated trusted execution environment space and providing user-facing functionality by interacting with the trusted application via a trusted operating system.

[0026] An "access device" can be any suitable device that provides access to a remote system. Access devices can also be used to communicate with a coordinating computer, communication network, or any other suitable system. Access devices can typically be located in any suitable location, such as at the merchant's location. Access devices can take any suitable form. Some examples of access devices include POS or point-of-sale devices (e.g., POS terminals), cellular phones, personal digital assistants (PDAs), personal computers (PCs), tablet PCs, handheld dedicated readers, set-top boxes, electronic cash registers (ECRs), vending machines, automatic teller machines (ATMs), virtual cash registers (VCRs), kiosks, security systems, access systems, etc. Access devices can use any suitable contact or contactless operating mode to send or receive data from or associated with mobile communication devices or payment devices. For example, an access device can have a card reader that may include electrical contacts, radio frequency (RF) antennas, optical scanners, barcode readers, or magnetic stripe readers to interact with portable devices such as payment cards. In some embodiments, when the user device is operated by a first user, the access device may be a user device operated by a second user.

[0027] "Interaction" can include reciprocal effects or influences. "Interaction" can include communication, contact, or exchange between parties, devices, and / or entities. Example interactions include transactions between two parties and data exchange between two devices. In other embodiments, interaction can include payment transactions, in which two devices may interact to facilitate payment.

[0028] "Interaction data" can include data related to the interaction and / or data recorded during the interaction. In some embodiments, interaction data can be transaction data of network data. Transaction data can include multiple data elements with data values.

[0029] A “credential” can include any evidence of authorization, rights, or privileges. For example, an access credential can include permission to access certain tangible or intangible assets, such as buildings or documents. Instances of credentials can include passwords, passcodes, or confidential messages. In another instance, a payment credential can include any suitable information associated with and / or identifying an account (e.g., a payment account and / or a payment device associated with that account). This information can be directly related to the account or derived from account-related information. Instances of account information can include “account identifiers” such as PAN (primary account number or “account number”), tokens, sub-tokens, gift card numbers or codes, prepaid card numbers or codes, usernames, expiration dates, CVV (card verification value), dCVV (dynamic card verification value), CVV2 (card verification value 2), CVC3 card verification value, and so on. An instance of a PAN is a 16-digit number, such as “4147 0900 0000 1234”. In some embodiments, credentials can be considered sensitive information.

[0030] "Amount" can refer to the quantity of something. An amount can refer to the total number, size, value, or range of things or multiple things.

[0031] "Offline amount" can include the quantity of something that can be used offline (i.e., when there is no direct communication with the server computer). The offline amount may be stored locally on the user device. For example, the offline amount may be stored in a secure element on the user device. The offline amount can be utilized during offline interactions. For example, a first user may choose to provide an amount to a second user when the first user's device is not connected to or communicating with the server computer (e.g., offline). The first device may deduct the amount to be provided from the offline amount stored in the secure element.

[0032] "Online amount" may include the quantity of something available while online. Online amount may be stored on a server computer. For example, multiple online amounts associated with multiple users may be stored on the server computer and / or a database maintained by the server computer. In some embodiments, online amount may be utilized during online interaction. In other embodiments, an amount from the online amount on the server computer may be transferred to an offline amount on the user device. For example, the server computer may deduct an amount from the online amount associated with a first user and then provide that amount to the first device in a security message. The first device may include the received amount in the offline amount stored in a secure element.

[0033] A "resource provider" can be an entity that can provide resources such as goods, services, information, and / or access. Examples of resource providers include merchants, data providers, transportation departments, government entities, site and residential operators, etc.

[0034] The term "verification" and its derivatives can refer to the process of using information to determine whether a potential subject is valid under a given set of conditions. Verification can include any comparison of information to ensure that certain data or information is correct, valid, accurate, legitimate, and / or credible.

[0035] The term "public / private key pair" may include a pair of associated cryptographic keys generated by an entity. The public key can be used for functions such as encrypting messages to be sent to the entity, or for verifying digital signatures that should be made by the entity. The private key can be used for functions such as decrypting received messages or applying digital signatures. The public key may be authorized by a credential authority, which may store the public key in a database and distribute it to any other entity requesting the public key. The private key may be kept in a secure storage medium and will generally be known only to the entity. However, the cryptographic system described herein may have a key recovery mechanism for recovering lost keys and preventing data loss. The public and private keys may be in any suitable format, including formats based on Rivest-Shamir-Adleman (RSA) or Elliptic Curve Cryptography (ECC).

[0036] A "digital signature" can include a type of electronic signature. A digital signature encrypts a document using digital codes that are difficult to copy. In some embodiments, a "digital signature" can refer to the result of an algorithm applied to a public / private key pair, which allows the signer to assert and the verifier to verify the authenticity and integrity of a document. The signer operates using the private key, and the verifier operates using the public key. This process proves the authenticity of the sender, the integrity of the signed document, and the so-called non-repudiation principle, which does not allow for the denial of signed content. A certificate or other data including the signer's digital signature is referred to as being "signed" by the signer.

[0037] A "credential" or "digital credential" may include electronic files and / or data files. In some cases, a credential or digital credential may be a device credential. In some embodiments, a digital credential may use a digital signature to bind a public key to data associated with an identity. A digital credential can be used to prove ownership of a public key. A credential may include one or more data fields, such as a legitimate name of the identity, a serial number of the credential, a start date and an end date of validity of the credential, credential-related permissions, etc. A credential may include a "start date" indicating the first date the credential is valid, and an "end date" indicating the last date the credential is valid. A credential may also include a hash of the data in the credential that includes the data fields. A credential may be signed by a credential authorization center.

[0038] A Certificate Authority (CA) may include an entity that issues digital certificates. A CA can use a CA certificate to prove its identity; the CA certificate includes the CA's public key. A CA certificate can be signed with the private key of another CA, or with the same CA's private key. The latter is called a self-signed certificate. A CA may maintain a database of all certificates issued by the CA. A CA may maintain a list of revoked certificates. A CA may be operated by an entity, such as a network entity, issuer, acquirer, central bank, etc.

[0039] A “processor” can include means for performing a task. In some embodiments, a processor can include any suitable one or more data computing means. A processor can include one or more microprocessors that work together to perform a desired function. A processor can include a CPU that includes at least one high-speed data processor sufficient to execute program components for performing user and / or system-generated requests. A CPU can be a microprocessor, such as AMD’s Athlon, Duron, and / or Opteron; IBM and / or Motorola’s PowerPC; IBM and Sony’s Cell processors; Intel’s Celeron, Itanium, Pentium, Xeon, and / or XScale; and / or similar processors.

[0040] "Memory" can be any suitable device capable of storing electronic data. Suitable memory can include a non-transitory computer-readable medium storing instructions that can be executed by a processor to implement a desired method. Examples of memory can include one or more memory chips, disk drives, etc. Such memory can be operated using any suitable electrical, optical, and / or magnetic modes of operation.

[0041] A "server computer" can include a powerful computer or cluster of computers. For example, a server computer can be a mainframe, a small cluster of computers, or a group of servers operating as a single unit. In one example, a server computer can be a database server coupled to a web server. A server computer can include one or more computing devices and can use any of a variety of computing architectures, arrangements, and compilations to serve requests from one or more client computers.

[0042] I. Introduction

[0043] This document describes an Offline Interaction System (OIS) that allows a user to perform digital interactions with another user or resource provider while both parties are temporarily offline relative to an interaction intermediary (e.g., a network processing computer, a credential authorization center, a transmission computer, an authorization entity computer, etc.; or, in some embodiments, the Internet). The Offline Interaction System can be used to instantly transfer any suitable form of digital currency offline via a peer-to-peer channel, achieving virtually unlimited throughput and real-time interaction latency.

[0044] Various embodiments ensure that funds cannot be double-spended during offline interactions (e.g., a user cannot use the amount multiple times) because there is no trusted intermediary to prevent replay attacks. Embodiments present offline interaction system protocols that prevent double-spending by utilizing digital signatures generated by a Trusted Execution Environment (TEE), available on the user device (e.g., smartphone, tablet, etc.). While the TEE provides the primary point of trust for offline devices, the offline interaction system can utilize several cryptographic protocols to ensure secure fund exchanges between multiple TEE-enabled devices, thereby ensuring a reliable and secure interaction processing system.

[0045] The various embodiments described herein provide an offline interaction system that allows a user (e.g., a customer) to perform digital interactions with another user (e.g., a resource provider or a second user) while two users are temporarily offline relative to an intermediary device. The embodiments then construct an offline interaction system protocol that allows peer-to-peer authorization of offline interactions using a public key infrastructure that significantly reduces participant loading overhead compared to existing digital interaction systems. Once provisioned, the offline interaction system digital wallet can securely sign interaction messages and send them directly to each other via any suitable communication channel without intermediaries for authorization and settlement. The receiving offline interaction system digital wallet can submit the signed interaction messages received offline to an authorizing entity computer (e.g., via a transmission computer, network processing computer, and / or any other device described herein), while guaranteeing settlement of these interactions to withdraw funds from the offline interaction system.

[0046] A. Overview of various embodiments

[0047] Consider two devices: a first device and a second device, each holding an online account with respect to a server computer S. Various embodiments implement account maintenance to record information (e.g., balance) about the amount of money a user holds with respect to a particular device at the server computer S. One objective of the offline interactive system protocol according to embodiments is to allow the first device to interact with the second device to provide the server computer S with information from... This represents the amount transferred from an account on the first device to an account on the second device, without either device communicating with the server computer S during the interaction. The first device (e.g., the sending device) may include a security element D. A It can securely store data and execute code via a Trusted Execution Environment (TEE). Some embodiments may not require a second device (e.g., a receiving device) to include a secure element with a TEE. The TEE model and the main components of various embodiments are described below. Next, an offline interaction system protocol for setting up the device and performing offline interaction will be described.

[0048] A trusted execution environment (TEE) can be a software stack stored on read-only memory (ROM) within a secure element. The stack includes a set of resources for accessing the secure element, a trusted operating system that provides developers with access to the underlying secure element, and one or more trusted applications (TAs) that implement application-specific functionality within the TEE (see Protocol 5). A TA may be paired with an application-specific client application (CA) that resides outside the isolated TEE space and provides user-facing functionality by interacting with the TA via the trusted operating system.

[0049] The offline interaction system may include a server, a sending client application, a receiving client application, and a trusted application. The server provides functionality for registering and setting up user devices and managing user accounts. The sending client application may be deployed on a first device. The sending client application provides a user interface for issuing offline interactions by interacting with the trusted application and for interacting with the server computer S to register the sending client application and the trusted execution environment. The receiving client application may be deployed on a second device. The receiving client application provides a user interface for receiving and verifying offline interactions and for interacting with the server computer S to register the client application and declare offline interactions. In some embodiments, the receiving client application may not interact with the trusted execution environment. In some embodiments, the device may include both the sending client application and the receiving client application. For example, if the first device requests funds from another client (e.g., device C), the first device may include both the receiving client application and the sending client application. The trusted application may be deployed on the first device (e.g., the sending device). The trusted application may be included in the trusted execution environment. The trusted application provides functionality specific to the offline interaction system for securely accessing secure elements and managing the client's offline amounts. The trusted application deployed on the first device can use T... A表示 .

[0050] 1. Configure the protocol

[0051] In various embodiments, the offline interaction system protocol allows two clients participating in the interaction (e.g., users and / or resource providers) to register with a server computer S during a one-time online setup to establish an asymmetric cryptographic key, which can later be used to issue and verify offline interactions. The online setup also allows the first device to interact with the server computer S and the first device (D... A The manufacturer and server computer S initialize the Trusted Execution Environment (TEE) together. The TEE setup may include three phases: (1) remote verification, which allows the manufacturer or server computer S to remotely verify the validity of the TEE stack; (2) trusted application provisioning, which allows the manufacturer or server computer S to securely deploy trusted applications within the TEE; and (3) trusted application registration, which allows trusted applications to establish signature key pairs, register signature key pairs with server computer S, and obtain credentials to prove the validity of signature key pairs.

[0052] 2. Deposit Agreement

[0053] In various embodiments, client A may need to initially deposit funds into a secure element while the first device is online, enabling the first device to perform offline interactions later. For example, the first device may request server computer S to deposit a portion of the online amount stored on server computer S and associated with client A. The amount of funds deposited and stored in the trusted application T A The offline amount. The server computer S uses a display... The response is a signature representing the amount deducted from client A's online balance. The client's trusted application verifies the signature using the server's public verification key and sends... Add to trusted application T A The offline amount.

[0054] 3. Offline Interaction Protocol

[0055] Offline interaction can be initiated by a receiving device (e.g., a second device), which sends an interaction request message to the first device. The interaction request message may include credentials from the second device. Upon receiving the interaction request message, the first device invokes a trusted application T. A To securely access T from trusted applications A The interaction amount is deducted from the total amount, and a signed interaction response message is created that includes the interaction amount and credentials for both devices (e.g., sender credentials and receiver credentials). P Device A will interact with the response message. P Send to the second device. Upon receiving the interactive response message. PNext, the second device verifies the signature and credentials of the first device. Then, device B can ensure that the interaction response message contains B's credentials (e.g., recipient credentials). If each verification is successful, the second device accepts the interaction and can store the interaction response message. .

[0056] 4. Claims Agreement

[0057] If the second device wants the interactive response message received offline from the first device P If the interaction amount indicated in the protocol is added to the online amount associated with the second device and stored on the server computer S, the second device can invoke the claim protocol. During the claim protocol, the second device will interact with the response message. P The message is sent to server computer S. Server computer S verifies the interactive response message. Validity and check the interaction response message P Whether the interaction log previously used by server computer S is marked as spent. If all validations are successful, server computer S can send an interaction response message. P The amount indicated in the middle is added to B's online amount, and an interactive response message is sent. P Add to the interaction log.

[0058] 5. Payment Agreement

[0059] In various embodiments, the second device may include a trusted application T having a trusted application similar to that of the first device. B The security element is configured. In some embodiments, the second device may attempt to use a previously configured security element in the interactive response message. P The second device interacts offline with the amount received from the first device, without needing to be online. To this end, the second device may invoke a collection protocol to send the interaction response message. P The amount indicated in the text is added to the trusted application's T. B The offline amount allows the second device to perform interactions offline using the amount in a manner similar to the interactions performed by the first device described above.

[0060] 6. Withdrawal Agreement

[0061] In some embodiments, the first device may request funds to be transferred from a trusted application T. A The amount is moved to the online location stored on the server computer S. For example, the first device can invoke TA.Withdraw to retrieve funds from the trusted application T. A The withdrawal agreement deducts the amount from the first device, which then provides the first device with a T-type application. AThe first device signs the message using the signature key. Then, the first device forwards the signed message to the server computer S, which, after verifying the signature, adds the amount to the online amount associated with the first device.

[0062] 7. Protection against replay and rollback

[0063] To prevent malicious intermediaries (e.g., malicious credential authorization centers) from reinstalling on server computer S and trusted application T A The messages exchanged between the devices, as well as between the first and second devices, may each maintain a monotonically increasing counter after each round of communication between the pair of devices. In some embodiments, the server computer S and the trusted application T A The latest value of its counter can be included in its signed message, allowing the receiver to verify the uniqueness and order of all messages against its local counter, which can be synchronized after each exchange. In some embodiments, the first and second devices may include counter values ​​in messages sent to other devices.

[0064] B. Offline interactive system

[0065] Figure 1 A system 100 according to an embodiment of the present disclosure is illustrated. System 100 includes a first device 102, a server computer 104, a second device 106, a plurality of devices 108, and a credential authorization center 110. The first device 102 is operatively communicable with the server computer 104, the second device, and one or more of the plurality of devices 108. The server computer 104 is operatively communicable with the credential authorization center 110. In some embodiments, when offline, the first device 102 may communicate with the second device 106 via a short-range communication channel (e.g., Bluetooth, near-field communication, etc.). In some embodiments, when online, the first device 102 may communicate with the server computer 104 via a long-range communication channel (e.g., over-the-air communication, etc.). However, it should be understood that the embodiments are not limited thereto.

[0066] To simplify the explanation, Figure 1 A certain number of components are shown. However, it should be understood that embodiments of the invention may include more than one of each component. Furthermore, some embodiments of the invention may include more than one of each component. Figure 1 The components shown are fewer or more components.

[0067] Figure 1Messages between devices in the network can be sent using secure communication protocols, such as, but not limited to, File Transfer Protocol (FTP), Hypertext Transfer Protocol (HTTP), Secure Hypertext Transfer Protocol (HTTPS), SSL, ISO (e.g., ISO 8583), etc. The communication network can include any one and / or a combination of the following: direct interconnection; the Internet; a local area network (LAN); a metropolitan area network (MAN); an Operational Mission on the Internet (OMNI); a secure custom connection; a wide area network (WAN); a wireless network (e.g., employing protocols such as, but not limited to, Wireless Application Protocol (WAP), I-mode, etc.); etc. The communication network can use any suitable communication protocol to generate one or more secure communication channels. In some instances, the communication channel can include a secure communication channel, which can be established in any known manner, such as by using mutual authentication and session keys, and by establishing a Secure Sockets Layer (SSL) session.

[0068] The first device 102 may include a user device operated by a user (e.g., a telephone). The first device 102 may include security elements as further described herein. The user may use the first device 102 to perform interactions with the second device 106 (e.g., transactions, data transfers, etc.). When the first device 102 and the second device 106 are offline (e.g., not connected to the server computer 104), the first device 102 may perform transactions with the second device 106. The second device 106 may include a resource provider device (e.g., a telephone) operated by a resource provider.

[0069] Server computer 104 may include a remote computer. Server computer 104 may provide offline amounts to first device 102 for storage in the secure element of first device 102. For example, first device 102 may request offline amounts from server computer 104. In other cases, server computer 104 may push offline amounts to first device 102.

[0070] The first device 102 and the second device 106 can perform offline interaction. In some embodiments, the first device 102 can perform interaction with one or more of a plurality of devices 108, which may include resource provider devices and / or user devices. The plurality of devices 108 may include any suitable number of user devices and / or resource provider devices.

[0071] In some embodiments, the second device 106 receives an offline amount from the first device 102. The second device 106 then performs a second offline transaction with one of the plurality of devices 108.

[0072] In other embodiments, the second device 106 receives an offline amount from the first device 102. The second device 106 then goes online and connects to the server computer 104. The second device 106 requests to collect an amount equal to the received offline amount.

[0073] Credential authorization center 110 can create credentials and issue them to server computer 104. Credential authorization center 110 may include one or more server computers. In some embodiments, credential authorization center 110 can issue credentials to resource provider devices, authorization entity computers, transmission computers, server computers, network processing computers, user devices, etc. Credential authorization center 110 can generate credential authorization center key pairs. In some embodiments, credential authorization center 110 can be operatively communicated with and / or operatively coupled to server computer 104, and can generate credentials on behalf of server computer 104. In some embodiments, a root credential authorization center (not shown) can issue credentials to credential authorization center 110. Credential authorization center 110 then uses credentials obtained from the root credential authorization center to issue credentials to server computer 104.

[0074] C. User Equipment

[0075] Figure 2 A block diagram of a first apparatus according to an embodiment is shown. An exemplary first apparatus 200 may include a processor 204. The processor 204 may be coupled to a memory 202, a network interface 206, a computer-readable medium 208, and a trusted execution environment 210. The computer-readable medium 208 may include any suitable number of modules.

[0076] Memory 202 can be used to store data and code. Memory 202 can be coupled internally or externally to processor 204 (e.g., a cloud-based data storage device) and can include any combination of volatile and / or non-volatile memory such as RAM, DRAM, ROM, flash memory, or any other suitable memory device.

[0077] Computer-readable medium 208 may include code executable by processor 204 for performing a method comprising: receiving an interaction request message including an amount and a second device credential from a second device; verifying the second device credential using a server computer public key corresponding to a server private key used to sign the second device credential; determining, by a trusted application in a secure element of the first device, whether the amount is less than an offline amount stored in the secure element; if the amount is less than the offline amount, determining, by the trusted application, an updated offline amount based on the amount; generating, by the trusted application, an interaction response message including the amount and a trusted application credential; signing, by the trusted application, the interaction response message using a trusted application private key; and providing the interaction response message to the second device.

[0078] Network interface 206 may include an interface that allows the first device 200 to communicate with an external computer. Network interface 206 enables the first device 200 to transfer data with another device (e.g., a second device, a server computer, etc.). Some examples of network interface 206 may include a modem, a physical network interface (e.g., an Ethernet card or other network interface card (NIC)), a virtual network interface, a communication port, a PCMCIA slot and card, etc. Wireless protocols enabled by network interface 206 may include Wi-Fi. TM Data transmitted via network interface 206 may be in the form of signals, which may be electrical signals, electromagnetic signals, optical signals, or any other signals that can be received by an external communication interface (collectively, "electronic signals" or "electronic messages"). These electronic messages, which may include data or instructions, may be provided between network interface 206 and other devices via a communication path or channel. As described above, any suitable communication path or channel may be used, such as wires or cables, optical fibers, telephone lines, cellular links, radio frequency (RF) links, WAN or LAN networks, the Internet, or any other suitable medium.

[0079] Trusted Execution Environment 210 may be included on the first device 200. Trusted Execution Environment 210 may reside within any suitable secure hardware element included in the first device 200. In some embodiments, Trusted Execution Environment 210 may be a secure software module within the first device 200. In some embodiments, Trusted Execution Environment 210 may be partially located within and partially located outside the secure element, with each portion providing different capabilities. Reference Figure 3 The Trusted Execution Environment 210 is described further.

[0080] D. Trusted Execution Environment

[0081] A Trusted Execution Environment (TEE) can be a hardware-assisted execution environment within a system that has its own resources (e.g., memory, registers, peripheral devices, and its own software stack, such as the operating system, applications, etc.). Other parts of the system cannot directly access the resources of the TEE or the processes running within it.

[0082] Figure 3 This section provides an overview of user devices hosted in a Trusted Execution Environment (TEE). The system's resources are divided into two execution environments via hardware: a Rich Operating System Execution Environment (REE) and a Trusted Execution Environment (TEE). The TEE has its own dedicated memory, registers, and a trusted operating system. Third-party trusted applications can be built on top of the trusted operating system by utilizing the TEE's internal APIs. Similarly, client applications can be built on top of the rich operating system. Applications running in the TEE can access the resources of the rich operating system's REE, but applications running in the rich operating system's REE cannot access the resources of the TEE. If a client application requests services from a trusted application, the client application residing in the rich operating system's REE can only communicate with the trusted application through the TEE's client API.

[0083] Trusted Execution Environments (TEEs) can vary depending on the platform on which they run and / or the hardware used to achieve isolation within the system. Since various embodiments can be executed on mobile devices, a TEE running on a mobile device is provided as an example. However, it should be noted that the embodiments are not limited thereto. For example, a TEE may use the TrustZone architecture (provided by Arm). The TrustZone architecture enhances system isolation by utilizing a pattern that allows compute cores to be used exclusively within the TEE. The physical core is divided into two virtual cores with TrustZones: one virtual core is used exclusively within the TEE, and the other virtual core is used for the rest of the system. System calls are used to switch between environments. Applications running within the TEE can be further isolated from each other by the OS running within the TEE.

[0084] Before registering a device using Trusted Execution Environment (TEE) functionality in an offline interactive system protocol, the Original Equipment Manufacturer (OEM) can demonstrate that the TEE within the device is correctly configured. Next, the embodiment can ensure that the TEE is pre-configured with the correct applications. Finally, if the verification and pre-configuration are successful, the embodiment can register examples of trusted applications running on the device.

[0085] II. Model and Problem Definition

[0086] Various embodiments may include a group of devices A, B, C, etc., that can communicate with each other by exchanging messages via a communication network. Each user may be associated with a non-negative value, which is referred to as the amount of money indicated by the device (e.g., the balance of the first device may be represented as bal). A Users can associate offline and online amounts. Offline amounts can be stored in a secure element on the user's device. Online amounts can be stored on a server computer or an associated database. Interactions (e.g., payment transactions, data transfers, etc.) can be represented in the form (A→B, x A tuple of x indicates the transfer of an amount x from a first device (e.g., the sending device) to a second device (e.g., the receiving device). In some embodiments, the interaction may be performed by updating the amount (e.g., the balance) of the device accordingly. A = bal A - x and bal B =bal B + x) to handle the interaction (A→B, x The protocol is as follows: If the amount sent by the sender during the interaction is greater than or equal to x, then the interaction is likely genuine.

[0087] An interactive system P may include a client network that can verify the authenticity of any interaction within system P through a designated authorization center (e.g., referred to as server computer S). An offline interactive system may provide a further mechanism enabling any pair of clients to interact with each other when both are disconnected from server computer S (e.g., offline). For example, client A interacts with client B via OnBal. A The online amount and the amount represented by offBal A The offline amount is associated with the given interaction (A→B, x). The online interaction is guaranteed by onBal. A = onBal A - x and onBal B = onBal B The +x protocol. Given an interaction (A→B, x), the offline interaction ensures offBal A = offBal A - x and offBal B = offBal B + x protocol.

[0088] Offline interaction systems according to various embodiments can provide the attributes of offline verifiability, absolute immutability, redeemability, and offline transferability. The offline verifiability attribute indicates that the receiving device can independently verify the authenticity of any interaction during the interaction without communicating with the server. Absolute immutability indicates that the recipient is immediately guaranteed possession of the transferred funds once the interaction is completed. The redeemability attribute indicates that client A can transfer any amount y ≤ offBal. A Convert its offline amount to its online amount (e.g., offBal) A = offBal A - y and offBal A = offBal A +y (they are executed atomically), and vice versa. Offline transferability attributes indicate that a device can spend funds received offline without connecting to a server.

[0089] Various embodiments may assume that a client attempting to perform an interaction (e.g., sending a payment) has access to a secure element / hardware to store digital amounts and secure data and to securely execute a trusted application. The trusted application may be an isolated region of memory containing code and data, protected by a trusted execution environment. The device may need access to the trusted execution environment to act as a sending device during offline interactions. Otherwise, if the device is a receiving device during offline interactions, access to the trusted execution environment and / or the secure element is not required.

[0090] For threat models according to various embodiments, let λ denote the calculated security parameter. Embodiments may assume that all parties communicate with each other via secure and authenticated communication channels. Embodiments consider probabilistic, polynomial-time adversaries capable of compromising any client in order to (1) prevent the protocol from implementing its defined properties; and (2) forge amounts, for example, by double-spending the client's amount or forging new amounts. A compromised client can achieve this by arbitrarily altering and / or intercepting messages exchanged between the server and the client's trusted execution environment. Embodiments assume that uncompromised clients employ standard authentication mechanisms, such as passwords, PINs, and biometrics, to prevent unauthorized access to the client's device for unauthorized spending and / or deduction of the client's amount. Various embodiments may assume that the server is fully trusted.

[0091] III. Trusted Execution Environment

[0092] A Trusted Execution Environment (TEE) can be a software stack stored on read-only memory. In some embodiments, the TEE may be included within a secure element. The TEE software stack may include a set of resources for accessing the secure element, a Trusted Operating System (TOS) that provides developers with access to the underlying secure element, and one or more Trusted Applications (TAs) that implement application-specific functionality within the Trusted Application Environment. The TEE provides an execution space that offers a higher level of security than a rich operating system and more functionality than a standalone secure element for trusted applications running on the device.

[0093] A. Remote verification

[0094] In remote authentication, a remote party can attempt to ensure that the trusted execution environment within the device is set up correctly. This can be ensured using read-only memory (ROM) and a device-specific device key pair. Original equipment manufacturers can embed the ROM and device key into the device's hardware.

[0095] Read-only memory (ROM) can serve as a root of trust and the starting point for a secure boot process. For example, the ROM contains the binary of the program that initiates the boot process, and this binary contains a verification key for the next component in the boot process. After power is supplied to the device, the CPU reads from the ROM and executes an initialization program that verifies and loads the next component of the boot process (e.g., the next component verifies the next component, and so on, until the entire Trusted Execution Environment (TEE) software stack is loaded). If any signature checks fail, the boot process stops. Otherwise, the TEE stack is loaded correctly (e.g., any software running within the TEE after the device has been supplied by the original equipment manufacturer (OEM) is not modified).

[0096] At the end of this process, the trusted operating system can provide the remote party with a signature on the loaded binary and a verification device key. The remote party can then present the signature along with the key to the original equipment manufacturer (OEM). Because the OEM knows the contents of the trusted execution environment stack, it can verify the signature, thereby internally verifying the correctness of the secure boot process.

[0097] B. Trusted application provisioning

[0098] After performing remote authentication of the device, a trusted application can be provisioned to the device. In this case, provisioning may include loading one or more trusted applications for a trusted execution environment included in the device. In some embodiments, there are two ways to perform secure provisioning: (1) local provisioning by the original equipment manufacturer and (2) remote provisioning by a remote party.

[0099] In local provisioning, the original equipment manufacturer (OEM) can load trusted application binaries into the device as part of the Trusted Execution Environment (TEE) software stack. These trusted applications are then loaded during a secure boot process, ensuring their authenticity. In remote provisioning, the remote party wishes to remotely load trusted applications into the TEE after it has been configured. To do this, the remote party first establishes a secure channel using the TEE (e.g., by verifying the device key) and then sends the trusted application binary. Upon receiving the binary, the TEE configures the trusted application. Additionally, to report that the trusted application is configured correctly, the TEE may sign the hash of the binary using the device's secret key and return the signature to the remote party.

[0100] In some embodiments, the original equipment manufacturer (OEM) may restrict remote provisioning to a select group of approved developers. In this case, the OEM may place the verification keys of these developers into the Trusted Execution Environment (TEE) software stack, or may send these keys to the device at a later time. Then, whenever the remote party sends a program (e.g., a trusted application), the remote party may provide a signature on its hash. In this scenario, the TEE will only load the trusted application if the signature belongs to one of the approved developers.

[0101] C. Authenticity of Trusted Application Computation

[0102] In offline interactive system protocols, the server requires a trusted application to perform computations and receive the resulting output. Therefore, the issue of verifying the authenticity of the trusted application's output as a remote party will be discussed and evaluated. Having the trusted application sign its output using a device secret key may not work because multiple trusted applications may reside within a trusted execution environment, thus sharing the device secret key. Therefore, embodiments may utilize specific key pairs for trusted applications. Methods for establishing such key pairs will be described.

[0103] First, in the case of local provisioning, the device can be provided along with the trusted application binary, and the original equipment manufacturer (OEM) can also embed the OIS key pair in a secure storage area and expose the verification portion. In this scenario, the OEM can also configure a trusted operating system without any other trusted application having access to this secret key. However, this requires long-term trust in the OEM. For example, if the OEM is compromised, it will be able to forge signatures on behalf of the trusted application.

[0104] A better approach involves the trusted application generating its own key pair after it begins running. In this case, the problem becomes securely sending the verification portion to the remote party. Examples address the technical problem of "how the remote party can ensure that the verification key indeed belongs to a trusted application running in the correct trusted application environment." According to various embodiments, a method to solve this technical problem is to have the trusted operating system verify the trusted application's verification key using a device secret key. For example, the trusted application has a key named... init The method initializes a trusted application in the device by setting some variables, generating a key pair, and returning a verification key (see Protocol 5). Therefore, the task of the trusted operating system is to prove that the verification key belongs to the trusted application. init The output of the method.

[0105] Next, the process for authenticating the trusted application's verification key is as follows: 1. Trusted applications run init The method generates key pairs.

[0106] 2. The trusted application returns the generated verification key to the trusted operating system for verification.

[0107] 3. The trusted operating system verifies the key, and the verification key is obtained through a trusted application. init Generate a signature on the declaration generated by the method.

[0108] In more detail, make , These represent the trusted execution environment software stack and the binary representation of the trusted application, respectively. Additionally, [the following is used to] enable... This represents an example of a trusted application running on device A. Next, the steps described above correspond to:

[0109] Call

[0110] Execute the following method: a) If Not belonging to If so, then stop; b) Return ,in

[0111] As a simplified notation, the embodiments use (See Protocol 4), which indicates the device authentication output of the Init method. After establishing a key pair with the remote party, the trusted application can provide... The authenticity of the output is guaranteed by a signature, or by establishing a secure session with the remote party when exchanging multiple messages.

[0112] D. Trusted Application Registration

[0113] After the trusted execution environment is verified and the trusted application (see Protocol 5) is configured via the provisioning phase, the client device and the trusted application instance can register with the server before the client can perform interactions. To this end, the trusted application can first generate a signing key pair, then send a verification key to the server, which verifies the key by signing it with its own secret key and returns it to the device. The signed verification key can be located in a credential indicating that the trusted application key was generated by the genuine trusted execution environment and has been registered with the server. Whenever the device performs an interaction, it sends the credential and other interaction information, allowing the recipient to independently verify the validity of the interaction using the server's public key (verification key).

[0114] About Figure 4 This describes a pre-provisioning method according to various embodiments. It will be described in the context of a first user requesting credentials from a server computer to perform offline interaction. Figure 4 The method shown.

[0115] At step 420, during the pre-configuration process A, the first device 504 may provide the server computer 502 with its first device public key to request credentials. Additionally, the first device 504 may provide the server computer 502 with its trusted application (TA) public key to request credentials.

[0116] In step 422, after receiving the first device public key, the server computer 502 can use its server secret key to sign the first device public key to form a first device credential. The server computer 502 can also use its server secret key to sign the trusted application public key to form a trusted application credential.

[0117] At step 424, server computer 502 may then provide credentials (e.g., first device credentials) to first device 504. Subsequently, server computer 502 may provide trusted application credentials to first device 504. In some embodiments, first device 504 may provide a first device public key and a trusted application public key to server computer 502 in a message and receive a response including the first device credentials and the trusted application credentials.

[0118] Similarly, in the second device 506 ( Figure 4 Not shown in the image, but can be found in [reference]. Figure 5During the pre-provisioning process, the second device 506 may provide the second device public key to the server computer 502. The server computer 502 may then sign the second device public key using its server secret key to form a credential. The server computer 502 may then provide the credential (e.g., the second device credential) to the second device 506.

[0119] E. Trusted Execution Environment Internal API

[0120] Trusted applications according to embodiments of the present invention may include a trusted storage API, a cryptographic API, a time API, and an arithmetic API. The trusted storage API provides secure storage functionality for trusted applications, including general data and cryptographic keys. For example, using the trusted storage API, a trusted application can record data whose integrity and authenticity are guaranteed. The trusted storage API also provides isolation between trusted application storage. The cryptographic API provides APIs for cryptographic functionality, including key generation (symmetric and asymmetric), symmetric and asymmetric encryption, digest generation, and key exchange. The time API provides APIs for timing operations. Trusted applications can maintain their internal timers through arbitrary initialization or simply synchronize them with an external trusted time source at a certain point in time. The arithmetic API provides APIs for handling large numbers and prime fields. An arithmetic API can be provided to help developers extend the cryptographic API.

[0121] Table 1 below describes some of the terms used in the embodiments.

[0122] Table 1: Summary of Trusted Execution Environment Terminology

[0123] IV. Offline Interaction Processing Methods

[0124] A. User Device Settings

[0125] Each user device (whether or not it supports TEE) can participate in a one-time setup protocol to register the device with the server (e.g., establish cryptographic keys and credentials) and initialize the device's Trusted Execution Environment stack if the device supports a Trusted Execution Environment.

[0126] During user device registration, the user device can generate a local signature key pair and submit the verification key to the server. In return, the server initializes the client's account information and returns credentials to the user device. The credentials can be the server's signature on the client's verification key, allowing the user device to later prove to other entities that it has registered with the server.

[0127] B. Trusted Application Registration

[0128] A trusted application can be registered on a user device (e.g., to a server computer). As described herein, this allows the original equipment manufacturer (OEM) to verify the authenticity of the trusted execution environment running the trusted application example. According to some embodiments, the OEM provides the user device along with the trusted application binary (e.g., a locally provisioned device). In some embodiments, a user device may run a trusted application during offline interaction.

[0129] Table 2 below describes some protocol symbols.

[0130] Table 2: Protocol Symbols

[0131] In some embodiments, during trusted application registration, the server initialization protocol 4 i A This represents the counter value for each example of an offline interactive system. Trusted applications may maintain internal variables (e.g., counter values ​​or indexes) (see Protocol 5). This is synchronized with server computer variables (e.g., counter values ​​or indexes). Together, the counter values ​​or indexes prevent double overhead on both the server computer side and the client side (e.g., the user device side).

[0132] Protocol 3 shows the client settings protocol.

[0133] Protocol 3: Client Setup Protocol

[0134] C. Trusted Applications

[0135] It can provide client applications with methods offered by trusted applications. The trusted application maintains variables with the following functions.

[0136] The variable T.bal is the offline amount (e.g., offline balance) maintained within the user device.

[0137] The variable T.log is the interaction log received from other users. The interaction log can be used to prevent users from replaying received interactions multiple times to increment the offline count.

[0138] The variable Ti is a counter value synchronized between the server and the user device. This counter can be used to prevent double-spending attacks. Furthermore, the counter value Ti ensures that each interaction is unique, allowing the user device to determine whether the sending device is replaying a previous interaction (e.g., whether an interaction with the same counter has already been received) whenever it receives an interaction.

[0139] Protocol 4 shows the Trusted Application Registration Protocol.

[0140] Agreement 4: Trusted Application Registration Agreement

[0141] Protocol 5 demonstrates the initial process of a trusted application.

[0142] Protocol 5: Trusted Applications

[0143] Protocol 6 demonstrates the interactive verification function.

[0144] Protocol 6: Interactive Verification Function

[0145] D. Deposits and withdrawals

[0146] During the deposit process, a first device (e.g., a user device) may deduct an amount (e.g., a selected amount) from an online amount associated with the first device, such as one maintained by a server, and deposit that amount into an offline amount, such as one maintained by a trusted application within the first device (see Protocol 7). The withdrawal protocol operates similarly to the deposit protocol, but the direction of amount provision is reversed. For example, in the withdrawal protocol, the first device withdraws some amount from the offline amount and transfers it to a server to add that amount to the online amount (see Protocol 8).

[0147] refer to Figure 4 , Figure 4 The method of depositing funds according to an embodiment is shown as B. Figure 4 The first device 504 requests to receive an offline amount from the server computer 502.

[0148] For example, at step 430, the first device 504 may provide a request that includes at least the amount x. The first device 504 may also provide a trusted application public key to the server computer 502.

[0149] At step 432, server computer 502 may determine whether the amount x exceeds the online amount. If the amount x exceeds the online amount, server computer 502 may terminate the process. If the amount x does not exceed the online amount, server computer 502 may set an updated online amount equal to the difference between the online amount and the amount x (e.g., online amount – x). In some embodiments, server computer 502 may also update an integer value (also referred to as index value i) as a counter value. The counter value may be incremented by 1 (or other predetermined amount) whenever server computer 502 communicates with first device 504 to prevent replay attacks.

[0150] At step 434, server computer 502 may generate a statement including a deposit confirmation instruction (e.g., “depostconfirmed”), the amount x, and an index value i generated by the server (e.g., Si). A The server computer 502 generates a signature for the response message by signing the data in the response message with its private key. For example, the server computer 502 can generate a signature for the response message by calculating Sign([T) and the signature σ. A .vk, x Si A ], S.sk S To obtain the digital signature σ.

[0151] At step 436, after generating and signing the response message, the server computer 502 sends a response message containing the amount of the offline amount to be added to the trusted application on the secure element in the first device 504.

[0152] At step 438, after receiving the response message, the first device 504 may then provide the received message to the trusted application. For example, the trusted application may use the server computer's public key associated with the server computer's private key to verify the signature. The trusted application may also update the offline amount by adding the amount to the previous offline amount. In some embodiments, the trusted application may increment the counter value by 1 (see Protocol 7).

[0153] Figure 4 An offline amount retrieval method C according to an embodiment is also shown. In some embodiments, the offline amount retrieval method may be similar to the offline amount storage method. However, instead of storing the amount in the offline amount of a trusted application, it is preferable to retrieve an amount from the offline amount of the trusted application and provide it to the server computer 502 (see Protocol 8). In some embodiments, the user of the first device 504 may choose to transfer part or all of the offline amount to the online amount maintained by the server computer 502.

[0154] For example, after receiving user input initiating withdrawal method C, at step 440, the first device 504 can determine whether the offline amount is greater than or equal to a selected amount to be transferred to the online amount. For example, the user can choose to transfer $5 from the offline amount to the online amount. The first device 504, specifically the trusted application, can determine whether the offline amount is greater than or equal to $5. If the offline amount is less than the selected amount, the first device 504 can terminate the method and notify the user of this determination. If the offline amount is greater than or equal to (e.g., exceeds) the offline amount, the first device 504 can continue with withdrawal method C at step 442.

[0155] At step 442, the first device 504 may provide an extraction request message to the server computer 502. The extraction request message may include an amount (e.g., the amount to be transferred), an index locally maintained by both the first device 504 and the server computer 502, and a digital signature. For example, a trusted application may execute T... A .Withdraw( x (See Table 1). A trusted application can generate a digital signature in any suitable manner. For example, a trusted application can sign a message using its trusted application private key. The trusted application private key may correspond to the trusted application public key for which the server computer 502 previously issued trusted application credentials.

[0156] At step 444, after receiving the retrieval request message, the server computer 502 may determine whether the retrieval request message is valid. For example, if the index value provided in the retrieval request message matches the index value maintained by the server computer 502, the server computer 502 may determine that the retrieval request message is valid.

[0157] If the digital signature on the extraction request message is valid, server computer 502 can determine that the extraction request message is valid. For example, server computer 502 can use SigVerify([ x , i], σ, T A .vk) 1. Verify the signature, as indicated in Protocol 8. In other words, server computer 502 can verify the signature using a trusted application public key associated with the trusted application private key used to create the signature.

[0158] After confirming the validity of the retrieval request message, server computer 502 may update the online balance to include the amount indicated in the retrieval request message (e.g., the amount retrieved from the secure element and provided to server computer 502). For example, server computer 502 may execute S.onBal A ← S.onBal A + x .

[0159] In some embodiments, server computer 502 may increment the index by a predetermined amount (e.g., 1). After receiving the retrieval response message at step 448 below, first device 504 may also locally increment the index by the same predetermined amount.

[0160] At step 446, server computer 502 may generate an extraction response message that includes an indication of whether extraction has been confirmed. For example, if any of the above verifications fail, server computer 502 may generate an extraction response message that includes an indication of extraction not being confirmed (e.g., "withdrawdenied"). If the above verifications succeed, server computer 502 may generate an extraction response message that includes an indication of extraction being confirmed (e.g., "withdrawconfirmed").

[0161] At step 448, after generating the extraction response message, the server computer 502 may send the extraction response message, including an indication of whether extraction has been confirmed, to the first device 504.

[0162] Agreement 7 shows the deposit agreement.

[0163] Agreement 7: Deposit Agreement (Online to Offline)

[0164] Agreement 8 shows the withdrawal agreement.

[0165] Agreement 8: Withdrawal Agreement (Offline to Online)

[0166] E. Offline interactive messaging

[0167] The following Agreement 9 shows about Figure 5 The offline interaction protocol is described in further detail.

[0168] Protocol 9: Offline Interaction Protocol

[0169] Figure 5 An offline interaction processing method according to an embodiment is illustrated. The first device 504 can perform offline interaction with the second device 506 without communicating with the server computer 502.

[0170] At step 520, the second device 506 may request an amount from the first device 504 during the interaction. The second device 506 may send a second device credential and an amount to the first device 504. For example, prior to step 520, the second device 506 may generate an interaction request message including the second device credential and an amount to the first device 504. The interaction between the first user of the first device 504 and the second user of the second device 506 may be a transaction, where the first user is a user and the second user is a resource provider. The amount may be a predetermined and agreed-upon amount. For example, the amount may be determined based on multiple resources selected by the first user and taken to an inspection checkout counter (or other suitable resource provider location) for purchase.

[0171] At step 522, upon receiving the interaction request message, the first device 504 and / or the trusted application within the first device 504 can verify the second device credentials. For example, the first device 504 can use the server computer public key stored at the first device 504 and / or the trusted application to verify the second device credentials. For example, the trusted application can verify the second device credentials within a trusted execution environment.

[0172] At step 524, after verifying the validity of the second device credential received from the second device 506, a trusted application in the secure element of the first device 504 may determine whether the amount indicated in the interaction request message is less than the offline amount stored in the secure element. For example, the amount in the interaction request message may be $10. The trusted application may determine whether the offline amount is greater than or equal to the amount. For example, the offline amount may be $22. In this case, the trusted application may determine that the offline amount ($22) is greater than the amount ($10) in the interaction request message. If the amount in the interaction request message is greater than the offline amount, the trusted application may terminate the interaction. In some embodiments, the trusted application and / or the first device 504 may provide the second device 506 with an interaction response message indicating that the interaction cannot be processed. In some embodiments, the interaction response message may further include an indication of why the interaction cannot be processed (e.g., insufficient funds, etc.).

[0173] At step 526, if the amount is less than the offline amount, the trusted application in the first device 504 can determine the updated offline amount based on the amount. For example, the trusted application can use the amount to update the offline amount. The trusted application can determine the updated offline amount to be $12.

[0174] In some embodiments, the trusted application may also verify that the counter value (or index value) is correct if the trusted application has previously communicated with the second device 506 (as described above). If this is the first interaction between the second device 506 and the first device 504, the index value may be 0 (or may start from 1 in some embodiments). When an interaction response message is sent, the trusted application may increment the locally maintained index value by 1.

[0175] At step 528, after updating the offline amount, the trusted application may then generate an interaction response message (e.g., a payment message). The interaction response message may include an amount (e.g., x) and a second device credential (e.g., receiverCert). In some embodiments, the interaction response message may include a trusted application credential (e.g., T.cert). In some embodiments, the interaction response message may further include a first device credential. The interaction response message may also include a counter value (Tj).

[0176] For example, trusted applications can respond to interactive messages. P Set the following values: P .amount ← x ; P .senderCert ← T.cert; P .receiverCert ← receiverCert; P .index ← Tj; At step 530, after the trusted application generates the interactive response message, the trusted application in the first device 504 can sign the interactive response message using the trusted application's private key.

[0177] A trusted application can use a trusted application private key associated with the trusted application public key in the trusted application credentials to interact with response messages. P Sign the interaction response message. A trusted application may, as indicated in Protocol 5, sign the interaction response message by performing the following actions. P Sign: Output P ,in P .sig ← Sign([ P .amount, P .senderCert, P .receiverCert, P [.index], T.sk).

[0178] At step 532, after digitally signing the interactive response message, the first device 504 sends the interactive response message including the signature (e.g., sigma (σ)) to the second device 506.

[0179] At step 534, after receiving the interactive response message, the second device 506 may execute the PayVerify process (see Protocol 6). For example, the second device 506 may verify that the received second device credentials are the same as the second device credentials (e.g., determining that the first device 504 has not tampered with the second device credentials).

[0180] At step 536, the second device 506 may, for example, use the server computer's public key to verify the received trusted application credentials.

[0181] At step 538, the second device 506 may use the trusted application public key of the trusted application credential (e.g., corresponding to the trusted application private key used to create the signature) to verify the signature (e.g., sigma) of the interactive response message.

[0182] In some embodiments, at step 540, the second device 506 may temporarily store the interactive response message. P For example, if the second device 506 includes a second safety element, then the second device 506 can interact with response messages. P It is stored in the second security element.

[0183] In some embodiments, at step 542A, the second device 506 may provide an interactive response message to the server computer 502. P In other embodiments, at step 542B, the second device 506 may perform a second interaction with the third device 508. Steps 542A and 542B will be described in more detail in the next section.

[0184] F. Claims and Receipts

[0185] Receiving and verifying interactive response messages P Subsequently, the second device 506 may add the amount indicated in the interactive response message (e.g., P.amount) to the amount associated with the second user in two different ways (e.g., step 542A or step 542B). In some embodiments, if the second device 506 has a second trusted application running in the second secure element, the second device 506 may execute a collection method (e.g., T...). B .Collect( P The amount is added to the second offline amount. In other embodiments, if the second device 506 does not have a security element, the second device 506 may perform the claim method with the server computer 502 as described in Protocol 10 and add the amount to the second online amount.

[0186] At step 542A, during the claim process, the second device 506 may claim the amount provided from the first device 504 to the second device 506 during a previous interaction (e.g., performed during steps 520-540). When the second device 506 is online, it may provide the offline interaction response message received offline to the server computer 502. P The second device 506 can provide interactive response messages to the server computer 502 through any suitable communication channel. P .

[0187] Upon receiving the interactive response message, server computer 502 can verify both the trusted application credentials and the second device credentials included in the interactive response message. Server computer 502 can then add the amount included in the message to the online amount associated with the second device 506.

[0188] In some embodiments, server computer 502 may add message P to an interaction log. For example, the interaction log may include interaction response messages from previous interactions. If an interaction response message is already included in the interaction log, server computer 502 may reject the provided interaction response message from second device 506.

[0189] After updating the online amount or rejecting the interaction response message, the server computer 502 then sends an acknowledgement or rejection response message to the second device 506. For more details, please refer to Protocol 10.

[0190] Agreement 10: Claims Agreement (Offline to Online)

[0191] In other embodiments, at step 542B, the second device 506 may execute the payment collection method. If the second device 506 includes a second trusted execution environment with a second trusted application, then the second device 506 may execute step 542B. For example, at step 542B, upon receiving an interactive response message... P Subsequently, the second device 506 can provide interactive response messages to the second trusted application of the second device 506. P The second trusted application can verify the interactive response message, as described herein. The second trusted application of the second device 506 then adds the amount to the previous second offline amount to obtain an updated second offline amount.

[0192] After receiving the amount for offline transactions, the second device 506 may perform a second interaction between itself and the third device 508. The third device 508 may be operated by a third user. The second interaction between the second device 506 (e.g., as a user) and the third device 508 (e.g., as a resource provider) may be similar to the first interaction described above between the first device 504 and the second device 506 during steps 520-540.

[0193] For example, during the second interaction, the second device 506 may receive a second interaction request message from the third device 508, including a second amount and third device credentials. The second device 506 may verify the third device credentials using a server computer public key corresponding to the server private key used to sign the third device credentials. A second trusted application in the second secure element of the second device 506 may determine whether the second amount is less than a second offline amount stored in the second secure element. For example, the second offline amount may have been previously updated based on an amount provided in an interaction response message (e.g., received at step 532) during the first interaction. If the second amount is less than the second offline amount, the second device 506 may determine a second updated offline amount based on the second amount. The second device 506 may then generate a second interaction response message including the second amount and the second device credentials, and then sign the second interaction response message using the second trusted application private key. The second device 506 may then provide the second interaction response message to the third device 508. The third device 508 may then execute a claim method or collection method as described herein.

[0194] V. Interaction based on offline blockchain

[0195] In some embodiments, smart contracts can perform various functionalities described herein as being executed by a server computer. A smart contract is a computer program (e.g., processing software) designed to automatically execute, control, or record legally relevant events and actions in accordance with the terms of a contract or agreement. Several advantages of smart contracts include reduced need for trusted intermediaries, lower arbitration and enforcement costs, reduced losses from fraud, and reduced malice and unintended anomalies.

[0196] As described so far, the embodiments have utilized a trusted server S for provisioning OPS TAs and online interaction. In this section, the embodiments may separate these two tasks of server S, and smart contracts may be used to implement the online interaction portion. In some cases, the entire server S is not simply replaced by a smart contract because, during the provisioning process (e.g., as illustrated in Protocol 4), server S uses its signing key to authorize each OPS TA for offline interaction. Since all information stored in a smart contract is public, it is generally not possible to store the signing key in the contract state. Therefore, the embodiments employ a design where the Deposit, Withdraw, and Claim functions are delegated to a smart contract.

[0197] Therefore, for example, during the claims process (e.g., after the second user device receives the interactive response message from the first user device), the second user device may provide the interactive response message to the processing software. The processing software may update the first online amount associated with the first device and the second online amount associated with the second device based on the amount included in the interactive response message.

[0198] In some embodiments, the processing software may be a smart contract and may provide an inclusion proof to a second user device after processing the interactive response message. In other embodiments, the processing software may be located in a server computer (as described in detail herein).

[0199] During TA registration (protocol 4), when the OPS TA sends TARegister to the server S, the server S responds with [cert]. However, when utilizing a smart contract, the server S can also send the OPS TA identity (e.g., the TA verification key) to the smart contract. Additionally, the Withdraw and Claim methods can be modified so that the OPS TA can now send Withdraw and Claim to the smart contract instead of the server S. Since the smart contract has the OPS TA's verification key, it can simply verify the Withdraw and Claim to complete the Withdraw and Claim process. However, deposit verification is a more nuanced process, described in further detail in the remainder of this section.

[0200] During the Deposit protocol, upon receiving the DepositConfirmed message from server S, as described herein, the OPS TA uses server S's verification key to verify the message's correctness and updates the message's offline balance. Since smart contracts cannot sign messages, the embodiment may instead implement blockchain inclusion proofs to convince the OPS TA to process any event on the blockchain. It should be noted that these proofs are required to convince the OPS TA that the deposit transaction was executed correctly.

[0201] VI. Threat Modeling and Security Analysis

[0202] The embodiments offer several advantages. For example, one embodiment provides a secure offline interaction system that allows devices to securely store offline amounts and transfer offline amounts between devices without communicating with a server. The use of credentials and signatures described herein provides an authentication mechanism between devices.

[0203] Various embodiments address the technical problem of replay attacks (e.g., where a malicious party uses the same data multiple times to obtain a result that should only be performed once). Embodiments address the technical problem of replay attacks when the device communicates offline (e.g., without a server). Counter values ​​may be included in the various messages described herein to prevent a malicious user from attempting a replay attack twice, spending the same offline amount.

[0204] The implementation provides several additional advantages. For example, users with limited internet connections can interact with each other locally.

[0205] VII. OIS with balance recovery

[0206] From a protocol perspective, the aforementioned Offline Interaction System (OIS) provides the expected functionality, including offline verifiability, absolute immutability, redeemability, and offline transferability. Offline users may only need to interact with the server during client setup, TA registration, deposit, withdrawal, and claim procedures. It should be noted that the deposit, withdrawal, and claim procedures are user-dependent and therefore not mandatory. In other words, if two users support TEE... A and B Continue exchanging amounts x Offline payments, in theory, allow them to generate an unlimited number of payments without constantly interacting with the server.

[0207] However, in some cases, interaction with a server may be necessary due to unforeseen circumstances. For example, referring to the scenario outlined above, if user A loses their device (e.g., a smartphone), user A will lose their offline balance. Therefore, user A cannot generate new interactions until their offline balance is restored. This situation seems reasonable, as smartphones are sometimes lost or stolen. With this in mind, embodiments provide a series of methods to facilitate offline balance recovery after device loss. The offline interaction system described herein may or may not include the balance recovery embodiments described in this section.

[0208] Since one aspect of OIS is to restrict the server's participation in the interactive process, any recovery mechanism can provide the server with offline network visibility.

[0209] This section describes mechanisms for recovering the online balance of a party that has lost their device. First, embodiments explore the limitations of balance recovery and identify several situations where balance recovery is technically difficult without additional assumptions. Then, embodiments provide several techniques that facilitate balance recovery in these technically difficult situations.

[0210] A. Problem Statement

[0211] To outline the need for balance recovery, a simple use case can be used to describe the technical problem. Subsequently, examples can enumerate abstract concepts from this use case to examine other more complex examples where balance recovery may be used. For the simple use case, assume two users, Alice and Bob (hereinafter referred to as A and B), are involved in an interaction protocol. Both A and B have smartphones that support TEE, with OIS CA and OIS TA. We further assume that A has an online balance maintained by a server. and offline balance maintained by TA (in Similarly, B has an online balance maintained by server S. and offline balance maintained by TA (in ). A Callable To pay B x The amount, and B called and With x Added to user B's account. Therefore, from A's offline balance ( Deduct from ) x .

[0212] Shortly after payment, A Lost their device and contact S To restore their offline balance. S The payment between A and B is unclear. Therefore, the server will request A to make a payment. Show all offline payments before restoring to the correct state. Therefore, unless the server has access to some stored information (in this case, provided by B). Otherwise, in this initial example scenario, a recovery mechanism would be impossible. This means that B must be online and synchronized with the server to facilitate balance recovery. However, in an adversarial environment, B might choose to remain offline and non-cooperative, or B might be unable to go online for some reason (e.g., no internet connection). Furthermore, A could also be malicious and submit a false recovery request (e.g., requesting recovery without reporting). to obtain Instead Finally, another possibility is that A and B simultaneously lost their devices and sent them to... S A parallel recovery request is generated. In this scenario, neither party can provide any evidence that they have sent or received the payment, making balance recovery technically more difficult.

[0213] B. Balance Recovery Target

[0214] Regarding the design goal of solving the aforementioned technical problems, the embodiments are intended to enable the OPS server S Able to guarantee users within the time limit Recovery (e.g., users don't have to wait indefinitely for their balance to be restored). Another goal is to build a system where malicious users cannot 1) file false recovery claims, 2) intentionally or unknowingly obstruct the recovery process, and 3) influence honest users by colluding with other malicious users. Additionally, if a user has made multiple offline interactions, S can identify the maximum number (ideally all) of such interactions and restore the offline balance to the correct state. The balance recovery objectives and threat model are outlined below.

[0215] In some embodiments, users (e.g., Alice) cannot make false claims because if they do, they risk losing their balance when a false claim is detected.

[0216] (1) When S Balance recovery is possible once all offline interactions between the sender and receiver are received. Partial balance recovery refers to... S (2) If the sender’s device is lost, the interaction can only be provided by the interaction receiver.

[0217] (3) The recipient must be online (contact) S (4) If the interaction involves having n A device that supports TEE n If one party is missing and all devices in the system are lost, it is impossible to restore the balance to its correct state.

[0218] For the threat model, an embodiment might assume that a user could attempt to submit a false recovery request (e.g., report a lost device without showing interactions sent to other parties). The recipient might be (intentionally or unintentionally) offline and not report offline interactions received by the sender. Both the sender and recipient might attempt to collude to deceive the server (e.g., the sender makes a payment, reports a false recovery request, or colludes with the recipient not to report to the server). Thus, the recipient receives the payment, and the sender recovers an offline balance exceeding their share. This scenario can be abstracted into a multi-party interaction protocol where there are (n + m) total users, including n senders, m recipients, and t honest users.

[0219] C. Preface

[0220] As outlined above, the server can obtain a complete view of the offline interaction network to perform balance restoration. Furthermore, the server can guarantee balance restoration within a specific time limit. To this end, the server can utilize a synchronization parameter Δ during which all users are expected to report their offline interactions to the server. The synchronization parameter Δ can be considered as the period during which the server can ideally construct the offline interaction stream. The synchronization parameter Δ can be the length of time between expected user synchronization (e.g., registration) times. For example, the synchronization parameter Δ could be 12 hours, 1 day, 1 week, 2 weeks, etc.

[0221] If a user is not synchronized with the server during period Δ, all their offline interactions are discarded. Assume the synchronization parameter Δ is global, utilizing a global clock available to all users. During synchronization, users can obtain the synchronization parameter Δ from the server and / or a timestamp corresponding to the end of the synchronization period (e.g., at the end of the next period specified by the synchronization parameter Δ). In Protocol 11 below, the synchronization protocol is formally specified and modeled using user A's synchronization parameter Δ.

[0222] D. Restrictions on Balance Recovery

[0223] 1. A case study involving two parties and one interaction.

[0224] To aid in technical analysis, the design of a balance recovery mechanism can be simplified. Consider a setup with two parties, A and B (e.g., user A and user B), where A makes at most one payment to B. It can also be assumed that both parties expect to synchronize with the server at the end of a payment transaction and provide the server with a list of all payments sent / received. That is, if one party (e.g., a user) fails to synchronize with the server, the server can assume that party is compromised. A modified version of the OIS protocol can be built that renders the OIS TA inoperable if it fails to synchronize with the server within a specified time. This ensures that the party not synchronizing with the server can no longer access the offline balance stored on the device, and specifically, cannot send / receive any further payments.

[0225] Given the above, three different scenarios may occur.

[0226] In the first scenario, assuming only one party loses its device while the other party synchronizes, the server may know whether user A made a payment to user B based on the list of interactions received from the party that synchronized with the server.

[0227] In the second scenario, one party reports a device loss to the server, while the other party fails to synchronize. In this situation, the server is unaware of whether a payment has occurred. The server might conclude that the unsynchronized party is corrupted. In this setup, the server can trust the party reporting the lost device regarding whether a payment has occurred. Fortunately, this setup is feasible thanks to case analysis of the following two examples.

[0228] In Case 1, A reports a lost device, while B fails to synchronize. In this case, B is compromised (because they are not synchronized). If A is also compromised, we might simply transfer the amount from the compromised party to the other, regardless of whether a payment actually occurs, especially since the total amount held by the adversary (and the overall amount in the system) will remain unchanged. It should be noted that if the payment value is greater than A's offline balance, the server can safely assume that the payment never occurred (because OIS TA would never allow such a payment). In another scenario where A is honest, server S trusts the content reported by A.

[0229] In Case 2, A does not synchronize, and B reports a device loss. In this case, A is corrupt. If B is also corrupt, we might simply transfer the amount from the corrupt party to the other, regardless of whether a payment actually occurs, especially since the total amount held by the adversary (and the overall amount in the system) will remain unchanged. It should be noted that if the payment value is greater than A's offline balance, the server can safely assume that the payment never occurred (because OIS TA would never allow such a payment). In another scenario where B is honest, S trusts the content reported by B.

[0230] In the third scenario, both parties have lost their devices (or claim to have lost their devices or failed to synchronize). In this case, the server will be unable to distinguish between the following two situations: 1) A is honest, while B is corrupt, and A has not paid B; and 2) A is corrupt, while B is honest, and A pays B but claims to the server that it has not paid B.

[0231] In both scenarios, A and B report the device lost. In both scenarios, A claims that it did not make any payment to B. Although the settings are the same in both scenarios, the ideal outcomes differ. In the first scenario, the server can ideally restore the exact balance before both parties went offline. On the other hand, in the second scenario, the server can ideally adjust the balance based on the payment from A to B.

[0232] One technical problem with scenario three is the use of backups in the system. A possible remedy for scenario three involves the (honest) party somehow proving to the server whether a payment occurred. The only definitive way to prove whether a payment occurred or not is through payment logs generated by a secure device. In practice, valid payments cannot be maliciously generated because this involves generating a signature using the signing key of the secure device. Therefore, the only remedy for scenario three is for the honest party to maintain a backup of the payment logs generated by their secure device and submit it to the server. Thus, even if the honest party loses their device, providing a backup of the payment logs can persuade the server to properly alter the offline balances of A and B.

[0233] However, it should be noted that if the honest party loses their device and does not have a backup of their payment logs, there is no guarantee that their offline balance can be accurately recovered. In particular, if the honest party does receive a payment but cannot prove it, they may not be able to obtain the payment amount. If the other party submits a payment log containing the payment to the server, the server will be able to recover the honest party's balance. However, since the other party may not provide payment logs or may provide even expired payment logs, there is no guarantee that the honest party can recover their offline balance if they do not retain a backup of their payment logs.

[0234] The embodiment provides a system that proactively prevents parties from not displaying their latest payment logs. If a party fails to synchronize and display its latest payment log, the system can achieve this by rendering the OIS TA inoperable. This is done by having the server prove the submitted logs, as a means for the OIS TA to know that a party has indeed synchronized with the server and submitted its latest payment log. Therefore, this is advantageous to the server, which will submit its latest payment log, potentially facilitating the recovery of the honest party's balance.

[0235] Illustrative examples may include a case shared by both parties, assuming that in During this period, A paid B x In the event that A has lost their device, after payment, A loses their device and notifies server S. Server S assures A that their device is safe. In Afterwards (after the next period is completed), recovery will occur. Assuming B is honest and synchronizes with server S according to protocol 11, server S will be aware of the payment made by A to B and will restore the correct information. = If B is malicious, then server S will restore A's... .because Know It has expired, therefore it will not allow B to... x Send it to the new recipient. Finally, if A is malicious and claims to have lost the device, it will not benefit from the recovery protocol. Based on common cases, the following lemma 1 is proposed.

[0236] Lemma 1: The sender's balance will be restored after the period following the time when the recovery request [DeviceLost] is sent to server S.

[0237] Protocol 11 below describes the synchronization protocol for user A. During the synchronization protocol, A submits a payment log (from OIS TA), which provides server S with proof of payment useful in balance recovery.

[0238] At step 1 of protocol 11, user A sends their offline payment TA.log, along with their signature, to server S. σ and request time (This could be a timestamp of the time the request was made).

[0239] In step 2a, server S verifies the signature and checks the time request and all payments in the log to ensure they match the previous synchronization parameters. Synchronization parameters with current Between. Previous synchronization parameters This is a timestamp indicating the end time of the previous synchronization period. Current synchronization parameters. This is a timestamp indicating the end time of the current synchronization period. Previous synchronization parameter. Synchronization parameters with current The time difference between them is a synchronization parameter. .

[0240] In step 2b, if the signature is valid and the time request and all payments in the log are in the previous synchronization parameters... Synchronization parameters with current In between, server S will add the payment amount from payment log TA.log to the online balance. (For example, at step 2bi) and subtract the payment amount from the sender's offline balance (for example, at step 2bii).

[0241] At step 2c, server S sets the next synchronization parameter Δ n performs a signature Thus creating a signature Server S can use the server secret key. For the next synchronization parameter Δ n Sign it.

[0242] In step 3, the server can send the next synchronization parameter Δ n and signature Send back to the user (e.g., in a message) middle).

[0243] In addition, each TA is aware that the payment log TA.log must be synchronized until... End. If TA is Upon seeing the asynchronous logs, any new interactions will be rejected. This method ensures that if a malicious user is not synchronized with server S, their device cannot send "invalid" payments to honest users. In summary, based on these settings, OIS ensures that 1) all payment recipients must synchronize with the server between the previous and current periods to cash their payments, 2) new payments cannot be generated if a user is not synchronized with the server, and 3) due to synchronization, server S can track all offline payments made during the specified period.

[0244] For example, after a predetermined amount of time following an interaction, the first user device can generate a synchronization message including an interaction log, time, and signature. The first user device can send the synchronization message to a server corresponding to the server computer's public key. Upon receiving the synchronization message, the server can verify the signature in the synchronization message, and then verify the time between the end time of the previous period and the end time of the current period. The server can then, for each interaction in the interaction log, update the online balance of the first user device and the offline balance of another user device as indicated by the interaction log, generate a synchronization confirmation message including the time, usage time, and a signature created by the server computer's private key, and provide the synchronization confirmation message to the first user device. The first user device can receive the synchronization confirmation message from the server and then verify the signature of the synchronization confirmation message using the server computer's public key.

[0245] Protocol 11: Synchronization Protocol

[0246] 2. Case studies involving two parties and multiple interactions

[0247] Consider a setup where two users, User A and User B, make arbitrary amounts of payments to each other during a certain phase or period. It can be assumed that both users (specifically, their user devices) expect to synchronize with a server at the end of each phase and list all payments sent and received with the server. If a user device fails to synchronize with the server, it can be assumed that the user and / or the user device is corrupted.

[0248] The analysis in this case is similar to that of a single payment. Based on the payment logs submitted to the server at the end of the phase, the server knows any subset of payments that occurred during the phase and will be able to restore the balance consistent with those payments. For example, the subset of payments could be a “monotonic” subset of each user’s payments. That is, if the server knows the 8th payment a user was involved in during the phase, it also knows the payments 1 through i-1 that the user was involved in during the phase. Note that if this differs from reality, the corresponding OIS TA will be lost or become inoperable in any case. This ensures that no amount can be spent twice, nor can new amounts be created. As mentioned earlier, if an honest user device maintains regular backups of its payment logs, it can send those backups to restore its offline balance. If it does not maintain regular backups of its payment logs, it may be inoperable, depending on the actions of other user devices.

[0249] 3. Cases involving more than two parties

[0250] Furthermore, the embodiments consider a setup where multiple parties exist, each making any number of payments to other users within a certain phase or period. It can be assumed that all user devices expect to synchronize with the server at the end of each phase and list all payments sent and received with the server. If a user device fails to synchronize with the server, it can be assumed that the user device is corrupted.

[0251] Many of the previous analyses also apply to this case. However, the implementation can utilize additional techniques to increase the chances of balance recovery for honest users. The first of these techniques is chained payments, which is outlined here and explained in more detail herein. Chained payments may include linking individual payments together. The payment may be a composite payment, containing details of the payment under consideration as well as several other payments that occurred during the stated period. Using chained payments, the payment will be entered into the logs of several potentially other user devices in the network, thus increasing the likelihood that honest user devices in the network will synchronize with the server at the end of the stated phase. This is a heuristic solution and guarantees that if a user device in a part of the payment chain (created after a payment in the payment chain has been completed) synchronizes with the server, the server will know about the payment at the end of the stated phase.

[0252] Therefore, chain-based payments can provide a recovery solution for multi-party payments. It should be noted that in the current period... During this period, user device B can make offline payments with other user devices. Now assume that user device A provides user device B with an amount... x Then, user device B provides (e.g., forwards) the amount to user device C. Further assume the payment ends at user device Z. All payments are possible in the current period. This will be carried out internally. If user device B is in... If synchronization with server S is not performed during this period (even under the risk that no payments may be generated in the future), server S will be unaware of any payments between user device A and user device B, and will incorrectly restore the transaction. Therefore, a two-party OPS recovery protocol may not be generalizable as a multi-party recovery protocol. To address this limitation, the embodiments provide two methods that will allow balance recovery in a multi-party setup, which will be described in further detail below.

[0253] This observation leads to Lemma 2, which states that if the payment chain consists of multiple branches, and there is at least one honest user on each branch, then server S will fully restore the offline balances of all intermediaries up to the honest user.

[0254] E. Chain payment

[0255] One of the techniques provided by the embodiments for assisting in balance recovery is called chained payments. As previously described, the user device can link each payment to the previous payment.

[0256] Figures 8A-8C This illustration depicts a chain of interactions in an offline interactive system according to an embodiment. For example, user device A can pay user device B. Modeling as Then user device B pays user device C. ,like Figure 8A As shown. The first payment can be incorporated into the second payment. For example, the previous payment It can be incorporated into the next payment to form a payment sequence: , This payment sequence will form a payment chain, in which user device Z (e.g., the user device at the end of the payment chain) will be aware of all user devices involved in the payment chain, ultimately linking to user device A. If any honest user device in the chain synchronizes with the server, such as... Figures 8B-8C As described, the server will know the payment sequence from user device A all the way to the honest user devices that are synchronizing with the server. This will allow the server to successfully learn about all payments involving multiple user devices, even if only one user device (which may not be involved in these payments) is synchronizing with the server.

[0257] For example, Figure 8B The diagram illustrates user device C synchronizing with server S. Because user device C is synchronized with server S, server S is aware of payments executed by user device A and user device B. Server S can update the offline balance of user device A and correspondingly update the offline balance of user device B.

[0258] As another example, Figure 8B The diagram illustrates user device Z synchronizing with server S. Because user device Z is synchronized with server S, server S is aware of payments executed by user device A, user device B, user device C, and any user device in the chain between user device C and user device Z. Server S can update the offline balance of each user device in the chain accordingly.

[0259] In a more general setting, chains from different parts of the system can be merged under certain circumstances. Figures 9A-9B The illustration depicts the aggregation of chained interactions in an offline interactive system according to an embodiment. In this case, the exact guarantee provided by the balance recovery mechanism according to the embodiment will depend on how the chain interacts. A general rule is that the more payment chains a user has, the higher the likelihood that an honest user device in the chain will synchronize with the server and make the server aware of the payment.

[0260] exist Figures 9A-9B Example scenarios are described (for the sake of brevity, for...) The payment recipient is (This is an expression). For example, Figure 9A The diagram illustrates user device X receiving payments from user devices A and C. Additionally, user device X provides payments to user devices B, D, and Y. User device Y can receive payments from user device X and from user device Z. All of the aforementioned payments can occur within a single period. At the end of the period, the device can synchronize with server S. For example, as... Figure 9B As shown, if only user device Y is synchronized with server S, server S can still receive sufficient data about all payments linked and provided to user device Y. Specifically, server S can know the payment chain starting from user devices A and C to user device X, and then to user device Y. Server S can also know the payments from user device Z to user device Y. Therefore, server S can update the offline balances of user devices A, X, C, Y, and Z. However, in this case, server S is not aware of payments made from user device X to user device B or D. This is because these payments are not linked to any payments provided to user device Y, which is the only user device synchronized with server S.

[0261] Protocol 12 below demonstrates how users can manage their offline balance (e.g., Recovery protocol to restore to the correct state. Protocol 13 below illustrates a recovery protocol that enables users to restore their offline balance to the correct state.

[0262] Protocol 12 can be executed in the event that the first user loses their user device. For example, the user of the first user device may lose ownership of the first user device. At step 1, the user may use an auxiliary device to generate a lost device balance recovery message and send the lost device balance recovery message to the server. The auxiliary device can be any suitable device (e.g., computer, laptop, telephone, etc.). At step 2, upon receiving the lost device balance recovery message, the server may add the first user device's public key to a blacklist, wait until the end of the current period so that other user devices can synchronize with the server, update the first user device's online balance based on the synchronization of devices during the period, and set the first user device's offline balance to zero.

[0263] Agreement 12: Recovery Agreement

[0264] Protocol 13: TA Method for Balance Recovery Support

[0265] F. Collateral

[0266] One limitation of chained payment technology is that the size of each payment grows linearly. If the authorization synchronization period is very long (e.g., on the order of days), the payment size can increase significantly, thereby increasing the storage penalty in the secure storage area. One way to mitigate this problem is to store only a fixed number of payments, such as randomly selected payments. A chain of randomly selected payments would also ensure that different user devices can notify the server of different payments during synchronization, making it more difficult for an adversary to hide payments.

[0267] Another approach to solving this technical problem is the technology provided by an embodiment known as collateral. In this setup, each user device establishes collateral with the server such that the value of the collateral is always greater than the available offline balance. For example, if user device A establishes collateral with the server... ,but During the synchronization protocol, the server also provides collateral value to the trusted application. Now, when user device A makes an offline transaction, it checks whether the sum of all offline payments made is less than the collateral. If user device A is not synchronized with the server, the server uses the collateral to resolve any disputes arising from payments made by user device A. It should be noted that if the offline balance is not restored, this is effectively equivalent to deduction. Correspondingly, this is because TA is currently unable to pay any amount exceeding the value of the collateral, and the only way to obtain more payable funds is to synchronize with the server, which will be able to determine how much collateral will be restored to payable funds. This process can be applied to... Figure 9AThe payment chain is illustrated. If user device Z is an honest user device, it receives payment from user device Y. Since all parties from user device A to user device Y are corrupt and not synchronized with the server, user device Z will then synchronize with the server and show that it has received payment from user device Y. The server will use this information to deduct the collateral from user device Y's online balance and cash out user device Z's payment. All other payments made by the intermediaries are rejected, and user device A restores its offline balance. It should be noted that, unlike chained payments where all intermediaries receive offline payments, in collateralized payments, only user devices Y and Z can cash out their payments.

[0268] The technologies of blockchain payments and collateral are not mutually exclusive, but can be used in combination to achieve trade-offs related to authorized synchronization periods (period size), storage / communication limitations, recovery modes, etc.

[0269] Furthermore, this system can be observed from the perspective of game theory. For example, consider a scenario where user device A purchases from user device B. x User A buys a certain amount of coffee and then steals user device B after payment. Now, both user device A and user device B can report the lost device to the server (maliciously and unmaliciously, respectively). In this situation, the server will never be able to recover the true offline balance of both parties, and user device A will accidentally gain the offline balance before paying user device B, and will also have consumed the coffee.

[0270] To prevent this from happening, the implementation may introduce the belief that the recipient may have a backup stored with the original user device. In other words, after receiving payment from user device A, user device B's TA will be backed up on another device (e.g., a server, computer, laptop, etc.) to serve as proof. If user device B presents proof to server S, server S can impose severe penalties on user device A. Therefore, this belief in backups compels user device A to act honestly, as it now becomes a guessing game conditioned on whether user device B may or may not have a backup. Thus, the probability of a malicious user device A succeeding is reduced from 100% to only 50%.

[0271] VIII. Other embodiments

[0272] A. Privacy Maintenance Offline Interactive System

[0273] This section discusses privacy leaks in the basic protocols. Solutions to privacy leaks are provided, such as through the use of group signatures. For example, privacy leaks can occur because the verification key for each offline interaction system example is unique. Therefore, the recipient of an interaction (see Protocol 9) can bind each interaction to a specific offline interaction system example, and thus to a specific user. This exposes information such as the frequency of user interactions, the amount paid, etc. For clients, the real solution to this technical problem is to generate new key pairs for their trusted applications in each new transaction. However, this incurs significant overhead for clients because each offline interaction system verification key must be authenticated by the server (see Protocol 4).

[0274] For the setup described in this paper, the technical solution to this problem is to utilize a Group Signature Scheme (GSS). For example, with GSS, there exists a unique verification key that can verify all signature keys, and therefore all offline interactive system examples. Given this, it is impossible to bind the sender of an interaction to a verification key, since all interactions are verified using the same verification key. Then, using a group signature scheme, the basic protocol can be extended as follows, where the server acts as a group manager.

[0275] First, the server generates a verification key and a corresponding secret key share. Second, the server signs the verification key using its own secret key, making the resulting signed verification key public. Third, the server distributes the secret key share to the user device during trusted application registration. Fourth, whenever the trusted application performs an interaction, it signs the interaction using the received secret key share. Finally, the receiving device in the interaction can verify the signature using the verification key of the global credentials.

[0276] Because each signature is verified against a single global authentication key, the receiving device cannot distinguish one sending device from another. In some embodiments, the group manager may expose the sender's identity and may add / remove members from the group.

[0277] B. Tiered offline interactive system

[0278] In the real world, some countries may impose restrictions on the ecosystem of offline interactive systems. For example, countries may want credential issuers to be subject to scrutiny by their central banks. To make offline interactive systems suitable for such settings, embodiments can establish hierarchical chains of trust for trusted application credentials, such as... Figure 6 As shown.

[0279] Figure 6This illustrates a hierarchical offline interaction system. For example, here, a specific service like Commercial Bank A might issue trusted application credentials to clients, allowing them to register within the ecosystem. However, the laws of the country where the offline interaction system operates might require each credential issuer to be vetted by the central bank. This can be achieved by establishing a chain of trust for the trusted application credentials. That is, each credential issued by Commercial Bank A could have a chain of signatures leading all the way to the central bank, with possible intermediary entities in between.

[0280] Today's digital payments represent account-based debit and credit account systems operated by financial institutions, where ownership of payment accounts is linked to a user's public identity. With the emergence of distributed ledger technology, there is growing interest in a new form of token-based digital payments, where the token itself is the amount of money, and ownership of that amount is determined by the user's access to a private cryptographic key that provides access to the user's digital wallet. Access to these wallets is typically provided by entities known as wallet providers, who offer secure access to the cryptographic key and various banking and other financial functions.

[0281] With growing interest in token-based payments, the possibility of issuing a new type of central bank currency—a central bank digital currency (CBDC)—has been envisioned. One design involves issuing this new currency in the form of cryptographic tokens directly backed by central bank reserves, enabling consumers and businesses to make payments in the form of “digital cash.”

[0282] However, it is impractical to expect central banks to fulfill all the responsibilities of issuing and managing digital currencies, such as the heavy processing required for the widespread creation and distribution of digital currencies.

[0283] In a central bank digital currency (CBDC) model, the amount in transit remains the responsibility of its credible issuer (e.g., the central bank in the case of CBDC), meaning its value is always guaranteed by the issuer, provided the recipient can easily verify the authenticity of the amount. This ensures that: (1) the amount is correctly issued according to a specific set of rules set by the issuer (i.e., monetary policy parallel to the existing financial system), and (2) the amount retains its value during transit (i.e., it is neither double-spended nor counterfeited).

[0284] In the digital world, this can be implemented using public-key cryptography, in which the amount in transit carries a digital signature that can only be generated directly by the central bank or indirectly by a certified representative of the central bank. Any recipient of the amount can then easily authenticate the amount by verifying the signature against the central bank's public key and / or the credentials of its trusted representative. Compared to cash, public-key cryptography can offer significant advantages in terms of security and compliance.

[0285] A two-tiered, hierarchical trusted infrastructure could exist, delivered through certified representatives. This would allow central banks to outsource the complexities of managing CBDC token digital credentials to a set of potentially regulated, licensed entities that obtain their authorization from the central bank through a hierarchical structure of digital credentials that actually originate from the central bank. This hierarchical trust design is similar to the hierarchical structure of Certificate Authorization Centers (CAs) in Public Key Infrastructure (PKI), and it plays a crucial role in enabling the secure transmission of information over the Internet.

[0286] Alternatively, a PKI could exist that significantly facilitates the secure issuance and transfer of CBDCs, with the central bank acting as the root CA and other financial institutions (FIs) as authorized wallet providers acting as intermediary CAs that securely facilitate CBDC payments. The core advantage of this two-tier model is that it decouples the credential infrastructure (Tier 1) from the critical latency path of CBDC payments (Tier 2), thereby allowing wallet providers such as banks and other financial institutions to securely process CBDC payments at scale without imposing any overhead on the highly protected PKI nodes.

[0287] As an overview of the two-tier CBDC model, the first tier is the infrastructure, which may include a root credential authority. The root credential authority can be a central bank. The central bank can authorize other entities (e.g., banks, wallet providers, fintech companies, etc.) to become second-tier credential authorities. These entities collectively constitute the infrastructure tier. These entities can authorize other entities to become next-tier credential authorities. Additional layers of authorized and certified participants can be included in any tier.

[0288] The second tier of the payment hierarchy can include wallet providers (or other suitable entities such as banks) and users (e.g., consumers and merchants). Wallet providers may provide users with CBDCs and / or keys, all based on a trust hierarchy structure that traces back to the root of trust.

[0289] These layers demonstrate how different tasks are divided across different groups of entities and tiers. By assigning responsibility for provisioning to entities other than the central bank, and by enabling entities other than the central bank to create and distribute CBDCs, the system becomes more efficient and scalable.

[0290] Each entity in a higher layer can authenticate another entity in a lower layer. This can include authorizing a lower-level entity to perform one or more actions (e.g., creating or issuing digital currency) and providing credentials. Credentials can include the lower-level entity's public key, information about authorization and permissions, and a digital signature using the higher-level entity's private key. Therefore, anything digitally signed by a lower-level entity (e.g., having the lower-level entity's private key) can be verified using the lower-level entity's public key as shown in the credential and can be trusted based on the credential (e.g., because of the presence of the higher-level entity's signature, because the higher-level entity's signature is trustworthy, and / or because the higher-level entity is authenticated by a higher-level entity through another credential). In other words, Public Key Infrastructure (PKI) can be used to distribute trust throughout the network, and any action can be verified as authorized by credentials. Any other suitable PKI features can be incorporated into a two-tier hierarchical infrastructure.

[0291] As an example of the CBDC creation step in the first level, a central bank and / or other certificate authority can create a CBDC. For example, a uniquely identifiable digital token (e.g., via a serial number) can be generated. Records of the created CBDC can be stored via distributed ledger technology (DLT), such as blockchain. Additionally, the central bank can issue smart contracts that set rules and restrictions on how entities can create and distribute currency (e.g., total amount, monthly amount, annual amount, weekly amount, who can receive the CBDC, etc.). Smart contracts can also be stored via DLT and can constrain how the DLT is managed.

[0292] This section will discuss example steps for CBDC allocation in the second layer. CBDC can be provided to various wallet providers. These wallet providers then issue CBDC to users and user accounts, and manage interactions between users and the exchange of CBDC. Any appropriate steps in the allocation, distribution, and exchange of CBDC can be recorded via one or more distributed ledgers (e.g., blockchains).

[0293] With trusted credentials distributed throughout the system, CBDC distributed throughout the system, and a distributed ledger tracking changes, CBDC can then be used for transactions. For example, when CBDC is used for payments (or distributed downwards through the network), the payment sender can digitally sign the transaction message indicating that a specific token is being sent to a specific recipient. The recipient and / or other network entities can verify that the sender possesses the token based on the DLT payment record, so the sender's digital signature (e.g., using their private key) can be a trusted and redeemable indication of token delivery. The payment message identifies the recipient by indicating the public key associated with them. Therefore, the recipient may be the only entity using a given token in subsequent payments, as they may be the only entity possessing the private key corresponding to the receiving public key identified in the payment message.

[0294] A central bank (or other root of trust) may be responsible for the CBDC throughout the system. For example, in some embodiments, users, wallet providers, or other entities may be able to exchange CBDC for fiat currency at the central bank.

[0295] The two-tier model can be applied to and improve several other systems, such as Universal Payment Channel (UPC), offline interactive systems, and blockchain sharding.

[0296] Offline interactive systems enable user-to-user digital payments without connecting to an intermediary network system. Applying a two-tiered, hierarchical trust infrastructure model for CBDCs can improve OIS (Online Inquiry System). For example, developing “offline” capabilities based on a hierarchical trust infrastructure for CBDCs can enhance the security and usability of peer-to-peer offline payments using authorized hardware. Bringing the primary point of trust to offline devices based on this infrastructure, such as offline protocols as described above, could become a potential feature of CBDCs. As digital cash, CBDCs can move instantly across multiple payment tracks and conditions without directly involving any intermediaries during the transfer. For example, if the sender and receiver of a payment are associated with different wallet providers, they should still be able to transact instantly with each other peer-to-peer via trusted hardware without communicating with their wallet providers. This achieves high throughput because payments can still be made under unreliable network conditions and protects privacy by avoiding the sharing of unnecessary payment information with intermediaries.

[0297] Therefore, utilizing offline payment systems that allow users (e.g., customers) to make digital payments to another user (e.g., merchants) using CBDC can provide a technological solution to the technical challenges of offline payments—the challenge of protecting the system from financial crime, and the challenge of avoiding exposing buyers, sellers, or central banks to the risk that payments may ultimately fail to settle.

[0298] As an example of offline CBDC payment integrated with a two-tier model, offline interaction can occur, where CBDC is sent from one user to a second user, as described in the example above.

[0299] The offline interaction system described in this paper can be abstracted into a hierarchical offline interaction system design, in which users at different OIS layers can continuously exchange and interact through a hierarchical structure formed by their servers. To tailor the offline interaction system design for this setup, embodiments can establish hierarchical trust chains for trusted application credentials.

[0300] Figure 6This diagram illustrates a tiered OIS (Optical Information System). For example, here, a specific service like Commercial Bank A might issue OIS TA (Authorized Receipt) certificates to clients, allowing them to register within the ecosystem. However, the laws of the country where the OIS operates might require each certificate issuer to be vetted by the central bank. This can be achieved by establishing a chain of trust for the OIS TA certificates. That is, each certificate issued by Commercial Bank A could have a chain of signatures leading all the way to the central bank, with possible intermediary entities in between.

[0301] For hierarchical OIS, the most fundamental change involves verifying the signatures of entities within the trust chain. This allows users to verify the authenticity of all servers involved in the chain (up to the root server) and trust the information provided by those servers. Aside from this change, other OIS functionalities will remain relatively unchanged. However, to facilitate signature verification of servers within the trust chain, the following schemes can be adopted: Aggregate signature schemes can be inserted into a system, allowing chain endpoints to combine all signatures into a single signature. One example of this is the Boneh-Lynn-Shacham (BLS) scheme. This scheme, in addition to providing a trust mechanism for the trust chain, also reduces communication overhead and verification time.

[0302] Combining hierarchical OIS with other extensions may present additional technical challenges addressed herein. For example, amount recovery (described in the next section) requires server synchronization. In chained payment models, embodiments may leverage linking mechanisms between payments and combine them with aggregate signatures to enable hierarchical OIS to function.

[0303] Combining tiered OIS with specific privacy settings policies (e.g., fully dynamic) may not work. In this case, only a semi-dynamic approach will suffice. Each server can maintain its own group. This shows which group a client belongs to (since multiple groups may exist). A simple solution is to have the upper layers of the trust chain maintain these groups. This might also be straightforward if the OEM generates the device for each server, such as in the case of a central bank.

[0304] The implementation can be used with a Universal Payment Channel (UPC) system. A UPC system can be a system for processing cross-ledger digital payments between two distributed ledgers that accept different currencies. A UPC consists of a Network Hub that allows cryptographic wallet providers (as banks) to establish collateralized payment channels using a network (e.g., a payment communication network) and securely authorize cross-ledger payments. The protocol utilizes cryptographic digital signatures and smart contracts to ensure robust security against malicious activity against untrusted wallet providers and allows for immediate, large-scale transaction authorization via off-chain payment channels. A UPC can be used to process cross-CBDC transactions using multiple hubs interconnected via a hierarchical CBDC model, where the central bank authenticates the UPC hubs through a hierarchical structure of credential authorization centers.

[0305] Off-chain CBDC payments can be utilized, as well as universal payment channels integrated with the two-tier model. Additional DLT systems may be included in the second tier.

[0306] Blockchain sharding (or other DLT systems) can also benefit from CBDCs, as CBDCs are backed by a hierarchical trust infrastructure. Blockchain sharding can include on-chain and off-chain payments.

[0307] Figure 7 An example of a complete CBDC model is shown, including a two-tiered infrastructure that integrates with other systems such as UPC channels, offline payment systems, off-chain payments, and one or more DLTs.

[0308] Various embodiments may include a method comprising: receiving a credential from a credential authorization center computer by a digital wallet provider computer, the credential including a first digital signature associated with the credential authorization center computer, the first digital signature being verifiable using a first public key associated with the credential authorization center computer, the credential including a second public key associated with the digital wallet provider computer, and the credential indicating that the digital wallet provider computer is authorized to create or distribute digital currency associated with a central bank; generating a digital currency transfer message by the digital wallet provider computer for providing digital currency to a user, the digital currency transfer message indicating the amount of digital currency and a third public key associated with the user; generating a second digital signature for the digital currency transfer message by the digital wallet provider computer using a second private key associated with the second public key; and sending the digital currency transfer message, the second digital signature, and the credential to a user device associated with the user, wherein the user device uses the first public key associated with the credential authorization center computer to verify the first digital signature included in the credential, and wherein the user device uses the second public key associated with the digital wallet provider computer to verify the second digital signature.

[0309] According to some embodiments, credentials, a first public key, and a second public key are components of a public key infrastructure, wherein the root of trust is a central bank, and wherein the public key infrastructure is divided into two layers, including a first layer and a second layer, wherein the first layer includes a first set of computers that issue credentials, and the second layer includes a second set of computers that manage payments.

[0310] According to some embodiments, the credential is a second credential, wherein a first credential associated with a credential authorization center computer indicates that the credential authorization center computer is authorized to pre-provision other credentials, and the method further includes: receiving a root trust key index and a first credential, the first credential including a first public key, from the credential authorization center computer by a digital wallet provider computer; obtaining a root trust key identified by the root trust key index by the digital wallet provider computer; verifying the first credential using the root trust key; obtaining a first public key from the first credential by the digital wallet provider computer; and verifying a first digital signature using the first public key.

[0311] According to some embodiments, the method further includes: determining, based on a smart contract provided by a root trust computer, that the digital wallet provider computer has not exceeded the digital currency production limit; and generating digital currency, including at least one digital token, by the digital wallet provider computer before generating a digital currency transfer message.

[0312] According to some embodiments, the digital token is unique and can be identified based on a unique serial number.

[0313] According to some embodiments, the method further includes: receiving digital currency from a credential authorization center computer by a digital wallet provider computer before generating a digital currency transfer message, the digital currency including at least one digital token.

[0314] According to some embodiments, the digital token is generated by the root trust computer.

[0315] According to some embodiments, the method further includes updating the blockchain by a digital wallet provider's computer based on digital currency transfer messages.

[0316] According to some embodiments, the method further includes: as part of a user registration process, a digital wallet provider computer generating a second credential including a third public key for a user device; the digital wallet provider computer generating a third digital signature of the credential using the second private key; and the digital wallet provider computer sending the second credential and the third digital signature to the user device.

[0317] According to some embodiments, the user is a first user and the user device is a first user device, wherein the first user device generates a payment message indicating that digital currency is provided to a second user, wherein the first user device generates a third digital signature using a third private key associated with a third public key, and wherein the first user device sends the payment message and the third digital signature to the second user device associated with the second user.

[0318] Any software component or function described in this application may be implemented as software code executed by a processor using any suitable computer language such as Java, C, C++, C#, Objective-C, Swift, or a scripting language such as Perl or Python, employing techniques such as conventional or object-oriented methods. The software code may be stored as a series of instructions or commands on a computer-readable medium for storage and / or transmission. Suitable media include random access memory (RAM), read-only memory (ROM), magnetic media (e.g., hard disk drives or floppy disks), or optical media (e.g., optical discs (CDs) or DVDs (Digital Universal Discs)), flash memory, etc. The computer-readable medium may be any combination of such storage or transmission means.

[0319] The above description is illustrative and not restrictive. Many variations of the invention will become apparent to those skilled in the art upon reading this disclosure. Therefore, the scope of the invention should not be determined by reference to the above description, but rather by reference to the pending claims and their full scope or equivalents.

[0320] Without departing from the scope of the invention, one or more features of any embodiment may be combined with one or more features of any other embodiment.

[0321] As used herein, unless explicitly indicated otherwise, the terms “a,” “an,” or “the” are intended to mean “at least one.”

Claims

1. An offline interaction method, comprising: A trusted application private key and a corresponding trusted application public key are generated by a trusted application in the secure element of a first device running a specified program. The trusted application provides its public key to the trusted operating system within the secure element for authentication. The trusted operating system signs the public key of the trusted application and the claim that the public key of the trusted application is generated by the trusted application running the specified program; The first device transmits the trusted application public key to the server computer; The first device receives a trusted application credential from the server computer, the trusted application credential including the trusted application public key signed with the server computer's private key corresponding to the server computer's public key; The first device receives an interaction request message from the second device, which includes the amount and the credentials of the second device. The first device uses the server computer's public key to verify the second device's credentials; The trusted application determines whether the amount is less than the offline amount stored in the secure element; If the amount is less than the offline amount, the trusted application determines the updated offline amount based on the amount. The trusted application generates an interactive response message that includes the amount and the trusted application's credentials; The trusted application uses its private key to sign the interactive response message to generate an interactive response message signature; as well as The first device provides the second device with the interactive response message, which includes the signature of the interactive response message.

2. The method of claim 1, wherein the interaction response message further includes the second device credential, and wherein the second device verifies that the second device credential received in the interaction response message matches the second device credential provided in the interaction request message.

3. The method of claim 1, wherein the interactive response message further includes an index.

4. The method of claim 3, wherein the index is a counter value locally tracked by both the first device and the second device.

5. The method of claim 1, further comprising: Before receiving the interaction request message, the first device receives the first device credential from the server computer.

6. The method of claim 1, further comprising: Before receiving the interaction request message, the first device receives the offline amount from the server computer associated with the server computer's public key; as well as The offline amount is stored in the security element by the first device.

7. The method of claim 1, wherein the first device receives the interaction request message during offline interaction between the first device and the second device.

8. The method of claim 1, wherein the offline amount is securely stored in the secure element.

9. The method according to claim 1, The first device credential is issued to the first device by an intermediate credential authorization center, wherein the intermediate credential authorization center is the server computer, and wherein the server computer's public key is issued to the intermediate credential authorization center by the root credential authorization center in the intermediate credential.

10. The method of claim 9, wherein the first device credential, the second device credential, and the server computer public key are components of the public key infrastructure of the root credential authority, wherein the public key infrastructure is divided into two layers, the two layers including a first layer and a second layer, the first layer including a first group of computers that issue credentials, and the second layer including a second group of computers that manage interactions, wherein the second layer includes the first device and the second device.

11. The method of claim 1, further comprising: After a predetermined amount of time, the first device generates a synchronization message including an interaction log, time, and signature; as well as The first device sends the synchronization message to the server computer.

12. The method of claim 11, wherein the server computer verifies the signature in the synchronization message, verifies that the time is between the end time of the previous period and the end time of the current period, and wherein the server computer, for each interaction in the interaction log, updates the online balance of the first device and the offline balance of another user device as indicated by the interaction log, generates a synchronization confirmation message and a signature of the synchronization confirmation message created using the server computer's private key, and provides the synchronization confirmation message to the first device, wherein the method further comprises: The first device receives the synchronization confirmation message from the server; as well as The first device uses the server computer's public key to verify the signature of the synchronization confirmation message.

13. The method of claim 12, wherein the user of the first device loses ownership of the first device, and wherein the user uses an auxiliary device to generate a lost device balance recovery message and sends the lost device balance recovery message to the server, wherein the server adds the first device public key to a blacklist, waits until the end of the current period, updates the online balance of the first device based on the synchronization of the device during the current period, and sets the offline balance of the first device to zero.

14. The method according to any one of claims 1-13, further comprising: The second device generates the interaction request message, which includes the amount and the credentials of the second device. The second device provides the interaction request message to the first device; The second device receives the interactive response message including the signature of the interactive response message; as well as The second device temporarily stores the interactive response message.

15. The method of claim 14, further comprising: The second device uses the server computer's public key, which corresponds to the server computer's private key, to verify the trusted application credentials.

16. The method of claim 14, further comprising: After temporarily storing the interaction response message, the second device provides the interaction response message to the processing software associated with the server computer's public key, wherein the processing software updates the first online amount associated with the first device and the second online amount associated with the second device based on the amount included in the interaction response message.

17. The method of claim 16, wherein the processing software is a smart contract.

18. The method of claim 16, wherein the processing software is included in the server computer.

19. A first device for offline interaction, comprising: processor; as well as A computer-readable medium coupled to the processor, the computer-readable medium comprising code executable by the processor to implement the method according to any one of the preceding claims.

20. The first apparatus of claim 19, further comprising the security element, the security element including the trusted application.

21. The first apparatus of claim 19, wherein the interaction request message is received via a short-range communication channel, and the interaction response message is provided via the short-range communication channel.

22. The first apparatus of claim 19, wherein the interactive response message further includes the second apparatus credentials and index.

23. The first apparatus of claim 19, wherein after providing the interaction response message to the second apparatus, the second apparatus updates the second offline amount based on the amount in the interaction response message.

24. The first apparatus of claim 23, wherein the second apparatus receives a second interaction request message including a second amount and a third apparatus credential from the third apparatus during a second interaction, and verifies the third apparatus credential using a server computer public key corresponding to the server private key used to sign the third apparatus credential, and wherein a second trusted application in a second secure element of the second apparatus determines whether the second amount is less than a second offline amount stored in the second secure element, and if the second amount is less than the second offline amount stored in the second secure element, determines a second updated offline amount based on the second amount, generates a second interaction response message including the second amount and the second apparatus credential, and signs the second interaction response message using the second trusted application private key, and wherein the second apparatus provides the second interaction response message to the third apparatus.

25. The first apparatus of claim 19, wherein the offline amount is generated and issued by the server computer.

26. The first apparatus of claim 19, wherein the method further comprises: After a predetermined amount of time, the first device generates a synchronization message including an interaction log, time, and signature; The first device sends the synchronization message to a server corresponding to the server computer's public key, wherein the server verifies the signature in the synchronization message, verifies that the time is between the end time of the previous period and the end time of the current period, and wherein the server updates the online balance of the first device and the offline balance of another user device as indicated by the interaction log for each interaction in the interaction log, generates a synchronization confirmation message, the synchronization confirmation message including the signature created using the server computer's private key of the signature confirmation message, and provides the synchronization confirmation message to the first device; The first device receives the synchronization confirmation message from the server; as well as The first device uses the server computer's public key to verify the signature of the synchronization confirmation message.

Citation Information

Patent Citations

  • Secure offline payment system

    US20150278795A1