Transaction matching system based on block chain technology

By adopting blockchain technology transaction matching system in the field of green power trading, using blockchain node clusters and smart contracts to synchronize and match transaction requests, the problem of low security of transaction data in the existing technology is solved, and the ability of transaction data can be achieved Trust transactions and fairness.

CN119155011AActive Publication Date: 2024-12-17CHINA SOUTHERN POWER GRID ARTIFICIAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411210676.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-17
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The existing trading technology in the field of green power trading is insufficient openness and transparency, and transaction data is easily tampered with privately in centralized databases, resulting in low security.

Method used

Using a transaction matching system based on blockchain technology, the blockchain node cluster, the first blockchain node and the second blockchain node are synchronized and matched transaction requests, and using smart contracts and distributed storage to ensure the transaction process. Fairness and immutability.

Benefits of technology

It improves the security of the transaction process and data, eliminates the possibility of human interference and data tampering, and realizes the standard of trusted transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155011A_ABST
    Figure CN119155011A_ABST
Patent Text Reader

Abstract

The invention relates to a transaction matchmaking system based on a block chain technology. The transaction matching system based on the block chain technology comprises a platform system, a plurality of first transaction party systems and a plurality of second transaction party systems, a first transaction party system logs in a first block chain node based on a first block chain account and submits a first transaction request to the first block chain node, and the first block chain node synchronizes the first transaction request to a block chain node cluster and a second block chain node in a platform system; the second transaction party system logs in a second block chain node based on a second block chain account and submits a second transaction request to the second block chain node, and the second block chain node synchronizes the second transaction request to the block chain node cluster and the first block chain node; and each block chain node synchronously performs transaction matching on each first transaction request and each second transaction request to obtain a plurality of transaction request pairs. By adopting the transaction matching system based on the block chain technology, the security of transaction data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a transaction matching system based on blockchain technology. Background Art

[0002] At present, in the field of green power trading, the commonly used trading technology is to establish a centralized database and use the trading software on the platform to complete the entire transaction process. However, this type of trading software lacks openness and transparency. The transaction data is completely stored in the centralized database of the trading platform, which may be tampered with privately. If the data is not properly stored and backed up, once it is leaked or damaged, the consequences are relatively serious. Therefore, the problem of how to improve the security of transaction data needs to be solved urgently. Summary of the invention

[0003] Based on this, it is necessary to provide a transaction matching system based on blockchain technology that can improve the security of transaction data in response to the above technical problems.

[0004] In the first aspect, the present application provides a transaction matching system based on blockchain technology. The transaction matching system based on blockchain technology includes a platform system, multiple first transaction party systems and multiple second transaction party systems; the platform system is deployed with a blockchain node cluster, the first transaction party system is deployed with a first blockchain node, and the second transaction party system is deployed with a second blockchain node; each first transaction party system is used to log in to the first blockchain node based on a first blockchain account when there is a transaction acquisition demand, and submit a first transaction request to the first blockchain node, wherein the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system; each second transaction party system is used to log in to the second blockchain node based on a second blockchain account when there is a transaction output demand, and submit a second transaction request to the second blockchain node, wherein the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node; the blockchain node cluster, the first blockchain node and the second blockchain node synchronously match each first transaction request with the second transaction request to obtain multiple transaction request pairs.

[0005] In one of the embodiments, the blockchain node cluster, the first blockchain node and the second blockchain node respectively include a transaction matching module and a transaction storage module; the transaction matching module is used to match each first transaction request and each second transaction request according to a preset matching rule included in the smart contract to obtain a plurality of transaction request pairs; the transaction storage module is used to distributely store each transaction request pair based on blockchain ledger technology; wherein the transaction request pair includes transaction status data and transaction result data, the transaction status data is used to characterize whether the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully, and the transaction result data includes the transaction content after the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully.

[0006] In one embodiment, the preset matching rules include sorting rules and matching rules; the first transaction request includes at least a resource supply quantity and a transaction request quantity, and the second transaction request includes at least a resource request quantity and a transaction supply quantity; the transaction matching module is used to sort each first transaction request according to the resource supply quantity and the transaction request quantity of each first transaction request under the limitation of the sorting rule; and, according to the resource request quantity and the transaction supply quantity of each second transaction request, under the limitation of the sorting rule, sort each second transaction request; the transaction matching module is also used to match each first transaction request with each second transaction request according to the matching rule and the sorting result, to obtain multiple pairs of the transaction requests.

