CN110365533B - Digital asset transaction method, system and computer readable storage medium - Google Patents

Digital asset transaction method, system and computer readable storage medium Download PDF

Info

Publication number
CN110365533B
CN110365533B CN201910634456.6A CN201910634456A CN110365533B CN 110365533 B CN110365533 B CN 110365533B CN 201910634456 A CN201910634456 A CN 201910634456A CN 110365533 B CN110365533 B CN 110365533B
Authority
CN
China
Prior art keywords
module
transaction
request
query
layer
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
Application number
CN201910634456.6A
Other languages
Chinese (zh)
Other versions
CN110365533A (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.)
Shanghai Heshu Software Co ltd
Original Assignee
Shanghai Heshu Software Co ltd
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 Shanghai Heshu Software Co ltd filed Critical Shanghai Heshu Software Co ltd
Priority to CN201910634456.6A priority Critical patent/CN110365533B/en
Publication of CN110365533A publication Critical patent/CN110365533A/en
Application granted granted Critical
Publication of CN110365533B publication Critical patent/CN110365533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/25Integrating or interfacing systems involving database management systems
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a digital asset transaction method. The method comprises the following steps: the interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer; and the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request. The invention also discloses a digital asset transaction system and a computer readable storage medium. The invention can realize and provide the digital asset transaction method which is based on the block chain technology and has large concurrent capacity and high transaction speed.

Description

