Transaction matching system based on blockchain technology

The transaction matching system built with blockchain technology realizes the distributed storage and matching of green power transaction data, solves the problems of insufficient security and transparency of transaction data, ensures the fairness and non-tamperability of the transaction process, and meets the standards of trusted transactions.

CN119155011BActive Publication Date: 2025-09-23CHINA SOUTHERN POWER GRID ARTIFICIAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing green electricity trading system, transaction data lacks security and transparency, there is a risk of tampering, and the transaction process lacks fairness and credibility.

Method used

The transaction matching system is built using blockchain technology, and distributed storage and matching of transaction requests are achieved through blockchain node clusters and smart contracts. Point-to-point transmission protocols and digital certificates are used to ensure data transmission security. The platform system and the transaction party system log in and submit transaction requests through blockchain accounts. Smart contracts run on all nodes to ensure fairness and transparency.

Benefits of technology

It improves the security and non-tamperability of the transaction process, realizes trusted transactions, eliminates human interference, and ensures the authenticity and correctness of transaction data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155011B_ABST
    Figure CN119155011B_ABST
Patent Text Reader

Abstract

This application relates to 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 first transaction party system logs into a first blockchain node based on a first blockchain account and submits a first transaction request to the first blockchain node. The first blockchain node synchronizes the first transaction request to the blockchain node cluster and the second blockchain node in the platform system. The second transaction party system logs into a second blockchain node based on a second blockchain account and submits a second transaction request to the second blockchain node. The second blockchain node synchronizes the second transaction request to the blockchain node cluster and the first blockchain node. Each blockchain node synchronously matches each first transaction request with the second transaction request, resulting in multiple transaction request pairs. Using a transaction matching system based on blockchain technology can improve transaction data security.
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] Currently, the most commonly used trading technology in the green power trading sector is to establish a centralized database and use platform-side trading software to complete all aspects of the transaction. However, this type of trading software lacks openness and transparency. Transaction data is stored entirely within the trading platform's centralized database, leaving it vulnerable to tampering. Without proper data storage and backup, leaks or corruption can have serious consequences. Therefore, improving the security of transaction data is an urgent issue. 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 to address the above technical problems.

[0004] In a 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 configured to log in to the first blockchain node based on a first blockchain account when a transaction acquisition request is required, 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 configured to log in to the second blockchain node based on a second blockchain account when a transaction output request is required, 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, thereby obtaining multiple transaction request pairs.

[0005] In one embodiment, 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 the preset matching rules 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 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.

[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 transaction request quantity of each first transaction request, under the limitation of the sorting rule; and to sort each second transaction request according to the resource request quantity 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 each first transaction request with each second transaction request according to the matching rule and the sorting result, to obtain multiple transaction request pairs.

[0007] 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.

[0008] In one embodiment, 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 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 form and the encrypted first account identifier; the second transaction party system is configured to generate a transaction output form 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; and obtain the second transaction request based on the transaction output form and the encrypted second account identifier.

[0009] In one embodiment, 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 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 embodiment, the platform system further includes a transaction management module and a transaction cache module; the transaction management module is configured to store each transaction request pair in the transaction cache module.

[0011] In one embodiment, the transaction management module is further 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 feed back 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 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; 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; and log in to the second blockchain node based on the second blockchain account and the second blockchain transaction key.

[0014] The above-mentioned 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 following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.

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

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

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

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

[0020] Figure 5 This is 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 one embodiment;

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

[0024] Figure 9 Schematic diagram of a communication architecture based on a transaction agent in one embodiment;

[0025] Figure 10 FIG. 1 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 clearly understood, the specific embodiments of the present application are described in detail below with reference to 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 than those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application. Therefore, the present application is not limited to 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 pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0028] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

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

[0030] It is understood that “at least one” refers to one or more, “a plurality” refers to two or more, and “at least a portion of an element” refers to a portion or all of an element.

[0031] As used herein, the singular forms "a," "an," and "the" may also include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include," "comprising," "having," and the like specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof. Furthermore, the term "and / or" as used in this specification includes any and all combinations of the relevant listed items.

[0032] Currently, the most commonly used trading technology in the green power trading sector is to establish a centralized database and use trading software to complete the entire transaction process. However, this type of trading software lacks openness and transparency. All trading data, order price rankings, and order quantity rankings are generated and displayed independently by the centralized trading platform. This cannot verify the existence of lost orders, unfair rankings, back-end order cancellations, unauthorized order additions, or virtual orders. The credibility of the trading process relies on the trading platform itself, which is also lacking in credibility. The fairness of the platform and the complete authenticity and accuracy of the transaction data cannot be self-verified. Data is stored entirely in a centralized database, which is susceptible to tampering. Without proper storage and backup, data leaks or damage can have serious consequences.

