A method and device for joining a transaction system based on blockchain

By adopting a blockchain-based transaction system in the equity mall system, using smart contracts and voting mechanisms, the problems of complex configuration and difficult to guarantee information authenticity in the existing technology are solved, and an efficient and secure configuration process is achieved.

CN110276690BActive Publication Date: 2025-02-28WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910534430.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-20
Publication Date
2025-02-28
Estimated Expiration
2039-06-20

Smart Images

  • Figure CN110276690B_ABST
    Figure CN110276690B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for joining a transaction system based on blockchain, wherein the transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system. The method includes: a first business system determines a second business system with voting rights, and writes a voting application into a second subject of the second business system through a first node, the second business system reads the voting application through a second node, the first business system and the second business system respectively generate a first execution result and a second execution result according to the voting application, and write them into the smart contract of the committee chain respectively, and the committee chain determines the voting result according to the execution result in the smart contract. The technical solution ensures the authenticity of the configuration information while reducing the configuration workload through a standardized configuration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of financial technology (Fintech), and in particular to a method and device for joining a transaction system based on blockchain (BlockChain). Background Art

[0002] With the development of computer technology, more and more technologies are being applied in the financial field. The traditional financial industry is gradually transforming into financial technology, and blockchain technology is no exception. However, due to the security and real-time requirements of the financial and payment industries, higher requirements are also placed on blockchain technology.

[0003] The equity mall system includes multiple business systems and business chains corresponding to each business system. Each business system needs to be configured with corresponding code to achieve cross-chain access to each business chain, that is, access to third-party business chains. Figure 1 In the example shown, the equity mall system includes business systems A, B, and C, which correspond to business chains a, b, and c respectively. To achieve cross-chain access to each business system, taking business system A as an example, it is necessary to configure code information for accessing business chains b and c, and similarly, business systems B and C. In addition, if a new business system D and a business chain d are added, business system D needs to configure code information for accessing business chains a, b, and c, and similarly, business systems A, B, and C need to configure code information for accessing business chain d.

[0004] In the equity mall system in the existing technology, the configuration between the business system and the business chain is complex. When adding new business systems and business chains, the configuration process is not standardized and the authenticity of the configuration information cannot be guaranteed. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for joining a transaction system based on blockchain, which ensures the authenticity of configuration information while reducing the configuration workload through a standardized configuration process.

[0006] An embodiment of the present invention provides a method for joining a transaction system based on blockchain, wherein the transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the subject of each business system is recorded in the smart contract of the committee chain; each business system monitors information in the subject of each business system;

[0007] The method comprises:

[0008] The first node of the committee chain receives the voting application sent by the first business system, and writes the voting application into the second topic of the second business system, so that the second business system obtains the voting application through the second node of the committee chain; the second business system is a business system with voting rights;

[0009] The committee chain determines the voting result according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0010] In the above technical solution, the first business system writes the voting application into the second topic of the second business system through the first node, and the second business system reads the voting application through the second node. The first business system and the second business system generate the first execution result and the second execution result respectively according to the voting application, and write them into the smart contract of the committee chain respectively. The committee chain determines the voting result according to the execution result in the smart contract. In this technical solution, the first business system and the second business system with voting rights are used to vote on the voting application to ensure the fairness of the voting results. Further, the execution results are written into the smart contract of the committee chain to ensure the authenticity of the execution results. The fairness and authenticity of the execution results are ensured by voting and writing into the smart contract through a standardized configuration process. In addition, the topics of each business system are recorded in the committee chain smart contract. Each business system monitors the information in the topic of each business system. When the business system communicates with other business systems, it does not need to configure the information of the third-party business chain. It only needs to send the information to the topic of the business system to be communicated. The business system to be communicated monitors the topic and obtains the information in the topic, reducing the configuration workload of each business system.

[0011] Optionally, the voting application is used to instruct to add a third business system to the transaction system;

[0012] After the committee chain determines the voting result according to the execution result in the smart contract, it also includes:

[0013] The committee chain starts an expansion node and determines the expansion node as a third node corresponding to the third business system in the committee chain;

[0014] After the third node of the committee chain completes the synchronization of the information on the committee chain, it creates a topic of the third business system in the smart contract of the third node, and broadcasts the topic of the third business system to the nodes corresponding to each business system of the committee chain.

[0015] In the above technical solution, when the first business system determines that the third business system needs to be added to the transaction system, it can generate a voting application for indicating the addition of the third business system, which is used for voting by each business system with voting rights. Furthermore, an expansion node can be started in the committee chain as the third node of the third business system, so that the third business system can be connected to the committee chain through the third node. Since the third node is a newly started node in the committee chain, it is necessary to synchronize the information on the committee chain, and after the synchronization is completed, create the topic of the third business system, and broadcast the topic of the third business system to each node, that is, each node in the committee chain records the topic of the third business system, so that the third business system can communicate with other business systems through the corresponding topic.

[0016] Optionally, the voting application is used to instruct to delete the fourth business system from the transaction system;

[0017] After the committee chain determines the voting result according to the execution result in the smart contract, it also includes:

[0018] The committee chain deletes the subject of the fourth business system in the smart contract and deactivates the fourth node of the fourth business system in the committee chain.

[0019] In the above technical solution, when the first business system determines that the fourth business system needs to be deleted from the transaction system, it can generate a voting application for instructing to delete the fourth business system, which is used for each business system with voting rights to vote. Furthermore, the committee chain can delete the subject of the fourth business system in the smart contract and deactivate the fourth node to complete the deletion of the fourth business system.

[0020] Optionally, the method further includes:

[0021] The fifth node of the committee chain receives the order information sent by the fifth business system; the order information includes the subject of the sixth business system corresponding to the order information;

[0022] The fifth node of the committee chain writes the order information into the subject of the sixth business system, so that the sixth business system obtains the order information through the sixth node, and executes the order information in the business chain corresponding to the sixth business system according to the order information;

[0023] The sixth node of the committee chain receives the execution result information of the sixth business system, and writes the execution result information into the subject of the fifth business system, so that the fifth business system obtains the execution result information through the fifth node.

[0024] In the above technical solution, each business system in the transaction system can communicate across chains and can generate order information to complete transactions with other business systems. The fifth business system generates order information and sends the order information to the topic of the sixth business system of the smart contract through the fifth node of the committee chain. The sixth business system subscribes to the topic and obtains the order information, so that the order information can be executed in the corresponding business chain, and the execution result information of the order information is written to the topic of the fifth business system through the sixth node, so that the fifth business system obtains the execution result information. Through the above steps, cross-chain communication of each business system is realized, and transactions of each business system are further realized.

[0025] Accordingly, an embodiment of the present invention further provides a method for joining a transaction system based on blockchain, wherein the transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the subject of each business system is recorded in the smart contract of the committee chain; each business system monitors the information in the subject of each business system;

[0026] The method comprises:

[0027] The first business system determines the second business system with voting rights; the committee chain includes a first node corresponding to the first business system and a second node corresponding to the second business system; the smart contract records a first topic of the first business system and a second topic of the second business system;

[0028] The first business system generates a voting application, and writes the voting application into the second topic through the first node, so that the second business system obtains the voting application through the second node;

[0029] The first business system determines the voting result from the smart contract; the voting result is determined by the committee chain according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0030] In the above technical solution, the first business system can first determine the second business system with voting rights, and write the voting application into the second topic of the second business system through the first node. The second business system reads the voting application through the second node. The first business system and the second business system generate the first execution result and the second execution result respectively according to the voting application, and write them into the smart contract of the committee chain respectively. The committee chain determines the voting result according to the execution result in the smart contract. In this technical solution, the first business system and the second business system with voting rights are used to vote on the voting application to ensure the fairness of the voting results. Further, the execution results are written into the smart contract of the committee chain to ensure the authenticity of the execution results. Through voting and writing smart contracts, the fairness and authenticity of the execution results are ensured through a standardized configuration process. And the subject of each business system is recorded in the smart contract of the committee chain. Each business system monitors the information in the subject of each business system. When the business system communicates with other business systems, it does not need to configure the information of the third-party business chain. It only needs to send the information to the subject of the business system to be communicated. The business system to be communicated monitors the subject and obtains the information in the subject, reducing the configuration workload of each business system.

[0031] Optionally, the smart contract records the identification of the business system with voting rights;

[0032] The first business system determines a second business system having voting rights, including:

[0033] The first business system sends a query request to the committee chain, so that the committee chain queries the identifier of the business system with voting rights from the smart contract;

[0034] The first business system receives the identifier of the second business system sent by the committee chain.

[0035] In the above technical solution, the identifier of the business system with voting rights is stored in the smart contract to ensure the authenticity of the business system identifier in the working group list. When the first business system obtains it, it can directly send a query request to the committee chain. The committee chain queries the identifier of the business system with voting rights from the smart contract and sends it to the first business system.

[0036] Optionally, the voting application is used to instruct to add a third business system to the transaction system; or the voting application is used to instruct to delete a fourth business system from the transaction system.

[0037] In the above technical solution, the voting method can be applied to adding new business systems and deleting business systems. That is, when managing the trading system, whether it is adding a new business system or deleting a business system, it is necessary to vote on it through a business system with voting rights, and store it in a smart contract to achieve effective management of each business system in the trading system.

[0038] Accordingly, an embodiment of the present invention further provides a device for joining a transaction system based on blockchain, wherein the transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the subject of each business system is recorded in the smart contract of the committee chain; each business system monitors the information in the subject of each business system;

[0039] The device comprises:

[0040] A receiving unit, configured to receive a voting application sent by a first business system, and write the voting application into a second topic of a second business system, so that the second business system obtains the voting application through a second node of the committee chain; the second business system is a business system with voting rights;

[0041] A processing unit, used to determine a voting result according to an execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0042] Optionally, the voting application is used to instruct to add a third business system to the transaction system;

[0043] The processing unit is also used for:

[0044] After determining the voting result according to the execution result in the smart contract, starting the expansion node, and determining the expansion node as the third node corresponding to the third business system in the committee chain;

