Blockchain multi-platform governance method, device, server and storage medium
By building a governance chain in the blockchain network and inviting other servers to join, the problem of privacy data leakage in the blockchain alliance center is solved, cross-platform secure data sharing and management is achieved, and the security of private data is improved.
Patent Information
- Application Number
- CN202211500050.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-11-28
AI Technical Summary
Existing blockchain alliance centers have risks of privacy data leakage on multiple management platforms. Especially when multiple organizations jointly manage the blockchain network, the centralized platform may lead to the leakage of participants' privacy data.
By building a governance chain in the blockchain network, the shared data is uploaded to the chain, and blockchain nodes of multiple servers are added to the governance chain to ensure that participants have read and write permissions for the data, and invitation information is generated to enable other servers to deploy nodes. Join the governance chain to achieve cross-platform management and avoid data leakage.
It improves the security of private data of the management platform, ensures that data managed by participants will not be leaked to other platforms, and realizes cross-platform secure data sharing and management.
Smart Images

Figure CN116094720B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of blockchain technology, and in particular to a blockchain multi-platform governance method, device, server and storage medium. Background Art
[0002] The Blockchain as a Service (BaaS) management platform is a management tool for managing the creation of blockchain networks. When multiple organizations need to jointly establish a blockchain network, the above-mentioned organizations all need to apply for tenants on the same BaaS management platform and create user nodes. As a centralized platform, the BaaS management platform can manage each user node.
[0003] The existing alliance chain mechanism is to create a BaaS alliance center on the above-mentioned BaaS management platform, and invite other organizations or participants based on the management platform to jointly manage the blockchain network to achieve decentralized management. However, the BaaS management platform is created based on a server managed by a participant in the above-mentioned alliance. The server still needs to help each organization or participant manage server resources, cluster resources, and even hold corporate certificate private keys, which may lead to the leakage of privacy data of organizations or participants. Summary of the invention
[0004] The present application provides a blockchain multi-platform governance method, device, server and storage medium to solve the technical problem that an alliance center created based on a single management platform has the risk of privacy data leakage of alliance participants.
[0005] In a first aspect, the present application provides a blockchain multi-platform governance method, the method is applied to a first server, a first management platform is installed in the first server, and the method includes:
[0006] Using the first management platform to create a blockchain network and deploy a first blockchain node;
[0007] In the blockchain network, a governance chain is constructed using the first blockchain node, and shared data is chained on the governance chain; participants in the governance chain have read and write permissions to govern the shared data in the governance chain;
[0008] Generate invitation information and send the invitation information to the second server; the second server is installed with a second management platform, and the invitation information is used to invite the second server to deploy a second blockchain node and add the second blockchain node to the governance chain;
[0009] Receive response information sent by the second server, and update a transaction in the first server according to the response information, wherein the transaction includes a response status of the second server to the invitation.
[0010] In the above technical solution, the first server installed with the first management platform uses the first management platform to create a blockchain network and deploy the first blockchain node, and uses the first blockchain node to build a governance chain in the blockchain network. After the shared data is uploaded to the governance chain, an invitation message is generated, and the invitation message is sent to the second server, so that the second server installed with the second management platform deploys the second blockchain node and adds the second blockchain node to the governance chain, thereby realizing the management of the same blockchain network by cross-platform servers. Participants in the same governance chain can jointly manage the shared data stored in the ledger files created in the governance chain, and the privacy data managed by the participant will not be leaked to participants using other management platforms, thereby improving the security of the privacy data managed by each management platform.
[0011] Optionally, using the first management platform to create a blockchain network and deploy a first blockchain node specifically includes:
[0012] Get network creation instructions;
[0013] generating network information using the first management platform according to the network creation instruction;
[0014] Get network information confirmation instructions;
[0015] Creating a blockchain network according to the network information confirmation instruction and the network information, and generating a first blockchain node deployment file using the first management platform;
[0016] Get deployment instructions;
[0017] Deploy the corresponding first blockchain node according to the deployment instruction and the first blockchain node deployment file.
[0018] Optionally, the blockchain network further includes a data sharing smart contract; in the blockchain network, a governance chain is constructed using the first blockchain node, and shared data is chained on the governance chain, specifically including:
[0019] Creating a governance chain in the blockchain network, and generating a ledger file in the governance chain;
[0020] After the first blockchain node is started, adding the first blockchain node to the governance chain;
[0021] The data sharing smart contract is called to upload the network information to the governance chain and store it in the ledger file.
[0022] Optionally, the method further comprises:
[0023] Write the data sharing smart contract into the system contract of the governance chain.
[0024] In the above technical solution, during the process of creating the governance chain, the first server writes the data sharing smart contract into the system contract, thereby saving the time for contract upgrades during changes in the governance chain and improving the efficiency of adding new third platforms to the blockchain network.
[0025] Optionally, generating invitation information and sending the invitation information to the second server specifically includes:
[0026] Obtaining a tenant list of the second server;
[0027] Constructing invitation information according to the tenant list;
[0028] The invitation information is sent to the second server.
[0029] Optionally, receiving response information sent by the second server, and updating the transaction in the first server according to the response information specifically includes:
[0030] receiving a first response message sent by the second server, and adjusting the invitation status in the transaction to a pending acceptance status according to the first response message; the first response message includes a processing status of the invitation message by the second server;
[0031] The second response information sent by the second server is received, and the invitation status in the transaction is adjusted according to the second response information; the second response information includes the acceptance result of the second server to the invitation information.
[0032] Optionally, receiving second response information sent by the second server, and adjusting the invitation status in the transaction according to the second response information specifically includes:
[0033] receiving a second response message sent by the second server; the second response message includes acceptance information or rejection information;
[0034] When the second response information includes rejection information, rolling back the transaction;
[0035] When the second response information includes accepted information, the identity information of the second server is obtained from the second response information, and after the identity information is added to the configuration block in the governance chain, the invitation status in the transaction is adjusted to the accepted status.
[0036] In a second aspect, the present application provides a blockchain multi-platform governance method, the method is applied to a second server, a second management platform is installed in the second server, and the method includes:
[0037] Obtaining invitation information sent by the first server; the invitation information is information that the first server uses the first management platform installed on it to create a blockchain network, deploy a first blockchain node, use the first blockchain node to build a governance chain, and after uploading shared data in the governance chain, invites the second server to build a second blockchain node and join the governance chain; participants in the governance chain have read and write permissions to govern the shared data in the governance chain;
[0038] Generate and send response information to the first server; the response information is used for the first server to update the transaction, and the transaction includes the response status of the second server to the invitation;
[0039] In response to the invitation information, deploy a second blockchain node using the second management platform;
[0040] Add the second blockchain node to the governance chain.
[0041] Optionally, generating and sending response information to the first server specifically includes:
[0042] Obtain blockchain network data from the invitation information;
[0043] Parsing and storing the blockchain network data in a local database, and generating a first response message; the first response message includes a processing status of the invitation information by the second server;
[0044] The first response information is sent to the first server, where the first response information is used to enable the first server to adjust the invitation state in the transaction to a pending acceptance state.
[0045] Optionally, the method further comprises:
[0046] Generate a local directory structure and build an organization service membership service to provide a request calling interface;
[0047] Get invitation confirmation instructions;
[0048] Generate a second response message according to the invitation confirmation instruction, the local directory structure and the organization service membership service providing request calling interface;
[0049] The second response information is sent to the first server; the second response information is used to adjust the invitation status of the transaction in the first server.
[0050] In a third aspect, the present application provides a blockchain multi-platform governance device, including:
[0051] A processing module, configured to create a blockchain network and deploy a first blockchain node using a first management platform;
[0052] The processing module is also used to construct a governance chain in the blockchain network using the first blockchain node, and to chain the shared data on the governance chain; the participants in the governance chain have the read and write permissions to govern the shared data in the governance chain;
[0053] The processing module is further used to generate invitation information and send the invitation information to the second server; the second server is installed with a second management platform, and the invitation information is used to invite the second server to deploy a second blockchain node and add the second blockchain node to the governance chain;
[0054] The processing module is further configured to receive response information sent by the second server, and update a transaction in the first server according to the response information, wherein the transaction includes a response status of the second server to the invitation.
[0055] In a fourth aspect, the present application provides a blockchain multi-platform governance device, including:
[0056] An acquisition module is used to obtain the invitation information sent by the first server; the invitation information is that the first server uses the first management platform installed on it to create a blockchain network, deploy a first blockchain node, use the first blockchain node to build a governance chain, and after the shared data is uploaded to the governance chain, invites the second server to build a second blockchain node and join the governance chain; the participants in the governance chain have the read and write permissions to govern the shared data in the governance chain;
[0057] a processing module, configured to generate and send response information to the first server; the response information is used for the first server to update a transaction, the transaction including a response status of the second server to the invitation;
[0058] The processing module is further used to respond to the invitation information and deploy a second blockchain node using the second management platform;
[0059] The processing module is also used to add the blockchain node to the governance chain.
[0060] In a fifth aspect, the present application provides a server, comprising: a processor and a memory communicatively connected to the processor;
[0061] The memory stores computer instructions;
[0062] When executing the computer instructions, the processor is used to implement the blockchain multi-platform governance method involved in the first aspect or any one of the second aspects.
[0063] In a sixth aspect, the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the blockchain multi-platform governance method described in the first aspect or any one of the second aspect.
[0064] The present application provides a blockchain multi-platform governance method, device, server and storage medium. A first server installed with a first management platform uses the first management platform to create a blockchain network and deploy a first blockchain node. A governance chain is constructed in the blockchain network using the first blockchain node. After the shared data is uploaded to the governance chain, an invitation message is generated and the invitation message is sent to a second server, so that the second server installed with the second management platform deploys a second blockchain node and adds the second blockchain node to the governance chain, thereby realizing cross-platform server management of the same blockchain network. Participants in the same governance chain can jointly manage the shared data stored in the account book file created in the governance chain, and the privacy data managed by the participant will not be leaked to participants using other management platforms, thereby improving the security of the privacy data managed by each management platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0066] Figure 1 This is an application scenario diagram of the blockchain multi-platform governance method provided by this application according to an exemplary embodiment;
[0067] Figure 2 An information interaction diagram of a blockchain multi-platform governance method provided by this application according to an exemplary embodiment;
[0068] Figure 3 A flowchart of a governance chain construction method provided by the present application according to an exemplary embodiment;
[0069] Figure 4 This is an information interaction diagram of another management platform tenant invitation method provided by the present application according to an exemplary embodiment;
[0070] Figure 5 This is a schematic diagram of the structure of a first blockchain multi-platform governance device provided by the present application according to an exemplary embodiment;
[0071] Figure 6This is a schematic diagram of the structure of a second blockchain multi-platform governance device provided by the present application according to an exemplary embodiment;
[0072] Figure 7 A schematic diagram of the structure of a server provided according to an embodiment of the present application.
[0073] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0074] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0075] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0076] The word "if" as used herein may be interpreted as "when" or "when" or "in response to determining," depending on the context.
[0077] Furthermore, as used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.
[0078] It should be further understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.
[0079] The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0080] The present application provides a blockchain multi-platform governance method, device, server and storage medium, aiming to solve the technical problem that the alliance center created based on a single management platform has the risk of privacy data leakage of alliance participants. The technical concept of the present application is: the first server installed with the first management platform uses the first management platform to create a blockchain network and deploy the first blockchain node, and the first blockchain node is used to build a governance chain in the blockchain network. After the shared data is chained on the governance chain, an invitation message is generated, and the invitation message is sent to the second server, so that the second server installed with the second management platform deploys the second blockchain node, and the second blockchain node is added to the governance chain, so as to realize the management of the same blockchain network by the cross-platform server, and the participants in the same governance chain can jointly manage the shared data stored in the account file created in the governance chain, and the privacy data managed by the participant will not be leaked to the participants using other management platforms, thereby improving the security of the privacy data managed by each management platform.
[0081] Figure 1 This is an application scenario diagram of the blockchain multi-platform governance method provided by this application according to an exemplary embodiment. Figure 1 As shown, the application scenario diagram includes a first server 10, a second server 11, and a blockchain network 12. A first management platform is installed in the first server 10, and a second management platform is installed in the second server 11. The blockchain network 12 is communicated with the first server 10 and the second server 11, respectively.
[0082] More specifically, the blockchain network 12 includes multiple blockchain nodes. Figure 1 In the illustrated scenario, the blockchain network 12 includes a first blockchain node 122, a second blockchain node 125, a third blockchain node 121, a fourth blockchain node 123, a fifth blockchain node 124, and a sixth blockchain node 126. In the above blockchain network, the first blockchain node 122, the third blockchain node 121, and the fourth blockchain node 123 are interconnected in pairs and are simultaneously managed by the first management platform in the first server 10; the second blockchain node 125, the fifth blockchain node 124, and the sixth blockchain node 126 are interconnected in pairs and are simultaneously managed by the second management platform in the second server 11.
[0083] The first server 10 can use the first management platform to create a blockchain network and deploy blockchain nodes in the blockchain network, and the blockchain network includes a data sharing smart contract. In the blockchain network, the first server 10 creates a governance chain on the blockchain node it manages. After it completes the creation of the governance chain, it generates a ledger file on the governance chain. The first server 10 links the blockchain network information generated and stored locally in the governance chain, and stores the blockchain network information in the ledger file as shared data. After the first server 10 successfully links the blockchain network data, it sends an invitation message for collaborative management of the governance chain to the second server 11, so that after the second server 11 accepts the invitation, the first server 10 adds the certificate information of the tenant on the second management platform on the second server 11 to the governance chain, so as to realize the joint management of the shared data on the governance chain by the tenants applied on the second management platform and the tenants applied on the first management platform. The second server 11 also uses the second management platform to add the blockchain node it deploys to the blockchain network, and adds the data stored in the second server 11 to the governance chain for sharing.
[0084] Figure 2 This is an information interaction diagram of the blockchain multi-platform governance method provided by this application according to an exemplary embodiment, such as Figure 2 As shown, the blockchain multi-platform governance method includes:
[0085] S201. The first server uses the first management platform to create a blockchain network and deploy a first blockchain node.
[0086] Among them, the first management platform is installed in the first server. The first management platform refers to a convenient and integrated blockchain control platform for monitoring and managing the underlying blockchain network. It has the characteristics of large monitoring and management. It can not only present the status of the underlying network in real time on the front-end page through visual means, but also simplify the complex blockchain underlying management into a user-friendly one-click operation through interface encapsulation. In one embodiment, the first management platform is a BaaS platform.
[0087] A blockchain network refers to a P2P network system with a distributed data storage structure in which each node device reaches a consensus mechanism. The ledger data in the blockchain is distributed in "blocks" that are connected in time. The latter block can contain a summary of the data of the previous block, and depending on the specific consensus mechanism, a full backup of the data of all or part of the nodes can be achieved.
[0088] The first blockchain node is a blockchain node required in the blockchain network deployed by the first server during the process of creating the blockchain network on the first management platform.
[0089] S202. The first server uses the first blockchain node to build a governance chain in the blockchain network, and uploads the shared data to the governance chain.
[0090] Shared data is network information generated by the first server during the process of creating a blockchain network. This data is shared in the blockchain network and stored in the ledger file. That is, a governance chain is built on the first blockchain node in the blockchain network, and a ledger file is created in the governance chain, and the shared data is stored in the ledger file.
[0091] The governance chain is a blockchain built after the first blockchain node deployed in step S201 is put on the chain. Participants in the governance chain have read and write permissions for shared data in the governance chain.
[0092] S203: The first server generates invitation information.
[0093] When the first server needs to invite other organizations or participants to collaboratively manage the data in the governance chain created in step S202, an invitation message is generated for the server on which the other management platform is installed. In one embodiment, the first server invites the second server on which the second management platform is installed to collaboratively manage the data in the governance chain and generates corresponding invitation message.
[0094] The invitation information includes a data structure stored in a database managed by the first server, including but not limited to a network table, a server cluster table, a service channel table, and an invitation relationship table.
[0095] S204: The first server sends an invitation message to the second server.
[0096] S205: The second server generates and sends response information to the first server.
[0097] After acquiring the invitation information, the second server processes the invitation information, generates corresponding response information according to the processing result, and feeds back the response information to the first server.
[0098] S206: The first server updates the transaction within the first server according to the response information.
[0099] Transactions, also known as "transactions" in blockchain technology, include operations that need to be submitted to the blockchain network for execution, not just transactions in a business context.
[0100] When the first server generates and sends an invitation message, the status information of the transaction it generates is "inviting". After the second server feeds back a response message, the first server updates the status information of the transaction according to the content in the response message. If the second server rejects the invitation message sent by the first server, the first server will roll back the transaction according to the response message containing the rejection information.
[0101] S207. The second server responds to the invitation information and deploys the second blockchain node using the second management platform.
[0102] More specifically, after the second server confirms the invitation information, the first server will update the information of the tenant on the second server on the governance chain so that the second server also has the authority to manage the blockchain network and deploy the second blockchain node when it needs to upload data in the database managed by the second management platform.
[0103] S208. The second server adds the second blockchain node to the governance chain.
[0104] After the second server puts the second blockchain node on the governance chain, the first server can obtain the data on the second blockchain node.
[0105] In the above technical solution, the first server installed with the first management platform uses the first management platform to create a blockchain network and deploy the first blockchain node, and uses the first blockchain node to build a governance chain in the blockchain network. After the shared data is uploaded to the governance chain, an invitation message is generated, and the invitation message is sent to the second server, so that the second server installed with the second management platform deploys the second blockchain node and adds the second blockchain node to the governance chain, thereby realizing the management of the same blockchain network by cross-platform servers. Participants in the same governance chain can jointly manage the shared data stored in the ledger files created in the governance chain, and the privacy data managed by the participant will not be leaked to participants using other management platforms, thereby improving the security of the privacy data managed by each management platform.
[0106] Figure 3 This is a flow chart of a governance chain construction method provided by the present application according to another exemplary embodiment, such as Figure 3 As shown, the governance chain construction method includes:
[0107] S301. A first server obtains a network creation instruction, and generates network information using a first management platform according to the network creation instruction.
[0108] The network creation instruction is an instruction generated by the first server on the first server by the staff corresponding to the first tenant through interaction with the input device of the first server after the first tenant logs in to the first management platform. The instruction is used to create a blockchain network, and the instruction contains the necessary information of the blockchain network to be created.
[0109] After generating the network creation instruction, the first server responds to the network creation instruction, obtains necessary information from the network creation instruction, organizes the information, generates network information, and stores the network information in a local database.
[0110] S302. The first server obtains a network information confirmation instruction, creates a blockchain network according to the network information confirmation instruction and the network information, and generates a first blockchain node deployment file using the first management platform.
[0111] The network information confirmation instruction is an instruction generated by the staff corresponding to the first tenant after checking that the network information generated by the first server is correct through interaction with the input device of the first server.
[0112] After generating the network information confirmation instruction, the first server creates a corresponding blockchain network through the first management platform according to the network information generated in step S301. At this time, the blockchain network does not include specific blockchain nodes.
[0113] The first server needs to generate a first blockchain node deployment file in the blockchain network to add a specific blockchain node in the blockchain network, and store the deployment file in a local database.
[0114] S303. The first server obtains a deployment instruction, and deploys the corresponding first blockchain node according to the deployment instruction and the first blockchain node deployment file.
[0115] More specifically, the first server deploys a first blockchain node that can provide a preset blockchain service.
[0116] S304. The first server creates a governance chain in the blockchain network and generates a ledger file in the governance chain.
[0117] The ledger file is used to store the network data to be shared, which is the network data involved in step S301.
[0118] This step is the governance chain creation and account file generation operation performed by the first server locally at the logical level.
[0119] In addition, the first server also sets up a block monitoring function for the governance chain locally. This function is used to parse the transactions in the block when it monitors the generation of a new block, and update the content of the transaction information to the local database.
[0120] S305. After the first blockchain node is started, the first server adds the first blockchain node to the governance chain.
[0121] More specifically, after the preset blockchain service on the first blockchain node is started, it actually joins and runs the governance chain, and actually creates the ledger file.
[0122] S306. The first server writes the data sharing smart contract into the system contract of the governance chain.
[0123] The data sharing smart contract is implemented by extending the underlying system chain code of the blockchain framework, so that after the Peer node is invited and added to the governance chain, the system chain code is automatically deployed when the Peer node is started, and can be directly called through the gateway without the need for pre-installation and deployment. This avoids the need to upgrade the smart contract and reinstall the contract on each Peer node every time an organization is dynamically added. Based on the above data sharing smart contract, the resource changes generated by the relevant operations under the management platform will be converted into a unified data structure and stored in the ledger of the governance chain through the system chain code.
[0124] S307. The first server calls the data sharing smart contract, uploads the network information to the governance chain, and stores it in the ledger file.
[0125] More specifically, the first server packages the content in the database it manages into networking data, calls the data sharing smart contract, performs on-chain operations in the governance chain, and adds the networking data to the ledger file on the governance chain.
[0126] During the process of the first server adding the first blockchain node to the governance chain and uploading the networking data to the chain, if the first blockchain node fails to promptly feedback the uplink response information to the first server, the first server retries the above-mentioned uplink operation a first preset number of times. In one embodiment, the first preset number of times is 3 times.
[0127] If the first server still fails to successfully upload to the chain after performing the first preset number of upload operations, the transaction generated by the first tenant when creating the network is rolled back. If the upload is successful, the first server updates the network creation status in the above transaction and adjusts it to the created state.
[0128] In the above technical solution, during the process of creating the governance chain, the first server writes the data sharing smart contract into the system contract, thereby saving the time for contract upgrades during changes in the governance chain and improving the efficiency of adding new third platforms to the blockchain network.
[0129] Figure 4 This is an information interaction diagram of another management platform tenant invitation method provided by this application according to an exemplary embodiment, such as Figure 4 As shown, the method includes:
[0130] S401. The second server sends a tenant list.
[0131] The tenant list is list information of all tenants applied for on the second server on which the second management platform is installed.
[0132] S402: The first server constructs invitation information according to the tenant list.
[0133] The first server determines the target tenant to be invited from the tenant list, and constructs corresponding invitation information according to the target tenant.
[0134] The invitation information is used to invite the target tenant to join the governance chain created by the first server and realize the sharing of blockchain data in the governance chain.
[0135] S403: The first server sends an invitation message to the second server.
[0136] The invitation information includes the blockchain network data generated by the first server, and the network data includes the on-chain data of the first server in the governance chain. The blockchain network data includes multiple database tables, including but not limited to network tables, server cluster tables, business channel tables, and invitation relationship tables.
[0137] S404: The second server obtains blockchain network data from the invitation information.
[0138] S405. The second server parses and stores the blockchain network data in a local database, and generates a first response message.
[0139] The blockchain network data obtained by the second server from the invitation information has poor readability, and it is necessary to use the second management platform installed in the second server to parse the blockchain network data to improve the readability of the data, and at the same time, store the parsed data.
[0140] After the second server completes parsing and storing the above-mentioned blockchain network data, a first response information is generated, and the first response information is used to describe the status of the second server completing the parsing and storage of the blockchain network data.
[0141] S406: The second server sends a first response message to the first server.
[0142] The first response information includes a processing status of the second server on the invitation information.
[0143] After the first server receives the first response information, it proceeds to step S410.
[0144] S407. The second server generates a local directory structure and constructs an organization service member relationship service provision request calling interface.
[0145] After the second management platform in the second server parses and stores the blockchain network data in the invitation information in step S405, it automatically generates a set of public and private key directory lists with an organizational structure, which is used to sign transactions in the blockchain with public keys and private keys. The locally generated directory includes the CA certificate, the private key of the certificate, the certificate and the private key of the node to be joined, and the certificate and the private key of the client of the tenant.
[0146] S408. The second server obtains the invitation confirmation instruction, and generates a second response message according to the invitation confirmation instruction, the local directory structure, and the organization service member relationship service providing request calling interface.
[0147] S409: The second server sends second response information to the first server.
[0148] After receiving the second response information, the first server proceeds to step S411.
[0149] S410: The first server adjusts the invitation status in the transaction to a pending acceptance status according to the first response information.
[0150] S411. The first server adjusts the invitation status in the transaction according to the second response information.
[0151] More specifically, the first server receives second response information sent by the second server, where the second response information includes acceptance information or rejection information.
[0152] When the second response information includes rejection information, the transaction is rolled back, and the invitation transaction to the tenant in the second server is canceled.
[0153] When the second response information contains accepted information, the identity information of the second server is obtained from the second response information and added to the configuration block in the system chain code, wherein the identity information includes the local directory structure, the organization service membership service providing a request calling interface, the organization name of the second server, and the certificate.
[0154] The backend system of the first server writes the certificate into the configuration file of the governance chain to form a governance chain together, so that the invited tenants in the second server have the right to read and write data in the governance chain ledger. At the same time, the first server adjusts the invitation status in the transaction to the accepted status and archives the transaction in the database it manages.
[0155] After completing the above steps, the first server feeds back the results to the second server, so that the second server deploys the second blockchain node, adds the node to the governance chain, and sets up monitoring for the governance chain. The setting process of the second server monitoring the governance chain is the same as that of the first server, and will not be repeated here.
[0156] After the above-mentioned governance chain update is completed, the first server can only manage the database and corresponding nodes based on the first management platform, and the second server can only manage the database and corresponding nodes based on the second management platform. The two platforms cannot obtain each other's privacy data, but can achieve joint management of the data of the blockchain network, realizing distributed management of the blockchain network and preventing the leakage of privacy data of organizations or participants.
[0157] Figure 5 This is a schematic diagram of the structure of a first blockchain multi-platform governance device provided by the present application according to an embodiment. The first blockchain multi-platform governance device 500 includes a first processing module 501, wherein:
[0158] The first processing module 501 is used to create a blockchain network and deploy a first blockchain node using a first management platform;
[0159] The first processing module 501 is also used to build a governance chain using the first blockchain node, and put the shared data on the governance chain; the participants in the governance chain have the read and write permissions for the shared data in the governance chain;
[0160] The first processing module 501 is also used to generate invitation information and send the invitation information to the second server; the second management platform is installed in the second server, and the invitation information is used to invite the second server to deploy the second blockchain node and add the second blockchain node to the governance chain;
[0161] The first processing module 501 is further configured to receive response information sent by the second server, and update a transaction in the first server according to the response information, wherein the transaction includes a response status of the second server to the invitation.
[0162] Figure 6 This is a structural diagram of a second blockchain multi-platform governance device provided by the present application according to an embodiment. The second blockchain multi-platform governance device 600 includes a second acquisition module 601 and a second processing module 602, wherein:
[0163] The second acquisition module 601 is used to obtain the invitation information sent by the first server; the invitation information is the information that the first server uses the first management platform installed on it to create a blockchain network, deploy the first blockchain node, use the first blockchain node to build a governance chain, and after uploading the shared data in the governance chain, invites the second server to build a second blockchain node and join the governance chain; the participants in the governance chain have the read and write permissions to manage the shared data in the governance chain;
[0164] The second processing module 602 is used to generate and send response information to the first server; the response information is used by the first server to update the transaction, and the transaction includes the response status of the second server to the invitation;
[0165] The second processing module 602 is also used to respond to the invitation information and deploy the second blockchain node using the second management platform;
[0166] The second processing module 602 is also used to add the blockchain node to the governance chain.
[0167] Figure 7 A schematic diagram of the structure of a server provided according to an embodiment of the present application. The server 700 includes a memory 701 and a processor 702, and the memory 701 is used to store computer instructions executable by the processor. The memory 701 may include a high-speed random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0168] When executing computer instructions, the processor 702 implements the various steps in the blockchain multi-platform governance method in the above embodiment with the first server or the second processor as the execution subject. For details, please refer to the relevant description in the above method embodiment. The processor 702 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.
[0169] Optionally, the memory 701 can be independent or integrated with the processor 702. When the memory 701 is independently provided, the server 700 further includes a bus for connecting the memory 701 and the processor 702. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0170] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When a processor executes the computer instructions, each step of the blockchain multi-platform governance method in the above embodiment is implemented.
[0171] An embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the various steps in the blockchain multi-platform governance method in the above embodiment.
[0172] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0173] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A blockchain multi-platform governance method, characterized in that: The method is applied to a first server, in which a first management platform is installed, and the method includes: Using the first management platform to create a blockchain network and deploy a first blockchain node; In the blockchain network, a governance chain is constructed using the first blockchain node, and shared data is chained on the governance chain; participants in the governance chain have read and write permissions to govern the shared data in the governance chain; Generate invitation information and send the invitation information to the second server; the second server is installed with a second management platform, and the invitation information is used to invite the second server to deploy a second blockchain node and add the second blockchain node to the governance chain; receiving response information sent by the second server, and updating a transaction in the first server according to the response information, wherein the transaction includes a response status of the second server to the invitation; Receiving response information sent by the second server, and updating the transaction in the first server according to the response information, specifically includes: receiving a first response message sent by the second server, and adjusting the invitation status in the transaction to a pending acceptance status according to the first response message; the first response message includes a processing status of the invitation message by the second server; The second response information sent by the second server is received, and the invitation status in the transaction is adjusted according to the second response information; the second response information includes the acceptance result of the second server to the invitation information.
2. The method according to claim 1, characterized in that Using the first management platform to create a blockchain network and deploy a first blockchain node specifically includes: Get network creation instructions; generating network information using the first management platform according to the network creation instruction; Get network information confirmation instructions; According to the network information confirmation instruction and the network information, a blockchain network is created, and a first blockchain node deployment file is generated using the first management platform; Get deployment instructions; Deploy the corresponding first blockchain node according to the deployment instruction and the first blockchain node deployment file.
3. The method according to claim 2, characterized in that The blockchain network also includes a data sharing smart contract; in the blockchain network, the first blockchain node is used to build a governance chain, and the shared data is chained on the governance chain, specifically including: Creating a governance chain in the blockchain network, and generating a ledger file in the governance chain; After the first blockchain node is started, adding the first blockchain node to the governance chain; The data sharing smart contract is called to upload the network information to the governance chain and store it in the account book file.
4. The method according to claim 3, characterized in that The method further comprises: Write the data sharing smart contract into the system contract of the governance chain.
5. The method according to claim 1, characterized in that: Generating invitation information and sending the invitation information to the second server specifically includes: Obtaining a tenant list of the second server; Constructing invitation information according to the tenant list; The invitation information is sent to the second server.
6. The method according to claim 1, characterized in that Receiving second response information sent by the second server, and adjusting the invitation status in the transaction according to the second response information, specifically includes: receiving a second response message sent by the second server; the second response message includes acceptance information or rejection information; When the second response information includes rejection information, rolling back the transaction; When the second response information includes accepted information, the identity information of the second server is obtained from the second response information, and after the identity information is added to the configuration block in the governance chain, the invitation status in the transaction is adjusted to the accepted status.
7. A blockchain multi-platform governance method, characterized in that: The method is applied to a second server, in which a second management platform is installed, and the method includes: Obtaining invitation information sent by the first server; the invitation information is information that the first server uses the first management platform installed on it to create a blockchain network, deploy a first blockchain node, use the first blockchain node to build a governance chain, and after uploading shared data in the governance chain, invites the second server to build a second blockchain node and join the governance chain; participants in the governance chain have read and write permissions to govern the shared data in the governance chain; Generate and send response information to the first server; the response information is used for the first server to update the transaction, and the transaction includes the response status of the second server to the invitation; In response to the invitation information, deploy a second blockchain node using the second management platform; Adding the second blockchain node to the governance chain; Generate and send response information to the first server; the response information is used for the first server update transaction, including: Sending a first response message to the first server, so that the first server adjusts the invitation status in the transaction to a pending acceptance status according to the first response message; the first response message includes a processing status of the invitation message by the second server; Sending second response information to the first server, so that the first server adjusts the invitation status in the transaction according to the second response information; the second response information includes the acceptance result of the second server to the invitation information.
8. The method according to claim 7, characterized in that Generating and sending response information to the first server specifically includes: Obtain blockchain network data from the invitation information; Parsing and storing the blockchain network data in a local database, and generating a first response message; the first response message includes a processing status of the invitation information by the second server; The first response information is sent to the first server, where the first response information is used to enable the first server to adjust the invitation state in the transaction to a pending acceptance state.
9. The method according to claim 8, characterized in that The method further comprises: Generate a local directory structure and build an organization service membership service to provide a request calling interface; Get invitation confirmation instructions; Generate second response information according to the invitation confirmation instruction, the local directory structure and the organization service membership service providing request calling interface; The second response information is sent to the first server; the second response information is used to adjust the invitation status of the transaction in the first server.
10. A blockchain multi-platform governance device, characterized in that: include: A processing module, configured to create a blockchain network and deploy a first blockchain node using a first management platform; The processing module is also used to construct a governance chain in the blockchain network using the first blockchain node, and to chain the shared data on the governance chain; the participants in the governance chain have the read and write permissions to govern the shared data in the governance chain; The processing module is further used to generate invitation information and send the invitation information to the second server; the second server is installed with a second management platform, and the invitation information is used to invite the second server to deploy a second blockchain node and add the second blockchain node to the governance chain; The processing module is further configured to receive response information sent by the second server, and update a transaction in the first server according to the response information, wherein the transaction includes a response status of the second server to the invitation; The processing module is specifically used to receive the first response information sent by the second server, and adjust the invitation status in the transaction to a pending acceptance status according to the first response information; the first response information includes the processing status of the invitation information by the second server; The second response information sent by the second server is received, and the invitation status in the transaction is adjusted according to the second response information; the second response information includes the acceptance result of the second server to the invitation information.
11. A blockchain multi-platform governance device, characterized in that: include: An acquisition module, used for acquiring the invitation information sent by the first server; The invitation information is information that the first server uses the first management platform installed on it to create a blockchain network, deploy a first blockchain node, use the first blockchain node to build a governance chain, and after uploading the shared data in the governance chain, invites the second server to build a second blockchain node and join the governance chain; the participants in the governance chain have the read and write permissions to govern the shared data in the governance chain; a processing module, configured to generate and send response information to the first server; the response information is used for the first server to update a transaction, the transaction including a response status of the second server to the invitation; The processing module is further used to respond to the invitation information and deploy a second blockchain node using a second management platform; The processing module is also used to add the blockchain node to the governance chain; The processing module is specifically configured to send a first response message to the first server, so that the first server adjusts the invitation status in the transaction to a pending acceptance status according to the first response message; the first response message includes a processing status of the invitation message by the second server; Sending second response information to the first server, so that the first server adjusts the invitation status in the transaction according to the second response information; the second response information includes the acceptance result of the second server to the invitation information.
12. A server, characterized in that: include: A processor and a memory communicatively connected to the processor; The memory stores computer instructions; When executing the computer instructions, the processor is used to implement the blockchain multi-platform governance method as described in claims 1 to 6, or any one of claims 7 to 9.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a processor, are used to implement the blockchain multi-platform governance method as described in claims 1 to 6, or any one of claims 7 to 9.
14. A computer program product, comprising computer instructions, which, when executed by a processor, implement the blockchain multi-platform governance method as described in claims 1 to 6, or any one of claims 7 to 9.
Citation Information
Patent Citations
Block chain event processing method, related device, platform and storage medium
CN115086352A