Digital asset transaction method, system and computer readable storage medium
Technical Field
The present invention relates to the field of digital assets, and more particularly, to a digital asset transaction method, system, and computer-readable storage medium.
Background
Blockchain technology has originated in virtual currency, which has emerged worldwide since 2009, with blockchain receipts gradually walking into people's view. At present, governments, industrial circles and academic circles all over the world pay high attention to application development of block chains, and related technical innovation and mode innovation are continuously emerging. Block chaining, an emerging technology, is attracting increasing human input.
The blockchain technology has many unique advantages, such as decentralization, trust enhancement, distributed accounting, non-tampering and the like, but as the blockchain technology is used as a chain structure, as the number of people added increases, the number of blockchain nodes increases continuously, data increases, the blockchain has the problems of slow response speed, insufficient storage capacity and the like, and the conventional digital asset transaction platform based on the blockchain technology has small concurrency capacity and slow transaction speed.
Disclosure of Invention
The invention mainly aims to provide a digital asset transaction method, a system and a computer readable storage medium, aiming at providing a digital asset transaction method which is based on a block chain technology, has large concurrent capacity and high transaction speed.
To achieve the above object, the present invention provides a digital asset transaction method, comprising the steps of:
the interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer;
and the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request.
Optionally, the service request includes a transaction request, and the step of receiving, by the interface layer, the service request sent by the web site and sending the service request to the service layer includes:
the interface layer receives a transaction request sent by the website end and sends the transaction request to a transaction matching module in the service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the transaction matching module in the service layer receives the transaction request and distributes the transaction request to a corresponding module to perform corresponding transaction processing according to the transaction request.
Optionally, the step of receiving the transaction request by the transaction matching module in the service layer and distributing the transaction request to a corresponding module according to the transaction request to perform corresponding transaction processing includes:
a transaction matching module in the business layer receives the transaction request sent by the interface layer, matches the transaction request according to the transaction request, generates a corresponding transaction order and sends the transaction order to a transaction calculation module in the business layer and a data recording module in the data layer;
the data recording module records the transaction order;
a transaction calculation module in the service layer receives the transaction order, calculates according to the transaction order and sends the calculation result to a data storage module in a data layer;
and the data storage module in the data layer updates data according to the calculation result.
Optionally, the service request includes an inquiry request, and the step of receiving, by the interface layer, the service request sent by the network station end and sending the service request to the service layer includes:
the interface layer receives a query request sent by a network station end and sends the query request to a data query module in a service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the data query module in the service layer receives the query request and distributes the query request to a corresponding module for corresponding query processing according to the query request.
Optionally, the step of receiving the query request by the data query module in the service layer and distributing the query request to the corresponding module for performing the corresponding query processing according to the query request includes:
a data query module in the service layer receives a query request sent by the interface layer and sends the query request to a data storage module in the data layer;
the data storage module in the data layer receives the query request, obtains a query result according to the query request and returns the query result to the data query module in the service layer;
and the data query module in the service layer receives the query result and feeds the query result back to the corresponding network station end through the interface layer.
Optionally, the step of receiving, by the interface layer, a service request for a digital asset transaction sent by a web site, and sending the service request to the service layer further includes:
the monitoring layer carries out security verification on the service request sent by the website end;
after the service request passes the security verification, executing the following steps: the interface layer receives a service request of digital asset transaction sent by the network station end and sends the service request to the service layer.
Further, to achieve the above object, the present invention also provides a digital asset transaction system including:
the interface layer is used for receiving a service request of digital asset transaction sent by a network station end and sending the service request to the service layer;
and the service layer is used for receiving the service request sent by the interface layer and distributing the service request to a corresponding module for corresponding processing according to the service request.
Optionally, the service request comprises a transaction request, the business layer comprises a transaction matching module,
and the transaction matching module is used for receiving the transaction request and distributing the transaction request to a corresponding module for corresponding transaction processing according to the transaction request.
Optionally, the business layer comprises a data query module, the service request comprises a query request,
and the data query module is used for receiving the query request and distributing the query request to a corresponding module for corresponding query processing according to the query request.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a digital asset transaction program which, when executed by a processor, implements the steps of the above-described digital asset transaction method.
The invention provides a digital asset transaction method, a system and a computer storage medium. In the method, an interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer; and the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request. Through the mode, the invention can adopt a layered and modularized micro-service deployment mode for the architecture of the transaction platform, and process the service request through layering and modularization, so that the service request of the digital asset transaction can be processed quickly, thereby increasing the concurrent capacity of the digital transaction platform based on the block chain technology and accelerating the transaction speed.
Drawings
FIG. 1 is a system diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a digital asset transaction method of the present invention;
FIG. 3 is a schematic flow chart of a digital asset transaction method according to a second embodiment of the present invention;
FIG. 4 is a schematic flow chart of a digital asset transaction method according to a third embodiment of the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of a digital asset transaction method of the present invention;
FIG. 6 is a schematic flow chart of a fifth embodiment of the digital asset transaction method of the present invention;
FIG. 7 is a schematic flow chart of a sixth embodiment of a digital asset transaction method of the present invention;
FIG. 8 is a frame diagram of a trading platform of a first embodiment of the digital asset trading method of the present invention;
FIG. 9 is a diagram of a trading platform deployment for a first embodiment of a digital asset trading method of the present invention;
fig. 10 is a principal business flow diagram of a first embodiment of the digital asset transaction method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a system structural diagram of a hardware operating environment according to an embodiment of the present invention.
The network terminal in the digital asset transaction system of the embodiment of the invention can be a PC, and can also be a terminal device with a data processing function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the network may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the network-side architecture shown in fig. 1 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In addition, the digital asset transaction system of the present invention may further include: the system comprises an agent machine, a transaction platform, a distributed data storage server and a monitoring alarm server.
The interface layer comprises an accessshttp module and an accesssws module;
the service layer comprises a matchingine module, a markerpice module and a readhistory module;
the data layer comprises a Kafka module, a Redis module and a Mysql module
The monitoring layer includes an alert center module.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a digital asset transaction program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client;
during the business processing, when the digital asset transaction program is executed by the equipment in each layer, the following steps are executed:
the interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer;
and the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request.
Further, the processor 1001 may invoke a digital asset transaction program stored in the memory 1005, and also perform the following operations:
the interface layer receives a transaction request sent by the website end and sends the transaction request to a transaction matching module in the service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the transaction matching module in the service layer receives the transaction request and distributes the transaction request to a corresponding module to perform corresponding transaction processing according to the transaction request.
Further, the processor 1001 may invoke a digital asset transaction program stored in the memory 1005, and also perform the following operations:
a transaction matching module in the business layer receives the transaction request sent by the interface layer, matches the transaction request according to the transaction request, generates a corresponding transaction order and sends the transaction order to a transaction calculation module in the business layer and a data recording module in the data layer;
the data recording module records the transaction order;
a transaction calculation module in the service layer receives the transaction order, calculates according to the transaction order and sends the calculation result to a data storage module in a data layer;
and the data storage module in the data layer updates data according to the calculation result.
Further, the processor 1001 may invoke a digital asset transaction program stored in the memory 1005, and also perform the following operations:
the interface layer receives a query request sent by a network station end and sends the query request to a data query module in a service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the data query module in the service layer receives the query request and distributes the query request to a corresponding module for corresponding query processing according to the query request.
Further, the processor 1001 may invoke a digital asset transaction program stored in the memory 1005, and also perform the following operations:
a data query module in the service layer receives a query request sent by the interface layer and sends the query request to a data storage module in the data layer;
the data storage module in the data layer receives the query request, obtains a query result according to the query request and returns the query result to the data query module in the service layer;
and the data query module in the service layer receives the query result and feeds the query result back to the corresponding network station end through the interface layer.
Further, the processor 1001 may invoke a digital asset transaction program stored in the memory 1005, and also perform the following operations:
the monitoring layer carries out security verification on the service request sent by the website end;
after the service request passes the security verification, executing the following steps: the interface layer receives a service request of digital asset transaction sent by the network station end and sends the service request to the service layer.
The specific embodiment of the digital asset transaction system of the present invention is substantially the same as the embodiments of the digital asset transaction method described below, and will not be described herein again.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a digital asset transaction method of the present invention, which includes:
step S100, an interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer;
in this embodiment, the website may be a PC, or may also be a terminal device having a data processing function, such as a smart phone, a tablet computer, or a mobile computer. The user can carry out related interactive operation through the user interactive interface of the trading platform on the terminal equipment, the interactive interface comprises a computer version Web interface and a mobile phone version Web interface, and the user can use all external service functions of the trading platform through the Web site.
The interface layer comprises at least more than one accessshttp interface module and/or access interface module. The accessshttp interface module can provide an HTTP protocol interface based on JSON RPC, and is used for the Website server to call asset query/transfer-in/transfer-out, price query/bidding placing, order/transaction data query and other interface functions for the server. The access interface module can provide a standard WebSocket protocol interface and can inquire and subscribe interface functions of data such as K lines, quotation, transaction flow and the like. Data is connected and transferred as HTTP handshake over Nginx.
The service layer comprises at least one of a matchingine module, a marktprice module and/or a readhistory module. The matchingine module can perform business operation processing such as account asset query/transfer-in/transfer-out, price inquiry/bidding placing orders, transaction matching and the like. The markprice module can perform the functions of calculation, caching, query and the like of K line data and market quotation data. The readhistory module can perform record data query functions of multi-dimensional historical orders, transaction flow, asset flow and the like.
The service requests of the digital asset transaction comprise service requests of virtual currency such as recharge, withdrawal, balance inquiry, market purchase, market sale, K line, bill hanging, bill placing, bill withdrawing, inquiry and the like.
In this embodiment, the interface layer receives a service request, such as an order, an inquiry, etc., of a digital asset transaction sent by the website, and sends the service request to the service layer for processing.
And step S200, the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request.
The service layer receives the service request, such as an order, inquiry and the like, and distributes the service request to a corresponding module for corresponding processing according to the service request, such as order generation, order inquiry and the like.
Further, in the embodiment of the present invention, a data layer may be further included, where the data layer includes at least one of a Kafka module, a Redis module, and/or a Mysql module. The Kafka module, the Redis module and the Mysql module provide data storage and preservation functions.
As shown in fig. 8, fig. 8 is a diagram of a trading platform framework for a digital asset trading method. In fig. 8, a user sends a service request to an accessshttp interface module and an accesssws interface module of an interface layer through the internet and an agent at a website. and the accessshttp interface module and/or the accesssws interface module sends the service request to a matchingine module, a marktprice module and/or a readhistory module in the service layer for processing. An alertcenter module of the monitoring layer provides monitoring services, and a Kafka module, a Redis module and/or a Mysql module in the data layer provides service data storage functions.
As shown in fig. 9, fig. 9 is a diagram of a trading platform deployment of a digital asset trading method. In fig. 9, the website is connected to interface layers such as an accessshttp interface module and an accesssws interface module, the interface layers are connected to service layers such as a matchingine module, a markotprice module and a readhistory module, the interface layers are connected to a monitoring layer such as an alert center module, and the interface layers are also connected to data layers such as a Kafka module, a Redis module and a Mysql module.
As shown in fig. 10, fig. 10 is a main business flow diagram of a digital asset transaction method. In fig. 10, a user initiates a service request such as order or query through a web site, and sends the service request to an interface layer, such as an accessshttp interface module and an accessswp interface module. The interface layer sends the service request to a service end, such as a matchingine module and a marktprice module. And the business layer queries data information in a data layer such as a Kafka module and a Redis module in the process of order combination or order query. And after the business layer obtains the result, the result is returned to the user through the interface layer.
The invention provides a digital asset transaction method, a system and a computer storage medium. In the method, an interface layer receives a service request of digital asset transaction sent by a network station end and sends the service request to a service layer; and the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request. Through the mode, the invention can adopt a layered and modularized micro-service deployment mode for the architecture of the transaction platform, and process the service request through layering and modularization, so that the service request of the digital asset transaction can be processed quickly, thereby increasing the concurrent capacity of the digital transaction platform based on the block chain technology and accelerating the transaction speed.
Referring to fig. 3, fig. 3 is a flow chart illustrating a digital asset transaction method according to a second embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S100 includes:
step S110, the interface layer receives a transaction request sent by the website end and sends the transaction request to a transaction matching module in the service layer;
in an embodiment of the invention, the service request comprises a transaction request. The interface layer receives a transaction request sent by the network station end and sends the transaction request to a transaction matching module in the service layer. In the embodiment of the present invention, the transaction matching module may be the matchingine module in fig. 8, and may perform business operation processing such as account asset query/transfer-in/transfer-out, price inquiry/bid placing, transaction matching, and the like.
Wherein, step S200 includes:
and step S210, the transaction matching module in the business layer receives the transaction request and distributes the transaction request to a corresponding module to perform corresponding transaction processing according to the transaction request.
And the transaction matching module in the service layer receives the transaction request and distributes the transaction request to a corresponding module to perform corresponding transaction processing according to the transaction request. After receiving the transaction request, a transaction matching module, namely a matchingine module in the service layer produces an order according to the transaction request, and performs order processing work of the background system, specifically, order processing work is performed through a transaction calculation module, namely a markprice module, in the service layer.
Referring to fig. 4, fig. 4 is a flow chart illustrating a digital asset transaction method according to a third embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S210 includes:
step S211, a transaction matching module in the service layer receives the transaction request sent by the interface layer, matches the transaction request according to the transaction request, generates a corresponding transaction order, and sends the transaction order to a transaction calculation module in the service layer and a data recording module in the data layer;
in this embodiment, if the transaction matching module in the service layer receives the transaction request sent by the interface layer, matching is performed according to the transaction request to generate a corresponding transaction order, and the transaction order is sent to the transaction calculation module in the service layer and the data recording module in the data layer.
The transaction calculation module in the service layer may be a markprice module in fig. 8, and may combine and calculate the hang-up data and statistically calculate the transaction data according to the transaction order.
The data recording module in the service layer may be a Kafka module in fig. 8, and may consume the order placing message and the transaction successful consuming message.
Step S212, the data recording module records the transaction order;
and after the data recording module, namely the Kafka module, receives the transaction order, the consumption record is carried out on the transaction order.
Step S213, the transaction calculation module in the service layer receives the transaction order, calculates according to the transaction order, and sends the calculation result to the data storage module in the data layer;
and a transaction calculation module (markerpice module) in the service layer receives the transaction order, calculates according to the transaction order, and sends the calculation result to a data storage module (Redis module) in the data layer.
And step S214, the data storage module in the data layer updates data according to the calculation result.
And a data storage module, namely a Redis module, in the data layer updates data according to the calculation result, such as caching the menu hanging depth data and caching the K line behavior data.
Referring to fig. 5, fig. 5 is a flow chart illustrating a digital asset transaction method according to a fourth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S100 includes:
step S120, the interface layer receives the query request sent by the network station end and sends the query request to a data query module in the service layer;
in an embodiment of the invention, the service request comprises a query request. The interface layer receives the query request sent by the network station end and sends the query request to the data query module in the service layer. In the embodiment of the present invention, the data query module may be a markprice module in fig. 8, and may perform business operation processing such as account asset query/transfer-in/transfer-out, price inquiry/bid placement, transaction matching, and the like.
Wherein, step S200 includes:
step S220, the data query module in the service layer receives the query request, and distributes the query request to a corresponding module for performing corresponding query processing according to the query request.
And the data query module in the service layer receives the query request and distributes the query request to a corresponding module for corresponding query processing according to the query request. And after receiving the query request, a data query module, i.e. a markprice module, in the service layer queries according to the query request.
Referring to fig. 6, fig. 6 is a flow chart illustrating a digital asset transaction method according to a fifth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step 220 includes:
step S221, the data query module in the service layer receives the query request sent by the interface layer and sends the query request to the data storage module in the data layer;
in this embodiment, the data query module in the service layer receives the query request sent by the interface layer, and sends the query request to the data storage module in the data layer.
The data query module in the service layer may be a markprice module in fig. 8, and may pull the cache list.
The data storage module in the data layer may be a Redis module in FIG. 8, and may return a cache list.
Step S222, the data storage module in the data layer receives the query request, obtains a query result according to the query request, and returns the query result to the data query module in the service layer;
and a data storage module (Redis module) in the data layer receives the query request, obtains a query result according to the query request, and returns the query result to a data query module (markerpice module) in the service layer. The data storage module, namely the Redis module, stores a large amount of background data, and the data in the Redis module needs to be called for query in the query process.
Step S223, the data query module in the service layer receives the query result, and feeds back the query result to the corresponding network station end through the interface layer.
And a data query module, i.e. a markprice module, in the service layer receives the query result, and feeds the query result back to the corresponding network station end through the interface layer, i.e. returns the query result to the user through the interface layer.
Referring to fig. 7, fig. 7 is a flowchart illustrating a digital asset transaction method according to a sixth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S100 includes:
step S010, a monitoring layer carries out security verification on the service request sent by the website end;
in the embodiment of the present invention, the monitoring layer may be an alert center module in fig. 8, and the alert center module may perform functions of unified log collection/analysis/query, process monitoring, sending an early warning/warning short message, and the like. The monitoring layer can perform security verification on the service request sent by the website terminal. For example, the identity of the user is verified, for example, by a mode of a private key and a public key, if the user can provide corresponding proof, the identity of the user is proved to be legal, that is, the user is certified to pass security verification.
After the service request passes the security verification, executing step S100: the interface layer receives a service request of digital asset transaction sent by the network station end and sends the service request to the service layer.
And if the digital asset transaction passes the security verification, allowing the interface layer to receive a service request of the digital asset transaction sent by the network station end and sending the service request to the service layer. I.e. allow the user to perform corresponding operations through the system platform.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a digital asset transaction program which, when executed by a processor, implements the steps of the digital asset transaction method as described above.
The digital asset transaction program executed on the processor may refer to various embodiments of the digital asset transaction method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A digital asset transaction method is applied to a digital asset transaction system, the digital asset transaction system comprises an interface layer, a service layer, a data layer and a monitoring layer, and the digital asset transaction method comprises the following steps:
the monitoring layer carries out security verification on a service request sent by a website end;
after the service request passes the security verification, the interface layer receives the service request of the digital asset transaction sent by the network station end and sends the service request to the service layer;
the service layer receives the service request and distributes the service request to a corresponding module for corresponding processing according to the service request;
the interface layer comprises at least one accessshttp interface module and/or an accessswp interface module, the accessshttp interface module provides functions of asset query/transfer-in/transfer-out, price query/bid placing and order/transaction data query, and the accessswp interface module provides functions of querying and subscribing K lines, quotation and transaction running data;
the business layer comprises at least one matchingine module, a markprism module and/or a readhistory module, wherein the matchingine module is used for carrying out operation processing of account asset query/transfer-in/transfer-out, price inquiry/bid placing and transaction matching business, the markedprice module is used for carrying out calculation, cache and query of K-line data and market quotation data, and the readhistory module is used for carrying out data query of multi-dimensional historical orders, transaction flow and asset flow records;
the data layer comprises at least one Kafka module, a Redis module and/or a Mysql module, and the Kafka module, the Redis module and the Mysql module are used for data storage and preservation.
2. The digital asset transaction method of claim 1, wherein said service request comprises a transaction request, and said step of said interface layer receiving a service request sent from a web site and sending said service request to a service layer comprises:
the interface layer receives a transaction request sent by the website end and sends the transaction request to a transaction matching module in the service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the transaction matching module in the service layer receives the transaction request and distributes the transaction request to a corresponding module to perform corresponding transaction processing according to the transaction request.
3. The digital asset transaction method according to claim 2, wherein the step of receiving the transaction request by the transaction matching module in the business layer and distributing the transaction request to the corresponding module for the corresponding transaction processing according to the transaction request comprises:
a transaction matching module in the business layer receives the transaction request sent by the interface layer, matches the transaction request according to the transaction request, generates a corresponding transaction order and sends the transaction order to a transaction calculation module in the business layer and a data recording module in the data layer;
the data recording module records the transaction order;
a transaction calculation module in the service layer receives the transaction order, calculates according to the transaction order and sends a calculation result to a data storage module in a data layer;
and the data storage module in the data layer updates data according to the calculation result.
4. The digital asset transaction method of claim 1, wherein said service request comprises a query request, and said step of said interface layer receiving a service request sent from a web site and sending said service request to a service layer comprises:
the interface layer receives a query request sent by a network station end and sends the query request to a data query module in a service layer;
the step of receiving the service request by the service layer and distributing the service request to a corresponding module for corresponding processing according to the service request comprises the following steps:
and the data query module in the service layer receives the query request and distributes the query request to a corresponding module for corresponding query processing according to the query request.
5. The digital asset transaction method according to claim 4, wherein the step of receiving said query request by a data query module in said business layer and distributing said query request to a corresponding module for a corresponding query process comprises:
a data query module in the service layer receives a query request sent by the interface layer and sends the query request to a data storage module in the data layer;
the data storage module in the data layer receives the query request, obtains a query result according to the query request and returns the query result to the data query module in the service layer;
and the data query module in the service layer receives the query result and feeds the query result back to the corresponding network station end through the interface layer.
6. A digital asset transaction system, characterized in that said digital asset transaction system comprises:
the interface layer is used for receiving a service request of digital asset transaction sent by a website terminal after the service request passes the security verification and sending the service request to the service layer;
the monitoring layer is used for carrying out security verification on the service request sent by the website end;
the service layer is used for receiving the service request sent by the interface layer and distributing the service request to a corresponding module for corresponding processing according to the service request;
the interface layer comprises at least one accessshttp interface module and/or an accessswp interface module, the accessshttp interface module provides functions of asset query/transfer-in/transfer-out, price query/bid placing and order/transaction data query, and the accessswp interface module provides functions of querying and subscribing K lines, quotation and transaction running data;
the business layer comprises at least one matchingine module, a markprism module and/or a readhistory module, wherein the matchingine module is used for carrying out operation processing of account asset query/transfer-in/transfer-out, price inquiry/bid placing and transaction matching business, the markedprice module is used for carrying out calculation, cache and query of K-line data and market quotation data, and the readhistory module is used for carrying out data query of multi-dimensional historical orders, transaction flow and asset flow records;
the digital asset trading system further comprises a data layer, wherein the data layer comprises at least one Kafka module, a Redis module and/or a Mysql module, and the Kafka module, the Redis module and the Mysql module are used for data storage and preservation.
7. The digital asset transaction system of claim 6, wherein said service request comprises a transaction request, said business layer comprises a transaction matching module,
and the transaction matching module is used for receiving the transaction request and distributing the transaction request to a corresponding module for corresponding transaction processing according to the transaction request.
8. The digital asset transaction system of claim 6, wherein said business layer comprises a data query module, said service request comprises a query request,
and the data query module is used for receiving the query request and distributing the query request to a corresponding module for corresponding query processing according to the query request.
9. A computer-readable storage medium, having stored thereon a digital asset transaction program which, when executed by a processor, implements the steps of the digital asset transaction method according to any one of claims 1 to 5.
CN201910634456.6A 2019-07-12 2019-07-12 Digital asset transaction method, system and computer readable storage medium Active CN110365533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910634456.6A CN110365533B (en) 2019-07-12 2019-07-12 Digital asset transaction method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910634456.6A CN110365533B (en) 2019-07-12 2019-07-12 Digital asset transaction method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110365533A CN110365533A (en) 2019-10-22
CN110365533B true CN110365533B (en) 2022-04-12