[0045] After the information on the committee chain is synchronized, a topic of the third business system is created in the smart contract of the third node, and the topic of the third business system is broadcast to the nodes corresponding to each business system of the committee chain.

[0046] Optionally, the voting application is used to instruct to delete the fourth business system from the transaction system;

[0047] The processing unit is also used for:

[0048] After the voting result is determined according to the execution result in the smart contract, the subject of the fourth business system in the smart contract is deleted, and the fourth node of the fourth business system in the committee chain is deactivated.

[0049] Optionally, the receiving unit is further used for:

[0050] Receiving order information sent by the fifth business system; the order information includes a subject of the sixth business system corresponding to the order information;

[0051] Writing the order information into the subject of the sixth business system, so that the sixth business system obtains the order information through the sixth node, and executes the order information in the business chain corresponding to the sixth business system according to the order information;

[0052] Receive the execution result information of the sixth business system, and write the execution result information into the subject of the fifth business system, so that the fifth business system obtains the execution result information through the fifth node.

[0053] Accordingly, an embodiment of the present invention further provides a device for joining a transaction system based on blockchain, wherein the transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the subject of each business system is recorded in the smart contract of the committee chain; each business system monitors the information in the subject of each business system;

[0054] The device comprises:

[0055] A determination unit, configured to determine a second business system having voting rights; the committee chain includes a first node corresponding to the first business system and a second node corresponding to the second business system; the smart contract records a first topic of the first business system and a second topic of the second business system;

[0056] a processing unit, configured to generate a voting application, and write the voting application into the second topic through the first node, so that the second business system obtains the voting application through the second node;

[0057] The determination unit is further used to determine the voting result from the smart contract; the voting result is determined by the committee chain according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0058] Optionally, the smart contract records the identification of the business system with voting rights;

[0059] The determining unit is specifically configured to:

[0060] Sending a query request to the committee chain so that the committee chain queries the identifier of the business system with voting rights from the smart contract;

[0061] Receive the identifier of the second business system sent by the committee chain.

[0062] Optionally, the voting application is used to instruct to add a third business system to the transaction system; or the voting application is used to instruct to delete a fourth business system from the transaction system.

[0063] Accordingly, an embodiment of the present invention further provides a computing device, including:

[0064] A memory for storing program instructions;

[0065] The processor is used to call the program instructions stored in the memory and execute the above-mentioned method for joining the transaction system based on blockchain according to the obtained program.

[0066] Correspondingly, an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the above-mentioned method of joining a transaction system based on blockchain. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0068] Figure 1 A schematic diagram of a system architecture in the prior art;

[0069] Figure 2 A schematic diagram of a system architecture provided for an embodiment of the present invention;

[0070] Figure 3 A flow chart of a method for joining a trading system provided by an embodiment of the present invention;

[0071] Figure 4 A flowchart of another method for joining a trading system provided by an embodiment of the present invention;

[0072] Figure 5A schematic diagram of the structure of a cross-chain communication device provided by an embodiment of the present invention;

[0073] Figure 6 A schematic diagram of the structure of another cross-chain communication device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] Figure 2 The system architecture applicable to the method for cross-chain communication provided by the embodiment of the present invention is exemplarily shown. The system architecture may include a committee chain, multiple business systems, and business chains corresponding to each business system. Among them, the committee chain is a blockchain system composed of nodes, and the committee chain includes nodes corresponding to each business system; the subject of each business system is recorded in the smart contract of the committee chain. Here, the subject can be understood as a message channel in the blockchain node, which is used to receive messages corresponding to the subject; each business system is used to subscribe to the subject of its own business system, that is, each business system monitors the information in the subject of each business system; the business chain corresponding to the business system is used to process the order information generated by the business system.

[0076] like Figure 2 In the example shown, the business system includes business system A, business system B, and business system C. The corresponding business chains are business chain a, business chain b, and business chain c, respectively. The corresponding committee chain nodes are node 1, node 2, and node 3, respectively. The corresponding topics are topic ①, topic ②, and topic ③. Further, the committee chain includes node 1, node 2, and node 3, and each node in the committee chain deploys a smart contract, which includes topic ①, topic ②, and topic ③. Business system A creates topic ① and subscribes to topic ①, business system B creates topic ② and subscribes to topic ②, and business system C creates topic ③ and subscribes to topic ③. For example, when business system A needs to send a message to business system B, the message can be written into topic ② of node 1 through the message middleware. Each node in the committee chain executes a broadcast consensus, that is, the message exists in topic ② of node 2, so that business system B subscribes to the message in topic ②. In addition, a business system can not only subscribe to its own corresponding topic, but also to the topics corresponding to other business systems. For example, business system B can subscribe to topics ② and ③ at the same time.

[0077] In the embodiment of the present invention, the message middleware is understood as a publish-subscribe server, or a callable interface in the committee chain. The business system can create a topic in the committee chain through the message middleware to receive messages corresponding to the topic. Furthermore, the business system can subscribe to messages in a specific topic through the message middleware, and once there is a new message, the business system can obtain it. The business system can also publish messages to the corresponding topic through the message middleware.

[0078] Through this system architecture, cross-chain communication between business systems does not require a lot of code configuration. It only requires sending messages to the topic of the business system to be communicated.