[0007] In one of the embodiments, the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node based on a peer-to-peer transmission protocol; the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node based on a peer-to-peer transmission protocol.

[0008] In one embodiment, the first transaction party system also includes a first information management module, and the second transaction party system also includes a second information management module; the first transaction party system is used to generate a transaction acquisition order based on the resource supply quantity and transaction request quantity input by the first transaction user; obtain the first account identifier and the first transaction key corresponding to the first transaction user from the first information management module, and encrypt the first account identifier using the first transaction key; obtain the first transaction request based on the transaction acquisition order and the encrypted first account identifier; the second transaction party system is used to generate a transaction output order based on the resource request quantity and transaction supply quantity input by the second transaction user; obtain the second account identifier and the second transaction key corresponding to the second transaction user from the second information management module, and encrypt the second account identifier using the second transaction key; obtain the second transaction request based on the transaction output order and the encrypted second account identifier.

[0009] In one embodiment, the first transaction party system also includes a first transaction agent module, and the second transaction party system also includes a second transaction agent module; the first transaction agent module is used to sign the first transaction request using a digital certificate, and submit the first transaction request after the signature is encrypted to the first blockchain node; the second transaction agent module is used to sign the second transaction request using a digital certificate, and submit the second transaction request after the signature is encrypted to the second blockchain node.

[0010] In one of the embodiments, the platform system further includes a transaction management module and a transaction cache module; the transaction management module is used to store each transaction request pair in the transaction cache module.

[0011] In one embodiment, the transaction management module is also used to receive a query request from the first transaction party system and / or the second transaction party system; and based on the query request, obtain the target transaction information from the transaction cache module, and display or feedback the target transaction information to the first transaction party system and / or the second transaction party system.

[0012] In one embodiment, the platform system also includes a third transaction agent module; the first transaction agent module and / or the second transaction agent module is used to send the query request to the third transaction agent module based on a two-way encryption technology; the third transaction agent module is used to feed back the target transaction information to the first transaction agent module and / or the second transaction agent module based on the two-way encryption technology.

[0013] In one of the embodiments, the first transaction party system is used to obtain the first blockchain account and the first blockchain transaction key corresponding to the first blockchain account from the first information management module; log in to the first blockchain node based on the first blockchain account and the first blockchain transaction key; the second transaction party system is used to obtain the second blockchain account and the second blockchain transaction key corresponding to the second blockchain account from the second information management module; log in to the second blockchain node based on the second blockchain account and the second blockchain transaction key.

[0014] The transaction matching system based on blockchain technology includes a platform system, multiple first transaction party systems and multiple second transaction party systems; the platform system is deployed with a blockchain node cluster, the first transaction party system is deployed with a first blockchain node, and the second transaction party system is deployed with a second blockchain node; each first transaction party system is used to log in to the first blockchain node based on the first blockchain account when there is a transaction acquisition demand, and submit a first transaction request to the first blockchain node, wherein the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system; each second transaction party system is used to log in to the second blockchain node based on the second blockchain account when there is a transaction output demand, and submit a second transaction request to the second blockchain node, wherein the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node; the blockchain node cluster, the first blockchain node and the second blockchain node synchronously match each first transaction request and the second transaction request to obtain multiple transaction request pairs. In this way, since the blockchain nodes of the platform system, each first transaction party system and each second transaction party system simultaneously match to form multiple transaction request pairs, the transaction matching process will not be easily interfered with, eliminating the possibility of human interference, meeting the standards of trusted transactions, and improving the security of the transaction process and the generated transaction data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] FIG1 is a schematic diagram of the architecture of a transaction matching system based on blockchain technology in one embodiment;

[0017] Figure 2 A schematic diagram of the architecture of another transaction matching system based on blockchain technology in one embodiment;

[0018] Figure 3 A schematic diagram of the architecture of another transaction matching system based on blockchain technology in one embodiment;

[0019] Figure 4 A schematic diagram of the architecture of another transaction matching system based on blockchain technology in one embodiment;

[0020] Figure 5 A schematic diagram of the architecture of another transaction matching system based on blockchain technology in one embodiment;

[0021] Figure 6 A schematic diagram of the architecture of a smart contract green electricity transaction matching system based on blockchain technology in one embodiment;

[0022] Figure 7 A schematic diagram of node communication in an embodiment;

[0023] Figure 8 A schematic diagram of a transaction process in an embodiment;

