Nothing Special   »   [go: up one dir, main page]

CN107330783A - A kind of method and system for handling digital cash - Google Patents

A kind of method and system for handling digital cash Download PDF

Info

Publication number
CN107330783A
CN107330783A CN201710494521.0A CN201710494521A CN107330783A CN 107330783 A CN107330783 A CN 107330783A CN 201710494521 A CN201710494521 A CN 201710494521A CN 107330783 A CN107330783 A CN 107330783A
Authority
CN
China
Prior art keywords
digital currency
operation information
information
parsed
computer
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.)
Pending
Application number
CN201710494521.0A
Other languages
Chinese (zh)
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 CN201710494521.0A priority Critical patent/CN107330783A/en
Publication of CN107330783A publication Critical patent/CN107330783A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明提供一种处理数字货币的方法和系统,该方法包括:接收由数字货币核心系统发送的数字货币的操作信息;解析所述操作信息;将解析后的操作信息存储在各个网络节点对应的数据库中。该方法能够分布式存储数字货币的操作信息,并且保证数据在分布式环境中的一致性和可靠性,使得数字货币服务应用方便的横向扩展,满足大规模负载场景下的使用。

The present invention provides a method and system for processing digital currency. The method includes: receiving digital currency operation information sent by the digital currency core system; parsing the operation information; storing the parsed operation information in corresponding network nodes in the database. This method can store digital currency operation information in a distributed manner, and ensure the consistency and reliability of the data in a distributed environment, so that the digital currency service application can be conveniently expanded horizontally to meet the use in large-scale load scenarios.

Description

一种处理数字货币的方法和系统A method and system for handling digital currency

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种处理数字货币的方法和系统。The invention relates to the field of computer technology, in particular to a method and system for processing digital currency.

背景技术Background technique

数字货币是由一系列字符串表示的法定货币,其中数字货币的安全性通过密码学算法进行保护。目前,一般认为数字货币是由中央银行发行或中央银行授权发行的,以代表具体金额的加密数字串为表现形式的法定货币,包括数字货币的金额、发行方标识和所有者标识。数字货币构建在现今成熟的计算机技术和互联网技术的平台之上,现今由作为数字货币核心系统的中央银行发行并进入流通领域。Digital currency is a legal currency represented by a series of strings, and the security of digital currency is protected by cryptographic algorithms. At present, it is generally believed that digital currency is issued by the central bank or authorized by the central bank. It is a legal tender in the form of an encrypted digital string representing a specific amount, including the amount of digital currency, the identifier of the issuer, and the identifier of the owner. Digital currency is built on the platform of today's mature computer technology and Internet technology, and is now issued by the central bank as the core system of digital currency and enters the field of circulation.

数字货币核心系统的登记中心,采用集中式数据库存储数字货币的信息,只能为银行或其他非银机构提供数字货币查询服务,且主要为货币总量等统计信息的查询服务。在现实生活中,公众对货币的验真需求是一种很普遍的个人行为。但是,由于数字货币核心系统采用的是集中式存储数字货币的操作信息,出于安全和性能的考虑,数字货币核心系统不能为公众提供即时的验钞确权服务,进而无法满足个人验证数字货币真伪的需求。The registration center of the digital currency core system uses a centralized database to store digital currency information, and can only provide digital currency query services for banks or other non-bank institutions, and mainly for statistical information such as the total amount of currency. In real life, the public's demand for currency verification is a very common behavior. However, since the digital currency core system uses centralized storage of digital currency operation information, due to security and performance considerations, the digital currency core system cannot provide the public with instant banknote verification and confirmation services, and thus cannot meet the requirements of personal verification of digital currency. Authenticity needs.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种处理数字货币的方法和系统,能够分布式存储数字货币的操作信息,并且保证数据在分布式环境中的一致性和可靠性,使得应用方便的横向扩展,满足大规模负载场景下的使用。In view of this, the embodiment of the present invention provides a method and system for processing digital currency, which can store the operation information of digital currency in a distributed manner, and ensure the consistency and reliability of data in a distributed environment, so that the application can be conveniently expanded horizontally , to meet the use in large-scale load scenarios.

为实现上述目的,根据本发明实施例的一个方面,提供了一种处理数字货币的方法。To achieve the above purpose, according to an aspect of the embodiments of the present invention, a method for processing digital currency is provided.