[0079] Based on the above description, Figure 3 The present invention exemplarily illustrates a process of a method for joining a transaction system based on blockchain provided in an embodiment of the present invention, which process can be executed by a device for joining a transaction system based on blockchain.

[0080] For the convenience of description, in the embodiment of the present invention, the transaction system includes a first business system, a second business system, a third business system, etc., the corresponding business chains are respectively the first business chain, the second business chain, the third business chain, etc., the corresponding nodes in the committee chain are respectively the first node, the second node, the third node, etc., and the corresponding topics in the smart contract are respectively the first topic, the second topic, the third topic, etc., and their meanings are not further elaborated in the following description.

[0081] like Figure 3 As shown in the figure, the process specifically includes:

[0082] Step 301: The first business system determines a second business system having voting rights.

[0083] The first business system and the second business system can form a committee chain working group. The first business system is the administrator of the committee chain working group, and the second business system is an ordinary member of the committee chain working group. All members of the committee chain working group have voting rights. There can be at least one second business system, and each second business system corresponds to the second business chain, second node, and second topic of each second business system. In other words, the members of the committee chain working group can form a working group list to record the identification of each working group member. The working group list can be stored in the first business system, or the working group list can be stored in the smart contract of the committee chain.

[0084] When the working group list is stored in the smart contract of the committee chain, it is equivalent to recording the identification of the business system with voting rights in the smart contract of the committee chain. The authenticity of the working group list can be guaranteed by the storage method of the smart contract of the committee chain. In the embodiment of the present invention, the first business system can send a query request to the first node of the committee chain. The first node of the committee chain queries the identification of the business system with voting rights, that is, the identification of the second business system, from the smart contract according to the query request, and sends the identification of the second business system to the first business system.

[0085] Step 302: The first business system generates a voting application.

[0086] When the first business system determines to add the third business system to the transaction system, a voting application for indicating that the third business system is added to the transaction system can be generated; when the first business system determines to delete the fourth business system from the transaction system, a voting application for indicating that the fourth business system is deleted from the transaction system can be generated. Here, the third business system is a newly added business system in the transaction system; the fourth business system is a cleared business system in the transaction system, and both the third business system and the fourth business system are business systems to be voted in the voting application.

[0087] The voting application may include the identifier of the second business system and the system information of the business system to be voted. The system information of the business system to be voted may include the system identifier, system name (rights mall name), theme identifier, etc. of the business system to be voted.

[0088] Step 303: The first business system sends the voting application to the committee chain.

[0089] Step 304: The committee chain writes the voting application into the second topic of the second business system.

[0090] The first business system sends a voting application to the first node of the committee chain. The first node writes the voting application into the second topic based on the identifier of the second system in the voting application. The first node broadcasts the transaction written into the second topic to each node of the committee chain. The voting application is written into the smart contract of the second node. The second system listens to the second topic, that is, it can obtain the voting application through the second node, and thus vote for the business system to be voted in the voting application.

[0091] Combination Figure 2 For example, if business system A is the first business system, and business system B and business system C are both second business systems, business system A writes the voting application into topics ② and ③ respectively, business system B obtains the voting application through node b, and business system C obtains the voting application through node c.

[0092] Step 305: The first business system generates a first execution result according to the voting application.

[0093] Step 306: The first business system sends the first execution result to the committee chain.

[0094] Step 307: The second business system obtains the voting application in the second topic, and generates a second execution result according to the voting application.

[0095] Step 308: The second business system sends the second execution result to the committee chain.

[0096] Here, both the first business system and the second business system have voting rights. In a specific implementation, the voting information in the voting application can be displayed to the staff of the business system, and the staff can vote manually. Alternatively, a specific voting logic can be set in the business system to determine whether to agree to vote for the system to be voted. Specifically, the first business system generates a first execution result based on the voting application, and the second business system generates a second execution result based on the voting application.

[0097] The first business system sends the first execution result to the first node of the committee chain, and the first node writes the first execution result into the smart contract. The second business system sends the second execution result to the second node of the committee chain, and the second node writes the second execution result into the smart contract. After the nodes reach a consensus, the first execution result and the second execution result are recorded in the smart contract of each node. Exemplarily, business system A is the first business system, generating the first execution result; business system B and business system C are both the second business system, generating the second execution result; business system D is the fourth business system, i.e., the business system to be voted. The execution results recorded in the smart contract are shown in Table 1.

[0098] Table 1

[0099] Business system identification Execution Results Business System A A A agrees to D joining Business System B B B agrees to D joining Business System C C C disagrees with D joining

[0100] It should be noted that in the description of steps 305 to 308, the execution order of the first business system and the second business system in executing the voting application is not limited, nor is the generation order of the first execution result and the second execution result limited. In specific implementation, it can be determined based on experience.

[0101] Step 309: The committee chain determines the voting result based on the execution result in the smart contract.

[0102] The committee chain can call the result verification logic of the smart contract to determine the voting result of the voting application, that is, to determine whether the voting application is passed. The result verification logic can be that the second business system with a greater than preset ratio passes the voting application, or other result verification logic.