[0024] Fig. 9 A schematic diagram of a communication architecture based on a transaction agent in one embodiment;

[0025] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It should be understood that many specific details are set forth in the following description to facilitate a full understanding of the present application, but the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0028] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0029] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0030] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.

[0031] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0032] At present, in the field of green power trading, the commonly used trading technology is to establish a centralized database and use trading software to complete the entire trading process. However, this type of trading software lacks openness and transparency. All trading data, order price ranking, and order quantity ranking are generated and displayed by the centralized trading platform. It cannot prove whether there are lost orders, unfair rankings, back-end order withdrawals, private orders, and virtual orders. The credit of the trading process relies on the trading platform itself to endorse, which is not credible. It is impossible to prove its fairness, the complete authenticity and correctness of the transaction data; the data is completely stored in the centralized database, and there is a possibility of being tampered with privately; if the data is not properly stored and backed up, once it is leaked or damaged, the consequences are relatively serious.

[0033] In summary, the main problem is that trading data is stored centrally, and trading procedures are also provided uniformly by the trading platform. The managers of the trading platform cannot effectively prove the fairness, transparency, and correctness of the data and trading process, resulting in low security of the trading process and trading data.

[0034] In view of this, an embodiment of the present application provides a transaction matching system based on blockchain technology, which can improve the security of transaction process and data.

[0035] In one embodiment, as shown in FIG1 , a transaction matching system based on blockchain technology is provided, and the transaction matching system based on blockchain technology includes a platform system, multiple first transaction party systems, and multiple second transaction party systems; the platform system is deployed with a blockchain node cluster, the first transaction party system is deployed with a first blockchain node, and the second transaction party system is deployed with a second blockchain node. It should be noted that, for ease of understanding, FIG1 only takes one first transaction party system and one second transaction party system as an example. Optionally, the platform system, the first transaction party system, and the second transaction party system can be integrated in a server, and the server processes and implements the functions of each system.

[0036] Each first transaction party system is used to log in to the first blockchain node based on the first blockchain account and submit a first transaction request to the first blockchain node when there is a transaction acquisition demand, wherein the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system.

[0037] In other words, among all first transaction party systems, only the first transaction party system with transaction acquisition requirements will log in to the first blockchain node deployed by itself and submit the first transaction request. For the first transaction party system without transaction acquisition requirements, it will not submit the first transaction request. Accordingly, as long as the first transaction request is submitted to the first blockchain node, the first blockchain node will automatically synchronize the first transaction request to the blockchain node cluster and the second blockchain node.

[0038] Each second transaction party system is used to log in to the second blockchain node based on the second blockchain account and submit a second transaction request to the second blockchain node when there is a transaction output demand, wherein the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node.

[0039] In other words, among all second transaction party systems, only the second transaction party system with transaction acquisition requirements will log in to the second blockchain node deployed by itself and submit the second transaction request. For the second transaction party system without transaction acquisition requirements, it will not submit the second transaction request. Accordingly, as long as the second transaction request is submitted to the second blockchain node, the second blockchain node will automatically synchronize the second transaction request to the blockchain node cluster and the first blockchain node.

[0040] It is understandable that the platform system is the platform side, and the first transaction party system and the second transaction party system both belong to the client. Optionally, the first blockchain node and the second blockchain node have the same composition. In other words, the client deploys a blockchain node. If a first transaction request is submitted to the blockchain node, the deployed blockchain node is the first blockchain node; if a second transaction request is submitted to the blockchain node, the deployed blockchain node is the second blockchain node. In other words, the client can deploy a blockchain node, and can submit the first transaction request when there is a transaction acquisition requirement, and can also submit the second transaction request when there is a transaction output requirement.

[0041] Furthermore, the blockchain node cluster, the first blockchain node, and the second blockchain node synchronously perform transaction matching on each first transaction request and the second transaction request to obtain multiple transaction request pairs.

[0042] In other words, the blockchain node cluster, the first blockchain node, and the second blockchain node perform transaction matching on the first transaction request and the second transaction request, respectively, and obtain multiple transaction request pairs. It can be understood that since the blockchain node cluster, the first blockchain node, and the second blockchain node have the same structure, that is, the functional modules included are the same, therefore, the results of the multiple transaction request pairs obtained are also the same.