[0033] Based on the points mentioned above, the main problem is that transaction data is stored centrally, and the transaction procedures are also provided uniformly by the trading platform. The trading platform managers are unable to effectively prove the fairness, transparency, and correctness of the data and transaction process, resulting in low security of the transaction process and transaction 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 processes and data.

[0035] In one embodiment, Figure 1 As shown, a transaction matching system based on blockchain technology is provided, which 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, Figure 1 In the example, only one first transaction party system and one second transaction party system are used. Optionally, the platform system, the first transaction party system, and the second transaction party system can be integrated into 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-party transaction systems, only those with transaction acquisition requirements will log in to their deployed first blockchain nodes and submit first transaction requests. First-party transaction systems without transaction acquisition requirements will not submit first transaction requests. Accordingly, whenever a first transaction request is submitted to the first blockchain node, it 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-party systems, only those with transaction acquisition requirements will log in to their deployed second blockchain nodes and submit second transaction requests. Second-party systems without transaction acquisition requirements will not submit second transaction requests. Accordingly, whenever a second transaction request is submitted to a second blockchain node, it will automatically synchronize the second transaction request to the blockchain node cluster and the first blockchain node.

[0040] It is understood that the platform system serves as the platform side, while the first and second transaction party systems both belong to the client side. Optionally, the first and second blockchain nodes have the same composition. In other words, if a client deploys a blockchain node and submits a first transaction request to that blockchain node, the deployed blockchain node becomes the first blockchain node; if a second transaction request is submitted to that blockchain node, the deployed blockchain node becomes the second blockchain node. In other words, a client can deploy a blockchain node and submit both a first transaction request when there is a transaction acquisition request and a second transaction request when there is a transaction output request.

[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 each perform transaction matching on the first transaction request and the second transaction request, respectively, and each obtains multiple transaction request pairs. It is understood that because the blockchain node cluster, the first blockchain node, and the second blockchain node have the same structure, i.e., they include the same functional modules, the results of the multiple transaction request pairs obtained are also the same.

[0043] For example, when there is a need for a transaction acquisition, the first transaction party system acts as the buyer and submits a first transaction request. When there is a need for a transaction output, the second transaction party system acts as the 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 carried out jointly by three parties, data tampering caused by other interference is avoided, and the security and non-interference of the matching process are improved.

[0045] The above-mentioned 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, in which 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 blockchain ledger technology; wherein the transaction request pair includes transaction status data and transaction result data.

[0049] In other words, a pre-set smart contract is used to complete the transaction process. It accepts the first and second transaction requests, runs the public smart contract algorithm simultaneously on all blockchain nodes according to the pre-set matching rules, completes the matching process, and outputs the transaction results.

[0050] The smart contract's source code, the Application Binary Interface (ABI), is fully public and available for review by all client users. The smart contract will also run on all client blockchain nodes, reaching a unified consensus and outputting the results.

[0051] The transaction status data indicates whether the first and second transaction requests corresponding to the transaction request pair are successfully matched. The transaction result data includes the transaction details after the first and second transaction requests corresponding to the transaction request pair are successfully matched. The transaction details may include all or part of the data involved in the transaction. While this is not a complete example, 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 every 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 configured to sort each first transaction request based on its resource supply and transaction request quantity, subject to a sorting rule; and to sort each second transaction request based on its resource request and transaction supply quantity, subject to a sorting rule. The transaction matching module is further configured to match each first transaction request with each second transaction request based on the matching rule and the sorting result, thereby obtaining a plurality of transaction request pairs.

[0056] For example, the first transaction requests are sorted from largest to smallest based on at least one of the resource supply amount and the transaction request amount to obtain a first sorting result. Furthermore, the second transaction requests are sorted from largest to smallest based on 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, each request is matched in order. For example, the first transaction request ranked first in the first sorting result is matched with the second transaction request ranked first in the second sorting result; the first transaction request ranked second in the first sorting result is matched with the second transaction request ranked second in the second sorting result.

[0058] For another example, the first transaction requests are sorted from largest to smallest according to the resource supply amount and the transaction request amount, to obtain a first sorting result, wherein the resource supply amount has a higher priority than the transaction request amount. That is, when the transaction request amounts 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 ranked 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] For example, each first transaction party system, acting as a buyer, submits a first transaction request, which includes a purchase order. Each second transaction party system, acting as a seller, submits a second transaction request. For example, the resource supply quantity can be the price of an item offered by the buyer, and the transaction request quantity can be the quantity of the item desired by the buyer. Alternatively, the resource request quantity can be the price of an item desired by the seller, and the transaction supply quantity can be the quantity of the item offered by the seller. This allows for intelligent matching based on smart contracts, with all three parties participating in the transaction request matching process, enhancing 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 can be a P2P protocol. That is, each blockchain node is interconnected through the P2P protocol. This ensures the efficiency and security of the transmission process.