本发明实施例的一种处理数字货币的方法包括:接收由数字货币核心系统发送的数字货币的操作信息;解析所述操作信息;将解析后的操作信息存储在各个网络节点对应的数据库中。A method for processing digital currency in an embodiment of the present invention includes: receiving digital currency operation information sent by the digital currency core system; parsing the operation information; and storing the parsed operation information in a database corresponding to each network node.

可选地,本发明实施例的一种处理数字货币的方法还包括:在将解析后的操作信息存储在各个网络节点对应的数据库中之后,接收验证数字货币的请求,根据所述请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。Optionally, a method for processing digital currency in an embodiment of the present invention further includes: after storing the parsed operation information in a database corresponding to each network node, receiving a request for verifying digital currency, and registering the digital currency in the database according to the request Find the operation information of the corresponding digital currency in , and return the verification result after comparison and verification.

可选地,所述将解析后的操作信息存储在各个网络节点对应的数据库中包括:将解析后的信息写入其中一个网络节点;通过分布式账本技术将所述写入其中一个网络节点的信息,同步到其他各个网络节点对应的数据库中。Optionally, the storing the parsed operation information in the database corresponding to each network node includes: writing the parsed information into one of the network nodes; The information is synchronized to the corresponding databases of other network nodes.

可选地,本发明实施例的一种处理数字货币的方法还包括:在将解析后的操作信息存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;并且将所述消息队列报文发送给数字货币核心系统。Optionally, a method for processing digital currency in an embodiment of the present invention further includes: after storing the parsed operation information in a database corresponding to each network node, composing the stored status information into a message queue message; and The message queue message is sent to the digital currency core system.

可选地,所述操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。Optionally, the operation information includes: issued digital currency, instruction information for destroying digital currency, or digital currency map.

可选地,所述数字货币是加密字串,所述加密字串包括所述数字货币的金额、发行方标识和所有者标识。Optionally, the digital currency is an encrypted string, and the encrypted string includes the amount of the digital currency, an issuer ID, and an owner ID.

根据本发明实施例的另一方面,提供了一种处理数字货币的系统。According to another aspect of the embodiments of the present invention, a system for processing digital currency is provided.

本发明实施例的一种处理数字货币的系统包括:接收模块,用于接收由数字货币核心系统发送的数字货币的操作信息;解析模块,用于解析所述操作信息;存储模块,用于将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中。A system for processing digital currency in an embodiment of the present invention includes: a receiving module for receiving digital currency operation information sent by the digital currency core system; an analysis module for analyzing the operation information; a storage module for storing The parsed operation information is distributed and stored in the database corresponding to each network node.

可选地,本发明实施例的一种处理数字货币的系统还包括:验证模块,用于接收验证数字货币的请求,根据所述请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。Optionally, a system for processing digital currency in an embodiment of the present invention further includes: a verification module, configured to receive a request for verifying digital currency, and search the database for corresponding operation information of digital currency according to the request for comparison After verification, return the verification result.

可选地,所述存储模块将解析后的信息写入其中一个网络节点;以及,通过分布式账本技术将所述写入其中一个网络节点的信息,同步到其他各个网络节点对应的数据库中。Optionally, the storage module writes the parsed information into one of the network nodes; and, through distributed ledger technology, synchronizes the information written into one of the network nodes to databases corresponding to other network nodes.

可选地,本发明实施例的一种处理数字货币的系统还包括:反馈模块,用于在将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;以及,将所述消息队列报文发送给数字货币核心系统。Optionally, a system for processing digital currency in an embodiment of the present invention further includes: a feedback module, configured to store the parsed operation information in databases corresponding to each network node in a distributed manner, and store the stored status information forming a message queue message; and sending the message queue message to the digital currency core system.

可选地,所述操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。Optionally, the operation information includes: issued digital currency, instruction information for destroying digital currency, or digital currency map.

可选地,所述数字货币是加密字串,所述加密字串包括所述数字货币的金额、发行方标识和所有者标识。Optionally, the digital currency is an encrypted string, and the encrypted string includes the amount of the digital currency, an issuer ID, and an owner ID.