[0043] Exemplarily, when there is a transaction acquisition demand, the first transaction party system acts as a buyer and submits a first transaction request; when there is a transaction output demand, the second transaction party system acts as a seller and submits a second transaction request. The blockchain node cluster, the first blockchain node, and the second blockchain node all perform a matching process to obtain a matching result.

[0044] Since the process is jointly executed by three parties, data tampering caused by other interference is avoided, which improves the security and non-interference of the matching process.

[0045] The transaction matching system based on blockchain technology includes a platform system, multiple first transaction party systems and multiple second transaction party systems; the platform system is deployed with a blockchain node cluster, the first transaction party system is deployed with a first blockchain node, and the second transaction party system is deployed with a second blockchain node; each first transaction party system is used to log in to the first blockchain node based on the first blockchain account when there is a transaction acquisition demand, and submit a first transaction request to the first blockchain node, wherein the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system; each second transaction party system is used to log in to the second blockchain node based on the second blockchain account when there is a transaction output demand, and submit a second transaction request to the second blockchain node, wherein the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node; the blockchain node cluster, the first blockchain node and the second blockchain node synchronously match each first transaction request and the second transaction request to obtain multiple transaction request pairs. In this way, since the blockchain nodes of the platform system, each first transaction party system and each second transaction party system simultaneously match to form multiple transaction request pairs, the transaction matching process will not be easily interfered with, eliminating the possibility of human interference, meeting the standards of trusted transactions, and improving the security of the transaction process and the generated transaction data.

[0046] In one embodiment, Figure 2 A schematic diagram of the architecture of another transaction matching system based on blockchain technology is shown, wherein the blockchain node cluster, the first blockchain node and the second blockchain node respectively include a transaction matching module and a transaction storage module.

[0047] The transaction matching module is used to match each first transaction request with each second transaction request according to the preset matching rules included in the smart contract to obtain multiple transaction request pairs.

[0048] The transaction storage module is used to distribute and store each transaction request pair based on the blockchain ledger technology; wherein the transaction request pair includes transaction status data and transaction result data.

[0049] That is, the preset smart contract is used to complete the transaction process. The first transaction request and the second transaction request are accepted, and according to the preset matching rules, the public smart contract algorithm is run simultaneously on all blockchain nodes to complete the matching transaction process and output the transaction results.

[0050] The source code ABI (Application Binary Interface) of the smart contract is completely public and can be reviewed by all client users. At the same time, the smart contract will run on the blockchain nodes of all clients, reach a consensus and output the results.

[0051] The transaction status data is used to indicate whether the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully, and the transaction result data includes the transaction content after the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully. The transaction content may include all or part of the data involved in the transaction, which is not fully exemplified here, and the data involved in the transaction is sufficient.

[0052] Optionally, if the transaction status data is used to indicate that the first transaction request and the second transaction request corresponding to the transaction request pair are not successfully matched, the transaction result data in the transaction request pair may be empty.

[0053] In this way, by using blockchain technology, transaction data is distributedly stored, and smart contracts are also distributed and run on various blockchain nodes, so that each transaction party can participate in the entire process of storage and transaction, ensuring the security and non-tamperability of the transaction process.

[0054] In one embodiment, the preset matching rules include sorting rules and matching rules; the first transaction request includes at least a resource supply quantity and a transaction request quantity, and the second transaction request includes at least a resource request quantity and a transaction supply quantity.

[0055] The transaction matching module is used to sort the first transaction requests according to the resource supply and transaction request quantity of each first transaction request under the limitation of the sorting rule; and to sort the second transaction requests according to the resource request and transaction supply quantity of each second transaction request under the limitation of the sorting rule. The transaction matching module is also used to match the first transaction requests with the second transaction requests according to the matching rule and the sorting result to obtain multiple transaction request pairs.

[0056] For example, the first transaction requests are sorted from large to small according to at least one of the resource supply amount and the transaction request amount to obtain a first sorting result. And the second transaction requests are sorted from large to small according to at least one of the resource request amount and the transaction supply amount to obtain a second sorting result.

[0057] According to the matching rules, the requests are matched in order. For example, the first transaction request ranked first in the first sorting result matches the second transaction request ranked first in the second sorting result; the first transaction request ranked second in the first sorting result matches the second transaction request ranked second in the second sorting result.

[0058] For another example, the first transaction requests are sorted from large to small according to the resource supply amount and the transaction request quantity, to obtain a first sorting result, wherein the priority of the resource supply amount is greater than the transaction request quantity, that is, when the transaction request quantities are the same, the first transaction request with a larger resource supply amount is sorted higher.

