A method and system for transferring a digital token
The method and system for secure, decentralized digital token transactions address the challenges of offline environments by using dynamic key derivation and cryptographic custody chains with Merkle tree validation, ensuring transaction integrity and privacy preservation.
Patent Information
- Application Number
- PCT/FI2026/050250
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-05-13
- Publication Date
- 2026-11-26
AI Technical Summary
Existing digital transaction systems are insecure and lack scalability for offline environments due to insecure offline key management, inability to verify token validity without a network, and lack of trust propagation across offline transfers, leading to issues like double-spending and privacy concerns.
A method and system for secure, decentralized digital token transactions using dynamic key derivation and cryptographic custody chains, with Merkle tree-based validation and one-time-use mechanisms to ensure transaction integrity and privacy preservation.
Enables secure, verifiable, and privacy-preserving transactions offline by establishing a cryptographically verifiable custody chain, preventing double-spending, and maintaining regulatory compliance without real-time connectivity to a central authority.
Smart Images

Figure FI2026050250_26112026_PF_FP_ABST
Abstract
Description
[0001] A METHOD AND SYSTEM FOR. TRANSFERRING A DIGITAL TOKEN
[0002] TECHNICAL FIELD
[0003] The present disclosure relates generally to secure digital data exchange systems, and more specifically, to a method and system for offline digital token transactions without requiring continuous connectivity to a central authority.
[0004] BACKGROUND
[0005] In the field of digital payments, the known solutions rely extensively on constant online connectivity. This dependency is driven by core needs: validating transaction legitimacy, verifying user identities, performing real-time fraud checks, and ensuring accurate balance tracking. Many of existing digital currency systems, whether centralized (like credit card networks) or decentralized (like cryptocurrencies) depend on a live connection to a central ledger or consensus network. As a result, these systems are poorly suited to offline environments where such connectivity is unavailable, unreliable, or undesired due to privacy concerns.
[0006] Attempts to introduce offline capabilities have included storing temporary payment authorizations or using pre-authorized balances, but these workarounds are insecure and highly limited in scalability. For instance, paper blacklists or semi-offline card systems (like stored-value cards) cannot prevent double-spending or verify transaction integrity in real time. Additionally, most solutions lack a cryptographically verifiable custody trail and offer no assurance that a given token hasn't been duplicated or tampered with during offline transfers.
[0007] The problems with known approaches arise from insecure offline key management, inability to verify token validity without a network, and lack of trust propagation across offline transfers. Most digital currenciescannot securely derive or update cryptographic keys offline because this involves secure key exchange protocols, which require an online server. This limits secure ownership transfers without the risk of key reuse or replay attacks.
[0008] Without real-time access to a central ledger, verifying a token's status, whether it has been spent, remains valid, or is backed by reserves, is not possible using conventional methods. This is particularly problematic for preventing fraud like double-spending. Furthermore, current systems cannot maintain a verifiable and tamper-evident history of who held a token before, which is key aspect to establishing transactional accountability and regulatory compliance.
[0009] Privacy and regulatory challenges further increase the problems. Existing solutions tend to either expose too much personal data (undermining privacy) or fail to meet legal obligations like traceability and anti-money laundering (AML) compliance when used offline.
[0010] Therefore, in light of the foregoing discussion, there exists a need to overcome the aforementioned drawbacks associated with existing digital transaction systems.
[0011] SUMMARY
[0012] The aim of the present disclosure is to provide a secure and decentralized digital token transaction mechanism to enable secure, verifiable and privacy-preserving transactions in offline environments without real-time connectivity to a central authority.
[0013] The aim of the disclosure is achieved by a method, system and computer program as defined in the appended independent claims to which reference is made to. Advantageous features are set out in the appended dependent claims.The advantages of the present method, system and computer program are the ability to securely transfer digital tokens offline using dynamic key derivation and cryptographic custody chains, ensuring transaction integrity without central authority involvement. The solution according to the present disclosure enables preserving user privacy, supporting regulatory compliance, and preventing double-spending through Merkle tree-based validation and one-time-use mechanisms.
[0014] Additional aspects, advantages, features and objects of the present disclosure would be made apparent from the drawings and the detailed description of the illustrative embodiments construed in conjunction with the appended claims that follow.
[0015] BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The summary above, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the appended drawings. For the purpose of illustrating the present disclosure, exemplary constructions of the embodiments of the disclosure are shown in the drawings, with references to the following diagrams wherein:
[0017] Figure Fig. 1 is an overview of the tripartite trust architecture;
[0018] Figure Fig. 2 is a sequence diagram of offline token lifecycle and custody transfer;
[0019] Figure Fig. 3 illustrates the URTsalt update during custody transfer;
[0020] Figure Fig. 4 is a Merkle Tree architecture for token integrity and state validation;
[0021] Figure Fig. 5 illustrates the token reception process;
[0022] Figure Fig. 6 illustrates the system architecture for secure offline digital token transactions.DETAILED DESCRIPTION OF EMBODIMENTS
[0023] The following detailed description illustrates embodiments of the present disclosure and ways in which they can be implemented.
[0024] The present disclosure provides a method, a system and a computer program for transferring a digital token. The embodiments of the present disclosure significantly improve the security, verifiability, and privacy of digital token transactions in offline environments, by enabling decentralized custody transfer, cryptographic validation, and auditability without requiring continuous connectivity to a central authority.
[0025] In an aspect, an embodiment of the present disclosure provides a method for transferring a digital token, the method comprising: (i) requesting, by a first terminal, the digital token from a vault; (ii) generating, in the vault, the digital token; (iii) delivering the digital token from the vault to the first terminal; (iv) transferring the digital token from the first terminal to a second terminal; (v) generating a new holder public key at the second terminal; (vi) generating a custody transfer record for inclusion in a custody chain of the digital token, at the second terminal, wherein the custody transfer record comprises the new holder public key; (vii) transferring the digital token and the custody transfer record, from the second terminal to the first terminal; (viii) verifying the custody transfer record of the digital token at the first terminal; (ix) adding a verification proof of the first terminal to the custody transfer record; and (x) transferring the digital token back to the second terminal and updating the custody chain by including the custody transfer record therein.
[0026] The method enables to transfer the digital token in a manner that is secure, verifiable, and privacy-preserving, particularly in offline environments where no real-time connection to a central authority is available. This method establishes a decentralized and auditable process for digital value exchange between a first terminal and a second terminal,with cryptographic assurance of custody changes. By combining (i) a newly generated holder public key for each transfer, (ii) a cryptographically signed custody transfer record linking the previous and new holders, and (iii) a mutual verification proof exchange between the first and second terminals, the claimed system establishes a bilateral, cryptographically verifiable custody chain. This architecture ensures that each transfer instance is independently auditable, un-linkable to prior transfers, and tamper-evident, while maintaining transaction integrity even in offline or semi-trusted environments. Moreover, because verification and custody chain updates are executed locally by the participating terminals, the method reduces dependency on real-time network access or centralized consensus mechanisms for each token transfer, thereby achieving offline verifiability, detection of double spending, and maintenance of custody integrity based on local cryptographic verification.
[0027] Throughout the present disclosure, the term "first terminal" relates, for example, to a user-operated device that is capable of storing, presenting, and transferring a digital token. The first terminal may be implemented as a smartphone, a tablet, a wearable device, a smartcard with a secure element, or any portable computing device equipped with secure storage and cryptographic functionality. In some embodiments, the first terminal may also be a hardware wallet, a TEE-based mobile application, or a contactless NFC-enabled device, such as a payment card or digital identity card.
[0028] Throughout the present disclosure, the term "second terminal" relates, for example, to a merchant device, a service provider terminal, a user device, or other recipient device configured to receive, validate, and store a digital token and its associated custody metadata. The second terminal may be implemented as a point-of-sale (POS) terminal, a vending machine, a ticket validation kiosk, an access gate reader, or a field deviceoperating in remote or offline conditions. It may also be embodied in a mobile device used by a service provider, a retailer's handheld scanner, or any other computing platform capable of executing the verification and custody update operations described herein. The second terminal may be implemented as a smartphone, a tablet, a wearable device, a smartcard with a secure element, or any portable computing device equipped with secure storage and cryptographic functionality. In some embodiments, the second terminal may also be a hardware wallet, a TEE-based mobile application, or a contactless NFC-enabled device, such as a payment card or digital identity card.
[0029] Requesting a digital token from a vault by the first terminal enables the initialization of the token lifecycle in a controlled and authenticated manner. The vault is configured to function as a trusted entity capable of issuing tokens. It may be implemented as a centralized server, a hardware security module, or a decentralized authority such as a smart contract, depending on the deployment model. This flexibility supports the deployment of the system in various offline environments, where connectivity to a centralized authority may be temporary or unavailable. In step (ii), the vault generates the digital token. The generated digital token includes metadata such as a token identifier, transaction value, validity period, and cryptographic data such as a public key and a digital signature certifying the token's authenticity. This ensures that each token is uniquely and securely issued, thus allowing tokens to be securely validated by recipients without requiring continuous online connection. Step (iii) comprises delivering the generated token to the first terminal. This transfer may be accompanied by token metadata, including cryptographic proofs (e.g., Merkle tree proof) that allow later validation by recipients, even when offline. At this point, the token is under the custody of the first terminal.In step (iv), the token is transferred from the first terminal to a second terminal. This transfer may be facilitated via a secure communication channel or through a token medium such as an NFC card, QR. code, or a secure storage element. This step enables the offline movement of value between two devices while maintaining the confidentiality and integrity of the token data.
[0030] In the context of the present disclosure, the terms "holder" and "owner" may be used interchangeably to refer to an entity or terminal having control over the digital token, such control enabling authorization of a custody transfer using cryptographic operations. As an example, unless explicitly stated otherwise, references to a "previous owner", "previous holder", or similar expressions are to be understood as referring to the same entity in the context of a given custody transfer. Likewise, references to a "new owner", "new holder", or similar expressions are to be understood as referring to the same entity in the context of a given custody transfer.
[0031] In step (v), the second terminal generates a new holder public key. This is a critical step to establish a new cryptographic identity for the token's next owner. It ensures that each new custodian of the token has a unique public-private key pair, and that key material is not reused, which supports forward secrecy and prevents identity correlation between transfers.
[0032] In step (vi), the second terminal generates a custody transfer record to be appended to the custody chain of the token. This record includes at least the new holder public key, but may also contain timestamps and other metadata. The custody transfer record serves as a tamper-evident log of the token's transfer and is essential for reconstructing the ownership history.In step (vii), the custody transfer record, along with the token, is sent back to the first terminal. This ensures that the previous holder (the first terminal) can verify and approve the transfer to the second terminal. It supports decentralized verification, even in the absence of online infrastructure.
[0033] In step (viii), the first terminal verifies the custody transfer record. This comprises verifying the authenticity of the new holder public key and ensuring the validity of the associated metadata. The verification may rely on digital signature verification techniques, whereby the record's integrity is checked using cryptographic operations within a secure module. In other words, the first terminal verifies that the new holder public key included in the custody transfer record is valid and consistent with the transfer data, using cryptographic operations. This verification step ensures that the custody transfer record received from the second terminal corresponds to a valid and authorized transfer of the digital token that originated from the first terminal itself, and that the transfer has not been altered or duplicated. This supports fraud prevention and protects against unauthorized transfers.
[0034] In the above regard, verifying the custody transfer record refers to performing one or more validation operations including: (a) confirming that the custody transfer record comprises the expected parameters associated with the previous holder, (b) checking that the new holder public key is correctly associated with the transfer event, and (c) validating that the record data received from the second terminal matches the previous holder information maintained at the first terminal. These operations are carried out automatically within the first terminal and form an essential part of the secure token transfer mechanism.
[0035] Step (ix) comprises adding a verification proof of the first terminal to the custody transfer record. Once the verification in step (viii) is successful, the first terminal generates the verification proof confirming that thecustody transfer record has been validated and accepted. This verification proof serves as cryptographic consent that the transfer is valid and approved by the current holder. It binds the first terminal to the custody change and makes the record verifiable by any future party. As an example, the verification proof can be at least one of: a signature, a hash proof, a hash based proof, a commitment, or zero knowledge proof. The verification proof may be generated using one or more cryptographic operations.
[0036] The verification proof is a cryptographic attestation that binds the first terminal to the custody change and is stored with the custody transfer record so that the record can be verified by any future party (for example, by the receiving terminal upon inclusion in the custody chain, by other parties in subsequent transfers, and ultimately by the vault during redemption). The verification proof generated by the previous holder (the first terminal) constitutes cryptographic authorization of digital token transfer to the new holder (the second terminal).
[0037] Finally, in step (x), the digital token and the updated custody chain, now including the signed custody transfer record, are returned to the second terminal. This update establishes the second terminal as the new token holder. The updated custody chain now contains a provable chain of ownership transitions, which can be audited later, even offline, using standard cryptographic verification methods.
[0038] Thus, the method provides a secure and verifiable way to transfer a digital token offline between parties. It enables local(ized), cryptographically assured ownership changes with no dependence on a central authority for real-time validation. The cryptographic operations comprised at each step ensure authenticity, prevent double-spending, and provide a privacy-preserving audit trail of token custody. The method defines a cryptographically verifiable custody-transfer mechanism that enables offline token transfer and local validation of token authenticityand custody transitions at the terminal level, with support for subsequent verification and reconciliation. In this mechanism, each transfer is recorded through a custody transfer record and a verification proof. These custody transfer records form a custody chain that serves as a cryptographically verifiable transfer history and enables subsequent validation and detection of inconsistencies. The method therefore defines integrity and traceability of custody transitions by providing a structured and cryptographically verifiable custody chain that records each custody transition in a tamper-evident manner.
[0039] The method defines a concrete multi-terminal cryptographic workflow. In particular, the second terminal generates the custody transfer record, the first terminal verifies said record and generates a cryptographic verification proof, optionally using a derived secret key, and the updated record is returned to the second terminal for incorporation into the custody chain. This round-trip exchange ensures that custody transitions are validated by both terminals and cryptographically bound to the preceding state.
[0040] The metadata of the digital token delivered from the vault may comprise a Merkle tree proof, and wherein the method further may comprise using the Merkle tree proof for validating the digital token at the second terminal, prior to the step (v).
[0041] By introducing the use of a Merkle tree proof to validate the authenticity and integrity of the digital token at the second terminal, prior to generating the new holder's public key enhances the decentralized trust model by allowing, without requiring live communication with the Vault, the second terminal to independently verify that the received token was legitimately issued by the Vault and that its state has not been tampered with or forged.The Vault generates the Merkle tree proof as part of the digital token metadata, which is then delivered to the first terminal in step (iii) . The Merkle tree proof cryptographically links the individual token to a reference Merkle root that was previously signed and published by the Vault. This structure enables validation by any terminal without requiring prior interaction history or stored session data, provided the terminal has access to the reference Merkle root.
[0042] According to this, before the second terminal proceeds with generating the new holder public key (step (v)), it first uses the Merkle tree proof to validate the token. This timing is critical, as it ensures that the second terminal only proceeds with the custody transfer process if the token is cryptographically proven to be authentic and associated with the correct issuance context.
[0043] The validation process may include verifying that the token identifier and associated metadata (such as the public key of the first terminal, its wallet reference, or other issuance-related information) are correctly embedded within a Merkle tree path that leads to the Vault-signed Merkle root. These elements may be embedded either in the Merkle tree proof itself or in the custody chain, depending on the implementation. This allows the second terminal to cryptographically assess the legitimacy of the token without needing to trust or contact the first terminal, solving a critical trust bottleneck in offline environments.
[0044] By performing validation at this point in the process, the method improves fraud resistance, prevents acceptance of invalid or counterfeit tokens, and ensures that only tokens issued and signed by the Vault are accepted for further custody transfer. This helps to secure and verify token acceptance offline, based solely on cryptographic proofs embedded in the token metadata.Optionally, the Merkle tree proof comprises a reference Merkle root signed by the vault, and Merkle branch data, wherein the Merkle branch data comprises one of: a Merkle path including one or more hash values, a Merkle node identifier linking the digital token to the reference Merkle root.
[0045] Delivering the metadata from the vault comprises retrieving the reference Merkle root from the Merkle tree proof; and verifying that a digital signature applied to the reference Merkle root is associated with the vault, using a public verification key associated with the vault.
[0046] Using the Merkle tree proof for validating the digital token at the second terminal comprises calculating a leaf hash by applying a cryptographic hash function to the metadata of the digital token; retrieving Merkle branch data from the Merkle tree proof; computing a candidate Merkle root by successively combining the leaf hash with the Merkle branch data, using cryptographic hash operations; and comparing the candidate Merkle root to the reference Merkle root and confirming, based on a successful match upon said comparison, that the digital token is part of the set of tokens issued by the vault.
[0047] The step of using the Merkle tree proof for validating the digital token may comprise: verifying, based on the Merkle tree proof, that the digital token is associated with a reference Merkle root signed by the vault; and verifying, via cryptographic hash operations, that the digital token belongs to a set of digital tokens issued by the vault. Optionally, said verifying, based on the Merkle tree proof, comprises performing the cryptographic hash operations to reconstruct a candidate Merkle root and comparing it with the reference Merkle root.
[0048] Using the Merkle tree proof for validating the digital specifies the cryptographic mechanism by which the second terminal can confirm that the token it received was legitimately issued by the Vault and that itsintegrity has not been compromised, all without requiring a live connection to the Vault.
[0049] The validation process includes two key sub-steps. First, the method comprises verifying that the digital token is associated with a reference Merkle root that has been digitally signed by the Vault. This root serves as a cryptographic anchor point and represents the authoritative state of a set of issued tokens at the time of issuance. The signature on the Merkle root allows any receiving party, including the second terminal, to authenticate that the Merkle structure originates from a trusted source, i.e., the Vault. This allows the second terminal to establish trust in the token's legitimacy without relying on real-time access to the Vault.
[0050] The second part of the validation comprises cryptographic hash operations that reconstruct the Merkle tree path from the digital token's leaf node up to the reference Merkle root. By performing these operations, the second terminal can verify that the token is indeed a member of the set of tokens issued by the Vault at the time the root was created. This ensures that the token has not been modified, substituted, or fabricated, since even a small alteration in token metadata would break the hash path and cause the Merkle root comparison to fail.
[0051] These operations enable cryptographic validation of token origin and integrity, and help to verify token authenticity in environments where real-time queries to a central authority are not possible. This thus additionally supports enabling verifiable offline digital transactions, by equipping each receiving terminal with the means to independently and securely confirm the trustworthiness of a token before accepting it for custody transfer.
[0052] In some embodiments, the method may further comprise generating, at the vault, a Merkle tree representing the digital token and one or more events associated with the digital token, and computing a referenceMerkle root of the Merkle tree; detecting, at the vault, a change in a state of the digital token; updating the Merkle tree such that the reference Merkle root is modified to reflect the changed state of the digital token. This relies on the use of a Merkle tree proof for validating the authenticity and integrity of a digital token at a receiving terminal by introducing a mechanism for the vault to dynamically manage and update the state of the token through the use of a Merkle tree structure. This provides a cryptographically verifiable and tamper-evident history of the token's lifecycle, including issuance and any subsequent state transitions, such as redemptions, invalidations, or expirations.
[0053] The method thus may comprise generating, at the vault, a Merkle tree that represents not only the digital token itself but also one or more events associated with the token, such as creation, transfers, or redemption actions. This allows the vault to encode both the token's data and its evolving status within a single cryptographic structure. The vault then computes a reference Merkle root from this tree, which serves as a compact, hash-based commitment to the current state of the token and its associated history.
[0054] As the state of the token changes (e.g., if the token is redeemed, marked as expired, or updated based on usage limits), the vault detects such changes and updates the Merkle tree to include the new state information. Consequently, the reference Merkle root is modified to reflect the token's new state. This enables future verifications to account for both the validity and the freshness of the token, even after multiple offline or asynchronous interactions.
[0055] Optionally, the updated reference Merkle root may be digitally signed by the vault and published to a public or semi-public directory, which allows offline terminals, such as the second terminal, to obtain the most recent root and use it for token validation. This means that even if the second terminal is not connected to the vault at the time of validation, it can stillverify the token's state by comparing the embedded Merkle tree proof against a previously obtained and signed Merkle root.
[0056] This capability addresses the technical problem by enabling a distributed and verifiable record of token state, which can be validated offline using cryptographic hash paths. It enhances trust in the system by ensuring that each state transition is logged in a way that is tamper-resistant and independently verifiable, without requiring full synchronization with the vault at the time of token transfer. This makes the method suitable for both offline-first deployments and systems that periodically synchronize with a central authority.
[0057] Optionally, the method may further comprise generating an audit record based on the custody chain and the Merkle tree proof, for reconstructing a transfer history of the digital token. This further enhances the verifiability and transparency of digital token transfers by generating an audit record that is based on both the custody chain and the Merkle tree proof. The audit record enables the reconstruction of the token's transfer history, providing a cryptographically verifiable log of ownership changes and state transitions.
[0058] The custody chain comprises a sequence of custody transfer records, each indicating a transfer of the token from one terminal to another. Each record may comprise a new holder public key, the previous holder public key, and a digital signature verifying the authenticity and consent of the previous holder. The Merkle tree proof links the token to a vault-signed Merkle root, enabling verification that the token was legitimately issued and, if applicable, updated by the vault.
[0059] By combining these two sources of evidence, the custody chain for the transfer path, and the Merkle tree proof for token authenticity and state integrity, the method allows for the generation of a comprehensive audit record. This audit record can be used by authorized parties, including thevault or external auditors, to reconstruct the entire lifecycle of the token, from issuance through each custody transfer, and to validate the correctness of each step using cryptographic means.
[0060] This enables verifiable, privacy-preserving transfer of digital tokens in offline environments, while still maintaining full traceability and auditability. The ability to reconstruct a token's transfer history without relying on a continuously connected central authority supports regulatory compliance, fraud detection, and dispute resolution, all while preserving the decentralized and offline-capable nature of the system.
[0061] Optionally, wherein the custody chain comprises one or more custody transfer records, each custody transfer record comprising: a public key of previous holder, the new holder public key, a previous owner signature, and a time stamp of transferring the digital token from the first terminal to the second terminal. This further defines the structure of the custody chain, used to record the transfer history of the digital token. The custody chain is an important component, providing a cryptographically verifiable sequence of ownership transitions as the token is passed from one terminal to another. By embedding this information directly within the token, the system supports full transfer traceability even in offline conditions, where no central authority is available to record or authorize individual transactions in real time. Inclusion of the time stamp and cryptographic parameters in the custody transfer record provides a technically defined basis for distinguishing and verifying transfer events, while the custody chain provides for maintaining these records in a verifiable sequence. Such a structured custody transfer record is cryptographically verifiable using cryptographic operations at the first terminal and is subsequently updated at the second terminal by incorporation into the custody chain.
[0062] Optionally, in step (viii), the custody transfer record is verified at the first terminal by verifying the authenticity of the new holder public key,verifying the previous holder signature, and verifying validity of the timestamp and token metadata using cryptographic operations. Optionally, in step (ix), the verification proof may be a signature over at least the new holder public key and the time stamp. This signature may also be over one or more additional parameters (for example, such as the public key of previous holder, the token identifier, a custody-transfer-record hash, and the like)
[0063] Each custody transfer record within the custody chain may comprise several data elements that together establish the authenticity and timing of a token transfer. Specifically, the record includes the public key of the previous holder, which allows verification of the signature on the transfer; the new holder public key, which identifies the new owner and enables them to control the token going forward; the previous owner's digital signature, which cryptographically confirms that the transfer was approved by the current owner; and a timestamp, indicating when the transfer occurred. Ensuring validity of the metadata associated with the custody transfer record may comprise verifying the previous holder public key, the previous owner signature, and the timestamp comprised in the custody transfer record.
[0064] This structure allows any recipient or verifier (such as the second terminal or the vault during redemption) to audit the chain of custody and verify that each transfer was valid, sequential, and authorized. The presence of timestamps also allows enforcement of temporal constraints, such as validity windows or offline usage limits.
[0065] By defining the custody chain in this way, the method ensures that the system can maintain a tamper-evident, decentralized ledger of token transfers, with no need for external synchronization or real-time network interaction. This enablies secure and verifiable digital transactions in disconnected or bandwidth-limited environments, while still preserving trust and auditability through embedded cryptographic proofs.The method may further comprise redeeming the digital token by transferring the digital token from the second terminal to the vault; and in the vault: checking validity of the custody chain; verifying a Merkle tree proof of the digital token; comparing the time stamp with a validity window of the digital token determining whether the digital token is redeemable; and based on the check, the verified Merkle tree proof, the comparison, and the determination, changing a first database value of associated with the second terminal to a second database value, wherein the second database value is associated with a transaction value of the digital token. This introduces the redemption phase of the digital token lifecycle, where the token, having been transferred from the first terminal to the second terminal, is returned to the vault for final settlement. The redemption process plays a central role in ensuring the integrity, uniqueness, and trustworthiness of the token system, particularly in offline-capable deployments where prior transactions may not have been immediately visible to the central authority.
[0066] This process begins by transferring the digital token from the second terminal to the vault, preferably once network connectivity becomes available or during a scheduled synchronization. At this point, the vault performs a sequence of verifications to determine whether the token is valid and redeemable.
[0067] The vault performs a custody chain validity check at first. This comprises verifying the integrity and authenticity of each custody transfer record, including the digital signatures, key continuity, and correct sequencing of transfers. This validation ensures that the token has been transferred through legitimate, authorized paths and has not been duplicated or tampered with. As a result, this step implicitly supports transaction uniqueness and prevents reuse, as any inconsistencies or replays in the custody chain would result in a failed verification.Then the vault verifies the Merkle tree proof associated with the token. This allows the vault to confirm that the token was indeed issued by the vault and corresponds to a valid entry in the Merkle tree representing the issuance or update state. This proof ties the token's current state to a previously committed and signed Merkle root, which ensures that it has not been fabricated or altered during its lifecycle.
[0068] The vault then compares the timestamp included in the custody chain to the token's validity window, such as its redemption period. This check ensures that the token is being redeemed within an acceptable time frame and has not expired. This condition, together with the Merkle verification and custody validation, determines whether the token is redeemable. Redemption is permitted only if the token has not already been redeemed, is within its validity period, and has a valid custody lineage.
[0069] If all the checks succeed, the vault proceeds by changing a first database value associated with the second terminal to a second database value, where the second value reflects the transaction value of the redeemed token. This database update finalizes the redemption, making the value available to the recipient (e.g., a merchant) and effectively marking the token as spent. This state change may be represented in the updated Merkle tree to reflect the redemption event.
[0070] Through this redemption process, the system achieves a mechanism for final settlement and fraud prevention, enabling the vault to verify the legitimacy of a token that has circulated in a fully offline environment. It allows tokens to be securely and uniquely redeemed without requiring continuous online oversight during their circulation, while maintaining full accountability and trust at the point of redemption.
[0071] The method allows for token transfer in both an online environment, as well as in an offline environment. The method enables detection of doublespending in the online environment, at the vault, at the time of redeeming the digital token in the online environment. If cloning of digital token does not occur, the method effectively prevents successful reuse of the digital token in a fully online environment (i.e., token transfer and redemption occur in the online environment). This is because the vault validates every token transfer in real-time, the token is marked spent immediately, and thus replay of the token fails instantly. In other cases where token transfer occurs in the offline environment but redemption happens in the online environment, the method enables a pre-acceptance check at the time of redeeming the digital token, for detecting token replay events. Optionally, the metadata associated with the digital token may comprise at least one offline transfer limit of the digital token, the at least one offline transfer limit comprising at least one of: a transaction value limit, a quantity limit, a redemption period,
[0072] and wherein the step of determining whether the digital token is redeemable comprises evaluating a compliance status with the at least one offline transfer limit, wherein the compliance status being positive means that the digital token is redeemable. This enhances the trust and security of the digital token redemption process by introducing offline transfer limits encoded in the token's metadata. These are used by the vault during redemption to assess whether the token has been transferred and used within predefined, secure boundaries while it was offline. This mechanism is designed specifically to mitigate the risk of double-spending, misuse, or abuse of tokens that are intended to circulate without real-time oversight.
[0073] The metadata associated with the digital token comprises at least one offline transfer limit, which may include, for example, a transaction value limit, restricting the monetary worth that the token can represent while offline; a quantity limit, restricting how many times or to how many different parties the token can be transferred before redemption; and aredemption period, which defines a fixed time window within which the token must be redeemed to be considered valid.
[0074] During the redemption process, as described in the previous method, the vault performs an additional verification step that comprises evaluating a compliance status with the one or more offline transfer limits. This is performed alongside the custody chain and Merkle proof verification. If the token's metadata and recorded transfer history show that all such constraints have been met, that is, the token has not exceeded its value cap, has not been transferred more than the permitted number of times, and has been redeemed within its valid time window, the compliance status is considered positive, and the token is deemed redeemable.
[0075] This ensures that even though the token was used offline, it could not have been misused or transferred beyond acceptable limits. As such, it implicitly supports transaction uniqueness and prevents reuse, since any attempt to double-spend or use the token outside permitted parameters will cause the compliance check to fail during redemption.
[0076] Furthermore, this enhances the cryptographic safeguards in the system by introducing policy-based controls on offline token usage, without sacrificing privacy or requiring online traceability. By combining cryptographic custody tracking with policy enforcement, it allows for secure, controlled, and verifiable digital transactions in disconnected environments.
[0077] Optionally, wherein the metadata associated with the digital token transferred at the step (iv) comprises a first salt, the method further comprises: obtaining a first user-provided key at the first terminal; applying a key derivation function to the first salt and the first user-provided key, for generating a previous holder secret key at the first terminal, wherein the previous holder secret key is used for adding the verification proof of the first terminal at the step (ix). This introduces akey management mechanism that allows the first terminal, acting as the sender of the digital token, to securely generate the cryptographic credentials needed to authorize the transfer of the token to a new holder. The approach relies on salted key derivation, enabling secure signing operations without requiring persistent secret key storage, which is particularly beneficial in offline and resource-constrained environments. This further reinforces the terminal-driven nature of the protocol, in which custody transition of the digital token is not implemented as a mere data update, but is processed through coordinated cryptographic operations performed by the participating terminals. The first terminal contributes to this transition by producing the verification proof required for validation and recording of the transfer, thereby binding the change of holder to cryptographic processing carried out at the terminal level. In this respect, the feature provides a technically specific key management mechanism based on locally defined inputs at the terminal, rather than on statically stored or externally supplied private-key material. The resulting deterministic, terminal-local cryptographic processing model supports repeatable generation of for example the keys or the required signing capability when needed, while limiting exposure of sensitive credentials between transfer operations.
[0078] Specifically, metadata associated with the digital token includes a first salt, which is transferred along with the token at step (iv), when the token moves from the first terminal to the second terminal. At the first terminal, a first user-provided key (such as a secret key, a PIN or a passphrase) is obtained from the user. This key, when combined with the first salt and processed through a key derivation function (KDF), allows the first terminal to generate a previous holder secret key on-demand. This secret key is then used to create the verification proof referenced in step (ix), which confirms and authorizes the custody transfer to the second terminal.The use of a KDF, such as PBKDF2 or Argon2, ensures that the derived key is computationally secure and tied uniquely to both the user input and the token-specific salt. Since the key is not stored persistently but derived when needed, this approach supports forward secrecy and helps to mitigate the risk of key compromise or unauthorized reuse.
[0079] By enabling the sender to generate the verification proof securely and without depending on stored secrets, this helps to ensure secure and verifiable custody transfers in offline conditions, with strong protection against replay attacks, token forgery, and unauthorized access. Moreover, the use of personalized key input from the user adds an additional privacy-preserving authentication layer, while maintaining usability across a wide range of devices.
[0080] Optionally, the method may further comprise generating a second salt at the second terminal; obtaining a second user-provided key at the second terminal; applying a key derivation function to the second salt and the second user-provided key, for generating a new holder secret key at the second terminal, wherein the new holder secret key is used for generating the new holder public key at the step (v); and updating the metadata to replace the first salt with the second salt, upon the step (x). This is based on the key management process by enabling the second terminal, acting as the receiver of the digital token, to generate its own new cryptographic credentials in a secure and decentralized manner. This capability is essential for maintaining strong cryptographic guarantees during token custody transitions, especially in environments where online access is unavailable and secret key storage is undesirable or infeasible.
[0081] At the second terminal, a second salt is generated locally. This salt is unique to the new holder and used as part of a key derivation process. The second terminal then obtains a second user-provided key, which may be a locally entered PIN or passphrase supplied by the user receiving the token or a secret key provided by the second terminal. A key derivationfunction is applied to the second salt and the second user-provided key to generate a new holder secret key, which remains local to the second terminal and is not exposed or stored beyond the session. This secret key is used to generate a new holder public key at step (v), establishing the new cryptographic identity for the token's next owner.
[0082] After the custody transfer is completed, and the digital token is returned to the second terminal at step (x), the metadata associated with the token is updated to replace the first salt with the second salt. This finalizes the transition of control, as the new salt will be used by the second terminal in any future custody transfer to derive its own secret key when authorizing further transfers.
[0083] This ensures that each holder of the digital token independently generates and controls their own cryptographic credentials using only input in local device and a non-persistent secret derivation mechanism. This architecture supports key rotation, forward secrecy, and strong privacy by ensuring that secret keys are neither reused nor stored. It also significantly reduces the risk of replay attacks or unauthorized transfers, as each transfer creates a new cryptographic identity chain tied to a new holder and their secret credentials.
[0084] Allowing the second terminal to securely establish new credentials upon receiving the token, and updating the token metadata to reflect this change, supports secure, verifiable, and privacy-preserving digital token transfers in offline environments, and further strengthens the cryptographic robustness of the custody chain.
[0085] Optionally, the method may further comprise performing a strong customer authentication procedure at the vault to authenticate the first terminal, prior to the step (ii), at a first instance of the step (i). This introduces a strong customer authentication (SCA) procedure at the vault, which is performed to authenticate the first terminal before theinitial issuance of the digital token. This procedure occurs at a first instance of step (i), which is when the first terminal requests a digital token from the vault, and must be completed prior to the execution of step (ii), which comprises the actual generation of the token.
[0086] The strong customer authentication procedure may be implemented using multiple factors such as possession (e.g., device-based certificates), knowledge (e.g., a user PIN or a password or a secret key), or inherence (e.g., biometric identifiers), depending on the level of assurance (LoA) required by the token issuer. The aim is to ensure that the first terminal, and by extension the user requesting the token, is a legitimate and authorized entity within the system. This authentication step may also comprise validating cryptographic credentials, verifying digital certificates, or checking previously registered identities against a trusted record.
[0087] This SCA step establishes a trusted association between the vault and the first terminal before any token is created or delivered. It provides the basis for secure issuance and binds the digital token to a verified initial holder. This reduces the risk of fraudulent token issuance, unauthorized device access, or man-in-the-middle attacks during the initial request phase.
[0088] By requiring strong customer authentication at the point of token issuance, it ensures that the root of trust for the token custody chain is established securely and verifiably, supporting the overall goal of enabling secure, verifiable, and privacy-preserving digital transactions without requiring real-time connectivity to a central authority.
[0089] Optionally, the metadata associated with the digital token may comprise a token identifier, a value, a currency, a salt, a validity period, a key pair, an ownership signature, and the custody chain, of the digital token. This further defines the structure of the metadata associated with the digitaltoken, specifying the key elements that are included to ensure secure transfer, verification, and redemption throughout the token's lifecycle, particularly in offline environments.
[0090] The metadata comprising a token identifier, uniquely distinguishes the token from all others in the system. This ensures that each token can be individually tracked and prevents duplication or forgery. The value and currency fields define the monetary worth and denomination of the token, which are necessary for its use in payments and for enforcing transaction limits and redemption rules.
[0091] A salt value is included to support secure key derivation during custody transfers. This salt is used in combination with a user-provided key and a key derivation function to generate secret keys on-demand, without storing sensitive information persistently. The metadata also includes a validity period, defining a time window during which the token remains eligible for use or redemption, thereby preventing long-term token hoarding or delayed fraud.
[0092] The metadata may comprise a key pair representing the public and private keys associated with the current holder of the token. The public key may be visible as part of the token's transferable metadata, while the private key remains device-local and is never exposed. The ownership signature comprises a cryptographic certification issued by the vault at the time of token creation. This signature may include the public key of the token's original owner and a digital certificate signed by the vault, which cryptographically binds the token's identity and value to a specific authorized entity.
[0093] The custody chain may be a structured record of all custody transfers, including the public keys of prior and new holders, digital signatures, and timestamps. This chain enables verifiable, decentralized validation of thetoken's transfer history and ensures that only valid, authorized custody transitions are accepted during redemption.
[0094] Therefore, such metadata structure enables secure operation of the token system in unconnected or semi-trusted environments, where each component independently verifies the token's legitimacy and history using embedded cryptographic data. It supports the aim of providing secure, verifiable, and privacy-preserving digital token transfers without requiring continuous online verification.
[0095] Optionally, the digital token may be stored on and transferred using a storage medium, and wherein the storage medium is one of: a near-field communication (NFC) chip-based card; a quick response (QR) code or other optical code; a secure element in a device; a processor having a trusted execution environment (TEE). The storage medium serves as a secure and portable carrier for the digital token and its associated metadata, enabling offline transfer and verification without the need for continuous connectivity or centralized data synchronization.
[0096] The digital token may be stored on and transferred using a variety of secure and practical storage media. E.g., a near-field communication (NFC) chip-based card, which allows the token to be transferred wirelessly through short-range communication, making it particularly suitable for contactless payments and fast, in-person transactions in environments with minimal infrastructure.
[0097] Alternatively, the digital token may be encoded into a quick response (QR.) code or other optical code, allowing it to be displayed on a screen or printed and scanned by another device. This format supports easy interoperability between heterogeneous devices, such as smartphones and point-of-sale systems, and is especially useful in low-cost or resource-constrained environments.Another option is to store the token in a secure element integrated within a device. A secure element is a tamper-resistant hardware component that provides isolated storage and processing for sensitive data and cryptographic operations. This ensures that token data cannot be accessed or altered by unauthorized software or users, preserving confidentiality and integrity during transfers.
[0098] The storage medium may include a processor having a trusted execution environment (TEE). A TEE provides a secure area of the main processor, where sensitive code and data can be executed and stored in isolation from the main operating system. This allows the digital token to be securely stored, accessed, and cryptographically processed directly on the user's or merchant's device, while resisting software-based attacks and unauthorized access.
[0099] By supporting multiple forms of secure storage media, this method enables broad flexibility in deployment across various device types and use cases, including mobile payments, card-based systems, and embedded loT environments. Each of these media types provides an implementation pathway for secure, offline-capable token storage and transfer, thereby directly contributing to solving the technical problem of enabling privacy-preserving, verifiable digital transactions in the absence of real-time connectivity to a central authority.
[0100] Optionally, the method may further comprise the use of randomly generated nonce values to enhance transaction uniqueness and protect against replay attacks, particularly in offline environments. In such embodiments, each custody transfer record may include a unique transaction identifier, constructed using a nonce value, which serves as a cryptographically verifiable proof of transfer being the most recent and has not been replayed. A nonce refers to a random, counter based or pseudo-random value that is generated once per transfer and used only once. It ensures that each custody transfer has a unique cryptographicsignature, even if other transaction metadata remains the same. The unique transaction identifier may be formed from the nonce alone, or it may comprise a combination of the nonce and other elements, such as a timestamp, a token identifier, or a public key. In some embodiments, the transaction identifier may be computed as a hash of one or more of these fields to produce a compact and tamper-resistant identifier.
[0101] For example, during the transfer of a digital token from a first terminal to a second terminal, the method may include: generating a random nonce at the second terminal or during the custody exchange process; constructing a transaction identifier based on the nonce, or on a combination of the nonce with additional metadata such as the transfer timestamp; including the transaction identifier within the custody transfer record transmitted back to the first terminal and ultimately stored with the token; and verifying, at the time of redemption, that the transaction identifier has not been previously recorded by the vault for the same token.
[0102] The Vault, upon receiving a token for redemption, may check whether the transaction identifier associated with the latest custody transfer record has already been processed. If the identifier is found to be duplicated or previously redeemed, the Vault may reject the redemption request as a replay attempt. This mechanism provides an effective way to enforce transaction uniqueness, especially in scenarios where multiple subsequent transfers may occur without direct oversight from a central authority. Further, the custody transfer record may be incorporated into a custody chain, such that successive custody transitions are recorded in a sequence that can be verified. Because each custody transfer record comprises cryptographic parameters and is subject to verification, and because each new record is incorporated into the custody chain, custody transitions may be traceable across multiple terminals, and the sequence of custody changes may be verified for correctness. In addition,replacement of the first salt with the second salt may cause holderspecific cryptographic credentials to change across successive custody transitions, thereby enabling generation of transfer-specific verification proofs.
[0103] By incorporating nonce-based transaction identifiers, the method ensures that each offline transfer of a digital token remains distinct and verifiable, thereby strengthening the overall security, integrity, and fraud resistance of the custody chain without sacrificing offline operability or user privacy. In another aspect, an embodiment of the present disclosure provides a system for transferring a digital token, the system comprising: a vault configured to perform digital token management; a first terminal configured to perform digital token custody and transfer operations; a second terminal configured to perform digital token verification and update operations; a first cryptographic means, associated with the first terminal, configured to perform key derivation, digital signature generation, and verification of digital signatures associated with the token or custody chain; a second cryptographic means, associated with the second terminal, configured to perform key pair generation, Merkle tree proof verification, and digital signature verification in relation to custody transfers and token metadata.
[0104] Indeed, the system (and its respective components) are configured to perform steps of the method of present disclosure. Different components are configured to interact with each other and perform associated step(s) of the method.
[0105] The system for transferring a digital token is designed to securely support decentralized, verifiable, and privacy-preserving digital transactions in offline environments where real-time access to a central authority is unavailable. The system comprises a vault, a first terminal (or set of first terminals), a second terminal (or a set of second terminals), andassociated cryptographic means, each component fulfilling specific roles within the token lifecycle. The vault is configured to perform digital token management, including issuance, signing, verification, and redemption, forming the trust anchor of the system. The terminal is configured to request, store, and transfer digital tokens and to initiate custody transitions, while the second terminal is responsible for validating the received tokens, generating new credentials, and updating token metadata to reflect the new holder.
[0106] The system is further equipped with cryptographic means tailored to the security needs of each terminal. The first cryptographic means enables the first terminal to perform key derivation using user-provided input, generate digital signatures to authorize custody transfers, and verify signature data related to token validity. The second cryptographic means allows the second terminal to securely generate cryptographic key pairs, verify Merkle tree proofs to validate token authenticity, and check digital signatures associated with prior custody holders. Together, these components operate in coordination to enable a robust, self-verifying token transfer system that does not rely on constant online connectivity. The system ensures transaction's uniqueness, integrity, and auditability through embedded cryptographic operations and secure custody records. The digital token management comprises generating a digital token comprising a token identifier, a transaction value, a validity period, a first salt, a public key, a digital signature certifying ownership, and a Merkle tree proof associated with a reference Merkle root; delivering the digital token to a first terminal; receiving the digital token from a second terminal for redemption; verifying a custody chain comprising one or more custody transfer records, each record including at least a new holder public key, a previous holder public key, and a verification proof; validating the Merkle tree proof against the reference Merkle root; anddetermining redeemability of the token based on one or more constraints including time validity and offline transfer limits.
[0107] The digital token custody and transfer operations comprise requesting and receiving the digital token from the vault; storing the digital token and associated metadata; deriving a previous holder secret key using a key derivation function applied to the first salt and a first user-provided key; receiving a new holder public key from a second terminal; generating a verification proof over the new holder public key using the derived secret key; generating a custody transfer record comprising the new holder public key, the previous holder public key, and the verification proof.
[0108] The digital token verification and update operations comprise receiving the digital token from the first terminal via a token medium; verifying the Merkle tree proof using the reference Merkle root; deriving a new holder secret key using a second user-provided key and a second salt; generating a new holder public key based on the new holder secret key; transmitting the new holder public key to the corresponding first terminal; receiving and storing a custody transfer record signed by the first terminal; updating the digital token metadata by replacing the first salt with the second salt and appending the custody transfer record to the custody chain.
[0109] The vault of the system for transferring a digital token is configured to generate a digital token comprising token metadata including at least a token identifier, a transaction value, a validity period, a salt value, a public key, a digital ownership signature, and a Merkle tree proof associated with a reference Merkle root; digitally sign the digital token to certify ownership; deliver the signed digital token to a first terminal; receive the digital token from a second terminal for redemption; verify a custody chain comprising one or more custody transfer records, each custody transfer record comprising at least a new holder public key, aprevious holder public key, and a verification proof; validate the Merkle tree proof against the reference Merkle root; and determine the redeemability of the digital token based on one or more constraints, including at least a validity period and one or more offline transfer limits. The first terminal of the system for transferring a digital token is configured to request and receive the digital token from a vault; store the digital token and associated metadata; derive a previous holder secret key using a key derivation function applied to the salt value and a user-provided key; receive a new holder public key from a second terminal; generate a verification proof over the new holder public key using the derived secret key; and generate a custody transfer record comprising the new holder public key, the previous holder public key, and the verification proof.
[0110] The second terminal of the system for transferring a digital token is configured to receive the digital token from a first terminal; verify the Merkle tree proof using the reference Merkle root to confirm the validity of the token; derive a new holder secret key using a second user-provided key and a new salt value; generate a new holder public key based on the new holder secret key; transmit the new holder public key to the first terminal; receive a custody transfer record signed by the first terminal, the custody transfer record comprising the new holder public key, the previous holder public key, and a verification proof; and update the token metadata by replacing the salt value with the new salt value and appending the custody transfer record to a custody chain associated with the token.
[0111] Optionally, the system may further comprise a token medium configured to perform digital token transport between the one or more first terminals and the second terminal. In some embodiments, the system may further comprise a token medium, which serves as the transport layer between the first and second terminals. The token medium can be implemented invarious forms, such as a near-field communication (NFC) chip-based card, a quick response (QR.) code , optical code, a secure element in a device, or a trusted execution environment (TEE) within a processor. This medium allows the digital token and its metadata, including custody chain and Merkle proof, to be transferred securely and efficiently between devices, thereby supporting offline usage scenarios and enhancing the flexibility and portability of the system.
[0112] The token medium may be adapted to store and convey digital token data including the token identifier, salt, Merkle tree proof, and custody chain. The digital token transport comprises facilitating the transfer of the digital token and associated data between the first terminal and the second terminal; storing the digital token including the token identifier, the salt, the Merkle tree proof, and the custody chain.
[0113] In addition, several optional aspects may further enhance the functionality and security of the system. In one embodiment, a distinction may be made between the custody and ownership of a digital token. While custody refers to the current holder who controls and transfers the token, ownership remains associated with the original legal entity as recorded by the Vault or central authority. This separation allows for multiple offline custody transfers without altering the central ledger, and ownership is only updated upon redemption, thereby enabling cash-like, privacy-preserving transactions with formal accountability maintained at settlement.
[0114] The system may also support block-level token reservation, wherein the Vault pre-allocates tokens in groups and issues each with a unique, digitally signed state marker. This marker identifies the token's reserved status and binds it to specific issuance or usage conditions, ensuring onetime use and mitigating the risk of token duplication or replay. In some configurations, tokens may be designated as short-lived tokens, meaning they are issued with a short validity window (such as 30 minutes) afterwhich they automatically expire if not redeemed. This temporal limitation reduces exposure to fraud during prolonged offline circulation.
[0115] To support intermittent connectivity, the system may implement optional synchronization models. One approach involves full redemption of all active tokens when a terminal reconnects to the Vault, while another model supports partial synchronization, where only identifiers of spent tokens are submitted for reconciliation. These models offer flexibility in enforcing offline usage policies and help detect double-spending without requiring continuous oversight.
[0116] Furthermore, receiving terminals (such as merchant devices) may be configured to independently validate received tokens by verifying the Merkle tree proof, the integrity of the custody chain, the validity window, and the correctness of all digital signatures. This decentralized validation ensures that all token transfers remain verifiable and trustworthy, even in fully offline environments.
[0117] Optionally, the method comprises:
[0118] (i) requesting, by a first terminal, the digital token from a vault;
[0119] (ii) generating, in the vault, the digital token;
[0120] (iii) delivering the digital token from the vault to the first terminal, wherein metadata of the digital token comprises a Merkle tree proof associated with a reference Merkle root signed by the vault;
[0121] (iv) transferring the digital token from the first terminal to a second terminal, wherein the metadata associated with the digital token comprises a first salt;
[0122] (v) generating a new holder public key at the second terminal, upon validating the digital token using the Merkle tree proof by verifying that the digital token is associated with the reference Merkle root signed by the vault, wherein the new holder public key is generated from a new holder secret key derived using a key derivation function applied to a second salt and a second user-provided key at the second terminal;(vi) generating a custody transfer record for inclusion in a custody chain of the digital token, at the second terminal, wherein the custody transfer record comprises the new holder public key, a public key of a previous holder, a previous owner signature, and a time stamp of transferring the digital token from the first terminal to the second terminal;
[0123] (vii) transferring the digital token and the custody transfer record, from the second terminal to the first terminal;
[0124] (viii) verifying the custody transfer record of the digital token at the first terminal by verifying authenticity of the new holder public key and ensuring the validity of metadata associated with the custody transfer record using cryptographic operations;
[0125] (ix) adding a verification proof of the first terminal to the custody transfer record by generating a cryptographic verification proof comprising a signature, generated using a previous holder secret key that is derived at the first terminal using a key derivation function applied to the first salt and a first user-provided key obtained at the first terminal, wherein the verification proof binds the first terminal to custody change and makes the custody transfer record verifiable by any future party; and (x) transferring the digital token back to the second terminal and updating the custody chain at the second terminal by including the custody transfer record including the verification proof of the first terminal therein, and updating the metadata associated with the digital token by replacing the first salt with the second salt.
[0126] In another aspect, an embodiment of the present disclosure provides a computer program comprising a set of program instructions which, when executed by a system according to the embodiments of the present disclosure, cause the system to perform transferring a digital token according by performing digital token management in the vault; performing digital token custody and transfer operations in the one or more first terminals; performing digital token verification and update operations in the second terminal; performing cryptographic operations.Indeed a computer program comprising a set of program instructions which, when executed by a system, cause the system to perform the method as discussed in present disclosure.
[0127] The present disclosure further provides a computer program, which may be implemented as a computer program, comprising a set of program instructions configured to be executed by a system comprising a Vault, one or more first terminals, and a second terminal. When executed, the program instructions cause the system components to perform their respective roles in a method for transferring a digital token, as described in the preceding claims. Specifically, the computer program includes instructions for: performing digital token management at the Vault, including token issuance, signing, and redemption; performing digital token custody and transfer operations at the one or more first terminals, including key derivation, custody chain signing, and secure handover of tokens; performing digital token verification and update operations at the second terminal, including verification of token validity via Merkle tree proofs and generation of new custody credentials; and performing cryptographic operations including digital signature generation and verification, key pair generation, and Merkle tree proof validation at each system component as applicable.
[0128] The computer program may be implemented as a distributed software system, comprising cooperating program modules executed across the vault, the one or more first terminals, and the second terminal. Such distributed computer program enables secure, verifiable, and privacypreserving transfer of a digital token across multiple physically and logically distinct devices in an offline environment, while ensuring integrity, forward secrecy, and protection against replay or doublespending attacks, through cryptographic operations performed locally at each system component.This is achieved through the localized execution of cryptographic operations at each system component, ensuring integrity of the custody chain, resistance to double-spending and replay attacks, and forward secrecy of token control without requiring continuous connectivity to a central authority.
[0129] DETAILED DESCRIPTION OF THE DRAWINGS
[0130] Figure 1 illustrates the core trust model of the offline digital token system comprising the main entities: the Vault 102, the Customer 104 (first terminal), and the Merchant or Service Provider 106 (second terminal). The Vault acts as a central trusted authority responsible for issuing digital tokens, verifying transaction metadata, and storing audit information. The Customer, operating as the first terminal 104, initiates a transaction by requesting and receiving a digital token from the Vault 102, and subsequently performs a custody transfer to the Merchant (second terminal) 106. The Customer device (first terminal) 104 verifies and stores confirmations from the Vault 102 and from the second terminal 106 during the custody exchange, as described in step (viii).
[0131] The Merchant, as the second terminal 106, relies on the Vault's 102 attestations for verifying token validity and integrity, especially using Merkle tree proofs, and accepts transactions accordingly. Upon receiving the token, the second terminal 106 may update the custody chain and initiate a redemption process.
[0132] The diagram emphasizes the decentralization of offline transactions while maintaining trust through cryptographic means and auditable metadata, supported by the Vault's 102 pre-issued attestations and custody validation mechanisms.
[0133] The diagram shows that both the Customer (first terminal) 104 and the Merchant (second terminal) 106 rely on attestations from the Vault 102for transaction trust. The Vault 102 verifies and stores information exchanged with both terminals. The Customer (first terminal) 104 performs custody transfers based on the Vault's 102 attestations, and the Merchant (second terminal) 106 accepts the token with confidence that the Vault 102 has confirmed its validity and uniqueness. This architecture enables offline transactions by embedding cryptographic trust mechanisms into the tokens themselves.
[0134] Figure 2 illustrates the complete process of a digital token lifecycle through issuance, offline transfer, and redemption, demonstrating key cryptographic processes in each step. The diagram outlines the interaction between the Vault 202 (online), the Customer 204 (offline, acting as the first terminal), and the Merchant 206 (offline, acting as the second terminal).
[0135] In step 1, the first terminal 204 authenticates with the Vault 202. In step 2 the Vault 202 performs token generation by signing a newly created token that includes metadata such as a unique URTsalt and Merkle tree proof. In step 3, the signed token is delivered to the first terminal 204 for offline use.
[0136] In step 4, the token is transferred from the first terminal 204 to the second terminal 206, including the token metadata such as a unique URTsalt and Merkle tree proof. The second terminal 206 then performs several cryptographic operations:
[0137] Step 5: Derives the secret key (URTsk) using a key derivation function (KDF) applied to the PIN and URTsalt;
[0138] Step 6: Verifies token authenticity using Vault's signature and Merkle tree proof;
[0139] Step 7: Generates a new URTsalt and corresponding public key (URTpk') for the new holder.In steps 8-10, the second terminal 206 sends the new URTpk' to the first terminal 204. The first terminal 204 signs it using their derived URTsk to create a custody transfer record, confirming the transaction. This record, which includes both holder public keys and the signature, is appended to the custody chain.
[0140] Finally, in steps 11-12, the token is redeemed by the second terminal 206 to the Vault 202 before expiry. The Vault 202 validates the custody chain, verifies the Merkle proof, and settles the value of the token based on compliance with any set limits or redemption rules.
[0141] This figure exemplifies a secure and verifiable transfer of digital tokens between offline terminals, with cryptographic guarantees of ownership change, transaction integrity, and fraud prevention, without requiring continuous connectivity.
[0142] Figure 3 illustrates the cryptographic sequence comprised in updating the URTsalt during a custody transfer of a digital token from an old owner (acting as the first terminal) 304, to a new owner (acting as the second terminal) 306, for secure and verifiable transfer of custody without requiring real-time connection to the central authority. This URTsalt update is an integral part of securely transferring custody, ensuring that cryptographic control over the token shifts from the old owner (acting as the first terminal) 304 to the new owner (acting as the second terminal) 306, while maintaining forward secrecy and preventing key reuse.
[0143] In step 1 the sequence begins with the first terminal 304 handing over the digital token to the second terminal 306. This token includes the current URTsalt, which is necessary for verifying the previous holder's key. Upon receiving the token, in step 2 the new owner generates a new random URTsalt' and uses it, along with their own secret (e.g., a PIN), to calculate in step 3 a new secret key (URTsk') using a key derivationfunction. From this, a corresponding new public key (URTpk') is also derived.
[0144] In step 4 the second terminal 306 then transmits this newly derived URTpk' back to the first terminal 304. In step 5 the first terminal 304 uses its original secret and the original URTsalt to recompute its own secret key (URTsk), which is then used to sign the new URT public key URTpk'. In step 6 this signed confirmation is transmitted to the second terminal 306 and it serves as the cryptographic proof of custody transfer. Finally, in step 7 the second terminal 306 stores this signed confirmation in the custody chain of the token and updates the token's metadata by replacing the old URTsalt with the new URTsalt'. This mechanism ensures that each token transfer comprises a unique key pair, thereby preventing key reuse, enhancing forward secrecy, and maintaining a verifiable chain of custody for offline token transfers.
[0145] This process ensures that each custody transfer includes: a new cryptographic identity for the new holder, a securely verifiable transition authorized by the previous holder, and automatic expiration of previous signing capabilities.
[0146] By tightly coupling the URTsalt update with each custody transfer, the invention achieves secure, verifiable, and decentralized control over digital tokens, even in fully offline environments.
[0147] Figure 4 illustrates the hierarchical structure of the Merkle tree used by the Vault to ensure the integrity, traceability, and verifiability of digital tokens, particularly in offline environments. The figure emphasizes how both token issuance and custody transfer events are anchored within a larger Merkle tree structure, supporting cryptographic validation without real-time connectivity.At the top, the Merkle Root Hash 401 represents the root of the Merkle tree, a signed cryptographic commitment by the Vault that encapsulates the current global state of all managed tokens and system metadata. This root hash can be published periodically by the Vault, enabling offline parties to validate tokens against a known and trusted system snapshot. Beneath the root, two main branches are depicted: the Token Tree 403, which represents token-specific events (including issuance and transfers), and Other State Data 405, representing additional metadata or auxiliary system information.
[0148] The Token Issuance Leaf Hash 407 records the original creation of a token, including data such as the token ID, value, ownership signature, and associated metadata. Subsequent Custody Transfer Leaf Hash 409 represents offline transfer events, appended to the Merkle structure upon redemption or synchronization. These entries ensure that each transfer in the custody chain can later be audited and traced cryptographically. This layered construction enables offline parties (e.g., merchants) to verify a token's legitimacy using a Merkle tree proof embedded in the token metadata, by reconstructing a path from the token's leaf node to the reference Merkle root. This validation confirms that the token was issued by the Vault and has not been altered or duplicated, even in the absence of network access.
[0149] Figure 5 presents a decision flowchart for validating a received digital token at the point of reception, covering both offline and online scenarios. The diagram outlines the verification steps a receiving terminal (preferably the second terminal (e.g., a merchant)) must perform before accepting or rejecting a digital token offered by a sender.
[0150] The process begins with a token reception 502, followed by the question 504: Is there a connection to the Vault?If yes, the system performs online verification 506 with the Vault, validating the token's authenticity, status, and any redemption constraints in real time. If no, the process proceeds through a series of offline verifications 508, which ensure that the token is valid without requiring network access.
[0151] The offline verification process includes:
[0152] Merkle Tree Verification 510 - Ensuring the token is part of a valid issuance set, by verifying its Merkle tree proof against a known reference root signed by the Vault.
[0153] Custody Chain Check 512 - Verifying the integrity of the custody chain, including the validity of all previous holder signatures.
[0154] URT Transfer Validation 514 - Confirming that the most recent custody transfer was cryptographically signed using the correctly derived keys. Time Limit Check 516 - Verifying that the token has not exceeded its offline usage or redemption window, based on metadata such as timestamps and transfer validity.
[0155] After all verifications are performed, the system evaluates whether all checks are successful in 518:
[0156] If yes, the token is accepted 520 by the second terminal and can be used or queued for future redemption. If any check fails, the token is rejected 522, mitigating the risk of fraud, tampering, or expired usage rights. This decision logic ensures that the digital token system supports robust and secure validation, both online and fully offline, while complying with technical and regulatory safeguards such as double-spending prevention, user privacy, and token lifespan enforcement.
[0157] Figure 6 illustrates a system architecture 600 for conducting secure, verifiable, and privacy-preserving offline digital token transactions, comprising at least three functional components: a vault 602, a first terminal 604, a second terminal 606, and a token medium 610.
[0158] Communication flows are labeled to reflect their functional purpose:Issuance from the vault 602 to the first terminal 604 via communication network 608; Transfer of the token via the token medium 610 from the first terminal 604 to the second terminal 606; Redemption of the token from the second terminal 606 back to the vault 602 via communication network 608.
[0159] The vault 602 represents a central authority (e.g., central bank or trusted institution) responsible for issuing, signing, and managing digital tokens. It includes subcomponents for Token Management, Merkle Tree Generation, and Authentication. The vault manages initial issuance of tokens to the first terminal, performs cryptographic signing of token data and ownership information (e.g., Merkle roots), and later verifies and redeems tokens received from the second terminal.
[0160] The first terminal 604 refers to a customer-operated device. It comprises modules for Token Request, Token Storage, Key Derivation, Signing, and Verification. The terminal is configured to request a digital token from the vault, derive the secret key using a user-provided PIN and URTsalt, sign custody transfer confirmations, and validate the new holder's public key. The second terminal 606 represents a merchant or service provider device and includes modules for Token Reception, Verification, Custody Update, and Redemption. It receives the digital token, verifies its validity via Merkle proof and custody chain, derives new cryptographic keys, updates token metadata, and optionally submits the token to the Vault for redemption, as described in claims l(iv)-(x), 6, 7, and 10.
[0161] The token medium 610 facilitates the physical or digital transfer of the token between the First and Second Terminals. This medium may be a secure NFC card, a QR code, or a device-stored data object, configured to carry token metadata including URTsalt, custody chain, value, and Merkle proof.This modular and decentralized system enables secure peer-to-peer token transfers with cryptographic custody verification, offline operation, and regulatory compliance, fulfilling the objectives of the invention.
[0162] FIGs. 1, 2, 3, 4, 5, and 6 are merely examples, which should not unduly limit the scope of the claims herein. A person skilled in the art will recognize many variations, alternatives, and modifications of embodiments of the present disclosure.
Claims
CLAIMS1. A method for transferring a digital token, the method comprising: (i) requesting, by a first terminal (104, 204, 304, 604), the digital token from a vault (102, 202, 302, 602);(ii) generating, in the vault, the digital token;(iii) delivering the digital token from the vault to the first terminal;(iv) transferring the digital token from the first terminal to a second terminal (106, 206, 306, 606);(v) generating a new holder public key at the second terminal;(vi) generating a custody transfer record for inclusion in a custody chain of the digital token, at the second terminal, wherein the custody transfer record comprises the new holder public key;(vii) transferring the digital token and the custody transfer record, from the second terminal to the first terminal;(viii) verifying the custody transfer record of the digital token at the first terminal;(ix) adding a verification proof of the first terminal to the custody transfer record; and(x) transferring the digital token back to the second terminal and updating the custody chain by including the custody transfer record therein.
2. The method according to claim 1, wherein metadata of the digital token delivered from the vault (102, 202, 302, 602) comprises a Merkle tree proof, and wherein the method further comprises using the Merkle tree proof for validating the digital token at the second terminal (106, 206, 306, 606), prior to the step (v).
3. The method according to claim 2, wherein the step of using the Merkle tree proof for validating the digital token comprises: verifying, based on the Merkle tree proof, that the digital token is associated with a reference Merkle root signed by the vault; andverifying, via cryptographic hash operations, that the digital token belongs to a set of digital tokens issued by the vault.
4. The method according to claim 2 or 3, further comprising: generating, at the vault (102, 202, 302, 602), a Merkle tree representing the digital token and one or more events associated with the digital token, and computing a reference Merkle root of the Merkle tree; detecting, at the vault, a change in a state of the digital token; updating the Merkle tree such that the reference Merkle root is modified to reflect the changed state of the digital token.
5. The method according to any of claims 2-4, further comprising generating an audit record based on the custody chain and the Merkle tree proof, for reconstructing a transfer history of the digital token.
6. The method according to any of the previous claims, wherein the custody chain comprises one or more custody transfer records, each custody transfer record comprising: a public key of previous holder, the new holder public key, a previous owner signature, and a time stamp of transferring the digital token from the first terminal (104, 204, 304, 604) to the second terminal (106, 206, 306, 606).
7. The method according to claim 6, wherein the method further comprises redeeming the digital token by- transferring the digital token from the second terminal (106, 206, 306, 606) to the vault (102, 202, 302, 602);and in the vault;- checking validity of the custody chain;- verifying a Merkle tree proof of the digital token;- comparing the time stamp with a validity window of the digital token- determining whether the digital token is redeemable;andbased on the check, the verified Merkle tree proof, the comparison, and the determination, changing a first database value of associated with the second terminal to a second database value, wherein the second database value is associated with a transaction value of the digital token.
8. The method according to claim 7, wherein metadata associated with the digital token comprises at least one offline transfer limit of the digital token, the at least one offline transfer limit comprising at least one of: a transaction value limit, a quantity limit, a redemption period, and wherein the step of determining whether the digital token is redeemable comprises evaluating a compliance status with the at least one offline transfer limit, wherein the compliance status being positive means that the digital token is redeemable.
9. The method according to any of the preceding claims, wherein metadata associated with the digital token transferred at the step (iv) comprises a first salt, and wherein the method further comprises: obtaining a first user-provided key at the first terminal (104, 204, 304, 604);applying a key derivation function to the first salt and the first user-provided key, for generating a previous holder secret key at the first terminal, wherein the previous holder secret key is used for adding the verification proof of the first terminal at the step (ix).
10. The method according to claim 9, further comprising: generating a second salt at the second terminal (106, 206, 306, 606); obtaining a second user-provided key at the second terminal; applying a key derivation function to the second salt and the second user-provided key, for generating a new holder secret key at the second terminal, wherein the new holder secret key is used for generating the new holder public key at the step (v); andupdating the metadata to replace the first salt with the second salt, upon the step (x).
11. The method according to any of the preceding claims, further comprising performing a strong customer authentication procedure at the vault (102, 202, 302, 602) to authenticate the first terminal (104, 204, 304, 604), prior to the step (ii), at a first instance of the step (i).
12. The method according to any of the preceding claims, wherein metadata associated with the digital token comprises a token identifier, a value, a currency, a salt, a validity period, a key pair, an ownership signature, and the custody chain, of the digital token.
13. The method according to any of the preceding claims, wherein the digital token is stored on and transferred using a storage medium, and wherein the storage medium is one of:a near-field communication (NFC) chip-based card;a quick response (QR.) code;an optical code;a secure element in a device;a processor having a trusted execution environment (TEE).
14. A system (600), configured to perform the method of any one of claims 1 to 13.
15. A computer program comprising a set of program instructions which, when executed by a system, cause the system to perform the method according to any one of claims 1-13.
