A blockchain asset voucher payment settlement method and system based on legal digital currency

By initiating an ownership transfer application on the blockchain and using a legal digital currency operating agency to generate a hash time-locked digital currency string, the asset ownership modification is completed directly on the blockchain, solving the problem of asset coupons on the blockchain. To deal with the capital risk problem caused by the intervention of third-party platforms, the direct use of off-chain funds and the real-time delivery of asset funds are realized.

CN112488684BActive Publication Date: 2024-08-27ZHONGCHAO CREDIT CARD IND DEV CO LTD HANGZHOU BLOCKCHAIN TECH RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011465327.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-14
Publication Date
2024-08-27
Estimated Expiration
2040-12-14

AI Technical Summary

Technical Problem

In the existing technology, the DVP of assets on the blockchain requires the introduction of a third-party platform for cashing in and cashing out funds, which requires users to establish trust in the platform and easily forms a fund pool, causing financial risks.

Method used

The user initiates an ownership transfer application on the blockchain, and uses the legal digital currency operating agency to generate a hash time-locked digital currency string, completing asset ownership modifications and fund delivery directly on the blockchain, avoiding the need for a second The intervention of third-party platforms reduces financial risks.

Benefits of technology

It realizes that off-chain funds can directly complete the payment against assets on the blockchain, avoids the financial risks caused by the introduction of third-party platforms, and ensures the real-time delivery of assets and funds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112488684B
    Figure CN112488684B
Patent Text Reader

Abstract

The present application discloses a blockchain asset securities payment settlement method and system based on legal digital currency, including: the first user terminal initiates an application for the transfer of ownership of the on-chain asset, and writes the first hash value and the first timeout time into the blockchain; the second user terminal initiates a confirmation and consent to the ownership transfer operation to the blockchain; the first user terminal sends the first hash value and the second timeout time to the first digital currency operating institution system; the system generates a digital currency coin string locked by the hash time and transfers it to the digital currency account of the second user; the first user terminal transmits the first random number to the blockchain, and the blockchain generates the second hash value based on the first random number. If the second hash value is consistent with the first hash value and the current time is less than the first timeout time, the asset ownership is modified to the first user; the second user terminal uses the first random number to unlock the digital currency coin string. It is possible to use off-chain funds to directly complete the securities payment settlement of on-chain assets, avoiding the financial risks caused by the introduction of third-party platforms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain asset securities and funds settlement method and system based on legal digital currency. Background Art

[0002] Delivery Versus Payment (DVP) settlement refers to a settlement method in which bonds and funds are delivered simultaneously and mutually as delivery conditions on the settlement date specified by both parties after the bond transaction is concluded. On the blockchain, the atomicity of blockchain transactions can naturally ensure the delivery versus payment of on-chain funds and assets. However, in order to use the atomicity of blockchain transactions to ensure the delivery versus payment of on-chain funds and assets, it is necessary to first transfer funds outside the blockchain to the chain and store them in the form of tokens, which will inevitably require the introduction of a third-party platform to complete the redemption and redemption operations. For example, user A needs to buy asset X on the blockchain belonging to user B. User A redeems the asset through the platform of the blockchain, and transfers the funds outside the blockchain to the platform. The platform transfers the tokens to user A’s account on the blockchain. User A initiates an asset ownership transfer application on the blockchain. User B agrees to the asset ownership transfer. The smart contract on the blockchain completes the ownership transfer and the delivery of tokens on the blockchain. User B initiates a withdrawal application and transfers the tokens to the platform. After confirmation, the platform transfers the funds outside the blockchain to user B’s fund account.

[0003] At present, in the scheme of introducing the platform to exchange funds in and out, users need to establish a certain degree of trust in the platform. Secondly, after the off-chain funds enter the platform, the platform is prone to form a capital pool, which is easy to cause capital risks. At present, thunderstorms caused by capital pools are common. Therefore, how to use off-chain funds to directly complete the securities and funds settlement of assets on the blockchain has become a problem that needs to be solved at present. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a blockchain asset securities payment settlement method and system based on legal digital currency, which can use off-chain funds to directly complete the securities payment settlement of assets on the blockchain, avoiding the financial risks caused by the introduction of third-party platforms. The specific plan is as follows:

[0005] In the first aspect, the present application discloses a blockchain asset securities payment settlement method based on legal digital currency, including:

[0006] Initiate an ownership transfer application for a target asset on the blockchain to the blockchain through a first user terminal, so as to write a first hash value and a first timeout period into the blockchain; wherein the first user terminal corresponds to the first user; and the target asset is an asset of the second user on the blockchain;

[0007] Initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain through a second user terminal; wherein the second user terminal corresponds to the second user;

[0008] Sending a first hash value and a second timeout period to a first digital currency operating institution system of the first user through the first user terminal;

[0009] Generate a digital currency string locked by the hash time corresponding to the ownership transfer application based on the first hash value and the second timeout period through the first digital currency operating institution system, and transfer the digital currency string into the digital currency account of the second user;

[0010] The first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is changed to the first user;

[0011] The digital currency string is unlocked by the second user terminal using the first random number within the second timeout period.

[0012] Optionally, before initiating the application for transfer of ownership of the target asset on the blockchain through the first user terminal to the blockchain, the method further includes:

[0013] Generate a second random number through the first user terminal, and then generate the first hash value based on the second random number;

[0014] The second random number is equal to the first random number.

[0015] Optionally, sending the first hash value and the second timeout period to the first digital currency operating institution system of the first user through the first user terminal includes:

[0016] Querying the transaction status corresponding to the ownership transfer application through the first user terminal, and if the transaction status is pending payment, sending a first hash value and a second timeout period to the first digital currency operating institution system of the first user;

[0017] Among them, the transaction status is modified by the blockchain to a pending payment status after obtaining the confirmation and consent for the ownership transfer operation.

[0018] Optionally, after transferring the digital currency string into the digital currency account of the second user, the method further includes:

[0019] Verify, by the second user terminal, whether the hash value in the digital currency string is consistent with the first hash value on the blockchain, whether the second timeout period is greater than the first timeout period, and whether the difference between the second timeout period and the first timeout period is greater than a preset threshold;

[0020] If the hash value in the digital currency string is consistent with the first hash value on the blockchain, the second timeout period is greater than the first timeout period, and the difference between the second timeout period and the first timeout period is greater than a preset threshold, an unlocking application is initiated to the blockchain so that the blockchain changes the transaction status corresponding to the ownership transfer application to pending unlocking.

[0021] Optionally, the first random number is transmitted to the blockchain through the first user terminal, so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user, including:

[0022] The transaction status is queried through the first user terminal. If the transaction status is to be unlocked, a first random number is passed to the blockchain to initiate an unlocking operation, so that the blockchain generates a second hash value based on the first random number through a smart contract. If the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the transaction status is modified to paid, and then the ownership of the target asset is modified to the first user.

[0023] Optionally, unlocking the digital currency string by using the first random number within a second timeout period through the second user terminal includes:

[0024] querying the transaction status through the second user terminal, and if the transaction status is paid, sending an unlocking request for the digital currency string to the second digital currency operating institution system using the first random number;

[0025] The digital currency string is unlocked using the first random number within a second timeout period through the second digital currency operating institution system.

[0026] Optionally, the method further includes:

[0027] When the current time is greater than the second timeout time and the digital currency string is in a locked state, the corresponding digital currency is returned to the digital currency account of the first user through the second digital currency operating institution system.

[0028] In the second aspect, the present application discloses a blockchain asset securities payment settlement system based on legal digital currency, including a first user terminal, a second user terminal, a first digital currency operating institution system and a blockchain, wherein:

[0029] The first user terminal is used to initiate an ownership transfer application for a target asset on the blockchain to the blockchain, so as to write a first hash value and a first timeout period into the blockchain; wherein the first user terminal corresponds to a first user; and the target asset is an asset of a second user on the blockchain;

[0030] The second user terminal is used to initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain; wherein the second user terminal corresponds to the second user;

[0031] The first user terminal is further used to send a first hash value and a second timeout period to the first digital currency operating institution system of the first user;

[0032] The first digital currency operating institution system is used to generate a digital currency string locked by a hash time corresponding to the ownership transfer application based on the first hash value and the second timeout period, and transfer the digital currency string to the digital currency account of the second user;

[0033] The first user terminal is further used to pass a first random number to the blockchain, so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user;

[0034] The second user terminal is further used to unlock the digital currency string using the first random number within a second timeout period.

[0035] Optionally, the first user terminal is further used to generate a second random number, and then generate the first hash value based on the second random number;

[0036] The second random number is equal to the first random number.

[0037] On the third aspect, the present application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned blockchain asset bond-fund settlement method based on legal digital currency.