[0059] For another example, the second transaction requests are sorted from large to small according to the resource request amount and the transaction supply amount, and the priority of the transaction supply amount is higher than the resource request amount. That is, when the resource request amount is the same, the second transaction request with a larger transaction supply amount is sorted higher.

[0060] It should be noted that the above-mentioned sorting rules and priority settings from large to small are only examples and can be determined according to actual transaction conditions. They are not fully illustrated here.

[0061] Exemplarily, each first transaction party system acts as a buyer and submits a first transaction request, which includes a purchase order; each second transaction party system acts as a seller and submits a second transaction request. The resource supply quantity can be, for example, the price of the item provided by the buyer, and the transaction request quantity can be the quantity of the item required by the buyer; the resource request quantity can be the price of the item required by the seller, and the transaction supply quantity can be the quantity of the item provided by the seller. In this way, based on smart contract, smart matching is carried out, and all three parties participate in the process of matching transaction requests, which improves the fairness, transparency and security of the transaction process.

[0062] In one embodiment, the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node based on a peer-to-peer transmission protocol; the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node based on a peer-to-peer transmission protocol.

[0063] The point-to-point transmission protocol may be a P2P protocol. That is, each blockchain node is interconnected through the P2P protocol. In this way, the efficiency and security of the transmission process can be ensured.

[0064] In one embodiment, Figure 3 Another schematic diagram of the architecture of a transaction matching system based on blockchain technology is shown. The first transaction party system also includes a first information management module, and the second transaction party system also includes a second information management module.

[0065] The first transaction party system is used to generate a transaction acquisition form according to the resource supply amount and transaction request quantity input by the first transaction user; obtain the first account identifier and the first transaction key corresponding to the first transaction user from the first information management module, and encrypt the first account identifier using the first transaction key; and obtain the first transaction request according to the transaction acquisition form and the encrypted first account identifier.

[0066] That is, the first information management module acts as an account key management module to manage and store accounts and keys. The first information management module stores the first account identifier corresponding to the first transaction user and the first transaction key. The first account identifier is encrypted using the first transaction key and bound to the transaction acquisition form. In this way, the first account identifier can be associated with the transaction acquisition form to determine the account to which the transaction acquisition form belongs, and other blockchain nodes can be prevented from identifying the first account identifier, which is equivalent to the first account identifier being anonymous to the blockchain node, ensuring transaction fairness.

[0067] The second transaction party system is used to generate a transaction output order according to the resource request quantity and transaction supply quantity input by the second transaction user; obtain the second account identifier and the second transaction key corresponding to the second transaction user from the second information management module, and encrypt the second account identifier using the second transaction key; and obtain the second transaction request according to the transaction output order and the encrypted second account identifier.

[0068] Similarly, the second information management module also serves as an account key management module in the second transaction party system to manage and store accounts and keys. The second information management module stores the second account identifier corresponding to the second transaction user and the second transaction key. The second account identifier is encrypted using the second transaction key and bound to the transaction output order. In this way, the second account identifier can be associated with the transaction output order to determine the account to which the transaction output order belongs, and other blockchain nodes can be prevented from identifying the second account identifier, which is equivalent to the second account identifier being anonymous to the blockchain node, ensuring transaction fairness.

[0069] Exemplarily, the first transaction party system acts as the buyer and the second transaction party system acts as the seller, then the transaction acquisition order may be a buy order and the transaction output order may be a sell order.

[0070] In one embodiment, Figure 4 Another schematic diagram of the architecture of a transaction matching system based on blockchain technology is shown. The first transaction party system also includes a first transaction agent module, and the second transaction party system also includes a second transaction agent module.

[0071] The first transaction agent module is used to sign the first transaction request using a digital certificate and submit the first transaction request with encrypted signature to the first blockchain node.

[0072] The second transaction agent module is used to sign the second transaction request using the digital certificate and submit the signed and encrypted second transaction request to the second blockchain node.

[0073] That is, the first transaction agent module and the second transaction agent module are used to connect the blockchain node and the transaction party system, and are responsible for the communication between the transaction party system and the blockchain node. The communication content is signed using the CA certificate to ensure the security of the communication content transmission process.

[0074] In one embodiment, Figure 4 As shown, the platform system also includes a transaction management module and a transaction cache module; the transaction management module is used to store each transaction request pair in the transaction cache module.