[0103] In the embodiment of the present invention, if the committee chain determines that the voting application is passed according to the execution result in the smart contract, the subsequent steps can be executed. Specifically, according to the type of voting application, the operation of the committee chain can be divided into two cases:

[0104] Case 1: When the voting application is used to indicate that a third business system is added to the trading system, the committee chain can start the expansion node and determine the expansion node as the third node corresponding to the third business system in the committee chain. After the third node of the committee chain completes the synchronization of the information on the committee chain, it creates the topic of the third business system in the smart contract of the third node and broadcasts the topic of the third business system to the nodes corresponding to each business system of the committee chain.

[0105] Case 2: When the voting application is used to instruct to delete the fourth business system from the transaction system, the committee chain can delete the subject of the fourth business system in the smart contract and deactivate the fourth node of the fourth business system in the committee chain.

[0106] In step 310, the first business system determines the voting result from the smart contract.

[0107] The first business system can send a query request for the voting result to the first node of the committee chain. The first node of the committee chain queries the voting result from the smart contract and feeds it back to the first business system.

[0108] In addition, the system architecture provided by the embodiment of the present invention can also be applied to the equity exchange logic in the trading system, and can also be understood as the cross-chain communication between the business systems in the trading system. In one achievable method, the fifth node of the committee chain receives the order information sent by the fifth business system, wherein the order information includes the sixth topic corresponding to the order information, the fifth node of the committee chain writes the order information into the sixth topic, the sixth business system obtains the order information through the sixth node, and executes the order information in the sixth business chain according to the order information, the sixth business chain sends the execution result information of the order information to the sixth node of the committee chain, and the sixth node of the committee chain writes the execution result information into the fifth topic, so that the fifth business system obtains the execution result information through the fifth node.

[0109] It should be noted that the smart contract of the committee chain has at least the functions of voting, reporting, clearing, querying business system details, and querying the working group list. The explanation is as follows:

[0110] Voting function:

[0111] The voting function is used when adding a new business system or clearing a business system, and members of the work group vote on the voting information. The administrator of the work group queries the work group list in the business chain and generates a voting application. The voting application is published to the business systems in the work group list through the message middleware. Specifically, the voting application is published to the topics of the business systems in the work group list in the smart contract. The business systems in the work group list receive the voting application and decide whether to approve the addition of the new business system.

[0112] In actual use, the administrator's node calls the voting function of the smart contract, and the uploaded parameters are: business system ID, mall name, voting type. After the node's smart contract receives the voting information, the voting information will be propagated to each node through the blockchain network. Each node will sign and authenticate the voting information. After each node completes the authentication of the voting information, the smart contract completes the voting logic and stores: business system ID, whether it agrees or not on the smart contract. The smart contract executes the voting result statistics logic, that is, the working group list is queried in the smart contract to match the business system that has voted. When the match is passed, the smart contract logic for voting result statistics is completed through node consensus, and the committee chain is stored in the smart contract to determine whether the voting application is agreed or not.

[0113] Reporting function:

[0114] When a new business system needs to be added to the trading system, an application must be submitted to the working group. After the application is approved, the nodes of the committee chain will be expanded. After the expansion node is started, the expansion node finds that the block height of the current blockchain node is inconsistent with the block height of other committee chain nodes. The expansion node will synchronize the data of the current committee chain with the smart contract through the blockchain network. When the block height of the expansion node is consistent with the block height of the nodes of other committee chains, the synchronization is completed. The expansion node calls the reporting function of the smart contract, that is, uploads the business system identification and subject of the newly added business system. After the smart contract of the expansion node receives the uploaded information, the uploaded information will be propagated to each node through the blockchain network. Each node will sign and authenticate the uploaded information. After each node completes the authentication of the uploaded information, the smart contract is executed and the business system identification and subject of the newly added business system are stored on the smart contract.

[0115] Clearance function:

[0116] When a business system is found to violate the terms of the contract in the trading system, it is necessary to clear the business system. The working group initiates a withdrawal application. After the application is approved, the withdrawal function is used. The committee chain calls the withdrawal function of the smart contract and uploads parameters: business system identification. After the smart contract receives the withdrawal information, the withdrawal information will be propagated to each node through the blockchain network. Each node will sign and authenticate the withdrawal information. After each node completes the authentication of the withdrawal information, the smart contract is executed and the business system information specified by the smart contract is deleted. Delete information: business system identification, subject.

[0117] Query business system details function:

[0118] The business system can pass in the parameters of the business system ID to be queried through the smart contract of its own node, call the business system details query function of the smart contract, and return the subject of the business system to be queried from the smart contract of its own node.

[0119] Query workgroup list function:

[0120] The business system can call the query working group list function through the smart contract of its own node, and return the list of working groups in the current committee chain from the smart contract of its own node.

[0121] It should be noted that only one smart contract can be deployed in the committee chain to store the topics corresponding to each business system and execute the various functions of the above smart contract; or multiple smart contracts can be deployed to store the topics corresponding to each business system and execute the various functions of the above smart contract, which is not limited here.