[0038] It can be seen that the present application initiates an ownership transfer application for a target asset on the blockchain to the blockchain through a first user terminal, so as to write a first hash value and a first timeout time into the blockchain; wherein the first user terminal corresponds to the first user; the target asset is an asset of the second user on the blockchain; a confirmation and consent to ownership transfer operation corresponding to the ownership transfer application is initiated to the blockchain through a second user terminal; wherein the second user terminal corresponds to the second user; the first user terminal sends a first hash value and a second timeout time to the first digital currency operating institution system of the first user; the first digital currency operating institution system generates a digital currency string locked by a hash time corresponding to the ownership transfer application based on the first hash value and the second timeout time, and transfers the digital currency string to the digital currency account of the second user; the first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value, and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user; the second user terminal uses the first random number to unlock the digital currency string within the second timeout time. That is, this application is based on the first user's application for the transfer of ownership of the on-chain assets. The digital currency operating institution system corresponding to the first user generates a hash time-locked digital currency string and transfers it to the digital currency account of the second user. The blockchain modifies the ownership of the on-chain assets through the random number passed in by the first user. The second user terminal unlocks the hash time-locked digital currency string in the second user's digital currency account through the random number passed in by the first user. The real-time delivery of on-chain assets and funds is achieved, and the asset-securities-funds settlement is completed. In this way, the off-chain funds can be used to directly complete the securities-funds settlement of assets on the blockchain, avoiding the financial risks caused by the introduction of third-party platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0040] Figure 1 A flowchart of a blockchain asset-securities-payment settlement method based on legal digital currency disclosed in this application;

[0041] Figure 2 A flowchart of a specific blockchain asset-securities-payment settlement method based on legal digital currency disclosed in this application;

[0042] Figure 3 This is a blockchain asset transaction status diagram disclosed in this application;

[0043] Figure 4 This is a schematic diagram of the structure of a blockchain asset voucher-payment system based on legal digital currency disclosed in this application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] At present, in the scheme of introducing the platform to exchange funds in and out, users need to establish a certain degree of trust in the platform. Secondly, after the off-chain funds enter the platform, the platform is prone to form a capital pool, which is easy to cause financial risks. At present, thunderstorms caused by capital pools are common. Therefore, how to use off-chain funds to directly complete the securities and funds settlement of assets on the blockchain has become a problem that needs to be solved at present. To this end, this application provides an asset securities and funds settlement solution based on blockchain, which can use off-chain funds to directly complete the securities and funds settlement of assets on the blockchain, avoiding the financial risks caused by the introduction of third-party platforms.

[0046] See also Figure 1 As shown, the embodiment of the present application discloses a blockchain asset bond payment settlement method based on legal digital currency, including:

[0047] Step S11: Initiate an ownership transfer application for a target asset on the blockchain to the blockchain through a first user terminal, so as to write a first hash value and a first timeout period into the blockchain; wherein the first user terminal corresponds to a first user; and the target asset is an asset of a second user on the blockchain.

[0048] In a specific implementation, this embodiment can generate a second random number through the first user terminal, then generate the first hash value based on the second random number, and then initiate an application for transfer of ownership of the target asset on the blockchain to the blockchain to write the first hash value and the first timeout period into the blockchain.

[0049] In addition, the blockchain can modify the transaction status corresponding to the ownership transfer application to pending confirmation through a smart contract.

[0050] Step S12: Initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain through the second user terminal; wherein the second user terminal corresponds to the second user.

[0051] In a specific implementation, the transaction status corresponding to the ownership transfer application can be queried through the second user terminal. If the transaction status is pending confirmation, a confirmation and approval operation for the ownership transfer corresponding to the ownership transfer application is initiated to the blockchain.

[0052] Step S13: Sending a first hash value and a second timeout period to the first digital currency operating institution system of the first user through the first user terminal.

[0053] In a specific implementation, the transaction status corresponding to the ownership transfer application can be queried through the first user terminal. If the transaction status is pending payment, the first hash value and the second timeout period will be sent to the first digital currency operating institution system of the first user;

[0054] The transaction status is modified to a pending payment status by the blockchain after obtaining the confirmation and consent of the ownership transfer operation. Specifically, the transaction status is modified to a pending payment status by the smart contract after obtaining the confirmation and consent of the ownership transfer operation.

[0055] Step S14: The first digital currency operating institution system generates a hash time-locked digital currency string corresponding to the ownership transfer application based on the first hash value and the second timeout period, and transfers the digital currency string to the digital currency account of the second user.