[0075] In one embodiment, the transaction management module is also used to receive query requests from the first transaction party system and / or the second transaction party system; and based on the query request, obtain target transaction information from the transaction cache module, and display or feedback the target transaction information to the first transaction party system and / or the second transaction party system.

[0076] Optionally, the query request includes querying target transaction information, or counting target transaction information, etc., which is not specifically limited here. Optionally, the target transaction information is transaction information generated in a historical transaction process.

[0077] In this way, the platform system can store the backup in the blockchain node cluster in the transaction cache module, which can be queried and previewed by the client, avoiding data loss and improving the flexibility of data query.

[0078] In one embodiment, Figure 5 Another schematic diagram of the architecture of a transaction matching system based on blockchain technology is shown. The platform system also includes a third transaction agent module.

[0079] The first transaction agent module and / or the second transaction agent module are configured to send the query request to the third transaction agent module based on a two-way encryption technology;

[0080] The third transaction agent module is used to feed back the target transaction information to the first transaction agent module and / or the second transaction agent module based on the two-way encryption technology.

[0081] That is, direct communication between the platform system, the first transaction party system and the second transaction party system is realized through the first transaction agent module, the second transaction agent module and the third transaction agent module, and each transaction agent module will use two-way encryption technology when establishing communication, ensuring the security of the data transmission process during direct communication between the platform system, the first transaction party system and the second transaction party system.

[0082] The query request may be sent to the third transaction agent module after being encrypted. After the platform system determines that the third transaction agent module has received the query request, it obtains the target transaction information from the transaction cache module based on the transaction management module.

[0083] In one embodiment, the first transaction party system is used to obtain the first blockchain account and the first blockchain transaction key corresponding to the first blockchain account from the first information management module; log in to the first blockchain node based on the first blockchain account and the first blockchain transaction key; the second transaction party system is used to obtain the second blockchain account and the second blockchain account corresponding to the second blockchain account from the second information management module; log in to the second blockchain node based on the second blockchain account and the second blockchain transaction key.

[0084] That is, the first blockchain account and its corresponding first blockchain transaction key are stored in the first information management module. As mentioned above, when there is a transaction acquisition demand, the first transaction party system logs in to the first blockchain node based on the first blockchain account. During the login process, the first blockchain account and the first blockchain transaction key corresponding to the first blockchain account are provided to the first blockchain node, and the first blockchain node verifies the first blockchain account based on the first blockchain transaction key. After the verification is passed, the login is successful. The login and storage of the second blockchain account are similar to those of the second blockchain account, and will not be repeated.

[0085] In this way, the security of the process when the client logs in to the blockchain node can be ensured.

[0086] For ease of understanding, the following is a complete example of a smart contract green electricity transaction matching system based on blockchain technology provided by this application. It can be understood that the smart contract green electricity transaction matching system based on blockchain technology is a specific example of the above-mentioned transaction matching system based on blockchain technology. Here, the provided smart contract green electricity transaction matching platform based on blockchain technology uses the distributed ledger storage of blockchain and the public distributed operation of smart contracts. All transaction processes and transaction data are publicly stored and managed on the transaction platform and each client blockchain node, and the data involving privacy is encrypted by the user side. Through technical endorsement, the possibility of human interference is eliminated, and the standards of trusted transactions and trusted storage are achieved.

[0087] Please refer to Figure 6 The system architecture diagram is shown in Figure 1. This matching transaction system uses blockchain technology as the underlying layer, relies on blockchain ledgers for distributed storage, and blockchain smart contracts to complete distributed transactions. All transaction processes and result data are executed and stored simultaneously on each user side. The platform side cannot tamper with any data, nor can it interfere with the transaction process privately. This matching transaction system consists of the platform side and the buyer side / seller side. It includes functional modules such as transaction storage, transaction matching, transaction agency, and transaction management.

[0088] Platform-side architecture: It consists of blockchain nodes, transaction agent clients, transaction management, and transaction cache. It mainly provides blockchain node clusters (including blockchain ledgers and smart contract functions), coordinates transaction management of each buyer / seller, and synchronizes data from the blockchain to high-speed transaction cache. The transaction communication between the platform and the buyer / seller is completed by the transaction agent module. Figure 7 As shown in the node communication diagram, the platform and the buyer / seller's blockchain nodes are interconnected through the P2P protocol, and when the client uploads data to the blockchain node, it logs in to the blockchain node based on the blockchain account and transaction key stored in the account key management, and encrypts personal information with the account key and then binds it to the transaction order and uploads it to the blockchain node.

