Blockchain node admission method, apparatus, device, and storage medium
By generating contract transactions in the blockchain network and utilizing a consensus mechanism, the problem of low efficiency in blockchain node access under multiple transaction systems is solved, achieving secure and efficient node access.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST
- Filing Date
- 2023-02-08
- Publication Date
- 2026-05-08
AI Technical Summary
When multiple transaction systems are working together, the common blockchain node admission method requires multiple cross-system requests, resulting in low efficiency.
By generating contract transactions and broadcasting KYC contracts in the blockchain network, and utilizing smart contracts and consensus mechanisms among blockchain nodes, consensus among multiple consensus nodes is achieved to determine the admission result of the target node.
This reduces the number of cross-system request steps, improves the efficiency of blockchain node access, and ensures secure access in collaboration with multiple transaction systems.
Smart Images

Figure CN118473684B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and in particular to a blockchain node access method, apparatus, device, and storage medium. Background Technology
[0002] In traditional internet technology (IT) systems, central banks can maintain domestic Know Your Customer (KYC) information and transaction data. Given domestic data security concerns, the access control of nodes within the system is particularly important.
[0003] However, the common blockchain node access method requires initiating access requests to multiple bank IT systems involved in collaborative operations, in order to gain access and participate in collaborative work. Therefore, the common method requires multiple cross-system access requests, which is cumbersome and inefficient. Summary of the Invention
[0004] This application provides a blockchain node admission method, apparatus, device, and storage medium to solve the problem of low efficiency in blockchain node admission when multiple transaction systems are working together.
[0005] The technical solution of this application embodiment is as follows:
[0006] According to a first aspect of the embodiments of this application, a blockchain node admission method is provided, applied to a first consensus node in a blockchain network; the blockchain network is used to realize transactions between multiple transaction systems; in the multiple transaction systems, each transaction system corresponds to at least one consensus node; the first consensus node is any one of the consensus nodes corresponding to the first transaction system; the first transaction system is any one of the multiple transaction systems; the blockchain node admission method includes: receiving a blockchain admission request from a target node to be accessed sent by the first transaction system; generating a first contract transaction and sending the first contract transaction to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain admission request based on the first contract transaction; obtaining an admission result generated by the blockchain network based on the first consensus result; when the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is determined as a blockchain node in the blockchain network.
[0007] Optionally, the blockchain node admission method further includes: listening to a first transaction event; obtaining the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event; broadcasting the audit result to the blockchain network so that the blockchain network generates a first consensus result based on the audit results of multiple consensus nodes, and generates an admission result based on the first consensus result.
[0008] Optionally, when the target value meets the preset consensus conditions, the first consensus result indicates that multiple consensus nodes have reached a consensus on the first transaction event; the target value is the number of nodes that have passed the review among the multiple consensus nodes.
[0009] Optionally, the method for obtaining the audit result generated by the backend management terminal based on the first transaction event includes: receiving a query request sent by the backend management terminal; responding to the query request by sending the first transaction event to the backend management terminal so that the audit result generated by the backend management terminal is obtained; and receiving the audit result.
[0010] Optionally, the node type corresponding to the target node includes: a consensus node or a regular node in the blockchain network; after obtaining the admission result generated by the blockchain network based on the first consensus result, the blockchain node admission method further includes: when the node type is a consensus node, instructing the target node to connect with any one of the multiple consensus nodes; when the node type is a regular node, instructing the target node to connect with any one of the consensus nodes corresponding to the first transaction system.
[0011] Optionally, the blockchain access request includes: node information of the target node; the blockchain node access method further includes: storing the node information of the target node in the KYC contract to obtain an updated KYC contract; broadcasting the updated KYC contract to the blockchain network so that any consensus node or ordinary node in the blockchain network can obtain the node information of the target node based on the updated KYC contract.
[0012] Optionally, the blockchain node admission method further includes: receiving an information update request from a target node; the information update request is used to update the node information of the target node in the updated KYC contract; generating a second contract transaction and sending the second contract transaction to the updated KYC contract, so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction; obtaining an update result generated by the blockchain network based on the second consensus result; when the second consensus result indicates that multiple consensus nodes have reached a consensus on the second transaction event, the update result is used to indicate the update of the node information of the target node in the updated KYC contract.
[0013] According to a second aspect of the embodiments of this application, a blockchain node admission device is provided, applied to a first consensus node in a blockchain network; the blockchain network is used to realize transactions between multiple transaction systems; in the multiple transaction systems, each transaction system corresponds to at least one consensus node; the first consensus node is any one of the consensus nodes corresponding to the first transaction system; the first transaction system is any one of the multiple transaction systems; the blockchain node admission device includes: a communication unit and a processing unit; the communication unit is used to receive a blockchain admission request from a target node to be accessed sent by the first transaction system; the processing unit is used to generate a first contract transaction and send the first contract transaction to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain admission request based on the first contract transaction; the processing unit is also used to obtain an admission result generated by the blockchain network based on the first consensus result; when the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is determined as a blockchain node in the blockchain network.
[0014] Optionally, the blockchain node admission device further includes: a consensus unit; the consensus unit is used to: listen to the first transaction event; obtain the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event; broadcast the audit result to the blockchain network so that the blockchain network generates a first consensus result based on the audit results of multiple consensus nodes, and generates an admission result based on the first consensus result.
[0015] Optionally, when the target value meets the preset consensus conditions, the first consensus result indicates that multiple consensus nodes have reached a consensus on the first transaction event; the target value is the number of nodes that have passed the review among the multiple consensus nodes.
[0016] Optionally, the consensus unit is specifically used for: receiving a query request sent by the backend management terminal; responding to the query request by sending a first transaction event to the backend management terminal so that the backend management terminal generates an audit result; and receiving the audit result.
[0017] Optionally, the node type corresponding to the target node includes: a consensus node or a regular node in the blockchain network; the processing unit is further configured to: when the node type is a consensus node, instruct the target node to connect with any one of the multiple consensus nodes; when the node type is a regular node, instruct the target node to connect with any one of the consensus nodes corresponding to the first transaction system.
[0018] Optionally, the blockchain access request includes: node information of the target node; the processing unit is further configured to: store the node information of the target node in the KYC contract to obtain the updated KYC contract; and broadcast the updated KYC contract to the blockchain network so that any consensus node or ordinary node in the blockchain network can obtain the node information of the target node based on the updated KYC contract.
[0019] Optionally, the processing unit is further configured to: receive an information update request from the target node; the information update request is used to update the node information of the target node in the updated KYC contract; generate a second contract transaction and send the second contract transaction to the updated KYC contract so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction; obtain an update result generated by the blockchain network based on the second consensus result; when the second consensus result indicates that multiple consensus nodes have reached a consensus on the second transaction event, the update result is used to indicate the node information of the target node in the updated KYC contract.
[0020] According to a third aspect of the embodiments of this application, a blockchain node admission device is provided, which may include: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement any of the optional blockchain node admission methods in the first aspect described above.
[0021] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which instructions are stored, such that when the instructions in the computer-readable storage medium are executed by a processor of a blockchain node admission device, the blockchain node admission device is able to execute any of the optional blockchain node admission methods in the first aspect described above.
[0022] The technical solution provided in this application brings at least the following beneficial effects:
[0023] Based on any of the above, the blockchain node admission method in this application is applied to a first consensus node in a blockchain network, wherein the blockchain network is used to realize transactions between multiple transaction systems. After receiving a blockchain admission request from a target node to be accessed sent by the first transaction system, a first contract transaction can be generated and sent to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain admission request based on the first contract transaction. Then, the admission result generated by the blockchain network based on the first consensus result can be obtained. When the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is identified as a blockchain node in the blockchain network. Since the blockchain network has the characteristic of data synchronization between blockchain nodes and smart contracts can guarantee a trusted network environment, the secure admission of target nodes in multiple transaction systems can be achieved through the blockchain network. Compared with general technologies, it reduces multiple cross-system request steps, thereby effectively improving the efficiency of blockchain node admission in the case of collaboration among multiple transaction systems. Attached Figure Description
[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application, and do not constitute an undue limitation of this application.
[0025] Figure 1 A schematic diagram of a blockchain node admission system provided in this application embodiment;
[0026] Figure 2 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 1 ;
[0027] Figure 3 This illustration shows a schematic diagram of node information provided in an embodiment of this application;
[0028] Figure 4 A schematic diagram of a smart contract provided in an embodiment of this application is shown;
[0029] Figure 5 A schematic diagram of a blockchain node provided in an embodiment of this application is shown;
[0030] Figure 6 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 2 ;
[0031] Figure 7 This illustration shows an interactive diagram of a blockchain node provided in an embodiment of this application;
[0032] Figure 8 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 3 ;
[0033] Figure 9 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 4 ;
[0034] Figure 10 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 5 ;
[0035] Figure 11 This application illustrates a flowchart of a blockchain node admission method provided in an embodiment. Figure 6 ;
[0036] Figure 12 This application provides a schematic diagram of the structure of a blockchain node admission device according to an embodiment. Figure 1 ;
[0037] Figure 13 This application provides a schematic diagram of the structure of a blockchain node admission device according to an embodiment. Figure 2 . Detailed Implementation
[0038] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0039] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0040] It should also be understood that the term "comprising" indicates the presence of the described feature, whole, step, operation, element and / or component, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements and / or components.
[0041] To facilitate understanding of this application, the relevant elements involved in this application are described below.
[0042] Blockchain technology
[0043] Blockchain technology, also known as distributed ledger technology, is an emerging technology in which multiple computing devices jointly participate in "accounting" (i.e., recording transaction data) and maintain a complete distributed database. Due to its decentralized (i.e., no central node), transparent, and multi-device-participatory database recording capabilities, as well as its ability to quickly synchronize data between devices, blockchain technology has been widely applied in numerous fields.
[0044] A blockchain network may include multiple blockchain nodes. A blockchain node is a device with communication and storage functions, such as a device storing blockchain data. For ease of description, this application uses the term "node" to represent a blockchain node. That is, any node mentioned in this application can be used to represent a blockchain node.
[0045] Each node can both receive and generate information. Different nodes maintain communication by sharing a common blockchain. Specifically, in a blockchain network, any node can generate a new block based on transaction-related data sent by a client and broadcast it to other nodes, who can then verify the block. Once all nodes in the blockchain network reach a consensus, the new block can be added to the blockchain.
[0046] Nodes are divided into consensus nodes and ordinary nodes. Consensus nodes have block-producing and voting rights. Transactions are sorted and packaged into blocks by consensus nodes, and once consensus is reached, the block is confirmed as a valid block. Ordinary nodes do not have block-producing and voting rights, but are otherwise the same as consensus nodes. They can synchronize all raw data on the blockchain, accept transaction data, and broadcast it to other nodes. Managing ordinary nodes involves adding and deleting them, which is achieved by modifying the list of connected nodes in the configuration file. New ordinary nodes joining the network need to connect to nodes already in the blockchain network.
[0047] In this application, a node can be understood as a processing unit. In one implementation, a node can be a physical device, such as a server or terminal device. In another implementation, a node can be a virtual computer; a virtual computer is a general term for the software-virtualized runtime environment in all types of virtualization devices, including virtual machines and containers. In other implementations, a node can be a process or a thread; a thread is the smallest unit of computation that the operating system can schedule, and a thread is contained within a process, serving as the actual unit of operation within a process; a process is a program's execution activity on a certain set of data in a computer, and is the basic unit for system resource allocation and scheduling.
[0048] Smart contracts
[0049] A smart contract is essentially code that runs on a blockchain; it's a computer protocol designed to disseminate, verify, or execute contracts in an informational manner. Smart contracts allow for trusted transactions without a third party; these transactions are traceable and irreversible. A smart contract is a set of promises defined in digital form, including the protocols by which the contract participants can execute these promises. The digital form means the contract must be written into computer-readable code. Because once the participants agree, the rights and obligations established by the smart contract are executed by a computer or computer network. The specific process of creating a smart contract includes: reaching an agreement, contract execution, and generating computer-readable code.
[0050] Transaction
[0051] The transactions involved in this application refer to the process by which a user creates and publishes data to the distributed database of the blockchain through any node.
[0052] This transaction can be categorized into a narrow sense and a broad sense.
[0053] In a narrow sense, a transaction refers to a transfer of value that a user publishes to the blockchain; for example, in a traditional blockchain network, a transaction can be a transfer initiated by a user on the blockchain.
[0054] In a broad sense, a transaction refers to a user publishing any data on the blockchain. For example, an operator can build a consortium blockchain based on actual business needs and deploy online services (such as rental services, vehicle dispatching services, insurance claims services, credit services, medical services, etc.) on the consortium blockchain. In such a consortium blockchain, a transaction can be a business message or business request published by a user with business intent. Alternatively, the transaction can also be a user sending data (such as account balance) to the blockchain to change the user's account status.
[0055] Therefore, any data that a user publishes to the distributed database of the blockchain can be considered a "transaction" as described in this application.
[0056] The data involved in this application may be data authorized by the user or fully authorized by all parties.
[0057] As described in the background section, common blockchain node access methods require initiating access requests to multiple bank IT systems involved in collaborative operations, in order to gain access and participate in collaborative tasks. Therefore, this common method necessitates multiple cross-system access requests, which is cumbersome and inefficient.
[0058] Based on this, the blockchain node admission method in this application is applied to the first consensus node in a blockchain network, where the blockchain network is used to realize transactions between multiple transaction systems. After receiving a blockchain admission request from the first transaction system for a target node to be accessed, a first contract transaction can be generated and sent to a pre-created KYC contract, so that the KYC contract can create a first transaction event corresponding to the blockchain admission request based on the first contract transaction. Then, the admission result generated by the blockchain network based on the first consensus result can be obtained. When the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is identified as a blockchain node in the blockchain network. Since the blockchain network has the characteristic of data synchronization between blockchain nodes, and smart contracts can guarantee a trusted network environment, the secure admission of target nodes in multiple transaction systems can be achieved through the blockchain network. Compared with general technologies, it reduces multiple cross-system request steps, thereby effectively improving the efficiency of blockchain node admission in the case of collaboration among multiple transaction systems.
[0059] The blockchain node admission method provided in this application is illustrated below with reference to the accompanying drawings:
[0060] Figure 1 This is a schematic diagram of a blockchain node admission system provided in an embodiment of this application, such as... Figure 1 As shown, the blockchain node admission system may include: multiple blockchain nodes in the blockchain network (including multiple consensus nodes and multiple ordinary nodes), and multiple servers (including at least one server connected to any one of the blockchain nodes).
[0061] The blockchain network is used to enable transactions between multiple transaction systems, each of which includes at least one consensus node and at least one regular node.
[0062] In one embodiment, a regular node can connect to a consensus node in the same transaction system to establish a connection with the blockchain network.
[0063] Optional, the transaction system can be any type, such as a bank IT system, a telecom operator management system, or a system from various industries.
[0064] When the transaction system is a bank's IT system, consensus nodes can correspond to the monetary authorities of various jurisdictions, such as the central bank. Ordinary nodes can correspond to participating institutions within the jurisdiction governed by the monetary authorities, such as the various commercial banks managed by the central bank.
[0065] Optionally, multiple blockchain nodes may include consensus node 101, consensus node 102, consensus node 103, consensus node 104, ordinary node 111, ordinary node 112, ordinary node 113, and ordinary node 114.
[0066] Multiple devices may include server 121 connected to consensus node 101, server 122 connected to consensus node 102, server 123 connected to consensus node 103, server 124 connected to consensus node 104, server 125 connected to ordinary node 111, server 126 connected to ordinary node 112, server 127 connected to ordinary node 113, and server 128 connected to ordinary node 114.
[0067] In some embodiments, the blockchain node is a device with communication and storage functions, which can be a single server or a server cluster consisting of multiple servers. In some embodiments, the server cluster can also be a distributed cluster. This application does not limit the specific implementation method of the blockchain node.
[0068] In some embodiments, the server is a device that provides data services to users. It can be a single server or a server cluster consisting of multiple servers. In some implementations, the server cluster can also be a distributed cluster. This application does not limit the specific implementation method of the server.
[0069] It should be noted that the aforementioned blockchain nodes and servers can both be referred to as electronic devices.
[0070] The blockchain node admission method provided in this application embodiment can be applied to the aforementioned... Figure 1 The first consensus node in the application scenario shown is the consensus node in the first transaction system, which can be any one of multiple transaction systems. For example... Figure 2 As shown, the blockchain node admission method may include:
[0071] S201. The first consensus node receives the blockchain access request from the first transaction system for the target node to be connected.
[0072] Optionally, the target node can be any server in the first transaction system that is connected to the first consensus node.
[0073] Optionally, a blockchain access request may include: node information of the target node, transaction information, etc.
[0074] Optional, such as Figure 3As shown, the node information may include at least one of the following: financial institution code corresponding to the second transaction system, wallet code, legal entity identifier (LEI), jurisdiction or region identifier, institution name, institution public key, and basic institution information.
[0075] Optionally, the jurisdiction or region identifier can be the name of the jurisdiction or region or the area code, etc.
[0076] Optionally, basic organizational information may include: detailed address, contact information, industry code, user information, etc.
[0077] Optionally, the transaction information may include: KYC information, input data of the transaction event, such as the input address and input amount, and output data of the transaction event, such as the output address and output amount, as well as the transaction identifier of the transaction event.
[0078] Optionally, the transaction identifier may include: the transaction hash (Txhash) of the transaction event, the transaction number of the transaction event, the transaction index (Tx index) of the transaction event, and other unique identifiers of the transaction event.
[0079] When a target node wants to establish a connection with the blockchain network, it needs to send a blockchain access request to the consensus node in the blockchain network. The consensus node can verify the blockchain access request.
[0080] In one possible implementation, the method by which a target node sends a blockchain access request to a consensus node in the blockchain network may include: the target node sending the blockchain access request to a consensus node in a first transaction system. The consensus node then packages the node information of the target node included in the blockchain access request into a block and broadcasts the block to other consensus nodes in the blockchain network.
[0081] Optionally, the type of node the target node requests to join can include: a consensus node or a regular node in the blockchain network.
[0082] S202. The first consensus node generates the first contract transaction and sends the first contract transaction to the pre-created KYC contract, so that the KYC contract creates the first transaction event corresponding to the blockchain access request based on the first contract transaction.
[0083] Optional, such as Figure 4As shown, a KYC contract is pre-created. The data stored in the KYC contract can include: node information of consensus nodes in any trading system, as well as node information, key information, trading strategy information, blockchain node access strategy information, and other relevant information of ordinary nodes connected to the consensus nodes. The functions of the KYC contract can include: obtaining transaction information from any trading system and creating contract transaction events for any trading system. Using KYC contracts for institutional access and information retrieval is convenient and efficient, and the KYC contract can be flexibly reset or modified according to business needs.
[0084] S203. The first consensus node obtains the admission result generated by the blockchain network based on the first consensus result.
[0085] When the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate whether the target node is identified as a blockchain node in the blockchain network.
[0086] Among them, multiple consensus nodes include: at least one consensus node in each of the multiple transaction systems.
[0087] In one possible implementation, the first consensus node performs a KYC contract verification operation. The method for obtaining the first consensus result from multiple consensus nodes in the blockchain network regarding the first transaction event can include: the first consensus node broadcasts the block data of the first transaction event to multiple consensus nodes, and then obtains the first consensus result from the multiple consensus nodes.
[0088] Optionally, when the target value meets the preset consensus conditions, the first consensus result is determined to indicate that multiple consensus nodes have reached a consensus on the first transaction event. Here, the target value is the number of consensus nodes among the multiple consensus nodes, and the verification result is the number of consensus nodes that passed verification. Conversely, when the target value does not meet the preset consensus conditions, the first consensus result is determined to indicate that multiple consensus nodes have not reached a consensus on the first transaction event.
[0089] For example, such as Figure 5 As shown, consensus nodes 501, 502, 503, and 504 are present in the blockchain network. When node 505, outside the blockchain network, wants to establish a connection, it can broadcast a blockchain access request to other blockchain nodes through consensus node 504 within the same transaction system. This allows consensus nodes 501, 502, 503, and 504 to receive the request. Consensus nodes 501, 502, 503, and 504 then perform smart contract verification on the blockchain access request. After reaching a consensus, node 505 can establish a connection with the blockchain network and subsequently synchronize transaction information.
[0090] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S201-S203, the first consensus node is applied in a blockchain network, where the blockchain network is used to realize transactions between multiple transaction systems. After receiving a blockchain access request from a target node to be accessed sent by the first transaction system, a first contract transaction can be generated and sent to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain access request based on the first contract transaction. Then, the access result generated by the blockchain network based on the first consensus result can be obtained. When the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the access result is used to indicate that the target node is identified as a blockchain node in the blockchain network. Since the blockchain network has the characteristic of data synchronization between blockchain nodes, and smart contracts can guarantee a trusted network environment, the secure access of the target node in multiple transaction systems can be achieved through the blockchain network. Compared with general technologies, multiple cross-system request steps are reduced, thereby effectively improving the efficiency of blockchain node access in the case of collaboration among multiple transaction systems.
[0091] In one alternative embodiment, in Figure 2 Based on the illustrated method embodiments, such as Figure 6 As shown, the blockchain node admission method also includes:
[0092] S601, the first consensus node listens for the first transaction event.
[0093] Transaction events broadcast in a blockchain network can be listened to by any node. Therefore, when the first transaction event is published in the blockchain network, the first consensus node can listen to the first transaction event.
[0094] S602. The first consensus node obtains the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event.
[0095] In one feasible approach, the backend management system of the first transaction can proactively query the first consensus node to obtain the first transaction event, review it based on the first transaction event, and generate a corresponding review result. The backend management system can then send the review result to the first consensus node.
[0096] Optionally, the review process can be conducted manually.
[0097] S603. The first consensus node broadcasts the audit results to the blockchain network so that the blockchain network generates a first consensus result based on the audit results of multiple consensus nodes, and generates an admission result based on the first consensus result.
[0098] Optionally, when the target value meets the preset consensus conditions, the first consensus result indicates that multiple consensus nodes have reached a consensus on the first transaction event. The target value represents the number of consensus nodes that have passed the review.
[0099] Combination Figure 5 When the consensus node corresponds to the monetary authority, such as Figure 7 As shown, participating institutions in a transaction system send a blockchain access request to consensus node 501 corresponding to monetary authority A, which belongs to the same transaction system, via node 505. Consensus node 501 can broadcast the first transaction event corresponding to the blockchain access request in the blockchain network by packaging blocks. Consensus nodes 502 (corresponding to monetary authority B), 503 (corresponding to monetary authority C), and 504 (corresponding to monetary authority D) listen for the first transaction event in the blockchain network. Monetary authorities A, B, C, and D can respectively verify the aforementioned participating institutions, including business checks and manual audits, and publish the verification results in the blockchain network. When a consensus is reached on the verification results, node 505 can be designated as a newly added blockchain node in the blockchain network.
[0100] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S601-S603, after the first consensus node listens to the first transaction event, it can obtain the review result generated by the back-end management terminal of the first transaction system based on the first transaction event, and broadcast the review result to the blockchain network, so that the blockchain network generates a first consensus result based on the review results of multiple consensus nodes, and generates an admission result based on the first consensus result. This application can add the back-end management terminal to the node admission review process, improve the security of node admission in the blockchain network, and reduce data security risks.
[0101] In one alternative embodiment, in Figure 6 Based on the method embodiments shown, combined with Figure 6 ,like Figure 8 As shown in S602, the method by which the first consensus node obtains the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event includes:
[0102] S801, the first consensus node receives a query request sent by the backend management terminal.
[0103] In one feasible approach, the backend management system can periodically poll the first consensus node.
[0104] S802. In response to the query request, the first consensus node sends a first transaction event to the backend management terminal so that the backend management terminal generates the audit result.
[0105] Once the first consensus node detects the first transaction event, it can send the first transaction event to the backend management terminal in response to the query request, so that the backend management terminal can generate the audit result.
[0106] S803, the first consensus node receives the audit results.
[0107] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S801-S803, the backend management terminal in the first transaction system can actively send a query request to obtain the first transaction event from the first consensus node, and perform review based on the first transaction event to generate the corresponding review result. Then, the backend management terminal can send the review result to the first consensus node. This application provides a specific implementation method for obtaining the review result, so that the consensus process for node admission can be completed based on the review result.
[0108] In one alternative embodiment, in Figure 2 Based on the method embodiments shown, combined with Figure 2 ,like Figure 9 As shown, following S203, this blockchain node admission method also includes:
[0109] S901. When the node type is a consensus node, the first consensus node indicates the connection between the target node and any one of the multiple consensus nodes.
[0110] S902. When the node type is a normal node, the first consensus node indicates the connection between the target node and any consensus node corresponding to the first transaction system.
[0111] Optionally, when the node type is a consensus node, the target consensus node can be any one of multiple consensus nodes. When the node type is a regular node, the target consensus node is a consensus node in the first transaction system.
[0112] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S901-S902, the first consensus node can establish a connection between the target node and the target consensus node based on the node type corresponding to the target node. This application provides a method for determining a target node as a blockchain node in a blockchain network, selecting the corresponding connection method according to the node type of the target node, so as to realize the management of consensus nodes and ordinary nodes in the blockchain network.
[0113] In one alternative embodiment, in Figure 9 Based on the illustrated method embodiments, such as Figure 10 As shown, the blockchain node admission method also includes:
[0114] S1001. The first consensus node stores the target node's node information in the KYC contract and obtains the updated KYC contract.
[0115] After blockchain node admission, the first consensus node can store the target node's node information in the KYC contract, so that subsequent contract transactions can be added directly in the updated KYC contract.
[0116] Optionally, the updated KYC contract may also include: trading strategy information from the first trading system.
[0117] Optionally, the transaction strategy information may include: the issuance and cancellation parameters of the target node in the blockchain network, transaction permissions, and transaction limits, etc.
[0118] S1002. The first consensus node broadcasts the updated KYC contract to the blockchain network so that any consensus node or ordinary node in the blockchain network can obtain the node information of the target node based on the updated KYC contract.
[0119] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S1001-S1002, the first consensus node can store the target node's node information in the KYC contract, obtain the updated KYC contract, and then broadcast the updated KYC contract to the blockchain network. This application provides a method for updating the KYC contract, which facilitates the subsequent management of the target node's relevant information in the blockchain network.
[0120] In one alternative embodiment, in Figure 10 Based on the method embodiments shown, combined with Figure 10 ,like Figure 11 As shown, the blockchain node admission method also includes:
[0121] S1101, The first consensus node receives the information update request from the target node.
[0122] The information update request is used to update the node information of the target node in the updated KYC contract.
[0123] In one possible implementation, when the target node is a consensus node, the method by which the first consensus node receives the information update request from the target node may include: the target node packages the node information and the transaction information to be traded included in the transaction request into a block, and broadcasts the block to other consensus nodes in the blockchain network.
[0124] In one possible implementation, when the target node is a regular node, the method by which the first consensus node receives the target node's information update request may include: the target node sending a transaction request to any consensus node in the first transaction system. This consensus node packages the node information and the transaction information to be traded included in the transaction request into a block and broadcasts the block to other consensus nodes in the blockchain network.
[0125] S1102. The first consensus node generates a second contract transaction and sends the second contract transaction to the updated KYC contract, so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction.
[0126] In one feasible approach, the first consensus node can obtain the transaction strategy information of the first transaction system from the updated KYC contract.
[0127] S1103, The first consensus node obtains the updated result generated by the blockchain network based on the second consensus result.
[0128] When the second consensus result indicates that multiple consensus nodes have reached a consensus on the second transaction event, the update result is used to instruct the target node's node information to be updated in the updated KYC contract.
[0129] Optionally, when the ratio of the number of consensus nodes that have successfully verified the second transaction event to the total number of consensus nodes in the blockchain network is greater than or equal to a preset ratio, the second consensus result indicates that the multiple consensus nodes have reached a consensus on the second transaction event. Conversely, when the ratio of the number of consensus nodes that have successfully verified the second transaction event to the total number of consensus nodes is less than the preset ratio, the second consensus result indicates that the multiple consensus nodes have not reached a consensus on the second transaction event.
[0130] The technical solution provided by the above embodiments brings at least the following beneficial effects: As shown in S1101-S1103, after the first consensus node receives the information update request from the target node, it can generate a second contract transaction and send the second contract transaction to the updated KYC contract, so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction. Subsequently, the first consensus node can obtain the update result generated by the blockchain network based on the second consensus result. This application provides a method for updating node information in a KYC contract to achieve the management of relevant information of the target node in the blockchain network.
[0131] It is understood that, in actual implementation, the blockchain node admission device described in this application embodiment may include one or more hardware structures and / or software modules for implementing the aforementioned corresponding blockchain node admission method. These hardware structures and / or software modules can constitute an electronic device. Those skilled in the art should readily recognize that, based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or software-driven manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0132] Based on this understanding, this application also provides a blockchain node admission device. Figure 12 This application provides a schematic diagram of the structure of a blockchain node admission device according to an embodiment. Figure 1 .like Figure 12 As shown, the blockchain node access device is applied to a blockchain network and includes a communication unit 1201 and a processing unit 1202.
[0133] The communication unit 1201 is used to receive the blockchain access request from the target node to be accessed sent by the first transaction system.
[0134] Processing unit 1202 is used to generate a first contract transaction and send the first contract transaction to a pre-created KYC contract so that the KYC contract creates a first transaction event corresponding to the blockchain access request based on the first contract transaction.
[0135] The processing unit 1202 is also used to obtain the admission result generated by the blockchain network based on the first consensus result; when the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is identified as a blockchain node in the blockchain network.
[0136] Optionally, the blockchain node admission device also includes: consensus unit 1203.
[0137] Consensus unit 1203 is used for: listening to the first transaction event; obtaining the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event; broadcasting the audit result to the blockchain network so that the blockchain network generates the first consensus result based on the audit results of multiple consensus nodes, and generates the admission result based on the first consensus result.
[0138] Optionally, when the target value meets the preset consensus conditions, the first consensus result indicates that multiple consensus nodes have reached a consensus on the first transaction event; the target value is the number of nodes that have passed the review among the multiple consensus nodes.
[0139] Optionally, consensus unit 1203 is specifically used for: receiving a query request sent by the backend management terminal; responding to the query request, sending a first transaction event to the backend management terminal so that the backend management terminal generates an audit result; and receiving the audit result.
[0140] Optionally, the node type corresponding to the target node includes: a consensus node or a regular node in the blockchain network; the processing unit 1202 is further configured to: when the node type is a consensus node, instruct the target node to connect with any one of the multiple consensus nodes; when the node type is a regular node, instruct the target node to connect with any one of the consensus nodes corresponding to the first transaction system.
[0141] Optionally, the blockchain access request includes: node information of the target node; the processing unit 1202 is further configured to: store the node information of the target node in the KYC contract to obtain the updated KYC contract; and broadcast the updated KYC contract to the blockchain network so that any consensus node or ordinary node in the blockchain network can obtain the node information of the target node based on the updated KYC contract.
[0142] Optionally, the processing unit 1202 is further configured to: receive an information update request from the target node; the information update request is used to update the node information of the target node in the updated KYC contract; generate a second contract transaction and send the second contract transaction to the updated KYC contract so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction; obtain the update result generated by the blockchain network based on the second consensus result; when the second consensus result indicates that multiple consensus nodes have reached a consensus on the second transaction event, the update result is used to indicate the node information of the target node in the updated KYC contract.
[0143] As described above, the embodiments of this application can divide the blockchain node into functional modules according to the above method examples. The integrated modules can be implemented in hardware or as software functional modules. Furthermore, it should be noted that the module division in these embodiments is illustrative and represents only one logical functional division; in actual implementation, other division methods are possible. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into a single processing module.
[0144] Regarding the blockchain node access device in the above embodiments, the specific methods of operation of each module and its beneficial effects have been described in detail in the foregoing method embodiments, and will not be repeated here.
[0145] This application also provides a blockchain node admission device. Figure 13 This application provides a schematic diagram of the structure of a blockchain node admission device according to an embodiment. Figure 2 The blockchain node admission device may include at least one processor 221, a communication bus 222, a memory 223, and at least one communication interface 224.
[0146] Processor 221 can be a central processing unit (CPU), a microprocessor unit, an ASIC, or one or more integrated circuits used to control the execution of the program according to the present application. Figure 12 The processor 221 is used to execute the operations performed by the processing unit 1202.
[0147] The communication bus 222 may include a path for transmitting information between the aforementioned components.
[0148] Communication interface 224, using any transceiver-like device, is used to communicate with other devices or communication networks, such as electronic devices, Ethernet, radio access networks (RAN), wireless local area networks (WLAN), etc. Combined with... Figure 12 The communication interface 224 is used to perform the operations performed by the communication unit 1201.
[0149] The memory 223 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processing unit via a bus. The memory may also be integrated with the processing unit.
[0150] The memory 223 stores the application code that executes the solution of this application, and its execution is controlled by the processor 221. The processor 221 executes the application code stored in the memory 223 to implement the functions of the method of this application.
[0151] In a specific implementation, as one embodiment, processor 221 may include one or more CPUs, for example... Figure 13 Processor 0 and processor 1 in the system.
[0152] In a specific implementation, as one example, the blockchain node admission device may include multiple processors, such as... Figure 13 Processors 221 and 225 are described herein. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0153] In a specific implementation, as one example, the blockchain node admission device may further include an input device 226 and an output device 227. The input device 226 and output device 227 communicate and can accept user input in various ways. For example, the input device 226 may be a mouse, keyboard, touchscreen device, or sensor device. The output device 227 communicates with the processor 221 and can display information in various ways. For example, the output device 227 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, etc.
[0154] Those skilled in the art will understand that Figure 13 The structure shown does not constitute a limitation on the blockchain node admission device and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0155] This application also provides a computer-readable storage medium including instructions stored thereon. When the instructions in the computer-readable storage medium are executed by the processor of a blockchain node admission device, the blockchain node admission device is able to perform the blockchain node admission method provided in the above-described embodiments. For example, the computer-readable storage medium may be a memory 223 including instructions, which may be executed by the processor 221 of the blockchain node admission device to complete the above method.
[0156] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as ROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0157] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0158] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A blockchain node admission method, characterized in that, The first consensus node is applied in a blockchain network; the blockchain network is used to realize transactions between multiple transaction systems; each of the multiple transaction systems corresponds to at least one consensus node; the first consensus node is any consensus node corresponding to the first transaction system. The first trading system is any one of the plurality of trading systems; The node admission method includes: Receive the blockchain access request from the target node to be connected, sent by the first transaction system; A first contract transaction is generated and sent to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain access request based on the first contract transaction; Obtain the admission result generated by the blockchain network based on the first consensus result; when the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is identified as a blockchain node in the blockchain network.
2. The blockchain node admission method according to claim 1, characterized in that, Also includes: Listen for the first transaction event; Obtain the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event; The audit results are broadcast to the blockchain network so that the blockchain network generates the first consensus result based on the audit results of the multiple consensus nodes, and generates the admission result based on the first consensus result.
3. The blockchain node admission method according to claim 2, characterized in that, When the target value meets the preset consensus conditions, the first consensus result indicates that the multiple consensus nodes have reached a consensus on the first transaction event; the target value is the number of nodes that have passed the review among the multiple consensus nodes.
4. The blockchain node admission method according to claim 2, characterized in that, The step of obtaining the audit result generated by the back-end management terminal of the first transaction system based on the first transaction event includes: Receive query requests sent by the backend management terminal; In response to the query request, the first transaction event is sent to the backend management terminal so that the backend management terminal generates the audit result; Receive the audit results.
5. The blockchain node admission method according to claim 1, characterized in that, The node type corresponding to the target node includes: a consensus node or a regular node in the blockchain network; After obtaining the admission result generated by the blockchain network based on the first consensus result, the method further includes: When the node type is the consensus node, it indicates that the target node is connected to any one of the plurality of consensus nodes; When the node type is a normal node, it indicates that the target node is connected to any consensus node corresponding to the first transaction system.
6. The blockchain node admission method according to claim 5, characterized in that, The blockchain access request includes: node information of the target node; the blockchain node access method further includes: The node information of the target node is stored in the KYC contract to obtain the updated KYC contract; The updated KYC contract is broadcast to the blockchain network so that any consensus node or ordinary node in the blockchain network can obtain the node information of the target node based on the updated KYC contract.
7. The blockchain node admission method according to claim 6, characterized in that, Also includes: Receive the information update request from the target node; The information update request is used to update the node information of the target node in the updated KYC contract; A second contract transaction is generated and sent to the updated KYC contract, so that the updated KYC contract creates a second transaction event corresponding to the information update request based on the second contract transaction; Obtain the updated result generated by the blockchain network based on the second consensus result; When the second consensus result indicates that the multiple consensus nodes have reached a consensus on the second transaction event, the update result is used to indicate the node information of the target node in the updated KYC contract.
8. A blockchain node admission device, characterized in that, The first consensus node is applied in a blockchain network; the blockchain network is used to realize transactions between multiple transaction systems; in the multiple transaction systems, each transaction system corresponds to at least one consensus node; the first consensus node is any one of the consensus nodes corresponding to the first transaction system; the first transaction system is any one of the multiple transaction systems; The node admission device includes: a communication unit and a processing unit; The communication unit is used to receive the blockchain access request from the target node to be accessed sent by the first transaction system. The processing unit is used to generate a first contract transaction and send the first contract transaction to a pre-created KYC contract, so that the KYC contract creates a first transaction event corresponding to the blockchain access request based on the first contract transaction; The processing unit is further configured to obtain an admission result generated by the blockchain network based on the first consensus result; when the first consensus result indicates that multiple consensus nodes in the blockchain network have reached a consensus based on the first transaction event, the admission result is used to indicate that the target node is identified as a blockchain node in the blockchain network.
9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the blockchain node admission method as described in any one of claims 1-7.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the blockchain node admission method as described in any one of claims 1-7.
Citation Information
Patent Citations
Financial industry chain display evaluation transaction system based on alliance chain
CN111127202A
Cross-border payment method and device based on blockchain digital assets
CN112598412A