[0056] Among them, the digital currency string is a legal digital currency string.

[0057] Furthermore, the hash time-locked digital currency string is a string with a preset verification logic written in the programmable part of the digital currency string. The preset verification logic is that the lock is released if and only if the first random number passed in makes the second hash value generated using the random number equal to the first hash value, and the current time is less than the second timeout time, otherwise the string is unavailable.

[0058] In a specific implementation, after transferring the digital currency string into the digital currency account of the second user, it also includes: verifying through the second user end whether the hash value in the digital currency string is consistent with the first hash value on the blockchain, and whether the second timeout period is greater than the first timeout period, and whether the difference between the second timeout period and the first timeout period is greater than a preset threshold; if the hash value in the digital currency string is consistent with the first hash value on the blockchain, the second timeout period is greater than the first timeout period, and the difference between the second timeout period and the first timeout period is greater than a preset threshold, then initiating an unlocking application to the blockchain so that the blockchain modifies the transaction status corresponding to the ownership transfer application to pending unlocking. Specifically, the blockchain modifies the transaction status corresponding to the ownership transfer application to pending unlocking through a smart contract

[0059] Step S15: The first random number is transmitted to the blockchain through the first user terminal, so that the blockchain generates a second hash value based on the first random number. If the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user.

[0060] The second random number is equal to the first random number.

[0061] In a specific implementation, the transaction status is queried through the first user terminal. If the transaction status is to be unlocked, a first random number is passed to the blockchain to initiate an unlocking operation, so that the blockchain generates a second hash value based on the first random number through a smart contract. If the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the transaction status is modified to paid, and then the ownership of the target asset is modified to the first user.

[0062] Step S16: unlocking the digital currency string using the first random number within a second timeout period through the second user terminal.

[0063] In a specific implementation, the transaction status can be queried through the second user terminal. If the transaction status is paid, the first random number is used to send an unlocking request for the digital currency string to the second digital currency operating institution system; the digital currency string is unlocked by the second digital currency operating institution system using the first random number within the second timeout period.

[0064] Among them, the second digital currency operating institution system and the first digital currency operating institution system can be the same digital currency operating institution system or different digital currency operating institution systems.

[0065] Furthermore, in this embodiment, the second digital currency operating institution system can return the corresponding digital currency to the digital currency account of the first user when the current time is greater than the second timeout time and the digital currency string is in a locked state.

[0066] Among them, the digital currency in this implementation is legal digital currency, also known as central bank digital currency, which is a digital currency issued by the central bank, that is, the digital form of base currency, and is a liability of the central bank. Digital currency operating institutions are licensed institutions authorized by the People's Bank of China to participate in the operation of DC / EP (Digital Currency Electronic Payment). They can be commercial banks, telecom operators, Internet companies, etc. Currently, there are four major banks: Industrial and Commercial Bank of China, Agricultural Bank of China, Bank of China and China Construction Bank. DC / EP, the Chinese version of the digital currency project, that is, digital currency and electronic payment tools, is the legal digital currency under research by the People's Bank of China and is a type of DIGICCY (digital currency). The Chinese version of CBDC (i.e. Central bank digital currencies, central bank digital currency) is issued by the People's Bank of China, operated by designated operating institutions and exchanged to the public. It is based on a broad account system, supports the loose coupling function of bank accounts, is equivalent to banknotes and coins, and has value characteristics and legal tender. It is a controllable and anonymous payment tool.

[0067] It can be seen that the embodiment of the present application initiates an ownership transfer application for the target asset on the blockchain to the blockchain through the first user terminal, so as to write the first hash value and the first timeout time into the blockchain; wherein the first user terminal corresponds to the first user; the target asset is the asset of the second user on the blockchain; the confirmation and consent to ownership transfer operation corresponding to the ownership transfer application is initiated to the blockchain through the second user terminal; wherein the second user terminal corresponds to the second user; the first user terminal sends the first hash value and the second timeout time to the first digital currency operating institution system of the first user; the first digital currency operating institution system generates a digital currency coin string locked by the hash time corresponding to the ownership transfer application based on the first hash value and the second timeout time, and transfers the digital currency coin string to the digital currency account of the second user; the first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, if the second hash value is consistent with the first hash value, and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user; the second user terminal uses the first random number to unlock the digital currency coin string within the second timeout time. That is, the embodiment of the present application is based on the first user's application for the transfer of ownership of the on-chain assets. The digital currency operating institution system corresponding to the first user generates a hash time-locked digital currency string, which is transferred to the digital currency account of the second user. The blockchain modifies the ownership of the on-chain assets through the random number passed in by the first user. The second user terminal unlocks the hash time-locked digital currency string in the second user's digital currency account through the random number passed in by the first user. The real-time delivery of on-chain assets and funds is achieved, and the asset-securities-funds settlement is completed. In this way, the off-chain funds can be used to directly complete the securities-funds settlement of assets on the blockchain, avoiding the financial risks caused by the introduction of third-party platforms.