Family

ID=68219072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910634456.6A Active CN110365533B (en) 2019-07-12 2019-07-12 Digital asset transaction method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110365533B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240647A (en) * 2020-01-15 2020-06-05 海南新软软件有限公司 Digital asset transaction middling product architecture
CN113014666B (en) * 2021-03-17 2023-02-28 深圳壹账通智能科技有限公司 Block chain protocol stack architecture method, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358428A (en) * 2017-07-25 2017-11-17 广东软秀科技有限公司 A kind of multiple terminals trade matching system
CN108764877A (en) * 2018-06-05 2018-11-06 广州裕如优信息科技有限公司 Digital asset based on block chain technology really weighs method of commerce
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780027A (en) * 2016-12-08 2017-05-31 北京金融资产交易所有限公司 A kind of data handling system and method
EP3435310A1 (en) * 2017-07-26 2019-01-30 Financial Transactions Control Systems Sweden AB (publ) System and method of a decentralized payment network
CN108830709A (en) * 2018-04-17 2018-11-16 中车工业研究院有限公司 A kind of crowdsourcing transaction system based on block chain
CN109447647A (en) * 2018-11-19 2019-03-08 上海趣链信息科技有限公司 A kind of safety payment system based on block chain
CN109949057A (en) * 2019-03-28 2019-06-28 西南石油大学 Anti-fake transaction system and the method for commerce of tracing to the source of digital art works based on block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358428A (en) * 2017-07-25 2017-11-17 广东软秀科技有限公司 A kind of multiple terminals trade matching system
CN108764877A (en) * 2018-06-05 2018-11-06 广州裕如优信息科技有限公司 Digital asset based on block chain technology really weighs method of commerce
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110365533A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
US10055730B2 (en) Method, terminal, server, device, and system of verification control
JP5399553B2 (en) Method, apparatus and computer program product for invoking an application service for local communication
CN107657518A (en) A kind of flow path processing method and relevant apparatus and server based on event
CN107798108A (en) A kind of asynchronous task querying method and equipment
CN110365533B (en) Digital asset transaction method, system and computer readable storage medium
CN107341238B (en) Data processing method and system
CN110880214A (en) Queuing and calling method, system and device based on small program
CN110990486A (en) Block link evidence issuing and storing method and device based on network data interaction
CN112991064B (en) Service processing method, device, computer equipment and storage medium
US20090030847A1 (en) Personal data submission
CN113556695B (en) Information interaction method and information interaction system based on 5G message
CN108874836B (en) Method and device for transferring electronic ticket
CN105512208B (en) Information publishing method, device and system
CN111801696A (en) Payment page management method, payment page management device, payment system and storage medium
JP2020047057A (en) Information processing method, information processing device, and program
CN107977380B (en) Method and device for generating page
CN111341039B (en) Card-retaining processing method and system, client and server
US20130212029A1 (en) Product Packaging Profiler
JP2004318379A (en) Merger and acquisition support system
CN114170004A (en) Scoring decision-making method, device, equipment and storage medium based on multiple events
CN111476562A (en) Virtual resource transfer method, device, electronic equipment and storage medium
JP2010515129A (en) Intelligent system for integrated content posting
CN110032703A (en) A kind of enterprise web site trustship method and system
CN111815381A (en) Information generation method and device
JP2004164255A (en) Distributed computing system

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