[0122] In order to better explain the embodiments of the present invention, the process of joining the transaction system will be described below in a specific implementation scenario. It is assumed that the current transaction system includes business system A, business system B, and business system C, and forms a working group, and business system A is a management member of the working group, that is, business system A is the first business system, and business system B and business system C are both second business systems.

[0123] like Figure 4 In the process shown:

[0124] Step 401: Business system D sends a joining application to business system A.

[0125] After business system D generates a joining application, it can submit a joining application to business system A.

[0126] Step 402: Business system A sends a query request to node 1 of the committee chain.

[0127] Business system A generates a query request based on business system D's application for joining, and sends the query request to node 1 of the committee chain.

[0128] Step 403, node 1 of the committee chain queries the smart contract to determine the working group list.

[0129] The smart contract of each node in the committee chain records a working group list. Node 1 determines the working group list by querying the smart contract. The working group list includes the identification and topics of the working group members, such as: "A, topic ①; B, topic ②; C, topic ③".

[0130] Step 404: Node 1 of the committee chain sends the working group list to business system A.

[0131] Step 405: Business system A generates a voting application.

[0132] The voting application includes a list of working groups and the identification of business system D.

[0133] Step 406: Business system A sends the voting application to node 1 of the committee chain.

[0134] Step 407: The committee chain broadcasts the voting application to each node.

[0135] Step 408: Node 2 of the committee chain sends the voting application to business system B.

[0136] Step 409, node 3 of the committee chain sends the voting application to business system C.

[0137] Business system A calls the message middleware to send the voting application to the topics ② and ③ of node 1 of the committee chain. The committee chain broadcasts the voting application to each node, that is, the voting application is recorded in topics ② and ③ of nodes 2 and 3. Since business system B subscribes to topic ② and business system C subscribes to topic ③, business system B and business system C subscribe to the voting application through nodes 2 and 3 respectively.

[0138] The above committee chain sends voting applications to the business system in no particular order.

[0139] Step 410: Each business system performs voting and generates an execution result.

[0140] Step 411, business system A sends the first execution result to node 1 of the committee chain.

[0141] Step 412: Business system B sends the second execution result to node 2 of the committee chain.

[0142] Step 413: Business system C sends the second execution result to node 3 of the committee chain.

[0143] After receiving the voting application, each business system can vote through the mini program and send the execution results to the committee chain. The above business systems send the execution results to the committee chain in no particular order.

[0144] Step 414: The committee chain broadcasts the execution results to each node and reaches consensus, and stores each execution result.

[0145] After the execution result passes the consensus of the nodes in the blockchain, the storage voting method of the smart contract will be executed first, and the execution result will be stored in the smart contract, storing the information "A agrees that D joins, B agrees that D joins, and C disagrees with D joining".

[0146] Step 415: The committee chain executes the voting result verification logic of the smart contract to determine whether the voting result is passed.

[0147] The committee chain generates the voting results. After the voting results are recognized by the nodes of the blockchain, they will be stored in the smart contract, storing the information "Business system D passed the vote."

[0148] Step 416, node 1 of the committee chain sends the voting result to business system A.

[0149] After the committee chain determines that business system D has passed the vote, it can start adding nodes to the committee chain. After node 4 is deployed, it needs to call the reporting function to report information: the identification and subject of business system D. After the smart contract of node 4 receives the reporting information, it executes the smart contract to verify whether the application of business system D has been passed. If passed, the smart contract is called to store the reporting information of business system D. After consensus among blockchain nodes, the information "identification and subject of business system D" is stored in the smart contract.

[0150] Combined with the above examples, the following situations may also exist:

[0151] Business system A sends purchase information to business system D:

[0152] Business system A finds that the newly added business system D has 50 yuan of coupons, so business system A sends coupon purchase information to business system D. First, business system A assembles the purchase information: "Business system A (purchaser), 50 coupons (purchased coupons)". After the information is assembled, it publishes a message to topic ④ of node 1 of the committee chain through the message middleware. Since business system D subscribes to topic ④, business system D obtains the message from topic ④ of node 4 of the committee chain through the message middleware. After business system D obtains the message, it will store the purchase information on its own business chain and proceed to the next business processing. The subsequent steps of the purchase business will not be described here.

[0153] Initiate an application for clearing business system D:

[0154] The members of the committee chain found that the newly added business system D violated the terms of the committee chain joint statement and decided to withdraw business system D. Therefore, business system A generated a withdrawal application, which included "business system D's logo, subject ④, withdrawal". The process of notifying each member of the working group, voting, and determining the voting results is the same as the joining application, so it will not be repeated.

[0155] Clearing business system D:

[0156] After the withdrawal application of business system D is approved, business system A will call the withdrawal function of the smart contract of node 1, and the withdrawal information is: business system D. After receiving the withdrawal information, the smart contract of node 4 executes the smart contract to verify whether the withdrawal application of business system D has been approved. If it has been approved, the smart contract of deleting business system D is executed. After the blockchain node consensus, the information is deleted on the smart contract: the identification and subject of business system D④, and then node 4 is kicked out from the committee chain.