[0089] The client architecture of the seller and buyer sides: It consists of blockchain nodes, transaction agent clients, local accounts and key management. Both the seller and the buyer can install blockchain nodes locally to store transaction data and run smart contracts to monitor the entire transaction process; they can connect to the transaction platform and blockchain nodes through transaction agents to use transaction functions; they can manage their own accounts, keys and other private information.

[0090] Among them, the transaction storage function relies on the characteristics of blockchain to achieve distributed storage. The blockchain ledger is used to permanently store all transaction process data and result data, including but not limited to records of pending orders, order withdrawals, transactions, and delivery. Based on the characteristics of blockchain, this data cannot be tampered with. All data is distributed on the blockchain nodes of the platform and client (buyer / seller). The blockchain wallet is used to store the user's personal blockchain account, personal information, account key, transaction key and other information. On each blockchain node, the transaction matching smart contract will run simultaneously and generate the same transaction status data and result data on each blockchain, which will be stored in the transaction storage module. Based on the characteristics of blockchain, this data cannot be tampered with.

[0091] Transaction matching relies on blockchain smart contracts. Figure 8 The transaction process diagram shown in Figure 1 is shown in Figure 1. The seller's order is encrypted by the seller's private key and uploaded to the blockchain node. The buyer's order is encrypted by the buyer's private key and uploaded to the blockchain node. After each blockchain node synchronizes each order, the transaction matching module of each blockchain node matches the transaction process based on the smart contract to obtain the transaction result. The transaction result is stored in the transaction storage module and can be used for transaction verification and audit. Among them, the smart contract is used to complete the transaction process. Accept buy orders and sell orders, and run the public contract algorithm on all blockchain nodes at the same time according to the preset matching rules to complete the matching transaction process and output the transaction result. The smart contract will sort and match the buy orders and sell orders according to the public matching algorithm, output the successfully matched transaction pairs, and permanently record the results on the blockchain. The source code ABI of the smart contract is completely public and can be reviewed by all client users. The smart contract will run on all client blockchain nodes, reach a consensus and output the results.

[0092] The transaction agent is used to connect the platform and various clients, and is responsible for communicating with the blockchain nodes. Two-way encryption technology is used to establish communication, and the CA certificate is used to sign the communication content. Fig. 9 The communication architecture diagram based on the transaction agent is shown. The content of direct communication between the platform side, the buyer side and the seller side is encrypted through the data in their own account key management and sent to the other party based on the transaction agent. At the same time, the received data can also be decrypted through the data in the account key management. In addition, each party can also log in to the blockchain node of their respective platform through the transaction agent.

[0093] The transaction management on the platform side is responsible for coordinating transactions between buyers and sellers, synchronizing data from the blockchain to the high-speed transaction cache, and providing it to the client for quick query, statistics, etc. The transaction management on the buyer / seller side is responsible for the account and key management of local users.

[0094] By using blockchain technology, transaction data is distributedly stored, and smart contracts are also distributed and run on various blockchain nodes, so that every buyer and seller can participate in the entire process of storage and transaction, and each client is a supervisor. The source code ABI of the contract is completely public, and the data of the blockchain nodes is also determined and unified through consensus.

[0095] Through technical endorsement, factors that may affect transactions artificially are eliminated. This matchmaking trading platform achieves transparency, unification and fairness in the entire transaction process. No party can tamper with or maliciously interfere with the transaction process and result data.

[0096] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data generated by a transaction matching system based on blockchain technology. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection.

[0097] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0099] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0100] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transaction matching system based on blockchain technology, characterized in that: The transaction matching system based on blockchain technology includes a platform system, multiple first transaction party systems and multiple second transaction party systems; the platform system is deployed with a blockchain node cluster, the first transaction party system is deployed with a first blockchain node, and the second transaction party system is deployed with a second blockchain node; Each of the first transaction party systems is configured to log in to the first blockchain node based on the first blockchain account and submit a first transaction request to the first blockchain node when there is a transaction acquisition demand, wherein the first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system; Each second transaction party system is configured to log in to the second blockchain node based on the second blockchain account and submit a second transaction request to the second blockchain node when there is a transaction output demand, wherein the second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node; The blockchain node cluster, the first blockchain node, and the second blockchain node synchronously perform transaction matching on each of the first transaction request and the second transaction request to obtain multiple transaction request pairs.