根据本发明实施例的再一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,其特征在于,所述计算机指令能够被计算机或计算机系统运行,从而使该计算机或计算机系统能够执行上述处理数字货币的方法中任一项所述的方法。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, and computer instructions are stored in the computer-readable storage medium, wherein the computer instructions can be executed by a computer or a computer system, thereby Enabling the computer or computer system to perform any of the methods described above for processing digital currency.

上述发明中的一个实施例具有如下优点或有益效果:因为采用分布式存储数字货币的操作信息的技术手段,所以克服了集中式存储不能面向公众个人进行数字货币服务。另外,利用分布式账本技术对数字货币操作信息进行分布式存储,可以承载集中式系统难以负担的访问和计算压力,为公众提供服务。用户则通过Web应用随时随地进行数字货币的验证,更有利于数字货币在公众的流通。An embodiment of the above invention has the following advantages or beneficial effects: because the technical means of distributed storage of digital currency operation information is adopted, it overcomes the inability of centralized storage to provide digital currency services to the public and individuals. In addition, the use of distributed ledger technology for distributed storage of digital currency operation information can bear the burden of access and computing pressure that centralized systems cannot bear, and provide services for the public. Users can verify digital currency anytime and anywhere through web applications, which is more conducive to the circulation of digital currency in the public.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。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 diagram of main steps of a method for processing digital currency according to an embodiment of the present invention;

图2是根据本发明实施例的一种处理数字货币的方法的时序图;Fig. 2 is a sequence diagram of a method for processing digital currency according to an embodiment of the present invention;

图3是根据本发明实施例的一种处理数字货币的系统主要模块图。Fig. 3 is a main block diagram of a system for processing digital currency according to 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是根据本发明实施例的一种处理数字货币的方法的主要步骤图。如图1所示,本发明实施例的一种处理数字货币的方法主要包括:Fig. 1 is a diagram of main steps of a method for processing digital currency according to an embodiment of the present invention. As shown in Figure 1, a method for processing digital currency in the embodiment of the present invention mainly includes:

S101:接收由数字货币核心系统发送的数字货币的操作信息。数字货币是加密字串,加密字串包括数字货币的金额、发行方标识和所有者标识。数字货币核心系统为数字货币发行的机构,现今中央银行作为数字货币核心系统,通过消息队列将数字货币的操作信息发送到分布式账本平台以进行分布式存储。其中,操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。发行的数字货币即有效的数字货币。销毁数字货币的指令信息可实现将存储的数字货币进行销毁,则用户在验证该数字货币的信息时,会提示数字货币无效。数字货币图谱包括数字货币的交易信息、数字货币的溯源以及生命周期等信息。S101: Receive digital currency operation information sent by the digital currency core system. Digital currency is an encrypted string, and the encrypted string includes the amount of digital currency, the identifier of the issuer, and the identifier of the owner. The digital currency core system is the organization that issues digital currency. Today, the central bank, as the digital currency core system, sends the digital currency operation information to the distributed ledger platform through the message queue for distributed storage. Among them, the operation information includes: issued digital currency, instruction information for destroying digital currency or digital currency map. The issued digital currency is valid digital currency. The instruction information for destroying the digital currency can realize the destruction of the stored digital currency, and when the user verifies the information of the digital currency, it will prompt that the digital currency is invalid. The digital currency graph includes digital currency transaction information, digital currency traceability, and life cycle information.

S102:解析操作信息。接收到的数字货币的操作信息,是由消息队列发送的报文数据,所以接收到之后,对报文数据进行解析操作,进而可通过分布式账本技术将数字货币的操作信息写入各个网络节点。S102: Parse operation information. The operation information of the digital currency received is the message data sent by the message queue, so after receiving it, the message data is analyzed and operated, and then the operation information of the digital currency can be written into each network node through the distributed ledger technology .

S103:将解析后的操作信息存储在各个网络节点对应的数据库中。其中,对数字货币的操作数据的报文数据解析后,将解析后的信息写入其中一个网络节点对应的数据库中,该网络节点不具有唯一性,也可选择其他节点作为首先写入的网络节点。然后该网络节点将写入的信息同步到其他各个网络节点,也就实现了各节点应用数据库的一致性。该同步过程通过分布式账本技术就可实现,通过分布式账本技术,将数字货币的发行、销毁等信息记录在分布式账本上,保证货币数据的不可篡改和可追溯性。并且,分布式账本能够避免单一节点不可用等问题,以及通过增加部署节点数量的方式分担验证确权应用的负载,保证全球范围内的服务可达和可靠。利用分布式账本技术,可以承载集中式系统难以负担的访问和计算压力,为公众个人提供数字货币的相关服务。例如验证等;用户通过Web应用随时随地进行数字货币的验证,更有利于数字货币在公众的流通。S103: Store the parsed operation information in a database corresponding to each network node. Among them, after analyzing the message data of the operation data of the digital currency, the analyzed information is written into the database corresponding to one of the network nodes. This network node is not unique, and other nodes can also be selected as the first written network node. Then the network node synchronizes the written information to other network nodes, which realizes the consistency of the application databases of each node. The synchronization process can be realized through distributed ledger technology. Through distributed ledger technology, information such as the issuance and destruction of digital currency is recorded on the distributed ledger to ensure the immutability and traceability of currency data. Moreover, the distributed ledger can avoid problems such as the unavailability of a single node, and share the load of verification and confirmation applications by increasing the number of deployed nodes to ensure reachable and reliable services on a global scale. Using distributed ledger technology, it can bear the unbearable access and computing pressure of the centralized system, and provide digital currency related services for the public and individuals. For example, verification, etc.; users can verify digital currency anytime and anywhere through web applications, which is more conducive to the circulation of digital currency in the public.

在将解析后的操作信息存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;并且将消息队列报文发送给数字货币核心系统。消息队列是计算机科学中用于信息系统间数据传递的容器,保证消息能够成功可靠地传递。在本发明实施例中,与数字货币核心系统之间进行信息交互也可使用消息队列。After the parsed operation information is stored in the database corresponding to each network node, the stored state information is composed into a message queue message; and the message queue message is sent to the digital currency core system. A message queue is a container for data transfer between information systems in computer science, ensuring that messages can be delivered successfully and reliably. In the embodiment of the present invention, message queues may also be used for information interaction with the digital currency core system.

在上述步骤S103之后,可对存储在各个网络节点中的数字货币的操作信息进行运用,例如用于数字货币的验证确权。在接收验证数字货币的请求后,根据请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。进而,用户在验证数字货币的真伪时,通过Web应用,将发送验证请求,即将需要验证的数字货币输入到Web应用中,Web应用则就近在网路节点的关系型数据库中检索相应信息,如果检索到,则进行对比验证,如果和数据库中的信息一致,返回数字货币为真的验证结果,否则返回为假或无效的验证结果。并且互联网网站技术可以让用户在联网条件下,随时随地访问到所需要的内容。After the above step S103, the operation information of the digital currency stored in each network node can be used, for example, for the verification and confirmation of the digital currency. After receiving the request for verifying the digital currency, the operation information of the corresponding digital currency is searched in the database according to the request, and the verification result is returned after comparison and verification. Furthermore, when the user verifies the authenticity of the digital currency, he will send a verification request through the web application, that is, input the digital currency to be verified into the web application, and the web application will retrieve the corresponding information in the relational database of the nearest network node. If it is retrieved, it will be compared and verified. If it is consistent with the information in the database, the digital currency will be returned as a true verification result, otherwise it will be returned as a false or invalid verification result. And Internet website technology allows users to access the content they need anytime and anywhere under the condition of networking.

图2是根据本发明实施例的一种处理数字货币的方法的时序图。Fig. 2 is a sequence diagram of a method for processing digital currency according to an embodiment of the present invention.

在本发明实施例的一种处理数字货币的方法中,采用区块链技术实现分布式存储,区块链技术是近年来发展的分布式记账技术。如图2所示,数字货币核心系统通过消息队列发送数字货币的操作信息的报文(MQ),报文处理应用对接收到的报文进行解析处理,并写入到区块链,采用区块链技术实现网络节点同步,同时更新网络节点对应的数据库。同步完成之后,将存储状态的信息组成消息队列报文,反馈给数字货币核心系统。进而,用户通过Web应用,使用数字货币的验证确权的服务。In a method for processing digital currency in an embodiment of the present invention, distributed storage is realized by adopting blockchain technology, which is a distributed accounting technology developed in recent years. As shown in Figure 2, the digital currency core system sends digital currency operation information messages (MQ) through the message queue, and the message processing application parses the received messages and writes them into the blockchain. Block chain technology realizes the synchronization of network nodes and updates the corresponding database of network nodes at the same time. After the synchronization is completed, the information of the storage state is composed into a message queue message and fed back to the digital currency core system. Furthermore, the user uses the digital currency verification and confirmation service through the web application.

图3是根据本发明实施例的一种处理数字货币的系统主要模块图。Fig. 3 is a main block diagram of a system for processing digital currency according to an embodiment of the present invention.

如图3所示,本发明实施例的一种处理数字货币的系统300主要包括:接收模块301、解析模块302和存储模块303。其中,接收模块301用于接收由数字货币核心系统发送的数字货币的操作信息,操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。若存储的数字货币信息用于验证真伪时,只需存储在数据库中的存储的有效的数字货币和销毁数字货币的指令信息。数字货币图谱可用于数字货币的回笼、交易等。其中,数字货币是加密字串,加密字串包括数字货币的金额、发行方标识和所有者标识。解析模块302用于解析操作信息;存储模块303用于将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中。并且,存储模块303将解析后的信息写入其中一个网络节点;以及,通过分布式账本技术将写入其中一个网络节点的信息,同步到其他各个网络节点对应的数据库中。As shown in FIG. 3 , a digital currency processing system 300 according to an embodiment of the present invention mainly includes: a receiving module 301 , an analyzing module 302 and a storage module 303 . Wherein, the receiving module 301 is used to receive digital currency operation information sent by the digital currency core system, and the operation information includes: issued digital currency, instruction information for destroying digital currency, or digital currency map. If the stored digital currency information is used to verify the authenticity, it only needs to store the valid digital currency stored in the database and the instruction information for destroying the digital currency. The digital currency map can be used for the withdrawal and transaction of digital currency. Wherein, the digital currency is an encrypted string, and the encrypted string includes the amount of the digital currency, the identifier of the issuer, and the identifier of the owner. The parsing module 302 is used to parse the operation information; the storage module 303 is used to distribute and store the parsed operation information in databases corresponding to each network node. Moreover, the storage module 303 writes the parsed information into one of the network nodes; and, through the distributed ledger technology, synchronizes the information written into one of the network nodes to the corresponding databases of other network nodes.

本发明实施例的一种处理数字货币的系统300还包括验证模块和反馈模块,验证模块用于接收验证数字货币的请求,根据请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。反馈模块用于在将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;以及,将消息队列报文发送给数字货币核心系统。A system 300 for processing digital currency in the embodiment of the present invention also includes a verification module and a feedback module, the verification module is used to receive a request for verifying digital currency, and search the database for the operation information of the corresponding digital currency according to the request, and perform comparison and verification Then return the verification result. The feedback module is used for distributing and storing the parsed operation information in the database corresponding to each network node, and then compose the stored status information into a message queue message; and send the message queue message to the digital currency core system.

本发明实施例的一种处理数字货币的系统在对数字货币处理时,接受模块接收到由数字货币核心系统通过消息队列发送的报文,然后解析模块对报文处理后写入到分布式账本,分布式账本将数字货币的操作进行同步到各个网络节点,实现同步时存储。进而终端用户可通过Web应用对数字货币进行验证确权。以互联网网站为入口,对数字货币进行真伪验证,方便公众用户的使用。并且由于分布式存储的特点,大众用户可通过终端进行实时验证,解决了集中式存储只能针对银行机构和非银机构进行数字货币验证的问题。集中化的数据存储,较容易地保证了数据的一致性,却无法为广大的公众用户提供服务,本发明底层的分布式账本技术,则在保证数据可靠性的同时,采用分摊负载的方式,提升服务容量。In a digital currency processing system according to an embodiment of the present invention, when processing digital currency, the acceptance module receives the message sent by the digital currency core system through the message queue, and then the analysis module processes the message and writes it into the distributed ledger , the distributed ledger synchronizes the operation of digital currency to each network node, and realizes storage during synchronization. Furthermore, end users can verify and confirm the digital currency through the web application. Use the Internet website as the entrance to verify the authenticity of digital currency to facilitate the use of public users. And due to the characteristics of distributed storage, mass users can conduct real-time verification through the terminal, which solves the problem that centralized storage can only conduct digital currency verification for banking institutions and non-bank institutions. Centralized data storage can easily ensure the consistency of data, but it cannot provide services for the general public users. The underlying distributed ledger technology of the present invention adopts a load sharing method while ensuring data reliability. Increase service capacity.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。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 (13)

1.一种处理数字货币的方法,其特征在于,包括:1. A method for processing digital currency, comprising: 接收由数字货币核心系统发送的数字货币的操作信息;Receive digital currency operation information sent by the digital currency core system; 解析所述操作信息;parsing the operation information; 将解析后的操作信息存储在各个网络节点对应的数据库中。The parsed operation information is stored in a database corresponding to each network node. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 在将解析后的操作信息存储在各个网络节点对应的数据库中之后,After the parsed operation information is stored in the database corresponding to each network node, 接收验证数字货币的请求,根据所述请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。Receive the request for verifying the digital currency, search the database for the operation information of the corresponding digital currency according to the request, and return the verification result after comparison and verification. 3.根据权利要求1所述的方法,其特征在于,所述将解析后的操作信息存储在各个网络节点对应的数据库中包括:3. The method according to claim 1, wherein storing the resolved operation information in a database corresponding to each network node comprises: 将解析后的信息写入其中一个网络节点;Write the parsed information to one of the network nodes; 通过分布式账本技术将所述写入其中一个网络节点的信息,同步到其他各个网络节点对应的数据库中。The information written into one of the network nodes is synchronized to the corresponding databases of other network nodes through distributed ledger technology. 4.根据权利要求1或2所述的方法,其特征在于,还包括:4. The method according to claim 1 or 2, further comprising: 在将解析后的操作信息存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;并且After the parsed operation information is stored in the database corresponding to each network node, the stored state information is composed into a message queue message; and 将所述消息队列报文发送给数字货币核心系统。Send the message queue message to the digital currency core system. 5.根据权利要求1或2所述的方法,其特征在于,所述操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。5. The method according to claim 1 or 2, wherein the operation information includes: issued digital currency, instruction information for destroying digital currency, or digital currency map. 6.根据权利要求1或2所述的方法,其特征在于,所述数字货币是加密字串,所述加密字串包括所述数字货币的金额、发行方标识和所有者标识。6. The method according to claim 1 or 2, wherein the digital currency is an encrypted string, and the encrypted string includes the amount of the digital currency, an issuer ID and an owner ID. 7.一种处理数字货币的系统,其特征在于,包括:7. A system for processing digital currency, characterized in that it includes: 接收模块,用于接收由数字货币核心系统发送的数字货币的操作信息;The receiving module is used to receive the digital currency operation information sent by the digital currency core system; 解析模块,用于解析所述操作信息;An analysis module, configured to analyze the operation information; 存储模块,用于将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中。The storage module is used to distribute and store the parsed operation information in databases corresponding to each network node. 8.根据权利要求7所述的系统,其特征在于,还包括:8. The system according to claim 7, further comprising: 验证模块,用于接收验证数字货币的请求,根据所述请求在数据库中查找对应的数字货币的操作信息,进行比对验证后返回验证结果。The verification module is configured to receive a request for verifying the digital currency, search the database for the operation information of the corresponding digital currency according to the request, and return the verification result after comparison and verification. 9.根据权利要求7所述的系统,其特征在于,所述存储模块将解析后的信息写入其中一个网络节点;以及,通过分布式账本技术将所述写入其中一个网络节点的信息,同步到其他各个网络节点对应的数据库中。9. The system according to claim 7, wherein the storage module writes the parsed information into one of the network nodes; and, uses the distributed ledger technology to write the information into one of the network nodes, Synchronized to the corresponding databases of other network nodes. 10.根据权利要求7或8所述的系统,其特征在于,还包括:10. The system according to claim 7 or 8, further comprising: 反馈模块,用于在将解析后的操作信息进行分布式存储在各个网络节点对应的数据库中之后,将存储的状态信息组成消息队列报文;以及,将所述消息队列报文发送给数字货币核心系统。The feedback module is configured to, after distributing and storing the parsed operation information in databases corresponding to each network node, form the stored state information into a message queue message; and send the message queue message to the digital currency core system. 11.根据权利要求7或8所述的系统,其特征在于,所述操作信息包括:发行的数字货币、销毁数字货币的指令信息或数字货币图谱。11. The system according to claim 7 or 8, wherein the operation information includes: issued digital currency, instruction information for destroying digital currency, or digital currency map. 12.根据权利要求7或8所述的系统,其特征在于,所述数字货币是加密字串,所述加密字串包括所述数字货币的金额、发行方标识和所有者标识。12. The system according to claim 7 or 8, wherein the digital currency is an encrypted string, and the encrypted string includes the amount of the digital currency, an issuer ID and an owner ID. 13.一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,其特征在于,所述计算机指令能够被计算机或计算机系统运行,从而使该计算机或计算机系统能够执行权利要求1-6中任一项所述的方法。13. A computer-readable storage medium, wherein computer instructions are stored in the computer-readable storage medium, wherein the computer instructions can be run by a computer or a computer system, so that the computer or computer system can execute the claims The method described in any one of 1-6.
CN201710494521.0A 2017-06-26 2017-06-26 A kind of method and system for handling digital cash Pending CN107330783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710494521.0A CN107330783A (en) 2017-06-26 2017-06-26 A kind of method and system for handling digital cash

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710494521.0A CN107330783A (en) 2017-06-26 2017-06-26 A kind of method and system for handling digital cash

Publications (1)

Publication Number Publication Date
CN107330783A true CN107330783A (en) 2017-11-07

Family

ID=60195203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710494521.0A Pending CN107330783A (en) 2017-06-26 2017-06-26 A kind of method and system for handling digital cash

Country Status (1)

Country Link
CN (1) CN107330783A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117477A (en) * 2015-09-09 2015-12-02 中国人民解放军国防科学技术大学 Self-adaptive and self-feedback system for discovering abnormity of fictitious assets and implementation method
CN105678546A (en) * 2016-01-04 2016-06-15 布比(北京)网络技术有限公司 Digital asset processing method based on distributed shared general ledger

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117477A (en) * 2015-09-09 2015-12-02 中国人民解放军国防科学技术大学 Self-adaptive and self-feedback system for discovering abnormity of fictitious assets and implementation method
CN105678546A (en) * 2016-01-04 2016-06-15 布比(北京)网络技术有限公司 Digital asset processing method based on distributed shared general ledger

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚前: "中国法定数字货币原型构想", 《中国金融》 *

Similar Documents

Publication Publication Date Title
TWI723783B (en) Block chain-based bill real-name receiving method, device and electronic equipment
JP6754495B2 (en) Methods and systems for the protection and verification of identities and certificates via the blockchain
CN112767158B (en) Transaction execution method and device based on blockchain, and electronic device
AU2016378211B2 (en) Method and system for blockchain variant using digital signatures
WO2020258848A1 (en) Method and apparatus for cross-chain transmission of resources
Wei et al. A survey of blockchain data management systems
US11210660B2 (en) Obtaining a blockchain-based, real-name, electronic bill
EP4332870A1 (en) Transaction data processing method and apparatus, computer device and storage medium
CN110503558A (en) A processing method and device based on blockchain system
CN110866755B (en) A method, device and medium for processing bill data
CN109934711A (en) The method and system of external warranty for the transaction of block chain
CN109242500A (en) Block chain transaction validation verification method, apparatus and storage medium
CN109598504A (en) Transaction processing method and device, electronic equipment based on block chain
CN112437922A (en) Distributed data recording
WO2023016164A1 (en) Smart contract-based data processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
KR102139551B1 (en) Method and server for managing testament
WO2023011019A1 (en) Blockchain-based data processing method and apparatus, device, readable storage medium and computer program product
CN112951357B (en) A blockchain-based method for horizontal expansion of virtual medical resources
CN111552991A (en) Block chain transaction method and device
WO2022206438A1 (en) Method and apparatus for providing cross-chain message
Garcia Bringas et al. BlockChain platforms in financial services: current perspective
KR20230044262A (en) blockchain tokens
WO2022206439A1 (en) Method and apparatus for providing cross-chain message
CN107330783A (en) A kind of method and system for handling digital cash
CN110599272A (en) Method for issuing electronic invoice and related product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171107