[0157] In the above technical solution, the first business system writes the voting application into the second topic of the second business system through the first node, and the second business system reads the voting application through the second node. The first business system and the second business system generate the first execution result and the second execution result respectively according to the voting application, and write them into the smart contract of the committee chain respectively. The committee chain determines the voting result according to the execution result in the smart contract. In this technical solution, the first business system and the second business system with voting rights are used to vote on the voting application to ensure the fairness of the voting results. Further, the execution results are written into the smart contract of the committee chain to ensure the authenticity of the execution results. The fairness and authenticity of the execution results are ensured by voting and writing into the smart contract through a standardized configuration process. In addition, the topics of each business system are recorded in the committee chain smart contract. Each business system monitors the information in the topic of each business system. When the business system communicates with other business systems, it does not need to configure the information of the third-party business chain. It only needs to send the information to the topic of the business system to be communicated. The business system to be communicated monitors the topic and obtains the information in the topic, reducing the configuration workload of each business system.

[0158] Based on the same inventive concept, Figure 5 The structure of a device for joining a transaction system based on blockchain provided by an embodiment of the present invention is exemplarily shown, and the device can execute the process of a method for joining a transaction system based on blockchain.

[0159] The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; each business system monitors the information in the subject of each business system;

[0160] The device comprises:

[0161] The receiving unit 501 is used to receive a voting application sent by the first business system, and write the voting application into a second topic of the second business system, so that the second business system obtains the voting application through the second node of the committee chain; the second business system is a business system with voting rights;

[0162] Processing unit 502 is used to determine the voting result according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0163] Optionally, the voting application is used to instruct to add a third business system to the transaction system;

[0164] The processing unit 502 is further configured to:

[0165] After determining the voting result according to the execution result in the smart contract, starting the expansion node, and determining the expansion node as the third node corresponding to the third business system in the committee chain;

[0166] After the information on the committee chain is synchronized, a topic of the third business system is created in the smart contract of the third node, and the topic of the third business system is broadcast to the nodes corresponding to each business system of the committee chain.

[0167] Optionally, the voting application is used to instruct to delete the fourth business system from the transaction system;

[0168] The processing unit 502 is further configured to:

[0169] After the voting result is determined according to the execution result in the smart contract, the subject of the fourth business system in the smart contract is deleted, and the fourth node of the fourth business system in the committee chain is deactivated.

[0170] Optionally, the receiving unit 501 is further configured to:

[0171] Receiving order information sent by the fifth business system; the order information includes a subject of the sixth business system corresponding to the order information;

[0172] Writing the order information into the subject of the sixth business system, so that the sixth business system obtains the order information through the sixth node, and executes the order information in the business chain corresponding to the sixth business system according to the order information;

[0173] Receive the execution result information of the sixth business system, and write the execution result information into the subject of the fifth business system, so that the fifth business system obtains the execution result information through the fifth node.

[0174] Based on the same inventive concept, Figure 6 The structure of a device for joining a transaction system based on blockchain provided by an embodiment of the present invention is exemplarily shown, and the device can execute the process of a method for joining a transaction system based on blockchain.

[0175] The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; each business system monitors the information in the subject of each business system;

[0176] The device comprises:

[0177] A determination unit 601 is used to determine a second business system with voting rights; the committee chain includes a first node corresponding to the first business system and a second node corresponding to the second business system; the smart contract records a first topic of the first business system and a second topic of the second business system;

[0178] The processing unit 602 is configured to generate a voting application, and write the voting application into the second topic through the first node, so that the second business system obtains the voting application through the second node;

[0179] The determination unit 601 is also used to determine the voting result from the smart contract; the voting result is determined by the committee chain according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

[0180] Optionally, the smart contract records the identification of the business system with voting rights;

[0181] The determining unit 601 is specifically configured to:

[0182] Sending a query request to the committee chain so that the committee chain queries the identifier of the business system with voting rights from the smart contract;

[0183] Receive the identifier of the second business system sent by the committee chain.

[0184] Optionally, the voting application is used to instruct to add a third business system to the transaction system; or the voting application is used to instruct to delete a fourth business system from the transaction system.

[0185] Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:

[0186] A memory for storing program instructions;

[0187] The processor is used to call the program instructions stored in the memory and execute the above-mentioned method for joining the transaction system based on blockchain according to the obtained program.

[0188] Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the above-mentioned method of joining a transaction system based on blockchain.

[0189] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0190] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0192] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0193] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for joining a transaction system based on blockchain, characterized in that: The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; Each business system monitors the information in the topic of each business system; The method comprises: The first node of the committee chain receives the voting application sent by the first business system, and writes the voting application into the second topic of the second business system, so that the second business system obtains the voting application through the second node of the committee chain; the second business system is a business system with voting rights; The committee chain determines the voting result according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

2. The method according to claim 1, characterized in that The voting application is used to instruct to add a third business system to the transaction system; After the committee chain determines the voting result according to the execution result in the smart contract, it also includes: The committee chain starts an expansion node and determines the expansion node as a third node corresponding to the third business system in the committee chain; After the third node of the committee chain completes the synchronization of the information on the committee chain, it creates a topic of the third business system in the smart contract of the third node, and broadcasts the topic of the third business system to the nodes corresponding to each business system of the committee chain.