[0068] For example, see Figure 2 As shown, Figure 2 This is a flowchart of a specific blockchain asset voucher-fund settlement method based on legal digital currency disclosed in an embodiment of the present application.

[0069] User A needs to buy asset X on the blockchain belonging to user B. The process based on legal digital currency is as follows:

[0070] a) User A generates a random number s and uses the agreed digest algorithm H to calculate the hash value H(s); generates a timeout T1;

[0071] b) User A initiates an application for asset ownership transfer on the blockchain, writes H(s) and timeout T1 as parameters into the blockchain ledger, and changes the transaction status to pending confirmation;

[0072] c) After user B discovers the application, he confirms his agreement to the transfer of ownership and initiates an operation on the blockchain, which changes the transaction status to "pending payment";

[0073] d) User A finds that the transaction status is pending payment, and sends H(s) and timeout time T2 (T2>T1) generated in step a) to the digital currency operating institution A' where user A opened an account. A' generates a digital currency string locked by hash time.

[0074] Among them, the digital currency string with hash time lock refers to a verification logic written into the programmable part of the digital currency string D. The lock is released when and only when the incoming s' makes H(s') = H(s) and the current time T'<= T2, otherwise the string is unusable.

[0075] A' initiates an inter-bank transfer or an intra-bank transfer to B's digital currency account opened at B', and A' can be equal to B'.

[0076] e) User B receives the transfer. At this time, the digital currency in B's account is locked and cannot be used. B verifies that H(s) in the digital currency is consistent with that on the blockchain, verifies that T2>T1, and T2-T1 is sufficient to complete the digital currency unlocking operation;

[0077] f) User B initiates an unlock application and changes the transaction status to pending unlock;

[0078] g) User A transmits s'(s'=s) to the blockchain to initiate unlocking; the smart contract on the blockchain verifies that H(s')=H(s) and the current time T'<=T1, then the verification is passed, the transaction status is changed to paid, and the ownership of the asset is changed to A;

[0079] h) After user B obtains the transaction status and s' passed by A, he uses s' to request the operator B' to unlock the digital currency string D;

[0080] i) User A does not initiate an unlocking operation within T1, and operator B' detects that the digital currency is still in a locked state when the time is greater than T2, and automatically returns it to the digital currency account opened by user A at operator A'.

[0081] For example, see Figure 3 As shown, Figure 3 A blockchain asset transaction status diagram disclosed in an embodiment of the present application.

[0082] It should be pointed out that this embodiment uses legal digital currency in the delivery-versus-payment transactions of assets on any blockchain, without the need to redesign the corresponding token clearing and settlement system on each blockchain.

[0083] See also Figure 4 As shown, the embodiment of the present application discloses a blockchain asset securities payment settlement system based on legal digital currency, including a first user terminal 11, a second user terminal 12, a first digital currency operating institution system 13 and a blockchain 14, wherein:

[0084] The first user terminal 11 is used to initiate an ownership transfer application for a target asset on the blockchain 14 to the blockchain 14, so as to write a first hash value and a first timeout period into the blockchain 14; wherein the first user terminal corresponds to a first user; and the target asset is an asset of a second user on the blockchain 14;

[0085] The second user terminal 12 is used to initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain 14; wherein the second user terminal corresponds to the second user;

[0086] The first user terminal 11 is further used to send a first hash value and a second timeout period to the first digital currency operating institution system 13 of the first user;

[0087] The first digital currency operating institution system 13 is used to generate a digital currency string locked by a hash time corresponding to the ownership transfer application based on the first hash value and the second timeout period, and transfer the digital currency string to the digital currency account of the second user;

[0088] The first user terminal 11 is further used to pass a first random number to the blockchain, so that the blockchain 14 generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user;