[0064] In one embodiment, Figure 3 A schematic diagram of the architecture of another 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 configured to generate a transaction acquisition form based on 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 a first transaction request based on the transaction acquisition form and the encrypted first account identifier.

[0066] In other words, the first information management module acts as an account key management module, managing and storing 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. This not only associates the first account identifier with the transaction acquisition form, identifying the account to which the transaction acquisition form belongs, but also prevents other blockchain nodes from identifying the first account identifier. This effectively renders the first account identifier anonymous to blockchain nodes, ensuring fair transactions.

[0067] The second transaction party system is configured to generate a transaction output document based on the resource request quantity and transaction supply quantity input by the second transaction user; obtain a second account identifier and a 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 a second transaction request based on the transaction output document and the encrypted second account identifier.

[0068] Similarly, the second information management module also serves as the account key management module in the second transaction party's system, managing and storing 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. This not only associates the second account identifier with the transaction output, identifying the account to which the transaction output belongs, but also prevents other blockchain nodes from identifying the second account identifier. This effectively renders the second account identifier anonymous to blockchain nodes, ensuring fair transactions.

[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 A schematic diagram of the architecture of another 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 configured 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.

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

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

[0074] In one embodiment, Figure 4 As shown, 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.

[0075] In one embodiment, the transaction management module is further 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 collecting statistics on target transaction information, etc., which is not specifically limited here. Optionally, the target transaction information is transaction information generated during a historical transaction process.

[0077] In this way, the platform system can store backups 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 A schematic diagram of the architecture of another 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 is 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 configured to feed back the target transaction information to the first transaction agent module and / or the second transaction agent module based on a two-way encryption technology.

[0081] Specifically, direct communication between the platform system, the first transaction party's system, and the second transaction party's system is implemented through the first, second, and third transaction agent modules. Each transaction agent module utilizes bidirectional encryption technology to establish communication, ensuring the security of data transmission during direct communication between the platform system, the first transaction party's system, and the second transaction party's 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 a first blockchain account and a first blockchain transaction key corresponding to the first blockchain account from a first information management module; and log in to a first blockchain node based on the first blockchain account and the first blockchain transaction key; the second transaction party system is used to obtain a second blockchain account and a second blockchain transaction key corresponding to the second blockchain account from a second information management module; and log in to a second blockchain node based on the second blockchain account and the second blockchain transaction key.

[0084] Specifically, the first blockchain account and its corresponding first blockchain transaction key are stored in the first information management module. As described above, when a transaction is requested, the first transaction party system logs into the first blockchain node based on the first blockchain account. During the login process, the first blockchain account and its corresponding first blockchain transaction key are provided to the first blockchain node. The first blockchain node verifies the first blockchain account based on the first blockchain transaction key, and upon successful verification, the login is successful. The login and storage of the second blockchain account are similar and will not be further elaborated.

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

[0086] For ease of understanding, the following describes a complete embodiment 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 transaction matching system based on blockchain technology described above. 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 data involving privacy is encrypted by the user. 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 is shown in Figure 1. This matching transaction system utilizes blockchain technology as its underlying infrastructure, relying on distributed storage using blockchain ledgers and distributed transactions using blockchain smart contracts. All transaction processes and result data are executed and stored simultaneously on each user end. The platform cannot tamper with any data or interfere with the transaction process without authorization. This matching transaction system consists of the platform and the buyer / 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. 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 for both the seller and buyer sides consists of a blockchain node, a transaction proxy client, and local account and key management. Both parties can install blockchain nodes locally to store transaction data, run smart contracts, and monitor the entire transaction process. They can connect to the trading platform and blockchain node through the transaction proxy to access transaction functions, and manage their own accounts, keys, and other private information.

[0090] Transaction storage relies on the distributed nature of blockchain to achieve distributed storage. The blockchain ledger permanently stores all transaction process and outcome data, including but not limited to order placement, order cancellation, execution, and delivery records. Due to the nature of blockchain, this data cannot be tampered with. All data is distributed across blockchain nodes on the platform and client (buyer / seller). The blockchain wallet stores users' personal blockchain accounts, personal information, account keys, transaction keys, and other information. On each blockchain node, the transaction matching smart contract runs simultaneously, generating identical transaction status and outcome data on each blockchain, which is stored in the transaction storage module. Due to the nature of blockchain, this data cannot be tampered with.

[0091] Transaction matching relies on blockchain smart contracts. Figure 8 The following diagram illustrates the transaction process. Seller orders are encrypted with the seller's private key and uploaded to the blockchain node. Buyer orders are encrypted with the buyer's private key and uploaded to the blockchain node. After all blockchain nodes synchronize their orders, the transaction matching module in each blockchain node matches the transaction based on the smart contract, generating a transaction result. The transaction result is stored in the transaction storage module for transaction verification and auditing. Smart contracts are used to complete the transaction process. They accept buy and sell orders and, based on pre-defined matching rules, execute a public contract algorithm simultaneously on all blockchain nodes to complete the matching process and output the transaction result. The smart contract sorts and matches the buy and sell orders using the public matching algorithm, outputs the successfully matched transaction pairs, and permanently records the results on the blockchain. The smart contract's source code ABI is fully public and available for review by all client users. The smart contract runs on all client blockchain nodes, reaches a consensus, and outputs 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 communication content is signed using a CA certificate. Figure 9 The diagram below shows a communication architecture based on a transaction proxy. Direct communications between the platform, buyer, and seller are encrypted using data stored in their own account key management and then sent to each other via the transaction proxy. Received data can also be decrypted using data stored in the account key management. Furthermore, each party can log in to their respective platform's blockchain node through the transaction proxy.

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

[0094] By using blockchain technology, transaction data is distributed and stored, and smart contracts are distributed across blockchain nodes. This allows every buyer and seller to participate in the entire storage and transaction process, with each client acting as a supervisor. The contract's source code ABI is fully public, and blockchain node data is determined and unified through consensus.

[0095] Through technical endorsement, factors that may affect transactions manually are eliminated. This matchmaking trading platform achieves transparency, uniformity 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: Figure 10 As shown. The computer device includes a processor, memory, an input / output (I / O) interface, and a communication interface. The processor, memory, and I / O interface are connected via a system bus, and the communication interface is connected to the system bus via the I / O interface. 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 internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs 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 I / O interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via a network connection.

[0097] Those skilled in the art will understand that Figure 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 shown in the figure, or combine certain components, or have a different component arrangement.

[0098] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. 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 above-mentioned embodiments. In particular, any reference to memory, database, or other media 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), magnetic 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. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0099] The technical features of the above embodiments can 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 merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A transaction matching system based on blockchain technology, characterized by: 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, when there is a transaction acquisition demand, log in to the first blockchain node based on the first blockchain account 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 configured to, when there is a transaction output demand, log in to the second blockchain node based on the second blockchain account 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 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, 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; The transaction matching module is configured 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, thereby obtaining a plurality of transaction request pairs; The transaction storage module is configured to distributely 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, wherein 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 successfully matched, 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 successfully matched.

3. The system according to claim 2, characterized in that 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 configured to sort the first transaction requests according to the resource supply amount and transaction request amount of each first transaction request, subject to the constraints of the sorting rule; and to sort the second transaction requests according to the resource request amount and transaction supply amount of each second transaction request, subject to the constraints of the sorting rule; The transaction matching module is further configured 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, to obtain a plurality of transaction request pairs.

4. The system according to claim 1, wherein: 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, wherein: 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 based on 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, encrypt the first account identifier using the first transaction key; and obtain the first transaction request based on the transaction acquisition form and the encrypted first account identifier. The second transaction party system is configured to generate a transaction output document based on the resource request quantity and transaction supply quantity input by the second transaction user; obtain a second account identifier and a 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 based on the transaction output document 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 is encrypted to the first blockchain node; The second transaction agent module is configured 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.

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 configured 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 query requests from the first transaction party system and / or the second transaction party system; and according to 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 configured to send the query request to the third transaction agent module based on a two-way encryption technology; The third transaction agent module is configured 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, wherein: 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 configured 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

  • Green certificate transaction system based on block chain and uplink method thereof

    CN115760392A