3. The method according to claim 1, characterized in that The voting application is used to instruct to delete the fourth business system from the transaction system; After the committee chain determines the voting result according to the execution result in the smart contract, it also includes: The committee chain deletes the subject of the fourth business system in the smart contract and deactivates the fourth node of the fourth business system in the committee chain.

4. The method according to claim 1, characterized in that The method further comprises: The fifth node of the committee chain receives the order information sent by the fifth business system; the order information includes the subject of the sixth business system corresponding to the order information; The fifth node of the committee chain writes the order information into the subject of the sixth business system, so that the sixth business system obtains the order information through the sixth node, and executes the order information in the business chain corresponding to the sixth business system according to the order information; The sixth node of the committee chain receives the execution result information of the sixth business system, and writes the execution result information into the subject of the fifth business system, so that the fifth business system obtains the execution result information through the fifth node.

5. A method for joining a transaction system based on blockchain, characterized in that: The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; Each business system monitors the information in the topic of each business system; The method comprises: The first business system determines the second business system with voting rights; the committee chain includes a first node corresponding to the first business system and a second node corresponding to the second business system; the smart contract records a first topic of the first business system and a second topic of the second business system; The first business system generates a voting application, and writes the voting application into the second topic through the first node, so that the second business system obtains the voting application through the second node; The first business system determines the voting result from the smart contract; the voting result is determined by the committee chain according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

6. The method according to claim 5, characterized in that The smart contract records the identification of the business system with voting rights; The first business system determines a second business system having voting rights, including: The first business system sends a query request to the committee chain, so that the committee chain queries the identifier of the business system with voting rights from the smart contract; The first business system receives the identifier of the second business system sent by the committee chain.

7. The method according to claim 5, characterized in that The voting application is used to instruct to add a third business system to the transaction system; or the voting application is used to instruct to delete a fourth business system from the transaction system.

8. A device for joining a transaction system based on blockchain, characterized in that: The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; Each business system monitors the information in the topic of each business system; The device comprises: A receiving unit, configured to receive a voting application sent by a first business system, and write the voting application into a second topic of a second business system, so that the second business system obtains the voting application through a second node of the committee chain; the second business system is a business system with voting rights; A processing unit, used to determine a voting result according to an execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

9. The device according to claim 8, characterized in that The voting application is used to instruct to add a third business system to the transaction system; The processing unit is also used for: After determining the voting result according to the execution result in the smart contract, starting the expansion node, and determining the expansion node as the third node corresponding to the third business system in the committee chain; After the information on the committee chain is synchronized, a topic of the third business system is created in the smart contract of the third node, and the topic of the third business system is broadcast to the nodes corresponding to each business system of the committee chain.

10. The device according to claim 8, characterized in that The voting application is used to instruct to delete the fourth business system from the transaction system; The processing unit is also used for: After the voting result is determined according to the execution result in the smart contract, the subject of the fourth business system in the smart contract is deleted, and the fourth node of the fourth business system in the committee chain is deactivated.

11. The device according to claim 8, characterized in that The receiving unit is also used for: Receiving order information sent by the fifth business system; the order information includes a subject of the sixth business system corresponding to the order information; Writing the order information into the subject of the sixth business system, so that the sixth business system obtains the order information through the sixth node, and executes the order information in the business chain corresponding to the sixth business system according to the order information; Receive the execution result information of the sixth business system, and write the execution result information into the subject of the fifth business system, so that the fifth business system obtains the execution result information through the fifth node.

12. A device for joining a transaction system based on blockchain, characterized in that: The transaction system includes a committee chain, multiple business systems, and business chains corresponding to each business system; the committee chain includes nodes corresponding to each business system; the smart contract of the committee chain records the subject of each business system; Each business system monitors the information in the topic of each business system; The device comprises: A determination unit, used to determine a second business system with voting rights; the committee chain includes a first node corresponding to the first business system and a second node corresponding to the second business system; the smart contract records a first topic of the first business system and a second topic of the second business system; a processing unit, configured to generate a voting application, and write the voting application into the second topic through the first node, so that the second business system obtains the voting application through the second node; The determination unit is further used to determine the voting result from the smart contract; the voting result is determined by the committee chain according to the execution result in the smart contract; the execution result includes a first execution result and a second execution result; the first execution result is generated by the first business system according to the voting application and written into the smart contract, and the second execution result is generated by the second business system according to the voting application and written into the smart contract.

13. The device according to claim 12, characterized in that The smart contract records the identification of the business system with voting rights; The determining unit is specifically configured to: Sending a query request to the committee chain so that the committee chain queries the identifier of the business system with voting rights from the smart contract; Receive the identifier of the second business system sent by the committee chain.

14. The device according to claim 12, characterized in that The voting application is used to instruct to add a third business system to the transaction system; or the voting application is used to instruct to delete a fourth business system from the transaction system.

15. A computing device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 7 according to the obtained program.

16. A computer-readable non-volatile storage medium, characterized in that: The method comprises computer-readable instructions, and when a computer reads and executes the computer-readable instructions, the computer is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cross-block chain digital asset transfer method and device

    CN106960388A

  • Business processing method and apparatus

    CN107341702A