[0089] The second user terminal 12 is further configured to unlock the digital currency string using the first random number within a second timeout period.

[0090] It can be seen that the present application initiates an ownership transfer application for a target asset on the blockchain to the blockchain through a first user terminal, so as to write a first hash value and a first timeout time into the blockchain; wherein the first user terminal corresponds to the first user; the target asset is an asset of the second user on the blockchain; a confirmation and consent to ownership transfer operation corresponding to the ownership transfer application is initiated to the blockchain through a second user terminal; wherein the second user terminal corresponds to the second user; the first user terminal sends a first hash value and a second timeout time to the first digital currency operating institution system of the first user; the first digital currency operating institution system generates a digital currency string locked by a hash time corresponding to the ownership transfer application based on the first hash value and the second timeout time, and transfers the digital currency string to the digital currency account of the second user; the first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value, and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user; the second user terminal uses the first random number to unlock the digital currency string within the second timeout time. That is, this application is based on the first user's application for the transfer of ownership of the on-chain assets. The digital currency operating institution system corresponding to the first user generates a hash time-locked digital currency string and transfers it to the digital currency account of the second user. The blockchain modifies the ownership of the on-chain assets through the random number passed in by the first user. The second user terminal unlocks the hash time-locked digital currency string in the second user's digital currency account through the random number passed in by the first user. The real-time delivery of on-chain assets and funds is achieved, and the asset-securities-funds settlement is completed. In this way, the off-chain funds can be used to directly complete the securities-funds settlement of assets on the blockchain, avoiding the financial risks caused by the introduction of third-party platforms.

[0091] The first user terminal 11 is further used to generate a second random number, and then generate the first hash value based on the second random number; wherein the second random number is equal to the first random number.

[0092] In a specific implementation, the first user terminal 11 is used to query the transaction status corresponding to the ownership transfer application, and if the transaction status is pending payment, the first hash value and the second timeout period are sent to the first digital currency operating institution system 13 of the first user;

[0093] Among them, the transaction status is modified by the blockchain 14 to a pending payment status after obtaining the confirmation and consent for the ownership transfer operation.

[0094] The second user terminal 12 is used to verify whether the hash value in the digital currency string is consistent with the first hash value on the blockchain 14, whether the second timeout period is greater than the first timeout period, and whether the difference between the second timeout period and the first timeout period is greater than a preset threshold after the digital currency string is transferred to the digital currency account of the second user; if the hash value in the digital currency string is consistent with the first hash value on the blockchain 14, the second timeout period is greater than the first timeout period, and the difference between the second timeout period and the first timeout period is greater than the preset threshold, then initiate an unlocking application to the blockchain so that the blockchain 14 changes the transaction status corresponding to the ownership transfer application to pending unlocking.

[0095] The first user terminal 11 is specifically used to query the transaction status. If the transaction status is to be unlocked, a first random number is passed to the blockchain 14 to initiate an unlocking operation, so that the blockchain generates a second hash value based on the first random number through a smart contract. If the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the transaction status is modified to paid, and then the ownership of the target asset is modified to the first user.

[0096] The second user terminal 12 is specifically used to query the transaction status, and if the transaction status is paid, use the first random number to send an unlocking request for the digital currency string to the second digital currency operating institution system;

[0097] The second digital currency operating institution system is used to unlock the digital currency coin string using the first random number within a second timeout period.

[0098] The second digital currency operating institution system is also used to return the corresponding digital currency to the digital currency account of the first user when the current time is greater than the second timeout time and the digital currency string is in a locked state.

[0099] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the blockchain asset bond-fund settlement method based on legal digital currency disclosed in the aforementioned embodiment.

[0100] For the specific process of the above-mentioned blockchain asset bond-to-cash settlement method based on legal digital currency, please refer to the corresponding content disclosed in the aforementioned embodiments, which will not be repeated here.

[0101] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0103] The above is a detailed introduction to a blockchain asset voucher-to-payment method and system based on legal digital currency provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A blockchain asset voucher payment settlement method based on legal digital currency, It is characterized in that include: Initiate an ownership transfer application for a target asset on the blockchain to the blockchain through a first user terminal, so as to write a first hash value and a first timeout period into the blockchain; wherein the first user terminal corresponds to the first user; and the target asset is an asset of the second user on the blockchain; Initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain through a second user terminal; wherein the second user terminal corresponds to the second user; Sending a first hash value and a second timeout period to a first digital currency operating institution system of the first user through the first user terminal; Generate a digital currency string locked by the hash time corresponding to the ownership transfer application based on the first hash value and the second timeout period through the first digital currency operating institution system, and transfer the digital currency string into the digital currency account of the second user; The first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is changed to the first user; Unlocking the digital currency string by using the first random number within a second timeout period through the second user terminal; Before initiating an application for transfer of ownership of a target asset on the blockchain through the first user terminal to the blockchain, the method further includes: Generate a second random number through the first user terminal, and then generate the first hash value based on the second random number; The second random number is equal to the first random number.