2. The system according to claim 1, characterized in that The blockchain node cluster, the first blockchain node and the second blockchain node respectively include a transaction matching module and a transaction storage module; The transaction matching module is used to match each of the first transaction requests with each of the second transaction requests according to a preset matching rule included in the smart contract, so as to obtain a plurality of transaction request pairs; The transaction storage module is used to distribute and store each of the transaction request pairs based on blockchain ledger technology; wherein the transaction request pairs include transaction status data and transaction result data, the transaction status data is used to indicate whether the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully, and the transaction result data includes the transaction content after the first transaction request and the second transaction request corresponding to the transaction request pair are matched successfully.

3. The system according to claim 2, characterized in that The preset matching rules include a sorting rule and a matching rule; the first transaction request includes at least a resource supply quantity and a transaction request quantity, and the second transaction request includes at least a resource request quantity and a transaction supply quantity; The transaction matching module is used to sort the first transaction requests according to the resource supply quantity and the transaction request quantity of each first transaction request under the limitation of the sorting rule; and to sort the second transaction requests according to the resource request quantity and the transaction supply quantity of each second transaction request under the limitation of the sorting rule; The transaction matching module is further used to perform transaction matching on each of the first transaction requests and each of the second transaction requests according to the matching rule and the sorting result, so as to obtain a plurality of the transaction request pairs.

4. The system according to claim 1, characterized in that The first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node based on a peer-to-peer transmission protocol; The second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node based on a peer-to-peer transmission protocol.

5. The system according to claim 1, characterized in that The first transaction party system further includes a first information management module, and the second transaction party system further includes a second information management module; The first transaction party system is configured to generate a transaction acquisition form according to the resource supply quantity and transaction request quantity input by the first transaction user; obtain a first account identifier and a first transaction key corresponding to the first transaction user from the first information management module, and encrypt the first account identifier using the first transaction key; and obtain the first transaction request according to the transaction acquisition form and the encrypted first account identifier; The second transaction party system is used to generate a transaction output order according to the resource request quantity and transaction supply quantity input by the second transaction user; obtain the second account identifier and the second transaction key corresponding to the second transaction user from the second information management module, and encrypt the second account identifier using the second transaction key; and obtain the second transaction request according to the transaction output order and the encrypted second account identifier.

6. The system according to claim 5, characterized in that The first transaction party system further includes a first transaction agent module, and the second transaction party system further includes a second transaction agent module; The first transaction agent module is configured to sign the first transaction request using a digital certificate, and submit the first transaction request after the signature encryption to the first blockchain node; The second transaction agent module is used to sign the second transaction request using a digital certificate and submit the second transaction request with encrypted signature to the second blockchain node.

7. The system according to claim 6, characterized in that The platform system also includes a transaction management module and a transaction cache module; The transaction management module is used to store each transaction request pair in the transaction cache module.

8. The system according to claim 7, characterized in that The transaction management module is also used to receive a query request from the first transaction party system and / or the second transaction party system; and based on the query request, obtain target transaction information from the transaction cache module, and display or feedback the target transaction information to the first transaction party system and / or the second transaction party system.

9. The system according to claim 8, characterized in that The platform system also includes a third transaction agent module; The first transaction agent module and / or the second transaction agent module is used to send the query request to the third transaction agent module based on a two-way encryption technology; The third transaction agent module is used to feed back the target transaction information to the first transaction agent module and / or the second transaction agent module based on the two-way encryption technology.

10. The system according to claim 5, characterized in that The first transaction party system is configured to obtain the first blockchain account and the first blockchain transaction key corresponding to the first blockchain account from the first information management module; and log in to the first blockchain node based on the first blockchain account and the first blockchain transaction key; The second transaction party system is used to obtain the second blockchain account and the second blockchain transaction key corresponding to the second blockchain account from the second information management module; Log in to the second blockchain node based on the second blockchain account and the second blockchain transaction key.

Citation Information

Patent Citations

  • Asset transaction method and device based on blockchain system, and hardware equipment

    CN111027992A

  • Transaction matchmaking system, on-chain matchmaking method thereof and blockchain node

    CN111353888A

  • Decentralized transaction method and device based on block chain and electronic device

    CN111612453A

  • Transaction method, device and system based on block chain and readable storage medium

    CN112669157A

  • Transaction matching method and device based on block chain, equipment and medium

    CN115239443A