CN107330692A - The circulation method and device of digital cash - Google Patents

The circulation method and device of digital cash Download PDF

Info

Publication number
CN107330692A
CN107330692A CN201710495071.7A CN201710495071A CN107330692A CN 107330692 A CN107330692 A CN 107330692A CN 201710495071 A CN201710495071 A CN 201710495071A CN 107330692 A CN107330692 A CN 107330692A
Authority
CN
China
Prior art keywords
digital cash
word string
payment
amount
digital currency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710495071.7A
Other languages
Chinese (zh)
Other versions
CN107330692B (en
Inventor
姚前
狄刚
李红岗
潘丽
席继良
赵欣
李连三
杜鲲
黄烈明
蒋国庆
孙浩
陈海波
钱友才
赵新宇
王继伟
彭枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Printing Science and Technology Peoples Bank of China
Original Assignee
Institute of Printing Science and Technology Peoples Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Printing Science and Technology Peoples Bank of China filed Critical Institute of Printing Science and Technology Peoples Bank of China
Priority to CN201710495071.7A priority Critical patent/CN107330692B/en
Publication of CN107330692A publication Critical patent/CN107330692A/en
Application granted granted Critical
Publication of CN107330692B publication Critical patent/CN107330692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention provides a kind of circulation method of digital cash, and this method disclosure satisfy that the requirement of real money circulation, and improve the treatment effeciency of digital cash circulation.This method includes:Payment end selects digital cash word string according to Payment Amount and predefined matching strategy from the digital cash safe deposit box at payment end, then composition pays source digital cash word string collection, payment source digital cash word string collection is sent to management end again, digital cash word string has:The digital cash word string for there are one or more owners to be designated payment end is deposited in amount field and owner's identification field, the digital cash safe deposit box at end of paying the bill;The digital cash word string for paying source digital cash word string concentration is registered as cancel status by management end, then whereabouts digital cash word string is paid according to Payment Amount generation, and payment whereabouts digital cash word string is sent to gathering end, the amount of money for paying whereabouts digital cash word string is Payment Amount, and the owner is designated gathering end.

Description

数字货币的流通方法和装置Circulation method and device of digital currency

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种数字货币的流通方法和装置。The present invention relates to the field of computer technology, in particular to a digital currency circulation method and device.

背景技术Background technique

现有虚拟数字货币的流通,典型的是通过UTXO的方式。交易地址作为虚拟数字货币的付款端或收款端。每个交易核心包含付款端交易地址、收款端交易地址和金额。用户持有虚拟数字货币是通过对所拥有交易地址的UTXO进行计算完成。用户支付虚拟数字货币是通过发起新的交易,从而改变付款端和收款端交易地址的UTXO余额。从本质上说,现有虚拟数字货币流通不存在货币的转移,而只是一组连续的交易记录。The circulation of existing virtual digital currencies is typically through UTXO. The transaction address is used as the payment or collection end of the virtual digital currency. Each transaction core includes the transaction address of the payment terminal, the transaction address of the payment terminal and the amount. The user holds the virtual digital currency by calculating the UTXO of the transaction address owned by the user. The user pays the virtual digital currency by initiating a new transaction, thereby changing the UTXO balance of the transaction address of the payment terminal and the payment terminal. In essence, there is no currency transfer in the existing virtual digital currency circulation, but only a set of continuous transaction records.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:首先,现有虚拟数字货币流通的基础是交易而不是货币本身,现有虚拟数字货币的交易反映的是从付款端到收款端的交易记录,因此,当用户想要确认所持有的虚拟数字货币必须将所有的交易进行汇总,并计算余额,这种方式效率比较低。并且,现有虚拟数字货币无法满足实际货币流通的要求,现有虚拟数字货币的流通方式是匿名,只能通过密码进行保管,一旦密码丢失,便难以找回,不满足实际应用的需要,而且虚拟数字货币流通过程如果涉及非法行为,也难以跟踪查处。In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: first, the basis of the circulation of the existing virtual digital currency is the transaction rather than the currency itself, and the transaction of the existing virtual digital currency reflects The transaction records at the receiving end. Therefore, when the user wants to confirm the virtual digital currency held, he must summarize all transactions and calculate the balance. This method is relatively inefficient. Moreover, the existing virtual digital currency cannot meet the requirements of actual currency circulation. The existing virtual digital currency is anonymously circulated and can only be kept by password. Once the password is lost, it is difficult to retrieve it, which does not meet the needs of practical applications. If the virtual digital currency circulation process involves illegal activities, it is also difficult to track and investigate.

因此,亟需一种能够满足实际货币流通的要求,提高流通的处理效率的数字货币的流通方法和装置。Therefore, there is an urgent need for a digital currency circulation method and device that can meet the requirements of actual currency circulation and improve the processing efficiency of circulation.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种数字货币的流通方法和装置,能够满足实际货币流通的要求,并且提高数字货币流通的处理效率。In view of this, the embodiments of the present invention provide a digital currency circulation method and device, which can meet the requirements of actual currency circulation and improve the processing efficiency of digital currency circulation.

为实现上述目的,根据本发明实施例的一个方面,提供了一种数字货币的流通方法,该方法包括:In order to achieve the above purpose, according to an aspect of the embodiments of the present invention, a digital currency circulation method is provided, the method includes:

付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集,再将该支付来源数字货币字串集发送给管理端,所述数字货币字串具有:金额字段和所有者标识字段,所述付款端的数字货币保管箱中存放有一个或多个所有者标识为付款端的数字货币字串;The payment terminal selects digital currency strings from the digital currency safe deposit box of the payment terminal according to the payment amount and the predefined matching strategy, and then forms a payment source digital currency string set, and then sends the payment source digital currency string set to the management terminal, The digital currency string has: an amount field and an owner identification field, and one or more digital currency strings identified by the owner as the payment terminal are stored in the digital currency safe deposit box at the payment terminal;

管理端将所述支付来源数字货币字串集中的数字货币字串登记为作废状态,然后根据所述付款金额生成支付去向数字货币字串,以及将所述支付去向数字货币字串发送给收款端,所述支付去向数字货币字串的金额为所述付款金额,所有者标识为收款端。The management terminal registers the digital currency strings in the payment source digital currency string set as invalid, then generates a payment destination digital currency string according to the payment amount, and sends the payment destination digital currency string to the collection end, the amount of the payment destination digital currency string is the payment amount, and the owner is identified as the payee end.

可选的,所述匹配策略为最少币串策略;Optionally, the matching strategy is the least coin string strategy;

所述付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集的步骤包括:The payment terminal selects a digital currency string from the digital currency safe deposit box of the payment terminal according to the payment amount and a predefined matching strategy, and then the steps of forming a payment source digital currency string set include:

将付款端数字货币保管箱中的数字货币字串按照金额由大到小进行排序;Sort the digital currency strings in the digital currency safe deposit box at the payment terminal according to the amount from large to small;

在所述排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于所述付款金额,然后将该组合得到的数字货币字串作为所述支付来源数字货币字串集。Select digital currency strings in sequence in the sorting and then combine them until the sum of the combined digital currency strings is greater than or equal to the payment amount, and then use the combined digital currency strings as the payment source digital currency set of strings.

可选的,所述匹配策略为最多币串策略;Optionally, the matching strategy is the most coin string strategy;

所述付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集的步骤包括:The payment terminal selects a digital currency string from the digital currency safe deposit box of the payment terminal according to the payment amount and a predefined matching strategy, and then the steps of forming a payment source digital currency string set include:

将付款端数字货币保管箱中的数字货币字串按照金额由小到大进行排序;Sort the digital currency strings in the digital currency safe deposit box at the payment terminal according to the amount from small to large;

在所述排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于所述付款金额,然后将该组合得到的数字货币字串作为所述支付来源数字货币字串集。Select digital currency strings in sequence in the sorting and then combine them until the sum of the combined digital currency strings is greater than or equal to the payment amount, and then use the combined digital currency strings as the payment source digital currency set of strings.

可选的,所述匹配策略为最少差额策略;Optionally, the matching strategy is the least difference strategy;

所述付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集的步骤包括:The payment terminal selects a digital currency string from the digital currency safe deposit box of the payment terminal according to the payment amount and a predefined matching strategy, and then the steps of forming a payment source digital currency string set include:

在所述数字货币保管箱中的金额总和不少于付款金额的所有数字货币字串组合中,搜索与付款金额差额最小的数字货币字串组合作为所述支付来源数字货币字串集。Among all the digital currency string combinations whose total amount in the digital currency safe deposit box is not less than the payment amount, search for the digital currency string combination with the smallest difference from the payment amount as the payment source digital currency string set.

进一步的,在管理端将所述支付来源数字货币字串集中的数字货币字串登记为作废状态之后,还包括:Further, after the management terminal registers the digital currency strings in the payment source digital currency string set as invalid, it also includes:

管理端根据所述支付来源数字货币字串集以及所述付款金额生成所有者标识为付款端的找零数字货币字串,然后将所述找零数字货币字串发送给付款端,所述找零数字货币字串的金额为所述支付来源数字货币字串集的金额总和与所述付款金额的差值。The management terminal generates the change digital currency string identified by the owner as the payer according to the payment source digital currency string set and the payment amount, and then sends the change digital currency string to the payer, and the change The amount of the digital currency string is the difference between the sum of the amount of the payment source digital currency string set and the payment amount.

进一步的,本发明提供的数字货币的流通方法还包括:Further, the digital currency circulation method provided by the present invention also includes:

所述管理端对所述支付来源数字货币字串集内的数字货币字串、所述支付去向数字货币字串以及所述找零数字货币字串的字段信息进行记录。The management terminal records the field information of the digital currency string of the payment source digital currency string, the digital currency string of the payment destination, and the change digital currency string.

为实现上述目的,根据本发明实施例的另一个方面,还提供了一种数字货币的流通装置,该装置包括:In order to achieve the above object, according to another aspect of the embodiment of the present invention, a digital currency circulation device is also provided, the device includes:

货币选择模块,用于依据付款金额和预定义的匹配策略从数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集,所述数字货币字串具有:金额字段和所有者标识字段,所述数字货币保管箱中存放有一个或多个所有者标识为付款端的数字货币字串;The currency selection module is used to select a digital currency string from the digital currency safe deposit box according to the payment amount and a predefined matching strategy, and then form a payment source digital currency string set. The digital currency string has: an amount field and an owner An identification field, the digital currency safe deposit box stores one or more digital currency strings identified by the owner as the payment terminal;

第一发送模块,用于将所述支付来源数字货币字串集发送给管理端,其中,管理端将所述支付来源数字货币字串集中的数字货币字串登记为作废状态,然后根据所述付款金额生成支付去向数字货币字串,以及将所述支付去向数字货币字串发送给收款端,所述支付去向数字货币字串的金额为所述付款金额,所有者标识为收款端。The first sending module is used to send the payment source digital currency string set to the management terminal, wherein the management terminal registers the digital currency strings in the payment source digital currency string set as invalid, and then according to the The payment amount generates a payment destination digital currency string, and sends the payment destination digital currency string to the payee, the amount of the payment destination digital currency string is the payment amount, and the owner is identified as the payee.

可选的,所述货币选择模块进一步用于将付款端数字货币保管箱中的数字货币字串按照金额由大到小进行排序,在所述排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于所述付款金额,然后将该组合得到的数字货币字串作为所述支付来源数字货币字串集。Optionally, the currency selection module is further used to sort the digital currency strings in the digital currency safe deposit box at the payment end according to the amount from large to small, and select the digital currency strings in order in the sorting and then combine them until The sum of the amounts of the combined digital currency strings is greater than or equal to the payment amount, and then the combined digital currency strings are used as the payment source digital currency string set.

可选的,所述货币选择模块进一步用于将付款端数字货币保管箱中的数字货币字串按照金额由小到大进行排序,在所述排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于所述付款金额,然后将该组合得到的数字货币字串作为所述支付来源数字货币字串集。Optionally, the currency selection module is further used to sort the digital currency strings in the digital currency safe deposit box at the payment end according to the amount from small to large, and select the digital currency strings in order in the sorting and then combine them until The sum of the amounts of the combined digital currency strings is greater than or equal to the payment amount, and then the combined digital currency strings are used as the payment source digital currency string set.

可选的,所述货币选择模块进一步用于在所述数字货币保管箱中的金额总和不少于付款金额的所有数字货币字串组合中,搜索与付款金额差额最小的数字货币字串组合作为所述支付来源数字货币字串集。Optionally, the currency selection module is further configured to search for the combination of digital currency strings with the smallest difference from the payment amount among all digital currency string combinations in which the sum of the amounts in the digital currency safe deposit box is not less than the payment amount. The payment source digital currency string set.

为实现上述目的,根据本发明实施例的另一个方面,还提供了一种数字货币的流通装置,该装置包括:In order to achieve the above object, according to another aspect of the embodiment of the present invention, a digital currency circulation device is also provided, the device includes:

接收模块,用于接收付款端发送的支付来源数字货币字串集,其中,付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集,所述数字货币字串具有:金额字段和所有者标识字段,所述付款端的数字货币保管箱中存放有一个或多个所有者标识为付款端的数字货币字串;The receiving module is used to receive the payment source digital currency string set sent by the payment terminal, wherein the payment terminal selects the digital currency string from the digital currency safe deposit box of the payment terminal according to the payment amount and the predefined matching strategy, and then forms the payment source number A currency string set, the digital currency string has: an amount field and an owner identification field, and one or more digital currency strings identified by the owner as the payment terminal are stored in the digital currency safe deposit box at the payment terminal;

作废登记模块,用于将所述支付来源数字货币字串集中的数字货币字串登记为作废状态;An invalidation registration module, configured to register the digital currency strings in the digital currency string set of the payment source as an invalidated state;

货币生成模块,用于根据所述付款金额生成支付去向数字货币字串,所述支付去向数字货币字串的金额为所述付款金额,所有者标识为收款端;A currency generating module, configured to generate a payment destination digital currency string according to the payment amount, the amount of the payment destination digital currency string is the payment amount, and the owner is identified as the payee;

第二发送模块,用于将所述支付去向数字货币字串发送给收款端。The second sending module is used to send the payment destination digital currency string to the payee.

进一步的,本发明实施例提供的数字货币的流通装置还包括:找零生成模块和第三发送模块;Further, the digital currency circulation device provided by the embodiment of the present invention further includes: a change generation module and a third sending module;

找零生成模块用于根据所述支付来源数字货币字串集以及所述付款金额生成所有者标识为付款端的找零数字货币字串,所述找零数字货币字串的金额为所述支付来源数字货币字串集的金额总和与所述付款金额的差值;The change generation module is used to generate a change digital currency string identified by the owner as the payment terminal according to the payment source digital currency string set and the payment amount, and the amount of the change digital currency string is the payment source The difference between the sum of the sum of the digital currency strings and the payment amount;

第三发送模块用于将所述找零数字货币字串发送给付款端。The third sending module is used to send the change digital currency string to the payment terminal.

进一步的,本发明实施例提供的数字货币的流通装置还包括:信息记录模块,用于对所述支付来源数字货币字串集内的数字货币字串、所述支付去向数字货币字串以及所述找零数字货币字串的字段信息进行记录。Further, the digital currency circulation device provided by the embodiment of the present invention further includes: an information recording module, configured to record the digital currency strings in the payment source digital currency string set, the payment destination digital currency string and all Record the field information of the above-mentioned change digital currency string.

为实现上述目的,根据本发明实施例的另一个方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,所述计算机指令能够被计算机或计算机系统运行,从而使该计算机或计算机系统能够执行本发明实施例提供的数字货币的流通方法。In order to achieve the above object, according to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium stores computer instructions, and the computer instructions can be executed by a computer or a computer system , so that the computer or computer system can execute the digital currency circulation method provided by the embodiment of the present invention.

本发明实施例提供的数字货币的流通方法和装置,以数字货币字串作为基础,实现了数字货币的流通,该数字货币的流通方法能够满足实际货币流通的要求。数字货币字串持有者可以仅凭数字货币字串本身的字段信息就可以进行确权,而无需对过往的收付款交易进行汇总,提高了数字货币流通的处理效率。在该方法中,数字货币的流通表现为数字货币字串的转换,在交易过程中可以显著的区分来源币字串和去向币字串,通过交易将来源币字串和去向币字串关联起来,解决现有虚拟数字货币的流通只有交易没有币的问题,并且所有数字货币字串的转换都要通过管理端数字货币系统来进行,将来源币字串作废产生新的去向币字串,从而使得货币当局能够更好监管货币流通。并且,通过数字货币字串的信息结构结合对于数字货币字串配置的流通协议和合约,使数字货币在应用方面具有极强的可扩展性,使其在货币流通中起到的作用远超现有虚拟数字货币。The digital currency circulation method and device provided by the embodiments of the present invention realize the digital currency circulation based on digital currency strings, and the digital currency circulation method can meet the requirements of actual currency circulation. Holders of digital currency strings can confirm their rights only based on the field information of the digital currency string itself, without summarizing past receipt and payment transactions, which improves the processing efficiency of digital currency circulation. In this method, the circulation of digital currency is represented by the conversion of digital currency strings. During the transaction process, the source currency string and the destination currency string can be clearly distinguished, and the source currency string and the destination currency string are associated through the transaction. , to solve the problem that the current circulation of virtual digital currency only has transactions without coins, and all digital currency string conversions must be carried out through the management-side digital currency system, and the source currency string is invalidated to generate a new destination currency string, thereby This enables monetary authorities to better monitor currency circulation. Moreover, through the combination of the information structure of the digital currency string and the circulation agreement and contract for the configuration of the digital currency string, the application of the digital currency is extremely scalable, and its role in currency circulation far exceeds that of the current currency. There are virtual digital currencies.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。The further effects of the above-mentioned non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used to better understand the present invention, and do not constitute improper limitations to the present invention. in:

图1是本发明实施例提供的数字货币的流通方法的流程图;Fig. 1 is a flowchart of a digital currency circulation method provided by an embodiment of the present invention;

图2是本发明实施例提供的数字货币字串的结构的示意图;Fig. 2 is a schematic diagram of the structure of the digital currency string provided by the embodiment of the present invention;

图3是本发明实施例提供的数字货币字串的转移过程的示意图;Fig. 3 is a schematic diagram of the transfer process of the digital currency string provided by the embodiment of the present invention;

图4是本发明实施例提供的数字货币的流通系统的示意图;Fig. 4 is a schematic diagram of a digital currency circulation system provided by an embodiment of the present invention;

图5是本发明实施例提供的付款端和管理端的示意图。Fig. 5 is a schematic diagram of a payment terminal and a management terminal provided by an embodiment of the present invention.

具体实施方式detailed description

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

本发明实施提供一种数字货币的流通方法,如图1所示,该方法包括步骤S101至步骤S102,该方法以数字货币字串作为数字货币流通的基础。数字货币字串中具有字段结构,通过字段结构来记录和携带数字货币的应用属性信息,利用数字货币的应用属性信息能够实现对数字货币资金流的控制和具体应用执行等功能,使得数字货币能够满足应用场景和增值服务的需要。The implementation of the present invention provides a digital currency circulation method. As shown in FIG. 1 , the method includes steps S101 to S102. The method uses digital currency strings as the basis for digital currency circulation. The digital currency string has a field structure, and the application attribute information of the digital currency is recorded and carried through the field structure. Using the application attribute information of the digital currency can realize functions such as controlling the flow of digital currency funds and executing specific applications, so that the digital currency can Meet the needs of application scenarios and value-added services.

例如,在本发明的一种实施方式中,数字货币字串中的字段结构可以配置为:每个字段能够分级,并且长度可变,字段数量也可以根据需求进行扩展。For example, in one embodiment of the present invention, the field structure in the digital currency string can be configured as follows: each field can be graded and has a variable length, and the number of fields can also be expanded according to requirements.

在本发明中,数字货币字串具有:金额字段和所有者标识字段,金额字段用来表示货币本身所代表的最基本的金额,所有者标识用来表示数字货币字串的所有者,通过所有者标识进一步可以关联到真实用户的实名信息。In the present invention, the digital currency string has: an amount field and an owner identification field, the amount field is used to indicate the most basic amount represented by the currency itself, and the owner identification is used to indicate the owner of the digital currency string, through all The identity of the author can further be associated with the real-name information of the real user.

当然,结合数字货币的具体应用需求,还可以对数字货币字串的字段内容进行其他多种配置。本发明提供的数字货币的流通方法能够应用于法定数字货币的流通,其中,法定数字货币是中央银行发行或者授权发行的,以代表具体金额的加密数字串为表现形式的法定货币。在将本发明方法应用于法定数字货币流通的应用场景中时,数字货币字串可以根据法定数字货币的流通要求进行相应的配置,例如,如图2所示,在数字货币字串的结构中还可以配置有:发行方标识字段、货币管理属性字段、货币安全属性字段、货币应用属性字段以及货币编号字段。其中,通过货币编号字段使数字货币具有唯一的编号,货币管理属性用于支持货币当局对货币发行流通进行管理,数字货币安全属性是数字货币安全加密相关的一组字段,能够实现数字货币不可伪造、不可篡改、不可抵赖、保护隐私、保护交易安全等,货币应用属性用来支持货币的具体应用和增值服务。在安全方面,还可以在数字货币字串的结构中加入数字货币加密字串,对数字货币字串进行加密,使得不同的权限方仅可以在权限范围内解密相应数字货币字串内容,无权方无法查看数字货币字串内容。同时基于安全考虑,数字货币字串结构的任何部分可以都配置成不具有规律性。Of course, in combination with the specific application requirements of the digital currency, other configurations can also be performed on the field content of the digital currency string. The digital currency circulation method provided by the present invention can be applied to the circulation of legal digital currency, wherein the legal digital currency is issued or authorized by the central bank, and is represented by an encrypted digital string representing a specific amount of legal currency. When the method of the present invention is applied to the application scenario of legal digital currency circulation, the digital currency string can be configured according to the circulation requirements of legal digital currency. For example, as shown in Figure 2, in the structure of the digital currency string It can also be configured with: issuer identification field, currency management attribute field, currency security attribute field, currency application attribute field and currency number field. Among them, the digital currency has a unique number through the currency number field, the currency management attribute is used to support the currency authority to manage the currency issuance and circulation, and the digital currency security attribute is a set of fields related to digital currency security encryption, which can realize that digital currency cannot be forged , non-tampering, non-repudiation, protection of privacy, protection of transaction security, etc., currency application attributes are used to support specific applications and value-added services of currency. In terms of security, digital currency encryption strings can also be added to the structure of digital currency strings to encrypt digital currency strings, so that different authorized parties can only decrypt the content of corresponding digital currency strings within the scope of authority, and have no right to decrypt the content of digital currency strings. The party cannot view the content of the digital currency string. At the same time, based on security considerations, any part of the digital currency string structure can be configured to be irregular.

本发明实施提供的数字货币的流通方法,以数字货币字串作为货币流通的实体基础,通过数字货币字串的字段结构可以实现对于数字货币字串的配置,使其能够记录信息,从而使基于数字货币字串的数字货币流通能够满足实际货币流通的要求,数字货币字串持有者可以仅凭数字货币字串本身的字段信息就可以进行确权,而无需对过往的收付款交易进行汇总,提高了数字货币流通的处理效率。并且,通过数字货币字串记录的信息结合对于数字货币字串配置的流通协议和合约,使数字货币在应用方面具有极强的可扩展性,使其在货币流通中起到的作用远超现有虚拟数字货币。The digital currency circulation method provided by the implementation of the present invention uses the digital currency string as the physical basis of currency circulation, and the configuration of the digital currency string can be realized through the field structure of the digital currency string, so that it can record information, so that based on The digital currency circulation of digital currency strings can meet the requirements of actual currency circulation, and the holders of digital currency strings can confirm their rights only based on the field information of the digital currency string itself, without summarizing past payment transactions , improving the processing efficiency of digital currency circulation. Moreover, the information recorded through the digital currency string combined with the circulation agreement and contract configured for the digital currency string makes the digital currency extremely scalable in terms of application, making it play a role in currency circulation far beyond the current There are virtual digital currencies.

在步骤S101中,付款端依据付款金额和预定义的匹配策略从付款端的数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集,再将该支付来源数字货币字串集发送给管理端。其中,付款金额即已确定的付款端需要支付给收款端的实际金额。在本发明实施例中,将付款端选出的用来支付的数字货币字串称为来源币字串,将在后续步骤S102中由管理端生成的发送给付款端的数字货币字串称为去向币字串。In step S101, the payer selects a digital currency string from the digital currency safe deposit box of the payer according to the payment amount and a predefined matching strategy, and then forms a payment source digital currency string set, and then forms the payment source digital currency string set sent to the management side. Wherein, the payment amount is the determined actual amount that the payer needs to pay to the payee. In the embodiment of the present invention, the digital currency string selected by the payer for payment is called the source currency string, and the digital currency string generated by the management terminal in the subsequent step S102 and sent to the payer is called the destination currency string.

其中,数字货币保管箱用于存放数字货币字串,付款端的数字货币保管箱中存放有一个或多个所有者标识为付款端的数字货币字串。在具体的应用环境中,数字货币字串持有者可以是个人、企业或者银行,对于个人或者企业在应用中可以将数字货币保管箱作为数字钱包,对于银行则可以将其作为银行库。Wherein, the digital currency safe deposit box is used to store digital currency strings, and the digital currency safe deposit box at the payment terminal stores one or more digital currency strings identified by the owner as the payment terminal. In a specific application environment, the holder of the digital currency string can be an individual, an enterprise or a bank. For an individual or enterprise, the digital currency safe deposit box can be used as a digital wallet in the application, and for a bank, it can be used as a bank library.

步骤S101中,首先从付款端的数字货币保管箱中选出用来支付给付款端的数字货币字串作为来源币字串,然后将来源币字串发送给管理端,所选出的来源币字串的金额总和不能小于确定的付款金额,即存在来源币字串的金额总和等于付款金额和来源币字串的金额总和大于付款金额两种情况,对于后一种情况则需要在后续步骤S102中对于来源币字串进行找零。In step S101, first select the digital currency string used to pay to the payment terminal from the digital currency safe deposit box at the payment terminal as the source currency string, and then send the source currency string to the management terminal, and the selected source currency string The sum of the amount cannot be less than the determined payment amount, that is, there are two situations where the sum of the source currency string is equal to the payment amount and the sum of the source currency string is greater than the payment amount. Source currency string for change.

由于数字货币字符串本身具有金额属性,在支付过程中,例如,需要支付25元,如果数字货币保管箱中的数字货币字串的金额有大有小,例如13、2、79元等,这就需要在数字货币保管箱中采用匹配策略选择具体用哪个金额数字货币字串进行付款。在本发明中,所采用的匹配策略可以为下述三种之一:最少币串策略、最多币串策略或者最少差额策略。Since the digital currency string itself has an amount attribute, in the payment process, for example, 25 yuan needs to be paid, if the amount of the digital currency string in the digital currency safe deposit box is large or small, such as 13, 2, 79 yuan, etc. It is necessary to use a matching strategy in the digital currency safe deposit box to select which amount of digital currency string to use for payment. In the present invention, the matching strategy adopted may be one of the following three types: least coin string strategy, most coin string strategy or least difference strategy.

当匹配策略为最少币串策略,则在步骤S101中,付款端将付款端数字货币保管箱中的数字货币字串按照金额由大到小进行排序。然后,在排序中由大到小依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于付款金额,然后将该组合得到的数字货币字串作为支付来源数字货币字串集。由于是由大到小逐个进行选取,因此,当选出的数字货币字串的金额总和大于或者等于付款金额时,选出的数字货币字串的数量是最少的。When the matching strategy is the least currency string strategy, then in step S101, the payer sorts the digital currency strings in the digital currency safe deposit box of the payer in descending order of amount. Then, in the sorting process, select the digital currency strings from large to small and then combine them until the sum of the combined digital currency strings is greater than or equal to the payment amount, and then use the combined digital currency strings as the payment source digital currency set of strings. Since the selection is performed one by one from large to small, when the sum of the selected digital currency strings is greater than or equal to the payment amount, the number of selected digital currency strings is the least.

当匹配策略为最多币串策略,则在步骤S101中,付款端将付款端数字货币保管箱中的数字货币字串按照金额由小到大进行排序。然后,在排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于付款金额,然后将该组合得到的数字货币字串作为支付来源数字货币字串集。相对于最少币串策略,最多币串策略是由小到大逐个进行选取,当选出的数字货币字串的金额总和大于或者等于付款金额时,选出的数字货币字串的数量是最多的。When the matching strategy is the most currency string strategy, then in step S101, the payer sorts the digital currency strings in the digital currency safe deposit box of the payer in ascending order of amount. Then, select the digital currency strings in order and combine them until the sum of the combined digital currency strings is greater than or equal to the payment amount, and then use the combined digital currency strings as the payment source digital currency string set. Compared with the least currency string strategy, the most currency string strategy selects one by one from small to large. When the sum of the selected digital currency strings is greater than or equal to the payment amount, the number of selected digital currency strings is the largest.

当匹配策略为最少差额策略,则在步骤S101中,付款端在数字货币保管箱中的金额总和不少于付款金额的所有数字货币字串组合中,搜索与付款金额差额最小的数字货币字串组合作为支付来源数字货币字串集,采用最少差额策略则不关注选出的数字货币字串的数量的多少,选出的数字货币字串组合的金额总和最接近付款金额。When the matching strategy is the least difference strategy, then in step S101, the payer searches for the digital currency string with the smallest difference from the payment amount among all combinations of digital currency strings whose total amount in the digital currency safe deposit box is not less than the payment amount The combination is used as the payment source digital currency string set, and the least difference strategy is adopted without paying attention to the number of selected digital currency strings, and the sum of the selected digital currency string combinations is closest to the payment amount.

例如,付款方的数字货币保管箱中有金额分别为100、50、20、20、10、5以及5的数字货币字串,付款金额为47元,则采用最少币串策略选择得到的支付来源数字货币字串集包括:金额为100的数字货币字串,采用最多币串策略选择得到的支付来源数字货币字串集包括:金额分别为20、20、10、5以及5的数字货币字串,采用最少差额策略选择得到的支付来源数字货币字串集包括:金额为50的数字货币字串。For example, if the digital currency safe deposit box of the payer has digital currency strings with amounts of 100, 50, 20, 20, 10, 5, and 5, respectively, and the payment amount is 47 yuan, then the payment source obtained by using the least currency string strategy is selected The digital currency string set includes: digital currency strings with an amount of 100, and the payment source digital currency string set selected by using the most currency string strategy includes: digital currency strings with amounts of 20, 20, 10, 5 and 5 respectively , the set of payment source digital currency strings selected by adopting the least difference strategy includes: digital currency strings with an amount of 50.

在具体实施过程中,可以根据实际的应用需要选择匹配策略,匹配规则可以作为系统提供的功能,由用户指定,或系统自动推荐。例如,当想要用最大的数字货币字串付款,希望找零时,则可应用最少币串策略,当希望把零钱花掉时,则可应用最多币串策略,当希望付款的数字货币字串尽量接近时,应用最少差额策略。In the specific implementation process, the matching strategy can be selected according to the actual application needs, and the matching rules can be used as a function provided by the system, specified by the user, or automatically recommended by the system. For example, when you want to pay with the largest digital currency string and want to get change, you can apply the least currency string strategy. When you want to spend the change, you can apply the most currency string strategy. When you want to pay the digital currency string When the strings are as close as possible, the least difference strategy is applied.

当然,步骤S101中的采用的匹配策略并不局限于为上述三种,例如,可以将最少币串策略和最多币串策略分别与最少差额策略相结合,得到即能满足最少差额条件且又能够满足最少币串或者最多币串条件的选择结果。Of course, the matching strategies adopted in step S101 are not limited to the above-mentioned three types. For example, the strategy of the least coin string and the strategy of the most coin string can be combined with the strategy of the least balance respectively to obtain The selection result that satisfies the condition of the least coin string or the most coin string.

在步骤S101中,付款端将由来源币字串组成的支付来源数字货币字串集发送给管理端。进而,在步骤S102中,管理端将支付来源数字货币字串集中的数字货币字串登记为作废状态,然后根据付款金额生成支付去向数字货币字串,以及将支付去向数字货币字串发送给收款端,支付去向数字货币字串的金额为付款金额,所有者标识为收款端。In step S101, the payer sends the payment source digital currency string set composed of source currency strings to the management terminal. Furthermore, in step S102, the management terminal registers the digital currency strings in the payment source digital currency string set as invalid, then generates a payment destination digital currency string according to the payment amount, and sends the payment destination digital currency string to the recipient The payment terminal, the amount of the payment destination digital currency string is the payment amount, and the owner identification is the payment terminal.

在本发明中,付款端可以通过向管理端发送一条带有己方数字签名的付款信息,来将支付来源数字货币字串集以及付款金额发送给管理端,在实际应用过程中,付款信息还可以包括:付款方信息、收款方信息以及付款时间等其他与付款有关的信息。管理端收到付款信息后验证付款端的数字签名,然后从付款信息中获得支付来源数字货币字串集和付款金额等相关信息。In the present invention, the payment terminal can send a payment information with its own digital signature to the management terminal to send the payment source digital currency string set and the payment amount to the management terminal. In the actual application process, the payment information can also be Including: payer information, payee information, payment time and other payment-related information. After receiving the payment information, the management terminal verifies the digital signature of the payment terminal, and then obtains relevant information such as the payment source digital currency string set and payment amount from the payment information.

在本发明中,管理端部署有用来处理数字货币交易的数字货币系统,在管理端收到支付来源数字货币字串集后,首先会对支付来源数字货币字串集中的来源币字串进行确权和真伪验证。确权包括对来源币字串进行有效性验证、所有者验证和金额验证,以确保来源币字串的所有者和金额没有被篡改,其中,有效性验证是验证来源币字串是否已经被系统登记为作废,在数字货币系统中,已经被花费的数字货币字串被登记为作废,有效性验证可以确保来源币字串不被重复花费。真伪验证即通过数字货币字串的货币安全属性字段验证数字货币的真伪,以确保来源币字串为真。In the present invention, the management terminal deploys a digital currency system for processing digital currency transactions. After receiving the payment source digital currency string set, the management terminal first confirms the source currency string in the payment source digital currency string set. Rights and authenticity verification. Confirmation includes validity verification, owner verification and amount verification of the source currency string to ensure that the owner and amount of the source currency string have not been tampered with. Among them, validity verification is to verify whether the source currency string has been verified by the system. Register as invalid. In the digital currency system, the digital currency strings that have been spent are registered as invalid. Validity verification can ensure that the source currency strings are not repeatedly spent. Authenticity verification is to verify the authenticity of the digital currency through the currency security attribute field of the digital currency string to ensure that the source currency string is true.

步骤S102中,在来源币字串通过数字货币系统的确权和真伪验证后,管理端数字货币系统将支付来源数字货币字串集中的来源币字串在系统中登记为作废状态,即标识为已经花费。然后生成支付去向数字货币字串,即去向币字串。In step S102, after the source currency string has passed the digital currency system’s confirmation and authenticity verification, the digital currency system at the management end registers the source currency string in the payment source digital currency string set as invalid, that is, identifies for already spent. Then generate the payment destination digital currency string, that is, the destination currency string.

在本发明中,管理端数字货币系统通过作废所有者标识为付款端的来源币字串,然后生成所有者标识为收款端的去向币字串来完成数字货币字串的转移。所有数字货币字串的转移都要通过管理端数字货币系统来进行,从而使得货币当局能够更好监管数字货币的流通。转移过程可以分为下述三种转移方式:直接转移、合并转移和拆分转移。In the present invention, the digital currency system at the management end completes the transfer of the digital currency string by invalidating the source currency string identified by the owner as the payer, and then generating the destination currency string identified by the owner as the payee. All transfers of digital currency strings must be carried out through the management-side digital currency system, so that monetary authorities can better supervise the circulation of digital currency. The transfer process can be divided into the following three transfer methods: direct transfer, merge transfer and split transfer.

其中,如图3所示,直接转移为用户A将数字货币字串1转移给用户B的过程,数字货币字串1在转移发生后被登记为作废状态,并生成新的数字货币字串2,后者的所有者标识对应用户B。数字货币字串1和数字货币字串2的金额与付款金额相同。Among them, as shown in Figure 3, the direct transfer is a process in which user A transfers the digital currency string 1 to user B, and the digital currency string 1 is registered as invalid after the transfer occurs, and a new digital currency string 2 is generated , whose owner ID corresponds to user B. The amount of digital currency string 1 and digital currency string 2 is the same as the payment amount.

合并转移为用户B将两个数字货币字串一起转移给用户C的过程。来源币字串有两个:数字货币字串2和数字货币字串3,在转移发生后生成新的数字货币字串4。数字货币字串4的金额等于两个来源币字串金额之和,数字货币字串4的所有者标识对应用户C。Combined transfer is the process in which user B transfers two digital currency strings together to user C. There are two source currency strings: digital currency string 2 and digital currency string 3, and a new digital currency string 4 is generated after the transfer occurs. The amount of the digital currency string 4 is equal to the sum of the amounts of the two source currency strings, and the owner identifier of the digital currency string 4 corresponds to user C.

拆分转移为用户C将数字货币字串4部分金额转移给用户D的过程。来源币字串是数字货币字串4,在转移发生后生成新的数字货币字串5,其所有者标识对应用户D,其金额为付款金额。同时生成新的数字货币字串6,其所有者标识对应用户C,其金额为付款后的余额。Split transfer is the process in which user C transfers 4 parts of the digital currency string to user D. The source currency string is the digital currency string 4, and a new digital currency string 5 is generated after the transfer, its owner ID corresponds to user D, and its amount is the payment amount. At the same time, a new digital currency string 6 is generated, its owner ID corresponds to user C, and its amount is the balance after payment.

拆分转移即来源币字串的金额总和大于付款金额,进而需要进行找零的情况,在这种情况下,在进行步骤S102的同时,管理端还根据支付来源数字货币字串集以及付款金额生成所有者标识为付款端的找零数字货币字串,然后将找零数字货币字串发送给付款端,找零数字货币字串的金额为支付来源数字货币字串集的金额总和与付款金额的差值。Split transfer means that the sum of the source currency strings is greater than the payment amount, and change needs to be made. In this case, while performing step S102, the management terminal also sets the payment source digital currency string and the payment amount Generate a change digital currency string identified by the owner as the payer, and then send the change digital currency string to the payer. The amount of the change digital currency string is the sum of the sum of the payment source digital currency string set and the payment amount difference.

在本发明中,管理端在废除来源币字串,生成去向币字串的同时,还对支付来源数字货币字串集内的数字货币字串、支付去向数字货币字串、找零数字货币字串的字段信息以及其他数字货币转换的交易明细信息进行记录。管理端数字货币系统通过记录的数字货币字串的字段信息可以实现对于每一个数字货币字串的追踪和管理,从而使得数字货币字串的流通满足实际货币的能够被监管的要求。In the present invention, while abolishing the source currency string and generating the destination currency string, the management terminal also checks the digital currency string, payment destination digital currency string, and change digital currency string in the payment source digital currency string set. String field information and other digital currency conversion transaction details are recorded. The digital currency system on the management side can track and manage each digital currency string through the field information of the recorded digital currency string, so that the circulation of digital currency strings can meet the requirements of actual currency that can be supervised.

并且,管理端可以基于记录的数字货币字串的所有者标识字段信息,建立所有者标识与真实用户的对应关系。在应用过程中,可以将数字货币字串的所有者标识配置为关联信息,该关联信息在数字货币系统前台是匿名的,而数字货币系统后台能够通过该关联信息找到所有者标识对应的实名,从而在保护数字货币持有者的隐私的同时,能够实现对于数字货币的追溯,管理端后台能够对数字货币字串的流通过程进行实名追踪,这有助于满足货币当局监管要求,打击违法犯罪活动,保护用户权益。Moreover, the management terminal can establish the correspondence between the owner ID and the real user based on the owner ID field information of the recorded digital currency string. During the application process, the owner ID of the digital currency string can be configured as associated information. This associated information is anonymous in the front end of the digital currency system, and the background of the digital currency system can find the real name corresponding to the owner ID through the associated information. In this way, while protecting the privacy of digital currency holders, the traceability of digital currency can be realized, and the background of the management terminal can track the circulation process of digital currency strings with real names, which helps to meet the regulatory requirements of monetary authorities and crack down on crimes Activities to protect the rights and interests of users.

本发明实施例提供的数字货币的流通方法,以数字货币字串作为基础,实现了数字货币的流通,该数字货币的流通方法能够满足实际货币流通的要求。数字货币字串持有者可以仅凭数字货币字串本身的字段信息就可以进行确权,而无需对过往的收付款交易进行汇总,提高了数字货币流通的处理效率。在该方法中,数字货币的流通表现为数字货币字串的转换,在交易过程中可以显著的区分来源币字串和去向币字串,通过交易将来源币字串和去向币字串关联起来,解决现有虚拟货币的流通只有交易没有币的问题,并且所有数字货币字串的转换都要通过管理端数字货币系统来进行,将来源币字串作废产生新的去向币字串,从而使得货币当局能够更好监管货币流通。并且,通过数字货币字串的信息结构结合对于数字货币字串配置的流通协议和合约,使数字货币在应用方面具有极强的可扩展性,使其在货币流通中起到的作用远超现有虚拟货币。The circulation method of digital currency provided by the embodiment of the present invention is based on the digital currency string to realize the circulation of digital currency, and the circulation method of digital currency can meet the requirements of actual currency circulation. Holders of digital currency strings can confirm their rights only based on the field information of the digital currency string itself, without summarizing past receipt and payment transactions, which improves the processing efficiency of digital currency circulation. In this method, the circulation of digital currency is represented by the conversion of digital currency strings. During the transaction process, the source currency string and the destination currency string can be clearly distinguished, and the source currency string and the destination currency string are associated through the transaction. , to solve the problem that the current circulation of virtual currency only has transactions without coins, and all conversions of digital currency strings must be carried out through the digital currency system on the management side, and the source currency strings are invalidated to generate new destination currency strings, so that Monetary authorities can better regulate currency circulation. Moreover, through the combination of the information structure of the digital currency string and the circulation agreement and contract for the configuration of the digital currency string, the application of the digital currency is extremely scalable, and its role in currency circulation far exceeds that of the current currency. There is virtual currency.

本发明实施例还提供一种数字货币的流通系统,如图4所示,该系统包括:付款端500、管理端600和收款端700。该系统的实现可以采用集中式系统架构,也可以采用分布式系统架构。The embodiment of the present invention also provides a digital currency circulation system, as shown in FIG. 4 , the system includes: a payment terminal 500 , a management terminal 600 and a payment terminal 700 . The realization of the system can adopt a centralized system architecture or a distributed system architecture.

其中,如图4和图5所示,付款端500包括:货币选择模块501和第一发送模块502。管理端600包括:接收模块601、作废登记模块602、货币生成模块603、第二发送模块604、找零生成模块605、第三发送模块606以及信息记录模块607。Wherein, as shown in FIG. 4 and FIG. 5 , the payment terminal 500 includes: a currency selection module 501 and a first sending module 502 . The management terminal 600 includes: a receiving module 601 , an invalid registration module 602 , a currency generating module 603 , a second sending module 604 , a change generating module 605 , a third sending module 606 and an information recording module 607 .

货币选择模块501用于依据付款金额和预定义的匹配策略从数字货币保管箱中选择数字货币字串,然后组成支付来源数字货币字串集。数字货币字串具有:金额字段和所有者标识字段,数字货币保管箱中存放有一个或多个所有者标识为付款端的数字货币字串。The currency selection module 501 is used to select a digital currency string from the digital currency safe deposit box according to the payment amount and a predefined matching strategy, and then form a payment source digital currency string set. The digital currency string has: an amount field and an owner identification field, and one or more digital currency strings identified by the owner as the payment terminal are stored in the digital currency safe deposit box.

在本发明中,可选的,货币选择模块501进一步用于将付款端数字货币保管箱中的数字货币字串按照金额由大到小进行排序,在排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于付款金额,然后将该组合得到的数字货币字串作为支付来源数字货币字串集。In the present invention, optionally, the currency selection module 501 is further used to sort the digital currency strings in the digital currency safe deposit box at the payment terminal according to the amount from large to small, and select the digital currency strings in sequence in the sorting and then combine them , until the total amount of the combined digital currency strings is greater than or equal to the payment amount, and then the combined digital currency strings are used as the payment source digital currency string set.

在本发明中,可选的,货币选择模块501进一步用于将付款端数字货币保管箱中的数字货币字串按照金额由小到大进行排序,在排序中依次选出数字货币字串然后组合,直至组合得到的数字货币字串的金额总和大于等于付款金额,然后将该组合得到的数字货币字串作为支付来源数字货币字串集。In the present invention, optionally, the currency selection module 501 is further used to sort the digital currency strings in the digital currency safe deposit box at the payment end according to the amount from small to large, and select the digital currency strings in sequence in the sorting and then combine them , until the total amount of the combined digital currency strings is greater than or equal to the payment amount, and then the combined digital currency strings are used as the payment source digital currency string set.

在本发明中,可选的,货币选择模块501进一步用于在数字货币保管箱中的金额总和不少于付款金额的所有数字货币字串组合中,搜索与付款金额差额最小的数字货币字串组合作为支付来源数字货币字串集。In the present invention, optionally, the currency selection module 501 is further used to search for the digital currency string with the smallest difference from the payment amount among all combinations of digital currency strings in which the sum of the amounts in the digital currency safe deposit box is not less than the payment amount Combination as payment source digital currency string set.

第一发送模块502用于将支付来源数字货币字串集发送给管理端。The first sending module 502 is used to send the payment source digital currency string set to the management terminal.

在本发明中,管理端600可以由数字货币发行机构通过数字货币系统来实现,在管理端600中,接收模块601用于接收付款端发送的支付来源数字货币字串集。In the present invention, the management terminal 600 can be realized by the digital currency issuing institution through the digital currency system. In the management terminal 600, the receiving module 601 is used to receive the payment source digital currency string set sent by the payment terminal.

作废登记模块602用于将支付来源数字货币字串集中的数字货币字串登记为作废状态。管理端600中可以设置并维护有一个登记中心,用来保存所有数字货币字串的登记信息以及数字货币字串的字串信息。用户可以通过登记中心来辨别真伪、查询验证数字货币字串的所有权。在具体的应用环境下,可以配置为任何用户都可以查询数字货币真伪,但其所有者和金额信息查询必须得到所有者授权。The invalidation registration module 602 is used to register the digital currency strings in the payment source digital currency string set as invalidated. A registration center can be set and maintained in the management terminal 600 to store the registration information of all digital currency strings and the string information of digital currency strings. Users can identify the authenticity, query and verify the ownership of digital currency strings through the registration center. In a specific application environment, it can be configured that any user can query the authenticity of the digital currency, but the owner and amount information query must be authorized by the owner.

货币生成模块603用于根据付款金额生成支付去向数字货币字串,支付去向数字货币字串的金额为付款金额,所有者标识为收款端。The currency generation module 603 is used to generate a payment destination digital currency string according to the payment amount, the amount of the payment destination digital currency string is the payment amount, and the owner is identified as the payee.

第二发送模块604用于将支付去向数字货币字串发送给收款端。The second sending module 604 is used for sending the payment destination digital currency string to the payee.

找零生成模块605用于根据支付来源数字货币字串集以及付款金额生成所有者标识为付款端的找零数字货币字串,找零数字货币字串的金额为支付来源数字货币字串集的金额总和与付款金额的差值。The change generation module 605 is used to generate a change digital currency string identified by the owner as the payment terminal according to the payment source digital currency string set and the payment amount, and the amount of the change digital currency string is the amount of the payment source digital currency string set The difference between the sum and the payment amount.

第三发送模块606用于将找零数字货币字串发送给付款端。The third sending module 606 is used for sending the change digital currency string to the payment terminal.

信息记录模块607用于对支付来源数字货币字串集内的数字货币字串、支付去向数字货币字串、找零数字货币字串的字段信息以及其他数字货币转换的交易明细信息进行记录。记录的信息可以保存在管理端600中设置的登记中心。The information recording module 607 is used to record the digital currency strings in the payment source digital currency string set, the payment destination digital currency string, the field information of the change digital currency string and other transaction details of digital currency conversion. The recorded information can be saved in the registration center set in the management terminal 600 .

本发明实施例提供的数字货币的流通系统,以数字货币字串作为基础,实现了数字货币的流通,该数字货币的流通方法能够满足实际货币流通的要求。在该方法中,数字货币的流通表现为数字货币字串的转换,在交易过程中可以显著的区分来源币字串和去向币字串,通过交易将来源币字串和去向币字串关联起来,解决现有虚拟数字货币的流通只有交易没有币的问题,并且所有数字货币字串的转换都要通过管理端数字货币系统来进行,将来源币字串作废产生新的去向币字串,从而使得货币当局能够更好监管货币流通。并且,通过数字货币字串的信息结构结合对于数字货币字串配置的流通协议和合约,使数字货币在应用方面具有极强的可扩展性,使其在货币流通中起到的作用远超现有虚拟货币。The circulation system of the digital currency provided by the embodiment of the present invention is based on the digital currency string to realize the circulation of the digital currency, and the circulation method of the digital currency can meet the requirements of the actual currency circulation. In this method, the circulation of digital currency is represented by the conversion of digital currency strings. During the transaction process, the source currency string and the destination currency string can be clearly distinguished, and the source currency string and the destination currency string are associated through the transaction. , to solve the problem that the current circulation of virtual digital currency only has transactions without coins, and all digital currency string conversions must be carried out through the management-side digital currency system, and the source currency string is invalidated to generate a new destination currency string, thereby This enables monetary authorities to better monitor currency circulation. Moreover, through the combination of the information structure of the digital currency string and the circulation agreement and contract for the configuration of the digital currency string, the application of the digital currency is extremely scalable, and its role in currency circulation far exceeds that of the current currency. There is virtual currency.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementation methods do not constitute a limitation to the protection scope of the present invention. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (14)

1. a kind of circulation method of digital cash, it is characterised in that including:
Payment end selects digital goods according to Payment Amount and predefined matching strategy from the digital cash safe deposit box at payment end Coin word string, then composition pays source digital cash word string collection, then payment source digital cash word string collection is sent into management End, the digital cash word string has:In amount field and owner's identification field, the digital cash safe deposit box at the payment end Deposit the digital cash word string for there are one or more owners to be designated payment end;
The digital cash word string for paying digital cash word string concentration of originating is registered as cancel status by management end, then basis The Payment Amount generation pays whereabouts digital cash word string, and the payment whereabouts digital cash word string is sent into gathering End, the amount of money for paying whereabouts digital cash word string is the Payment Amount, and the owner is designated gathering end.
2. according to the method described in claim 1, it is characterised in that
The matching strategy is minimum coin string strategy;
The payment end selects number according to Payment Amount and predefined matching strategy from the digital cash safe deposit box at payment end Word currency word string, the step of then composition pays source digital cash word string collection includes:
Digital cash word string in end digital cash safe deposit box of paying the bill is ranked up according to the amount of money is descending;
Digital cash word string and then combination are selected successively in the sequence, until the amount of money for the digital cash word string that combination is obtained Summation is more than or equal to the Payment Amount, and the digital cash word string for then obtaining the combination pays the digital goods in source as described Coin word string collection.
3. according to the method described in claim 1, it is characterised in that
The matching strategy is most coin string strategies;
The payment end selects number according to Payment Amount and predefined matching strategy from the digital cash safe deposit box at payment end Word currency word string, the step of then composition pays source digital cash word string collection includes:
Digital cash word string in end digital cash safe deposit box of paying the bill is ranked up according to the amount of money is ascending;
Digital cash word string and then combination are selected successively in the sequence, until the amount of money for the digital cash word string that combination is obtained Summation is more than or equal to the Payment Amount, and the digital cash word string for then obtaining the combination pays the digital goods in source as described Coin word string collection.
4. according to the method described in claim 1, it is characterised in that
The matching strategy is minimum difference strategy;
The payment end selects number according to Payment Amount and predefined matching strategy from the digital cash safe deposit box at payment end Word currency word string, the step of then composition pays source digital cash word string collection includes:
Amount of money summation in the digital cash safe deposit box is searched no less than in all digital cash word strings combination of Payment Amount The rope digital cash word string minimum with Payment Amount difference is combined pays digital cash word string collection of originating as described.
5. the method according to any one of Claims 1-4, it is characterised in that pay source numeral by described in management end The digital cash word string that currency word string is concentrated is registered as after cancel status, in addition to:
Management end is designated payment according to the payment source digital cash word string collection and the Payment Amount generation owner The small change digital cash word string at end, is then sent to payment end, the small change digital cash by the small change digital cash word string The amount of money of word string is the amount of money summation and the difference of the Payment Amount for paying source digital cash word string collection.
6. method according to claim 5, it is characterised in that also include:
The management end is to the digital cash word string paid in the digital cash word string collection of source, the digital goods of the payment whereabouts The field information of coin word string and the small change digital cash word string is recorded.
7. a kind of circulation device of digital cash, it is characterised in that including:
Currency selecting module, for selecting numeral from digital cash safe deposit box according to Payment Amount and predefined matching strategy Currency word string, then constitutes and pays source digital cash word string collection, and the digital cash word string has:Amount field and the owner The digital cash word for there are one or more owners to be designated payment end is deposited in identification field, the digital cash safe deposit box String;
First sending module, for the digital cash word string collection of originating that pays to be sent into management end, wherein, management end is by institute The digital cash word string for stating payment source digital cash word string concentration is registered as cancel status, is then given birth to according to the Payment Amount Gathering end is sent into payment whereabouts digital cash word string, and by the payment whereabouts digital cash word string, the payment is gone It is the Payment Amount to the amount of money of digital cash word string, the owner is designated gathering end.
8. device according to claim 7, it is characterised in that the currency selecting module is further used for end number of paying the bill Digital cash word string in word currency safe deposit box is ranked up according to the amount of money is descending, and numeral is selected successively in the sequence Currency word string and then combination, until the amount of money summation for the digital cash word string that combination is obtained is more than or equal to the Payment Amount, so The digital cash word string that the combination is obtained afterwards pays source digital cash word string collection as described.
9. device according to claim 7, it is characterised in that the currency selecting module is further used for end number of paying the bill Digital cash word string in word currency safe deposit box is ranked up according to the amount of money is ascending, and numeral is selected successively in the sequence Currency word string and then combination, until the amount of money summation for the digital cash word string that combination is obtained is more than or equal to the Payment Amount, so The digital cash word string that the combination is obtained afterwards pays source digital cash word string collection as described.
10. device according to claim 7, it is characterised in that the currency selecting module is further used in the number Amount of money summation in word currency safe deposit box is searched for and Payment Amount no less than in all digital cash word strings combination of Payment Amount The minimum digital cash word string combination of difference pays digital cash word string collection of originating as described.
11. a kind of circulation device of digital cash, it is characterised in that including:
Receiving module, for receiving the payment source digital cash word string collection that payment end is sent, wherein, payment end is according to payment gold Volume and predefined matching strategy select digital cash word string from the digital cash safe deposit box at payment end, and then composition, which is paid, comes Source digital cash word string collection, the digital cash word string has:Amount field and owner's identification field, the number at the payment end The digital cash word string for there are one or more owners to be designated payment end is deposited in word currency safe deposit box;
Calcellation Registration Module, for the digital cash word string for paying digital cash word string concentration of originating to be registered as into calcellation shape State;
Currency generation module, for paying whereabouts digital cash word string, the payment whereabouts number according to Payment Amount generation The amount of money of word currency word string is the Payment Amount, and the owner is designated gathering end;
Second sending module, for the payment whereabouts digital cash word string to be sent into gathering end.
12. device according to claim 11, it is characterised in that also include:Small change generation module and the 3rd sending module;
Small change generation module is used to pay originate digital cash word string collection and the Payment Amount generation owner according to described The small change digital cash word string at payment end is designated, the amount of money of the small change digital cash word string pays the digital goods in source to be described The amount of money summation of coin word string collection and the difference of the Payment Amount;
3rd sending module is used to the small change digital cash word string being sent to payment end.
13. device according to claim 12, it is characterised in that also include:Information logging modle, for being paid to described The digital goods of digital cash word string, the payment whereabouts digital cash word string and the small change originated in digital cash word string collection The field information of coin word string is recorded.
14. be stored with computer instruction, its feature in a kind of computer-readable recording medium, the computer-readable recording medium It is, the computer instruction can be run by computer or computer system, so that the computer or computer system energy Enough perform claims require the method any one of 1-6.
CN201710495071.7A 2017-06-26 2017-06-26 Digital currency circulation method and device Active CN107330692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495071.7A CN107330692B (en) 2017-06-26 2017-06-26 Digital currency circulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495071.7A CN107330692B (en) 2017-06-26 2017-06-26 Digital currency circulation method and device

Publications (2)

Publication Number Publication Date
CN107330692A true CN107330692A (en) 2017-11-07
CN107330692B CN107330692B (en) 2022-05-24

Family

ID=60194243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495071.7A Active CN107330692B (en) 2017-06-26 2017-06-26 Digital currency circulation method and device

Country Status (1)

Country Link
CN (1) CN107330692B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229954A (en) * 2017-12-28 2018-06-29 中国人民银行数字货币研究所 It is a kind of that coin method and system is deposited based on digital cash wallet
CN109102281A (en) * 2018-07-31 2018-12-28 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109118218A (en) * 2018-07-31 2019-01-01 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109242482A (en) * 2018-07-31 2019-01-18 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109272403A (en) * 2018-07-31 2019-01-25 北京比特大陆科技有限公司 Method and device for supporting digital currency transaction
CN111553791A (en) * 2019-11-29 2020-08-18 上海十进制网络信息科技有限公司 Digital cash object currency, method, system, device and storage medium for generating same
CN111612440A (en) * 2020-03-11 2020-09-01 上海十进制网络信息科技有限公司 Digital currency circulation method, device, server and readable storage medium
WO2020243961A1 (en) * 2019-06-06 2020-12-10 海付移通科技香港有限公司 Aggregated payment method and system for digital currencies, and edge server
CN112633876A (en) * 2021-01-05 2021-04-09 天地融科技股份有限公司 Hardware wallet digital currency selection method and hardware wallet
CN112633877A (en) * 2021-01-05 2021-04-09 天地融科技股份有限公司 Hardware wallet digital currency selection method and hardware wallet
CN112950195A (en) * 2021-02-26 2021-06-11 北京极智数仓科技有限公司 Digital currency off-line payment method, system, storage medium and payment terminal
CN113191894A (en) * 2019-10-23 2021-07-30 中国人民银行数字货币研究所 Method and device for executing digital currency transaction and electronic equipment
CN113269649A (en) * 2021-06-16 2021-08-17 上海势炎信息科技有限公司 System and method for tracking digital currency
CN113850586A (en) * 2021-09-30 2021-12-28 中国人民银行数字货币研究所 A method, device and system for positioning payment based on Internet of Vehicles
CN115222400A (en) * 2021-04-16 2022-10-21 中国人民银行数字货币研究所 A digital currency payment method, device and system
CN116318760A (en) * 2022-09-09 2023-06-23 广州玉明科技有限公司 A security detection method and cloud computing device based on blockchain and digital currency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147901A (en) * 2011-05-14 2011-08-10 张连成 Monetary asset networked operating technology and operating method
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106779696A (en) * 2016-11-29 2017-05-31 南相浩 A kind of digital bank and digital cash and method of payment based on CPK

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147901A (en) * 2011-05-14 2011-08-10 张连成 Monetary asset networked operating technology and operating method
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106779696A (en) * 2016-11-29 2017-05-31 南相浩 A kind of digital bank and digital cash and method of payment based on CPK

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘向民: "央行发行数字货币的法律问题", 《中国金融》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229954A (en) * 2017-12-28 2018-06-29 中国人民银行数字货币研究所 It is a kind of that coin method and system is deposited based on digital cash wallet
CN109102281A (en) * 2018-07-31 2018-12-28 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109118218A (en) * 2018-07-31 2019-01-01 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109242482A (en) * 2018-07-31 2019-01-18 北京比特大陆科技有限公司 A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109272403A (en) * 2018-07-31 2019-01-25 北京比特大陆科技有限公司 Method and device for supporting digital currency transaction
WO2020243961A1 (en) * 2019-06-06 2020-12-10 海付移通科技香港有限公司 Aggregated payment method and system for digital currencies, and edge server
CN113191894A (en) * 2019-10-23 2021-07-30 中国人民银行数字货币研究所 Method and device for executing digital currency transaction and electronic equipment
CN111553791A (en) * 2019-11-29 2020-08-18 上海十进制网络信息科技有限公司 Digital cash object currency, method, system, device and storage medium for generating same
CN111553791B (en) * 2019-11-29 2023-08-04 上海十进制网络信息科技有限公司 Digital cash object currency and method, system, device and storage medium for generating the same
CN111612440A (en) * 2020-03-11 2020-09-01 上海十进制网络信息科技有限公司 Digital currency circulation method, device, server and readable storage medium
CN111612440B (en) * 2020-03-11 2024-03-12 上海十进制网络信息科技有限公司 Method and device for circulating digital currency, server and readable storage medium
WO2022148200A1 (en) * 2021-01-05 2022-07-14 天地融科技股份有限公司 Hardware wallet digital currency selection method and hardware wallet
WO2022148199A1 (en) * 2021-01-05 2022-07-14 天地融科技股份有限公司 Method for selecting digital currency in hardware wallet and hardware wallet
CN112633877A (en) * 2021-01-05 2021-04-09 天地融科技股份有限公司 Hardware wallet digital currency selection method and hardware wallet
CN112633876A (en) * 2021-01-05 2021-04-09 天地融科技股份有限公司 Hardware wallet digital currency selection method and hardware wallet
CN112633876B (en) * 2021-01-05 2024-12-17 天地融科技股份有限公司 Digital currency selecting method for hardware wallet and hardware wallet
CN112950195A (en) * 2021-02-26 2021-06-11 北京极智数仓科技有限公司 Digital currency off-line payment method, system, storage medium and payment terminal
CN115222400A (en) * 2021-04-16 2022-10-21 中国人民银行数字货币研究所 A digital currency payment method, device and system
CN113269649A (en) * 2021-06-16 2021-08-17 上海势炎信息科技有限公司 System and method for tracking digital currency
CN113850586A (en) * 2021-09-30 2021-12-28 中国人民银行数字货币研究所 A method, device and system for positioning payment based on Internet of Vehicles
CN116318760A (en) * 2022-09-09 2023-06-23 广州玉明科技有限公司 A security detection method and cloud computing device based on blockchain and digital currency
CN116318760B (en) * 2022-09-09 2024-11-19 广州玉明科技有限公司 A security detection method based on blockchain and digital currency

Also Published As

Publication number Publication date
CN107330692B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN107330692A (en) The circulation method and device of digital cash
JP7535362B2 (en) COMPUTER-IMPLEMENTED METHOD AND SYSTEM FOR VERIFYING TOKENS FOR BLOCKCHAIN-BASED CRYPTOCURRENCY
US11669831B2 (en) Tokenized asset backed by government bonds and identity and risk scoring of associated token transactions
US12388619B2 (en) System and method for authorizing transactions in an authorized member network
US11475420B2 (en) System and method for true peer-to-peer automatic teller machine transactions using mobile device payment systems
KR101950912B1 (en) Verification system and method for transaction based block chain
JP2023068041A (en) Blockchain-based universal tokenisation system
CN107392580B (en) A method and system for realizing digital currency exchange deposit based on digital currency
US20200099512A1 (en) System and method for security gateway for high security blockchain systems
JP5186790B2 (en) Electronic money transaction method and electronic money system
US11042804B2 (en) System and method for providing security gateways for high security blockchain systems
US11972432B2 (en) Risk determination enabled crypto currency transaction system
CN107358436B (en) Method and system for accessing authenticated digital currency wallet payment through bank account
CN107369009A (en) The method of payment and payment system of digital cash
US20200153793A1 (en) Security gateway for high security blockchain systems
US20230013074A1 (en) System and method for true peer-to-peer automatic teller machine transactions using mobile device payment systems
CN111667270A (en) Region-based digital currency using method and device and electronic equipment
CN107330691A (en) The method and system that a kind of digital cash wallet is paid
CN111667273A (en) Digital currency using method and device based on region and main body and electronic equipment
WO2020113139A1 (en) System and method for security gateway for high security blockchain systems
CN111667271A (en) Digital currency using method and device based on region and time and electronic equipment
Shiny Duela et al. Decentralized payment architecture for E-Commerce and utility transactions with government verified identities
CN111667272A (en) Digital currency using method and device based on region and interest rate and electronic equipment
HK1254071A1 (en) Systems and methods of secure provenance for distributed transaction databases

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant