CN112785433B - Digital currency information recording system, method and storage medium - Google Patents
Digital currency information recording system, method and storage medium Download PDFInfo
- Publication number
- CN112785433B CN112785433B CN202110110568.9A CN202110110568A CN112785433B CN 112785433 B CN112785433 B CN 112785433B CN 202110110568 A CN202110110568 A CN 202110110568A CN 112785433 B CN112785433 B CN 112785433B
- Authority
- CN
- China
- Prior art keywords
- instruction
- sub
- digital currency
- micro
- unit
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012795 verification Methods 0.000 claims description 27
- 238000013515 script Methods 0.000 claims description 26
- 238000000354 decomposition reaction Methods 0.000 claims description 10
- 238000013507 mapping Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract description 4
- 230000004044 response Effects 0.000 abstract description 4
- 230000000875 corresponding effect Effects 0.000 description 41
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 208000033748 Device issues Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/22—Microcontrol or microprogram arrangements
- G06F9/28—Enhancement of operational speed, e.g. by using several microcontrol devices operating in parallel
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a digital currency information recording system, a digital currency information recording method and a digital currency information recording storage medium. The digital currency information recording system has a highly parallelized structure, so that the scale of the system is easily expanded to meet the performance requirement of high concurrency, and on the other hand, the scale of the system is also easily contracted to reasonably save resources; the system internal modules are independent from module to module and from unit to unit, so that the fault can be conveniently detected and processed, and data exchange with users or equipment outside the system is also facilitated; when facing the common task of inquiring the digital currency information, the recording module in the system can independently and directly respond to an external inquiry request without starting the whole micro-service, thereby achieving the effect of quick response. The invention is widely applied to the technical field of digital currency.
Description
Technical Field
The invention relates to the technical field of digital currency, in particular to a digital currency information recording system, a digital currency information recording method and a digital currency information storage medium.
Background
Digital money is a completely new form of money that is accepted by central banks or other money issuing authorities in some countries or regions. The central bank issues in the manner of issuing currency, producing encrypted strings that are the real currency representing the denomination. The user can store and manage these currencies in the wallet in a genuine manner. Meanwhile, the central bank sets up an operation digital currency registration center and records ownership conversion relations of the currency in the circulation process. The digital currency registration center marks the ownership of the currency with a public and private key. When the user uses the currency, the user needs to sign the transaction by using the private key of the user, the digital currency registration center can verify the transaction according to the serial number of the currency and the corresponding public key, after the identity of the currency owner is determined, the currency ownership is converted, and the corresponding currency ownership is marked as a new public key. Essentially, the transaction payment process of digital currency is the transfer process of currency ownership.
In practice, a digital currency information recording system is required to support transfer recording of digital currency ownership. Some existing digital currency information recording systems implemented by using a blockchain technology are limited by the performance and serialization characteristics of the blockchain, so that the digital currency information recording systems are difficult to parallelize and spread, and are easy to crash due to high concurrency when facing a large number of processing tasks of digital currency ownership conversion.
Disclosure of Invention
In view of at least one of the above-mentioned technical problems, it is an object of the present invention to provide a digital money information recording system, method, and storage medium.
In one aspect, an embodiment of the present invention includes a digital money information recording system, including:
the transaction instruction module is used for acquiring at least one sub-instruction; one of the sub-commands corresponds to one digital currency;
the micro-service scheduling module is used for receiving each sub-instruction sent by the transaction instruction module, analyzing digital currency index information respectively contained in each sub-instruction, and searching out nodes respectively corresponding to the digital currency index information; transmitting each sub-instruction to a recording module under the condition that a part or all of the nodes have corresponding micro services;
the recording module is used for running a plurality of mutually independent micro services; each micro-service is used for receiving each sub-instruction sent by the micro-service scheduling module, analyzing the public key of the digital currency owner from the received sub-instruction, recording the public key of the digital currency owner, and returning the digital currency character string.
Further, the transaction instruction module includes:
a first verification unit for acquiring and verifying a transaction instruction for digital money; under the condition that the transaction command passes verification, decomposing the transaction command into at least one sub-command corresponding to each digital currency according to at least one digital currency related to the transaction command;
the intelligent contract unit is used for detecting whether an intelligent contract exists in the transaction instruction, so that the first checking unit executes the intelligent contract on the transaction instruction under the condition that the intelligent contract is detected to be included in the transaction instruction, and sends all sub-instructions to corresponding micro services under the condition that the intelligent contract is successfully executed, and otherwise, the first checking unit cancels the transaction instruction;
the sub-instruction decomposition unit is used for locking each sub-instruction, acquiring a recording result of the public key of the digital currency owner corresponding to each sub-instruction from the recording module, and returning recording success information under the condition that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, otherwise, returning a rollback instruction.
Further, the micro service scheduling module includes:
the request forwarding unit is used for receiving each sub-instruction sent by the transaction instruction module and analyzing digital currency index information respectively contained in each sub-instruction; under the condition that the micro-service discovery unit searches the corresponding node, searching the corresponding micro-service for the searched node; under the condition that the corresponding micro-service is found out, each sub-instruction is sent to the recording module, otherwise, the micro-service scheduling unit is requested to start the micro-service at the node, and each sub-instruction is sent to the recording module after the micro-service is started;
the micro-service discovery unit is used for maintaining a mapping table and searching corresponding nodes according to the mapping table and the digital currency index information analyzed by the request forwarding unit;
and the micro-service scheduling unit is used for responding to the request of the micro-service discovery unit and starting micro-services at the node.
Further, the recording module comprises at least one combination, each combination is used for running one micro service; each of the combinations includes:
the request unit is used for receiving each sub-instruction sent by the micro-service scheduling module;
the second verification unit is used for verifying the digital currency and the digital currency signature pointed by each sub-instruction respectively; under the condition that verification is passed, detecting the associated script of each sub instruction; transmitting each sub-instruction to a script unit when the associated script is detected, and transmitting each sub-instruction to a recording unit in the opposite way;
a script unit, configured to extract an association script from each sub-instruction, execute the association script on a digital currency character string included in each sub-instruction, and send each sub-instruction to a recording unit after the execution passes;
the recording unit is used for analyzing the public key of the digital currency owner from the received sub-instruction, recording the public key of the digital currency owner and returning the digital currency character string; a query request for a digital currency owner public key is received, at least one of the micro-services pointed to by the query request responding to the query request.
On the other hand, the embodiment of the invention also comprises a digital currency information recording method, which comprises the following steps:
acquiring at least one sub-instruction; one of the sub-commands corresponds to one digital currency;
analyzing digital currency index information contained in each sub-instruction;
searching nodes corresponding to the digital currency index information respectively;
transmitting each sub-instruction to a corresponding micro-service under the condition that a part or all of the nodes have the corresponding micro-service;
and the micro-service analyzes the public key of the digital currency owner from the received sub-instruction, records the public key of the digital currency owner and returns a digital currency character string.
Further, the digital money information recording method further includes the steps of:
receiving a query request for a public key of a digital currency owner;
at least one of the micro-services pointed to by the query request responds to the query request.
Further, the digital money information recording method further includes the steps of:
locking each sub instruction;
obtaining a record result of a public key of a digital currency owner corresponding to each sub-instruction;
and returning recording success information under the condition that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, and otherwise, returning a rollback instruction.
Further, the step of obtaining at least one sub-instruction specifically includes:
acquiring and verifying a transaction instruction for digital currency;
and under the condition that the transaction command passes verification, decomposing the transaction command into at least one sub-command corresponding to each digital currency according to at least one digital currency related to the transaction command.
Further, in the case that the transaction instruction includes an intelligent contract, the step of sending each sub-instruction to a corresponding micro-service specifically includes:
executing the smart contract on the transaction instructions;
and under the condition that the intelligent contract is successfully executed, each sub-instruction is sent to the corresponding micro-service, and otherwise, the transaction instruction is logged off.
In another aspect, embodiments of the present invention also include a storage medium having stored therein processor-executable instructions which, when executed by a processor, are adapted to carry out the method of the embodiments.
The beneficial effects of the invention are as follows: the digital currency information recording system has a highly parallelized structure, is easy to expand the scale of the system to meet the performance requirement of high concurrency, and on the other hand, the scale of the system is easy to shrink so as to reasonably save resources; the system internal modules are independent from module to module and from unit to unit, so that the fault can be conveniently detected and processed, and data exchange with users or equipment outside the system is also facilitated; when facing the common task of inquiring the digital currency information, the recording module in the system can independently and directly respond to an external inquiry request without starting the whole micro-service, thereby achieving the effect of quick response.
Drawings
FIG. 1 is a schematic diagram showing a configuration of a digital money information recording system according to an embodiment;
FIG. 2 is a schematic diagram of a transaction instruction module according to an embodiment;
FIG. 3 is a schematic diagram of a micro service scheduling module according to an embodiment;
fig. 4 is a schematic structural diagram of the recording module according to an embodiment.
Detailed Description
Example 1
In this embodiment, referring to fig. 1, the digital currency information recording system includes a transaction instruction module, a micro-service scheduling module, and a recording module, where the three modules may refer to a hardware device with a corresponding function, a software module with a corresponding function, or a combination of the hardware device with a corresponding function and the software module. A permanent or temporary connection is established between the transaction instruction module, the micro-service scheduling module and the logging module so that any one module can send data to or receive data from other modules when needed.
Referring to fig. 2, the transaction instruction module includes a first verification unit, an intelligent contract unit, and a sub-instruction decomposition unit, which are all an integral part of the transaction instruction module, and may specifically be a hardware component in the transaction instruction module, or a software module invoked. Through independent work or mutual cooperation among the first verification unit, the intelligent contract unit and the sub-instruction decomposition unit, the transaction instruction module realizes such functions as: one or more sub-instructions are acquired, each of which is issued by a user or device external to the recording system for indicating a transaction to be performed on a digital currency, so that each sub-instruction in this embodiment corresponds to a digital currency.
Specifically, the first verification unit in fig. 2 implements the following functions: the transaction instruction aiming at the digital currency is obtained, the security of the transaction instruction is verified, and the protection existing on the transaction instruction can be unlocked in the verification process. The transaction order referred to herein is a collection of at least one sub-order, each sub-order in the same transaction order possibly coming from a different digital currency owner.
The first verification unit decomposes the transaction instruction into a plurality of sub-instructions upon detecting that the transaction instruction is authenticated.
The first verification unit also sends the transaction instructions or a copy thereof to the smart contract unit. The intelligent contract unit detects whether the intelligent contract exists in the transaction instruction, and then returns the detection result to the first checking unit. If the detection result of the intelligent contract is 'non-existence', namely, the intelligent contract does not exist in the transaction instruction, the first verification unit cancels the transaction instruction, and the corresponding effect is to discard the transaction; if the intelligent contract is detected as 'present', that is, the intelligent contract exists in the transaction instruction, the first verification unit executes the intelligent contract on the transaction instruction. If the intelligent contract is successfully executed, the first verification unit sends each sub-instruction to the micro-service operated by the recording module shown in fig. 1, specifically, the recording module operates one micro-service for each sub-instruction, so that the first verification unit sends each sub-instruction to a corresponding micro-service; if the smart contract execution is unsuccessful, the first verification unit logs off the transaction instructions.
Specifically, the sub-instruction decomposition unit in fig. 2 implements the following functions: firstly, locking each sub-instruction; the sub-instruction decomposition unit acquires the recording result of the public key of the digital currency owner corresponding to each sub-instruction from the recording module shown in fig. 1, and if the recording result shows that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, the sub-instruction decomposition unit returns a message to the sender of the transaction instruction so as to inform the sender of the transaction instruction that the recording is successful; if the recording result shows that the public key of the digital currency owner corresponding to at least one sub-instruction is not successfully recorded, the sub-instruction decomposition unit returns a rollback instruction to the issuer of the transaction instruction.
Referring to fig. 3, the micro service scheduling module includes a request forwarding unit, a micro service discovery unit, and a micro service scheduling unit, which are all an integral part of the micro service scheduling module, and may specifically be a hardware component in the micro service scheduling module, or a called software module. The micro service scheduling module realizes the following functions by independent work or mutual cooperation among the request forwarding unit, the micro service discovery unit and the micro service scheduling unit: receiving each sub-instruction sent by the transaction instruction module, analyzing digital currency index information contained in each sub-instruction, and searching nodes corresponding to each digital currency index information; and sending each sub-instruction to a recording module under the condition that part or all of the nodes have corresponding micro services.
Specifically, the request forwarding unit in fig. 3 implements the following functions: each sub-instruction sent by the transaction instruction module shown in fig. 2 is received, the digital currency index information contained in each sub-instruction is analyzed, and then the analyzed digital currency index information is sent to the micro-service discovery unit shown in fig. 3.
The micro service discovery unit stores at least one mapping table, the mapping table is updated and maintained by the micro service discovery unit, and the mapping relation between the digital currency index information and the nodes is recorded, so that the micro service discovery unit can search the nodes from the mapping table according to the digital currency index information sent by the request forwarding unit.
If the micro-service discovery unit searches the corresponding node according to the digital currency index information and the mapping table, the micro-service discovery unit sends each sub-instruction to the recording module; if the root of the micro service discovery unit fails to find the corresponding node from the mapping table, the micro service discovery unit requests the micro service scheduling unit shown in fig. 3 to start the micro service at the node, and after the micro service is started, the micro service discovery unit sends each sub-instruction to the recording module.
In this embodiment, the micro-service scheduling unit is specifically configured to respond to a request of the micro-service discovery unit, and start a micro-service at a node; if the micro-service itself has been started, the micro-service discovery unit does not have to issue a request to start the micro-service, and the micro-service scheduling unit does not need to act, or even set up the micro-service scheduling unit.
Referring to fig. 4, the recording module runs a plurality of independent micro services, each for recording a conversion process of ownership of digital currency. From the perspective of each digital currency, the ownership transformation flow forms a linear chain and is recorded by the microservice.
Referring to fig. 4, the hardware or software basis of each micro-service is a request unit, a second verification unit, a script unit and a record unit, i.e. one micro-service is supported by a set of request unit, second verification unit, script unit and record unit, which are all an integral part of the record module, in particular a hardware part of the record module, or a software module that is invoked.
Through independent work or mutual cooperation between the request unit, the second verification unit, the script unit and the recording unit, the recording module realizes such functions as: and running the service to enable the micro-service to receive each sub-instruction sent by the micro-service scheduling module, analyzing the public key of the digital currency owner from the received sub-instruction, recording the public key of the digital currency owner, and returning the digital currency character string.
In this embodiment, the principle of each micro service is the same or similar, and thus can be understood from the principle of one micro service.
In a microservice, its requesting unit performs the following functions: and receiving a plurality of sub-instructions sent by the micro-service scheduling module, forwarding the sub-instructions to a second checking unit, and checking the digital currency and the digital currency signature pointed by each sub-instruction by the second checking unit, so that the authenticity and the security of the digital currency can be ensured. If the second checking unit detects that the checking is passed, further detecting whether the associated script exists in each sub-instruction; if the second checking unit detects that the associated script exists in each sub-instruction, the sub-instruction with the associated script is sent to the script unit; if the second checking unit does not detect that the associated script exists in each sub-instruction, each sub-instruction is directly sent to the recording unit.
In a microservice, its script unit implements the following functions: receiving sub-instructions sent by a second checking unit, extracting associated scripts from the sub-instructions, and executing the associated scripts on the digital currency character strings contained in the sub-instructions; if the associated script execution passes, the script unit sends all sub-instructions it receives from the second checking unit to the recording unit.
In a microservice, its recording unit performs the following functions: receiving the sub-instruction from the script unit, analyzing the public key of the digital currency owner from the received sub-instruction, storing the analyzed public key of the digital currency owner, and returning the digital currency character string to the initiator of the transaction instruction.
If the user or the device issues a query request for the public key of the digital money owner to the digital money information recording system, the query request is received by the recording unit and then responded to. The response here refers to reading the previously stored digital currency owner public key and feeding back the digital currency owner public key to the originator of the query request.
In summary, the principles of the digital currency information recording system are described, and as can be seen from fig. 1, 2, 3 and 4, the digital currency information recording system has a highly parallelized structure, so that the scale of the system is easily expanded to cope with the performance requirement of high concurrency, and on the other hand, the scale of the system is also easily contracted to reasonably save resources; the system internal modules are independent from module to module and from unit to unit, so that the fault can be conveniently detected and processed, and data exchange with users or equipment outside the system is also facilitated; when facing the common task of inquiring the digital currency information, the recording module in the system can independently and directly respond to an external inquiry request without starting the whole micro-service, thereby achieving the effect of quick response.
Example 2
In this embodiment, using the digital money information recording system described in embodiment 1, a certain operation timing is set for each module and/or unit in the digital money information recording system, so that the module and/or unit in the digital money information recording system can perform its own functions according to the following steps S1 to S5:
s1, acquiring at least one sub-instruction; one of the sub-commands corresponds to one digital currency;
s2, analyzing digital currency index information contained in each sub-instruction respectively;
s3, searching out nodes corresponding to the digital currency index information respectively;
s4, under the condition that a part or all of the nodes have corresponding micro services, each sub-instruction is sent to the corresponding micro service; and the micro-service analyzes the public key of the digital currency owner from the received sub-instruction, records the public key of the digital currency owner and returns a digital currency character string.
The above steps S1 to S4 are digital money information recording methods performed by the digital money information recording system described in embodiment 1. Other execution bodies may be employed by those skilled in the art to execute steps S1-S4 through the description of embodiment 1 and this embodiment.
In this embodiment, the following steps are also performed by using the corresponding modules and/or units in the digital money information recording system in embodiment 1:
s5, receiving a query request aiming at a public key of a digital currency owner;
s6, at least one micro service pointed by the query request responds to the query request.
Steps S5-S6 are also part of the digital money information recording method.
In this embodiment, the following steps are also performed by using the corresponding modules and/or units in the digital money information recording system in embodiment 1:
s7, locking each sub instruction;
s8, obtaining a record result of a public key of the digital currency owner corresponding to each sub-instruction;
s9, returning recording success information under the condition that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, and otherwise, returning a rollback instruction.
Steps S7-S9 are also part of the digital money information recording method.
In this embodiment, the step S1, that is, the step of acquiring at least one sub-instruction, is performed using the transaction instruction module in the digital currency information recording system as described in embodiment 1. The transaction instruction module performs the following steps by calling a first verification unit, an intelligent contract unit and/or a sub-instruction decomposition unit included in the transaction instruction module:
s101, acquiring and verifying a transaction instruction aiming at digital currency;
s102, under the condition that the transaction instruction passes verification, according to at least one piece of digital currency related to the transaction instruction, decomposing the transaction instruction into at least one sub-instruction corresponding to each piece of digital currency one by one.
The steps S101 and S102 constitute the main part of step S1, which is also the principle of executing step S1 using the transaction instruction module.
In this embodiment, when it is detected that the transaction command includes an intelligent contract, the step S4 is performed using the transaction command module in the digital currency information recording system as described in embodiment 1. The transaction instruction module performs the following steps by calling a first verification unit, an intelligent contract unit and/or a sub-instruction decomposition unit included in the transaction instruction module:
s401, executing the intelligent contract on the transaction instruction;
s402, under the condition that the intelligent contract is successfully executed, each sub-instruction is sent to a corresponding micro-service, and otherwise, the transaction instruction is logged off.
The steps S401 and S402 constitute the main part of step S4, which is also the principle of executing step S4 using the transaction instruction module.
By writing instructions for controlling the computer apparatus to execute steps S1 to S9 and then storing the instructions in the storage medium, the computer apparatus can be made the digital money information recording system described in embodiment 1 when the instructions stored in the storage medium are read and executed by the computer apparatus.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. Further, the descriptions of the upper, lower, left, right, etc. used in this disclosure are merely with respect to the mutual positional relationship of the various components of this disclosure in the drawings. As used in this disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used in this embodiment includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described in the present embodiments may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described in this embodiment may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, that collectively execute on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described in this embodiment, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention, which are included in the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.
Claims (8)
1. A digital money information recording system, comprising:
the transaction instruction module is used for acquiring at least one sub-instruction; one of the sub-commands corresponds to one digital currency;
the micro-service scheduling module is used for receiving each sub-instruction sent by the transaction instruction module, analyzing digital currency index information respectively contained in each sub-instruction, and searching out nodes respectively corresponding to the digital currency index information; transmitting each sub-instruction to a recording module under the condition that a part or all of the nodes have corresponding micro services;
the recording module is used for running a plurality of mutually independent micro services; each micro-service is used for receiving each sub-instruction sent by the micro-service scheduling module, analyzing a public key of a digital currency owner from the received sub-instruction, recording the public key of the digital currency owner, and returning a digital currency character string;
the transaction instruction module includes:
a first verification unit for acquiring and verifying a transaction instruction for digital money; under the condition that the transaction command passes verification, decomposing the transaction command into at least one sub-command corresponding to each digital currency according to at least one digital currency related to the transaction command;
the intelligent contract unit is used for detecting whether an intelligent contract exists in the transaction instruction, so that the first checking unit executes the intelligent contract on the transaction instruction under the condition that the intelligent contract is detected to be included in the transaction instruction, and sends all sub-instructions to corresponding micro services under the condition that the intelligent contract is successfully executed, and otherwise, the first checking unit cancels the transaction instruction;
the sub-instruction decomposition unit is used for locking each sub-instruction, acquiring a recording result of the public key of the digital currency owner corresponding to each sub-instruction from the recording module, and returning recording success information under the condition that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, otherwise, returning a rollback instruction.
2. The digital currency information recording system according to claim 1, wherein said micro-service scheduling module comprises:
the request forwarding unit is used for receiving each sub-instruction sent by the transaction instruction module and analyzing digital currency index information respectively contained in each sub-instruction; under the condition that the micro-service discovery unit searches the corresponding node, searching the corresponding micro-service for the searched node; under the condition that the corresponding micro-service is found out, each sub-instruction is sent to the recording module, otherwise, the micro-service scheduling unit is requested to start the micro-service at the node, and each sub-instruction is sent to the recording module after the micro-service is started;
the micro-service discovery unit is used for maintaining a mapping table and searching corresponding nodes according to the mapping table and the digital currency index information analyzed by the request forwarding unit;
and the micro-service scheduling unit is used for responding to the request of the micro-service discovery unit and starting micro-services at the node.
3. The digital money information recording system of claim 1, wherein the recording module comprises at least one combination, each for running a micro-service; each of the combinations includes:
the request unit is used for receiving each sub-instruction sent by the micro-service scheduling module;
the second verification unit is used for verifying the digital currency and the digital currency signature pointed by each sub-instruction respectively; under the condition that verification is passed, detecting the associated script of each sub instruction; transmitting each sub-instruction to a script unit when the associated script is detected, and transmitting each sub-instruction to a recording unit in the opposite way;
a script unit, configured to extract an association script from each sub-instruction, execute the association script on a digital currency character string included in each sub-instruction, and send each sub-instruction to a recording unit after the execution passes;
the recording unit is used for analyzing the public key of the digital currency owner from the received sub-instruction, recording the public key of the digital currency owner and returning the digital currency character string; a query request for a digital currency owner public key is received, at least one of the micro-services pointed to by the query request responding to the query request.
4. A digital money information recording method, comprising the steps of:
acquiring at least one sub-instruction; one of the sub-commands corresponds to one digital currency;
analyzing digital currency index information contained in each sub-instruction;
searching nodes corresponding to the digital currency index information respectively;
transmitting each sub-instruction to a corresponding micro-service under the condition that a part or all of the nodes have the corresponding micro-service;
analyzing a public key of the digital currency owner from the received sub-instruction by the micro-service, recording the public key of the digital currency owner, and returning a digital currency character string;
locking each sub instruction;
obtaining a record result of a public key of a digital currency owner corresponding to each sub-instruction;
and returning recording success information under the condition that the public keys of the digital currency owners corresponding to all the sub-instructions are successfully recorded, and otherwise, returning a rollback instruction.
5. The digital money information recording method according to claim 4, characterized by further comprising the steps of:
receiving a query request for a public key of a digital currency owner;
at least one of the micro-services pointed to by the query request responds to the query request.
6. The digital money information recording method according to claim 4, wherein the step of acquiring at least one sub-instruction comprises:
acquiring and verifying a transaction instruction for digital currency;
and under the condition that the transaction command passes verification, decomposing the transaction command into at least one sub-command corresponding to each digital currency according to at least one digital currency related to the transaction command.
7. The digital money information recording method according to claim 6, wherein the step of transmitting each of the sub-instructions to the corresponding micro-service in the case where the smart contract is detected to be included in the transaction instruction, comprises:
executing the smart contract on the transaction instructions;
and under the condition that the intelligent contract is successfully executed, each sub-instruction is sent to the corresponding micro-service, and otherwise, the transaction instruction is logged off.
8. A storage medium having stored therein processor executable instructions which, when executed by a processor, are for performing the method of any of claims 4-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110110568.9A CN112785433B (en) | 2021-01-27 | 2021-01-27 | Digital currency information recording system, method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110110568.9A CN112785433B (en) | 2021-01-27 | 2021-01-27 | Digital currency information recording system, method and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112785433A CN112785433A (en) | 2021-05-11 |
CN112785433B true CN112785433B (en) | 2024-04-09 |
Family
ID=75758330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110110568.9A Active CN112785433B (en) | 2021-01-27 | 2021-01-27 | Digital currency information recording system, method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112785433B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111105220A (en) * | 2019-10-14 | 2020-05-05 | 杭州复杂美科技有限公司 | Digital currency payment method, system, equipment and storage medium |
CN111144857A (en) * | 2019-12-10 | 2020-05-12 | 深圳华数云计算技术有限公司 | Digital currency data processing method, system and storage medium |
CN111476555A (en) * | 2020-03-23 | 2020-07-31 | 深圳华数云计算技术有限公司 | Digital currency data processing method, system and storage medium |
CN112070489A (en) * | 2020-07-21 | 2020-12-11 | 深圳华数云计算技术有限公司 | Method, system and storage medium for multi-terminal common transaction of digital currency |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3186763A1 (en) * | 2014-08-25 | 2017-07-05 | Environmental Financial Products LLC | Secure electronic storage devices for physical delivery of digital currencies when trading |
-
2021
- 2021-01-27 CN CN202110110568.9A patent/CN112785433B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111105220A (en) * | 2019-10-14 | 2020-05-05 | 杭州复杂美科技有限公司 | Digital currency payment method, system, equipment and storage medium |
CN111144857A (en) * | 2019-12-10 | 2020-05-12 | 深圳华数云计算技术有限公司 | Digital currency data processing method, system and storage medium |
CN111476555A (en) * | 2020-03-23 | 2020-07-31 | 深圳华数云计算技术有限公司 | Digital currency data processing method, system and storage medium |
CN112070489A (en) * | 2020-07-21 | 2020-12-11 | 深圳华数云计算技术有限公司 | Method, system and storage medium for multi-terminal common transaction of digital currency |
Also Published As
Publication number | Publication date |
---|---|
CN112785433A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200293648A1 (en) | Methods and systems for identity creation, verification and management | |
CN110096857B (en) | Authority management method, device, equipment and medium for block chain system | |
CN111914023B (en) | Bill management method and device based on blockchain and electronic equipment | |
WO2021021373A1 (en) | Self-sovereign identity systems and methods for identification documents | |
JP2016537721A (en) | Authentication using human biometric features | |
EA034354B1 (en) | System and method for document information authenticity verification | |
KR101496646B1 (en) | method of entrance control through instant QR code | |
TWI778296B (en) | Information processing method, device, electronic device, and computer-readable storage medium | |
RU97120714A (en) | IDENTIFICATION SYSTEM FOR CERTIFICATION OF AUTHENTICITY OF ELECTRONIC TRANSACTIONS AND ELECTRONIC TRANSMISSIONS WITHOUT USING IDENTIFICATION CARDS | |
CN111709860B (en) | Method, device, equipment and storage medium for processing heritage | |
US20210303190A1 (en) | Modular data processing and storage system | |
US20190081794A1 (en) | Systems and methods for user identity | |
US20200334430A1 (en) | Self-sovereign identity systems and methods for identification documents | |
CN109635531A (en) | It is a kind of using identity information certification as the information authentication method of carrier and device | |
JP2017102842A (en) | Personal identification system, personal identification information output system, authentication server, personal identification method, personal identification information output method, and program | |
CN107172057A (en) | Authentication implementing method and device | |
CN112785433B (en) | Digital currency information recording system, method and storage medium | |
CN117376000A (en) | Block chain-based data processing method, device, equipment and storage medium | |
CN103295169A (en) | Method and system for safely supervising real estate real person registration information | |
CN115271691A (en) | Resource transfer method, device, system, equipment, storage medium and related product | |
Sarmah et al. | Security pattern lattice: A formal model to organize security patterns | |
KR102180596B1 (en) | Method and System for Identifying and Tracking IoT Device based on Multi-dimensional Block Chain | |
JP2007323116A (en) | Card-less settlement terminal equipment, card-less settlement host, and card-less settlement system | |
CN111401489A (en) | Control method and device of intelligent door lock and electronic equipment | |
CN113987035A (en) | Block chain external data access method, device, system, equipment and medium |
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 |