2. According to the blockchain asset securities payment method based on legal digital currency according to claim 1, It is characterized in that The sending the first hash value and the second timeout period to the first digital currency operating institution system of the first user through the first user terminal includes: Querying the transaction status corresponding to the ownership transfer application through the first user terminal, and if the transaction status is pending payment, sending a first hash value and a second timeout period to the first digital currency operating institution system of the first user; Among them, the transaction status is modified by the blockchain to a pending payment status after obtaining the confirmation and consent for the ownership transfer operation.

3. According to the blockchain asset voucher payment settlement method based on legal digital currency according to claim 1, It is characterized in that After transferring the digital currency string into the digital currency account of the second user, the method further includes: Verify, by the second user terminal, whether the hash value in the digital currency string is consistent with the first hash value on the blockchain, whether the second timeout period is greater than the first timeout period, and whether the difference between the second timeout period and the first timeout period is greater than a preset threshold; If the hash value in the digital currency string is consistent with the first hash value on the blockchain, the second timeout period is greater than the first timeout period, and the difference between the second timeout period and the first timeout period is greater than a preset threshold, an unlocking application is initiated to the blockchain so that the blockchain changes the transaction status corresponding to the ownership transfer application to pending unlocking.

4. According to the blockchain asset voucher payment settlement method based on legal digital currency according to claim 3, It is characterized in that The first user terminal transmits a first random number to the blockchain so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user, including: The transaction status is queried through the first user terminal. If the transaction status is to be unlocked, a first random number is passed to the blockchain to initiate an unlocking operation, so that the blockchain generates a second hash value based on the first random number through a smart contract. If the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the transaction status is modified to paid, and then the ownership of the target asset is modified to the first user.

5. According to the blockchain asset voucher payment settlement method based on legal digital currency according to claim 4, It is characterized in that The step of unlocking the digital currency string by using the first random number within the second timeout period by the second user terminal includes: querying the transaction status through the second user terminal, and if the transaction status is paid, sending an unlocking request for the digital currency string to the second digital currency operating institution system using the first random number; The digital currency string is unlocked using the first random number within a second timeout period through the second digital currency operating institution system.

6. According to the blockchain asset securities and funds settlement method based on legal digital currency according to claim 5, It is characterized in that Also includes: When the current time is greater than the second timeout time and the digital currency string is in a locked state, the corresponding digital currency is returned to the digital currency account of the first user through the second digital currency operating institution system.

7. A blockchain asset voucher payment system based on legal digital currency, It is characterized in that It includes a first user terminal, a second user terminal, a first digital currency operating institution system and a blockchain, wherein: The first user terminal is used to initiate an ownership transfer application for a target asset on the blockchain to the blockchain, so as to write a first hash value and a first timeout period into the blockchain; wherein the first user terminal corresponds to a first user; and the target asset is an asset of a second user on the blockchain; The second user terminal is used to initiate a confirmation and approval operation of the ownership transfer corresponding to the ownership transfer application to the blockchain; wherein the second user terminal corresponds to the second user; The first user terminal is further used to send a first hash value and a second timeout period to the first digital currency operating institution system of the first user; The first digital currency operating institution system is used to generate a digital currency string locked by a hash time corresponding to the ownership transfer application based on the first hash value and the second timeout period, and transfer the digital currency string to the digital currency account of the second user; The first user terminal is further used to pass a first random number to the blockchain, so that the blockchain generates a second hash value based on the first random number, and if the second hash value is consistent with the first hash value and the current time is less than or equal to the first timeout time, the ownership of the target asset is modified to the first user; The second user terminal is further used to unlock the digital currency string using the first random number within a second timeout period; The first user terminal is further used to generate a second random number, and then generate the first hash value based on the second random number; The second random number is equal to the first random number.

8. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the blockchain asset bond-payment settlement method based on legal digital currency as described in any one of claims 1 to 6.