Blockchain application management method and apparatus, computer device, and storage medium

By acquiring a set of underlying blockchain types, creating a target blockchain, deploying applications, and managing smart contracts, the problem of low efficiency in multi-chain application management is solved, achieving efficient blockchain application management.

CN115204870BActive Publication Date: 2025-12-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110401530.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-14
Publication Date
2025-12-05
Estimated Expiration
2041-04-14

AI Technical Summary

Technical Problem

The management difficulty and efficiency of blockchain applications need to be improved, especially when deploying applications on multiple types of blockchains, where existing technologies are difficult to manage effectively.

Method used

A method is provided to determine the target underlying chain type by obtaining a set of underlying chain types of blockchains, create the target blockchain, deploy the target application, and perform data analysis through smart contracts to manage the application.

Benefits of technology

It improves the management efficiency of blockchain applications, supports the management of multiple chains and applications, and avoids the inefficiency and invariance of a single underlying chain management method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115204870B_ABST
    Figure CN115204870B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a blockchain application management method and device, computer equipment and a storage medium. Embodiments of the present application can obtain a bottom chain type set of a blockchain, wherein the bottom chain type set comprises at least one bottom chain type of a bottom chain of a blockchain. A target bottom chain type required for creating a blockchain is determined from the bottom chain type set. A target blockchain of a target service is created based on a blockchain bottom chain corresponding to the target bottom chain type. A target application of the target service is deployed on the target blockchain, and a smart contract of the target application is generated. The on-chain data of the target application on the target blockchain is analyzed through the smart contract of the target application, and the target application is managed based on the analysis result. The scheme can improve the management efficiency of the blockchain application.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a blockchain application management method and device, computer equipment and storage medium. BACKGROUND

[0002] Blockchain is a new application mode of distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm and other computer technologies. In practical application, applications can be deployed on the blockchain to better utilize the blockchain to carry out business.

[0003] In the research and practice process of the related technology, the inventors of the present application found that with the development of blockchain, there are various types of blockchains, and multiple applications deployed on different types of blockchains, which makes the management difficulty and efficiency of blockchain applications need to be improved.

[0004] The present application can provide a bottom chain type set including at least one bottom chain type, create a blockchain belonging to different bottom chains based on the blockchain bottom chain of each bottom chain type, and then deploy applications on the created blockchain, and perform data analysis and application management on the deployed applications through a smart contract. That is, the present application not only supports the creation of blockchains belonging to different bottom chains, but also supports the deployment of applications on different blockchains and the data analysis and management of deployed applications. Therefore, the present application can manage multiple chains and multiple applications, and compared with the management mode of supporting only the management of blockchain applications of a single bottom chain, the present application can effectively improve the management efficiency of blockchain applications and avoid the inconvenience and inefficiency caused by supporting only the management of applications on a single bottom chain. SUMMARY

[0005] The embodiments of the present application provide a blockchain application management method and device, computer equipment and storage medium, which can improve the management efficiency of blockchain applications.

[0006] The embodiments of the present application provide a blockchain application management method, which comprises:

[0007] Obtain a bottom chain type set of a blockchain, wherein the bottom chain type set includes at least one bottom chain type of a blockchain bottom chain;

[0008] Determine a target bottom chain type required for creating a blockchain from the bottom chain type set;

[0009] Create a target blockchain of a target business based on the blockchain bottom chain corresponding to the target bottom chain type;

[0010] Deploy a target application of the target business on the target blockchain, and generate a smart contract of the target application;

[0011] The smart contract of the target application is used to perform data analysis on the on-chain data of the target application in the target blockchain, and the target application is managed based on the analysis result.

[0012] Correspondingly, the application also provides a blockchain application management device, comprising:

[0013] An acquisition unit is configured to acquire a bottom chain type set of a blockchain, wherein the bottom chain type set comprises a bottom chain type of at least one blockchain bottom chain;

[0014] A determination unit is configured to determine a target bottom chain type required for creating a blockchain from the bottom chain type set;

[0015] A creation unit is configured to create a target blockchain of a target business based on a blockchain bottom chain corresponding to the target bottom chain type;

[0016] A deployment unit is configured to deploy a target application of the target business on the target blockchain, and generate a smart contract of the target application;

[0017] An analysis unit is configured to perform data analysis on on-chain data of the target application in the target blockchain through the smart contract of the target application, and manage the target application based on the analysis result.

[0018] In an embodiment, the creation unit comprises:

[0019] An information determination subunit is configured to determine attribute information of a target blockchain to be created;

[0020] An initial creation subunit is configured to create an initial blockchain of a target business based on the blockchain bottom chain and the attribute information;

[0021] An institution adding subunit is configured to add a member institution to the initial blockchain to obtain an added target blockchain, wherein the member institution has a data processing authority for the target blockchain.

[0022] In an embodiment, the creation unit comprises:

[0023] An account determination subunit is configured to determine a target account for creating a target blockchain;

[0024] A permission verification subunit is configured to perform permission verification on the target account to determine a blockchain creation permission of the target account;

[0025] A target creation subunit is configured to create a target blockchain of a target business based on the blockchain bottom chain through the target account when it is detected that the permission verification is passed.

[0026] In an embodiment, the permission checking subunit is configured to:

[0027] The target account is subjected to a home verification to verify home institution information of the target account, to obtain a first verification result; the target account is subjected to a node verification to verify node information of the target account, to obtain a second verification result; and based on the first verification result and the second verification result, a blockchain creation permission of the target account is determined.

[0028] In an embodiment, the deployment unit comprises:

[0029] An application acquisition subunit is configured to acquire a to-be-deployed application of the target business, wherein the to-be-deployed application has corresponding application attribute information.

[0030] An institution determination subunit is configured to determine a member institution of the to-be-deployed application, wherein the member institution has a data processing permission for the deployed application.

[0031] An application deployment subunit is configured to deploy the to-be-deployed application to the target blockchain based on the application attribute information and the member institution, to deploy a target application of the target business on the target blockchain.

[0032] In an embodiment, the deployment unit comprises:

[0033] A program acquisition subunit is configured to acquire program information of a smart contract.

[0034] A program compilation subunit is configured to compile the program information, to obtain a compiled smart contract.

[0035] A relationship establishment subunit is configured to establish a connection relationship between the compiled smart contract and the target application, to obtain a smart contract of the target application.

[0036] In an embodiment, after the smart contract of the target application is generated, the blockchain application management apparatus further comprises:

[0037] An information acquisition unit is configured to acquire attribute information of at least one smart contract.

[0038] An information analysis unit is configured to analyze the attribute information, to obtain home information and state information of the smart contract, wherein the home information represents an application to which the smart contract belongs, and the state information represents a contract state of the smart contract.

[0039] A contract management unit is configured to manage the smart contract based on the home information and the state information.

[0040] In an embodiment, the analysis unit comprises:

[0041] a contract determination subunit configured to determine a target smart contract required for data analysis on the target application;

[0042] a data acquisition subunit configured to acquire on-chain data of the target application on the target blockchain by calling an interface of the target smart contract;

[0043] a data analysis subunit configured to perform data analysis on the on-chain data to manage the target application based on an analysis result.

[0044] In an embodiment, the data analysis subunit is configured to:

[0045] perform structural analysis on the on-chain data to obtain structured data of the on-chain data, generate a data processing interface for the structured data, and perform data analysis on the structured data based on a calling request for the data processing interface.

[0046] In an embodiment, after the on-chain data of the target application on the target blockchain is acquired, the analysis unit further comprises:

[0047] a standardization subunit configured to perform standardization processing on the on-chain data based on a storage mode of the on-chain data on the target blockchain to obtain standardized data of the on-chain data;

[0048] a data storage subunit configured to store the standardized data to an off-chain database of the target blockchain.

[0049] In an embodiment, the data storage subunit is configured to:

[0050] determine a data export model of the on-chain data, extract target data information corresponding to the data export model from the standardized data, combine the target data information based on the data export model to obtain combined information, and store the combined information to the off-chain database of the target blockchain.

[0051] Correspondingly, an embodiment of the present application further provides a storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement steps of the management method of the blockchain application shown in the embodiment of the present application.

[0052] Correspondingly, an embodiment of the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements steps of the management method of the blockchain application shown in the embodiment of the present application when the computer program is executed.

[0053] The embodiment of the application can obtain a bottom chain type set of a blockchain, wherein the bottom chain type set includes at least one bottom chain type of a bottom chain of a blockchain; determine a target bottom chain type required for creating a blockchain from the bottom chain type set; create a target blockchain of a target service based on a blockchain bottom chain corresponding to the target bottom chain type; deploy a target application of the target service on the target blockchain, and generate a smart contract of the target application; and perform data analysis on on-chain data of the target application on the target blockchain through the smart contract of the target application, to manage the target application based on the analysis result.

[0054] The scheme can provide a bottom chain type set including at least one bottom chain type, and create a blockchain belonging to different bottom chains based on a blockchain bottom chain of each bottom chain, and then deploy an application on the created blockchain, and perform data analysis and application management on the deployed application through a smart contract. That is, the application can not only support the creation of a blockchain belonging to different bottom chains, but also support the deployment of an application on different blockchains and the data analysis and management of the deployed application. Therefore, the application can manage multiple chains and multiple applications, and compared with a management mode of supporting only the management of an application on a single bottom chain, the application can effectively improve the management efficiency of a blockchain application and avoid the inconvenience and inefficiency caused by supporting only the management of an application on a single bottom chain. BRIEF DESCRIPTION OF DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.

[0056] Figure 1 is a scene diagram of a blockchain application management method provided by the embodiment of the application;

[0057] Figure 2 is a flow diagram of a blockchain application management method provided by the embodiment of the application;

[0058] Figure 3 is a blockchain management diagram of a blockchain application management method provided by the embodiment of the application;

[0059] Figure 4 is a blockchain creation flow diagram of a blockchain application management method provided by the embodiment of the application;

[0060] Figure 5Figure 1 is an account configuration flowchart of a blockchain application management method provided by an embodiment of the present application;

[0061] Figure 6 Figure 2 is an application addition flowchart of a blockchain application management method provided by an embodiment of the present application;

[0062] Figure 7 Figure 3 is a contract addition schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0063] Figure 8 Figure 4 is a contract management schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0064] Figure 9 Figure 5 is a data management schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0065] Figure 10 Figure 6 is a platform architecture schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0066] Figure 11 Figure 7 is another flowchart of a blockchain application management method provided by an embodiment of the present application;

[0067] Figure 12 Figure 8 is a data overview schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0068] Figure 13 Figure 9 is a developer management schematic diagram of a blockchain application management method provided by an embodiment of the present application;

[0069] Figure 14 Figure 10 is a structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0070] Figure 15 Figure 11 is another structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0071] Figure 16 Figure 12 is another structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0072] Figure 17 Figure 13 is another structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0073] Figure 18 Figure 14 is another structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0074] Figure 19 Figure 15 is another structural schematic diagram of a blockchain application management device provided by an embodiment of the present application;

[0075] Figure 20 is another structural schematic diagram of the blockchain application management apparatus provided by an embodiment of the present application;

[0076] Figure 21 is another structural schematic diagram of the blockchain application management apparatus provided by an embodiment of the present application;

[0077] Figure 22 is a structural schematic diagram of a computer device provided by an embodiment of the present application;

[0078] Figure 23 is a structural schematic diagram of a blockchain system provided by an embodiment of the present application;

[0079] Figure 24 is another structural schematic diagram of the blockchain system provided by an embodiment of the present application. DETAILED DESCRIPTION

[0080] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0081] The embodiments of the present application provide a blockchain application management method and apparatus, a computer device and a storage medium. Specifically, the embodiments of the present application provide a blockchain application management apparatus suitable for a computer device. The computer device can be a terminal or a server, and the terminal can be a mobile phone, a tablet computer, a notebook computer, etc. The server can be a single server or a server cluster composed of multiple servers, for example, a blockchain.

[0082] The embodiments of the present application will take the blockchain application management apparatus as an example to introduce the blockchain application management method.

[0083] Referring to Figure 1 The embodiments of the present application provide a blockchain application management system including a server 10 and a terminal 20, etc. The server 10 and the terminal 20 are connected through a network, for example, a wired or wireless network, etc. The blockchain application management apparatus is integrated in the server.

[0084] The server 10 can obtain a set of base chain types of a blockchain, wherein the set of base chain types includes base chain types of at least one base chain of the blockchain; and determine a target base chain type required for creating the blockchain from the set of base chain types. For example, the server 10 can determine the target base chain type through the terminal 20. Specifically, a user can determine the target base chain type through interaction with the terminal 20, and the terminal 20 can send the target base chain type information to the server 10, so that the server 10 can determine the target base chain type selected by the user from the set of base chain types.

[0085] The server 10 can create a target blockchain of a target service based on a base chain of the blockchain corresponding to the target base chain type. In addition, the server 10 can deploy a target application of the target service on the target blockchain, and generate a smart contract of the target application; and perform data analysis on on-chain data of the target application in the target blockchain through the smart contract of the target application, to manage the target application based on the analysis result.

[0086] The following will be described in detail. It should be noted that the order of the following embodiments is not limited as the preferred order of the embodiments.

[0087] The method for managing a blockchain application provided in the embodiments of the present application can be executed by a terminal or a server, or by a terminal and a server together. The embodiments of the present application take the case that the method for managing a blockchain application is executed by a server as an example to be described, and the method for managing a blockchain application executed by a terminal is similar to the method for managing a blockchain application executed by a server, and thus will not be described herein. Figure 2 The specific process of the method for managing a blockchain application can be as follows.

[0088] 101. Obtain a set of base chain types of a blockchain, wherein the set of base chain types includes base chain types of at least one base chain of the blockchain.

[0089] The blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. The blockchain is essentially a decentralized database, and at the same time, as a bottom-layer technology of virtual resources, it is a series of data blocks associated by using cryptography. The data blocks are linked through a random hash (also known as a hash algorithm), and a later block contains a hash value of an earlier block. The blockchain technology has a wide range of applications in scenarios such as digital assets, smart contracts, logistics tracking, and product protection.

[0090] The blockchain bottom chain is a blockchain basic capability service. As an example, the blockchain bottom chain can include BCOS, Fabric, etc. The BCOS (Be Credible, Open & Secure) is an open source platform for enterprise-level application services, which has been fully verified in multiple enterprise-level application scenarios. The Fabric is a permissioned blockchain framework. It provides a modular framework for nodes, smart contract execution, and configurable consensus and membership services in the architecture.

[0091] The bottom chain type is a type of the blockchain bottom chain. For example, the bottom chain type can include a BCOS type and a Fabric type, etc.

[0092] In an embodiment, the server can determine a blockchain bottom chain capable of supporting the creation of a chain, and then determine a bottom chain type set of the blockchain, where the bottom chain type set includes at least one bottom chain type of the blockchain bottom chain. The server can create a blockchain based on the blockchain bottom chain corresponding to each bottom chain type.

[0093] In another embodiment, the terminal can design a blockchain hub management and control platform corresponding to the blockchain application management method described in the present application. After the server obtains the bottom chain type set of the blockchain, the server can send the bottom chain type set information to the terminal, so that the terminal can display the corresponding bottom chain type in the blockchain hub management and control platform. As an example, Figure 3 The blockchain hub management and control platform designed by the terminal is shown, where the blockchain hub management and control platform provides a blockchain management function, and supports displaying the bottom chain type set of the blockchain in a related page. For example, the terminal can display a bottom chain type list in response to a selection operation on the bottom chain type control shown in 1001, where the bottom chain type list includes each bottom chain type in the bottom chain type set.

[0094] 102. Determine a target bottom chain type required for creating a blockchain from the bottom chain type set.

[0095] The server can determine the target bottom chain type required for creating a blockchain from the bottom chain type set in multiple ways. For example, the server can determine the target bottom chain type through the terminal. For example, the user can select the target bottom chain type from the bottom chain type set through the blockchain hub management and control platform of the terminal. Further, the terminal can send the target bottom chain type information to the server, so that the server can determine the target bottom chain type required for creating a blockchain from the bottom chain type set.

[0096] As an example, refer to Figure 3The terminal can obtain the target bottom chain type determined by the user from the set of bottom chain types through the control 1001, and further, the terminal can send the target bottom chain type information to the server, so that the server can determine the target bottom chain type required for creating a blockchain from the set of bottom chain types.

[0097] In actual application, after determining the target bottom chain type, the target bottom chain required for creating a blockchain can be determined. Since different blockchain bottom chains can be included under the same bottom chain type, the target bottom chain can be determined by determining the bottom chain type and the bottom chain version. As an example, referring to Figure 3 The terminal can obtain the bottom chain type determined by the user from the set of bottom chain types through the control 1001, and the terminal can obtain the bottom chain version under the bottom chain type determined by the user through the control 1002. The terminal can send the bottom chain type information and the bottom chain version information to the server, so that the server can determine the target bottom chain required for creating a blockchain from the set of bottom chain types based on the bottom chain type information and the bottom chain version information.

[0098] 103. Based on the blockchain bottom chain corresponding to the target bottom chain type, a target blockchain of the target service is created.

[0099] Among them, the related application of the service can be deployed on the blockchain, so that the service can provide services by using the blockchain. In this application, the related application of the target service can be deployed on the target blockchain. For example, the target service can be a data sharing service, and the target bottom chain type can be a BCOS type. Therefore, based on the blockchain bottom chain BCOS corresponding to the BCOS type, the target blockchain can be created, and the data sharing application of the data sharing service can be deployed on the target blockchain, so that the data sharing service can provide data sharing services by using the target blockchain.

[0100] It is worth noting that in this application, for different target bottom chain types determined in step 102, the server can correspondingly create different target blockchains based on the blockchain bottom chains corresponding to different target bottom chain types. In this application, the server can support the creation of blockchains of different types of bottom chains.

[0101] Correspondingly, the blockchain hub management and control platform on the terminal can provide the following functions for the user as a specific application of this application: generating the blockchains of the different types of bottom chains on the same blockchain hub management and control platform.

[0102] In an embodiment, the application can be applied to a consortium chain, where the consortium chain is a blockchain for inter-institution, the consortium chain is only for members of a certain specific group and limited third parties, a plurality of pre-selected nodes are designated as accountants inside, and the generation of each block is determined by all pre-selected nodes. Therefore, the server can create a blockchain suitable for inter-institution based on the blockchain base chain corresponding to the target base chain type. Specifically, the step of "creating a target blockchain of a target business based on a blockchain base chain corresponding to a target base chain type" can include:

[0103] determining attribute information of the target blockchain to be created;

[0104] creating an initial blockchain of the target business based on the blockchain base chain and the attribute information;

[0105] adding member institutions to the initial blockchain to obtain an added target blockchain, wherein the member institutions have data processing authority for the target blockchain.

[0106] Wherein, the attribute information of the target blockchain is information describing the attributes of the target blockchain, for example, the attribute information can include the name of the blockchain, the encryption algorithm supported by the blockchain, the institution to which the blockchain belongs, the host node of the blockchain, the number of nodes of the blockchain, etc.

[0107] Wherein, the initial blockchain is a blockchain created based on the blockchain base chain and the attribute information. Specifically, when applied to the scenario of a consortium chain, the finally generated target blockchain is composed of different blockchain nodes, each blockchain node belongs to a different member institution, therefore, in the scenario of a consortium chain, the member institutions also need to be added to the initial blockchain to create a target blockchain applied to the consortium chain.

[0108] Wherein, the member institution is a member of an institution participating in the consortium chain, each member institution can contribute a blockchain node to the finally generated blockchain, and the member institution has data processing authority for the finally generated blockchain.

[0109] Wherein, the data processing authority is the processing authority of the on-chain data of the target blockchain, for example, the data processing authority can include data writing authority, data reading authority, data deletion authority, data modification authority, etc.

[0110] In an embodiment, reference is made to Figure 4, the server can create a target blockchain of the target business based on the blockchain base chain corresponding to the target base chain type, to obtain a business subchain of the target business. Specifically, the server can determine the type of the business subchain to be created by determining the base chain type, and determine the base chain version under the type of the business subchain by determining the base chain version, so that the blockchain base chain required for creating the business subchain can be determined by the base chain type and the base chain version. In addition, the server can also determine the attribute information of the business subchain to be created by determining the subchain name, chain encryption type, belonging organization, host node, and initial node quantity of the business subchain.

[0111] Further, the server can create an initial blockchain based on the blockchain base chain and the attribute information. For example, the server can adjust the attributes of the blockchain base chain based on the attribute information of the business subchain on the basis of the blockchain base chain, and take the adjusted blockchain base chain as the initial blockchain.

[0112] In the application scenario of the alliance chain, referring to Figure 4 , the server can obtain an added target blockchain by adding a member organization to the initial blockchain. Specifically, if it is determined that other organizations need to be invited, the server can send an invitation to join the business subchain to the organization to be invited through the identity document (Identity document, ID) of the organization. It is worth noting that when creating a chain, the organization that needs to join the business subchain first needs to agree, and then the operation and maintenance administrator creates it.

[0113] In addition, referring to Figure 4 , if no member organization needs to be added to the initial blockchain, the initial blockchain can be taken as the target blockchain to obtain the target blockchain of the target business.

[0114] In actual applications, the server can assign a preset account the permission to create a target blockchain. For example, in the application scenario of the alliance chain, the account creating the target blockchain needs to be verified to determine whether the account meets the criteria of the alliance chain. Specifically, the step of "creating a target blockchain of a target business based on a blockchain base chain corresponding to a target base chain type" can include:

[0115] determining a target account for creating a target blockchain;

[0116] verifying the permission of the target account to determine the blockchain creation permission of the target account;

[0117] When it is detected that the permission verification is passed, the target blockchain of the target business is created by the target account based on the blockchain base chain.

[0118] The server can determine the target account for creating the target blockchain in various ways. For example, in an embodiment, the server can determine the target account for creating the target blockchain based on the application information provided by the user through the terminal. Figure 5 The user can apply for a developer account through the blockchain hub management platform provided by the terminal. The server can obtain the application information from the terminal and perform an audit through the operation and maintenance platform. If the audit is passed, the server can return the audit pass information to the terminal, so that the user can receive the audit pass information through the terminal and log in to the account on the terminal. When the user logs in to the developer account on the terminal, the terminal can send the login information to the server, and the server can determine the account as the target account for creating the target blockchain.

[0119] Further, the server also needs to perform a permission check on the target account to determine whether the target account has the permission to create a blockchain. When it is detected that the permission check of the target account is passed, the target account is allowed to create a target business based on a target blockchain of a blockchain bottom chain. For example, when the server detects that the permission check of the target account is passed, the server can send the check pass information to the terminal, so that the user corresponding to the target account can perform related operations of creating the target blockchain through the blockchain hub management platform of the terminal.

[0120] Specifically, the step of "performing a permission check on the target account to determine the blockchain creation permission of the target account" can include:

[0121] performing an affiliation check on the target account to check the affiliation information of the target account and obtain a first check result;

[0122] performing a node check on the target account to check the node information of the target account and obtain a second check result;

[0123] determining the blockchain creation permission of the target account based on the first check result and the second check result.

[0124] The affiliation check is used to check the organization to which the target account belongs. For example, in the application scenario of an alliance chain, the affiliation check can be performed on the target account to determine whether the organization to which the target account belongs is a member organization of the alliance chain.

[0125] In an embodiment, the server can determine the target account for creating the target blockchain based on the application information provided by the user through the terminal. Figure 5 When the developer account of the user is audited, the user can add an organization through the developer account to join the alliance chain. Specifically, it can include the steps of adding an organization name, adding an organization identifier, and creating a member organization. When the developer account successfully creates an organization, if the server performs an affiliation check on the developer account, it can be determined that the affiliation check of the developer account is passed.

[0126] The node check is used to check the node information of the target account, for example, the node information can include IP information, a node belonging to an organization, a data transmission account and a port, etc.

[0127] In an embodiment, the reference Figure 5 When the user's developer account is approved, the user can add host node information through the developer account, specifically, can include adding a host IP address (Internet Protocol Address refers to an Internet Protocol address, also known as an Internet Protocol address), selecting an organization, filling in an SSH (Secure Shell) account and an SSH port, etc. When the developer account successfully adds a host, if the server checks the node of the developer account, it can be determined that the node check of the developer account is passed.

[0128] It is worth noting that in actual application, it is checked whether the performance requirement is met before adding the host, otherwise it may fail to add.

[0129] Based on the first check result and the second check result, there can be multiple ways to determine the blockchain creation permission, for example, the first check result and the second check result can be set to pass when the first check result and the second check result are both passed, and the target account is determined to have the creation permission of the blockchain; for example, the first check result or the second check result can be set to pass when the first check result or the second check result is passed, and the target account is determined to have the creation permission of the blockchain; for example, different weights can be set for the first check result and the second check result, so that the target account can be determined to have the creation permission of the blockchain by weighted calculation; and the like.

[0130] 104. Deploy a target application of a target business on the target blockchain, and generate a smart contract of the target application.

[0131] The smart contract is a computer protocol designed to disseminate, verify or execute contracts in an information-based manner. Smart contracts allow trusted transactions without third parties, which are traceable and irreversible.

[0132] On the created target blockchain, corresponding business applications can be developed, and the data chaining mechanism and processing interface can be automatically processed through the smart contract. Therefore, the server can deploy a target application of a target business on the target blockchain, and generate a smart contract of the target application. Specifically, the step of "deploying a target application of a target business on the target blockchain" can include:

[0133] Obtaining a to-be-deployed application of a target business, wherein the to-be-deployed application has corresponding application attribute information;

[0134] determine a member organization of the to-be-deployed application, wherein the member organization has a data processing right for the deployed application;

[0135] deploy the to-be-deployed application to the target blockchain based on the application attribute information and the member organization, to deploy the target application of the target business on the target blockchain.

[0136] The application attribute information is information describing the attributes of the target application, for example, the application attribute information can include an application name, an application version number, etc.

[0137] In an embodiment, the server can obtain the to-be-deployed application of the target business, wherein the to-be-deployed application has corresponding application attribute information, which can specifically include an application name, an application version number, etc.

[0138] In another embodiment, referring to Figure 6 , the user can add the to-be-deployed application through the blockchain hub management platform of the terminal, and determine the target blockchain for deploying the to-be-deployed application, the application name, the application version number, etc. of the to-be-deployed application. Accordingly, the server can obtain the to-be-deployed application of the target business through the terminal, and determine the application attribute information of the to-be-deployed application.

[0139] Further, the server can determine a member organization of the to-be-deployed application, wherein the member organization has a data processing right for the deployed application. It is worth noting that different member organizations can be provided with different levels of data processing rights for the deployed application.

[0140] After determining the application attribute and the member organization of the to-be-deployed application, the server can deploy the to-be-deployed application to the target blockchain based on the application attribute information and the member organization, to deploy the target application of the target business on the target blockchain.

[0141] In addition, the server can also generate a smart contract of the target application. Specifically, the step of "generating a smart contract of the target application" can include:

[0142] obtaining program information of the smart contract;

[0143] compiling the program information to obtain a compiled smart contract;

[0144] establishing a connection relationship between the compiled smart contract and the target application to obtain the smart contract of the target application.

[0145] The smart contract is a computerized protocol that can execute the terms of a certain contract. Specifically, the smart contract can be implemented by code deployed on a shared ledger for execution when certain conditions are met, and the code is used to complete automated transactions according to actual business needs, such as querying the logistics status of goods purchased by a buyer, and transferring the electronic currency of the buyer to the address of the merchant after the buyer signs for the goods. Of course, the smart contract is not limited to executing contracts for transactions, but can also execute contracts for processing received information.

[0146] As an example, the program information of the smart contract can be code information that can be used to execute the smart contract when certain conditions are met.

[0147] In an embodiment, the server can obtain the program information of the smart contract through the terminal. As an example, referring to Figure 7 , the user can input the program information of the smart contract through the code editing area on the blockchain hub management platform of the terminal, so that the server can obtain the program information through the terminal. Figure 7

[0148] The compilation is a process of generating a target program from a source program written in a source language using a compiler. In an embodiment, the program information of the smart contract obtained by the server can be code information written in the solidity language. The server can compile the program information to obtain the compiled smart contract. In addition, the server can also send the related information of the compiled smart contract to the terminal, so that the terminal can display the related information of the compiled contract through the blockchain hub management platform, for example, referring to Figure 7 The application program binary interface (ABI) of the contract after compilation, bin information, version number of the contract, contract name, etc. can be displayed in the contract information display area.

[0149] The connection relationship between the compiled smart contract and the target application is used to set the compiled smart contract as the smart contract used by the target application.

[0150] There can be various ways to establish the connection relationship between the compiled smart contract and the target application, for example, referring to Figure 6 After the server obtains the contract name, contract path, and program information of the smart contract through the terminal, the server can compile the smart contract to obtain the compiled smart contract, and the server can perform contract deployment on the compiled smart contract to deploy the smart contract on the target blockchain and set it as the smart contract used by the target application, thereby establishing the connection relationship between the compiled smart contract and the target application.

[0151] ​In actual applications, in addition to generating the smart contract of the target application and performing contract deployment on the smart contract, similarly, the smart contract of other applications on the same blockchain and the smart contract of other applications on different blockchains can also be generated, and the smart contracts can be further managed. Specifically, in the step of "generating the smart contract of the target application", the step can further include:

[0152] Specifically, in the step of "generating the smart contract of the target application", the step can further include:

[0153] obtaining attribute information of at least one smart contract;

[0154] analyzing the attribute information to obtain ownership information and state information of the smart contract, wherein the ownership information represents an application to which the smart contract belongs, and the state information represents a contract state of the smart contract;

[0155] managing the smart contract based on the ownership information and the state information.

[0156] The attribute information of the smart contract is information describing the attributes of the smart contract, and the attribute information of the smart contract can include a contract name, a contract address, an application to which the smart contract belongs, a blockchain to which the smart contract belongs, a contract language, a contract state, a creation time, and the like.

[0157] The server can obtain attribute information of at least one smart contract, wherein the smart contracts can be smart contracts belonging to the same application, or smart contracts belonging to different applications, for example, smart contracts belonging to different applications on the same blockchain, or smart contracts belonging to different applications on different blockchains.

[0158] The ownership information of the smart contract represents an application to which the smart contract belongs, and the state information of the smart contract represents a contract state of the smart contract, for example, the contract state can include deployed, deploying, not deployed, disabled, and the like.

[0159] The server can manage the smart contracts based on the ownership information and the state information of the smart contracts. In an embodiment, after the server generates the smart contract of the target application and performs contract deployment on the smart contract, the server can further obtain attribute information of the smart contract, which can specifically include a contract address, an application to which the contract belongs, a business subchain to which the contract belongs, a contract state, a contract creation time, and the like, and further manage the smart contract.

[0160] The server can manage the smart contracts in various ways, for example, the smart contracts can be classified according to the ownership information and the state information; for example, the server can further manage the smart contracts according to the contract state. Figure 8The server can send the attribute information of each smart contract to the terminal to trigger the terminal to display a smart contract information list, wherein the smart contract information list includes at least one smart contract information item, and each smart contract information item corresponds to the attribute information of one smart contract.

[0161] 105. Analyzing, by the smart contract of the target application, the on-chain data of the target application on the target blockchain to manage the target application based on the analysis result.

[0162] The on-chain data is the data stored by the target application on the target blockchain. Due to the specific chain storage structure of the blockchain, the on-chain data can only be obtained and called through the interface of the smart contract. Therefore, in the present application, the on-chain data of the target application on the target blockchain can be analyzed by the smart contract of the target application to manage the target application based on the analysis result. Specifically, the step of "analyzing, by the smart contract of the target application, the on-chain data of the target application on the target blockchain to manage the target application based on the analysis result" can include:

[0163] determining a target smart contract required for data analysis of the target application;

[0164] obtaining the on-chain data of the target application on the target blockchain by calling the interface of the target smart contract;

[0165] analyzing the on-chain data to manage the target application based on the analysis result.

[0166] Due to the technical characteristics of the scarcity of computing power of the blockchain node and the key-value storage data structure, complex data query, data analysis and data calculation are not suitable for the blockchain. The above work is more suitable for off-chain. Therefore, in the present embodiment, the server can determine a target smart contract for obtaining the on-chain data of the target application on the target blockchain.

[0167] The server can obtain the on-chain data of the target application on the target blockchain by calling the interface provided by the target smart contract. Specifically, in order to improve efficiency, with reference to Figure 9 The server can obtain the logical records of different blocks through multi-threading by task scheduling to efficiently obtain the on-chain data of the target application on the target blockchain.

[0168] Further, the server can analyze the obtained on-chain data to manage the target application based on the analysis result. Specifically, the step of "analyzing the on-chain data" can include:

[0169] structurally analyzing the on-chain data to obtain structured data of the on-chain data;

[0170] generating a data processing interface for the structured data;

[0171] performing data analysis on the structured data based on a calling request for the data processing interface.

[0172] The structured analysis is used to generate the structured data. Specifically, the structured data, also referred to as row data, is data logically represented and implemented by a two-dimensional table structure, strictly following data format and length specifications, and mainly stored and managed by a relational database.

[0173] The interface, also referred to as an application programming interface (API), is a set of pre-defined interfaces (such as functions) or a convention for connecting different components of a software system. The interface can be used to provide a set of routines that an application program can access based on a certain software or hardware without accessing the source code or understanding the details of the internal working mechanism.

[0174] In this embodiment, the data processing interface for the structured data is an interface that provides different data processing functions for the structured data. For example, referring to Figure 9 , the data processing interface can include a CRUD interface for the structured data, where CRUD refers to the initials of the words Create, Retrieve, Update, and Delete in computing processing. CRUD is mainly used to describe the basic operation functions of a database or a persistent layer in a software system.

[0175] There can be various ways to generate the data processing interface for the structured data. For example, referring to Figure 9 , after structurally analyzing the on-chain data to obtain the structured data of the on-chain data, the server can also store the parsed structured data in a structured manner through a relational database and provide a data processing interface in the relational database, such as a CRUD interface, to generate a mutual data processing interface for the structured data.

[0176] Further, the server can obtain a calling request for the data processing interface from an upper-layer user, perform corresponding data processing on the structured data, and analyze the structured data. For example, the structured data can be subjected to operations such as addition, deletion, modification, and query, to achieve visual display of the data, data analysis, and the like.

[0177] In addition, after obtaining the on-chain data, the server can also standardize the chain data according to the chain storage mode, and through the persistent framework, the program data can be stored in the database automatically. Specifically, after the step of "obtaining the on-chain data of the target application in the target blockchain", the following steps can also be included:

[0178] standardizing the on-chain data according to the storage mode of the on-chain data in the target blockchain to obtain standardized data of the on-chain data;

[0179] storing the standardized data in an off-chain database of the target blockchain.

[0180] The storage mode of the on-chain data can be various, for example, it can include a chain storage mode, specifically, the chain storage stores data elements in a storage unit with an arbitrary address in the computer memory, and the logical relationship between the data elements is realized in the form of a pointer connection.

[0181] The standardization of data is to scale the data to fall into a small specific interval. It is often used in some comparison and evaluation index processing, removes the unit limit of the data, and converts it into a dimensionless pure value, so that different units or orders of magnitude of indicators can be compared and weighted. The most typical one is data normalization, which maps the data uniformly to the [0, 1] interval. Common data normalization methods include: deviation standardization (min-max normalization), log function conversion, atan function conversion, standard deviation standardization (z-score normalization), fuzzy quantization method, etc.

[0182] In this embodiment, the server can standardize the on-chain data according to the chain storage mode of the on-chain data in the target blockchain to obtain standardized data of the on-chain data, so that subsequent data analysis of the on-chain data can be based on the standardized data.

[0183] After obtaining the standardized data of the on-chain data, the standardized data can also be stored in an off-chain database of the target blockchain, for example, the standardized data can be stored in the off-chain database of the target blockchain on demand according to a data export model of the on-chain data. Specifically, the step of "storing the standardized data in an off-chain database of the target blockchain" can include:

[0184] determining a data export model of the on-chain data;

[0185] extracting target data information corresponding to the data export model from the standardized data;

[0186] Based on the data export model, the target data information is combined to obtain combined information.

[0187] The combined information is stored in an off-chain database of the target blockchain.

[0188] The data export model is a specification followed when exporting on-chain data from the target database. For example, the data export model can include a blockchain detailed data export model, a block transaction data export model, a contract information export model, etc.

[0189] Specifically, the blockchain detailed data export model can be used to export detailed data of each block, which can specifically include block hash, block height, block time, and transaction volume on the block. The block transaction data export model can be used to export basic information of each transaction in each block, which can specifically include block hash, block height, block time, smart contract name, method name in the contract, transaction hash, transaction initiator address, and transaction receiver address. The block contract information export model can be used to export related information of the contract, which can specifically include the Application Binary Interface (ABI) after contract compilation, bin information, contract version number, and contract name.

[0190] After determining the data export model of the on-chain data, the target data information corresponding to the data export model can be extracted from the standardized data. For example, in an embodiment, the data export model of the on-chain data is the blockchain detailed data export model, and the server can extract target data information including block hash, block height, block time, and transaction volume on the block from the standardized data of the on-chain data. For another example, in an embodiment, the data export model of the on-chain data is the block transaction data export model, and the server can extract target data information including block hash, block height, block time, smart contract name, method name in the contract, transaction hash, transaction initiator address, and transaction receiver address from the standardized data of the on-chain data.

[0191] Further, the extracted target data information can be combined based on the data export model of the on-chain data to obtain combined information.

[0192] As an example, in an embodiment, the data export model of the on-chain data is the blockchain detailed data export model, and the model specification of the blockchain detailed data export model can be as follows:

[0193]

[0194] The server can extract target data information corresponding to the blockchain detailed data export model from the standardized data, and the extracted target data information can specifically include a primary key ID, a block hash, a block height, a block time, a current block transaction volume, a record insertion / update time, and a block time. Further, the server can combine the extracted target data information based on the model specification of the blockchain detailed data export model to obtain combined information.

[0195] As an example, in another embodiment, the data export model of the on-chain data is a block transaction data export model, wherein the model specification of the block transaction data export model can be as follows:

[0196]

[0197] The server can extract target data information corresponding to the block transaction data export model from the standardized data, and the extracted target data information can specifically include a primary key ID, a block hash, a block height, a block time, a contract name of the transaction, a function name called by the transaction, a transaction hash, a transaction initiator address, a transaction recipient address, and a record insertion / update time. Further, the server can combine the extracted target data information based on the model specification of the block transaction data export model to obtain combined information.

[0198] As an example, in another embodiment, the data export model of the on-chain data is a contract information export model, wherein the model specification of the contract information export model can be as follows:

[0199]

[0200] The server can extract target data information corresponding to the contract information export model from the standardized data, and the extracted target data information can specifically include a primary key ID, an ABI hash value, a contract ABI, contract Bin information, a contract name, a version number, and a record insertion / update time. Further, the server can combine the extracted target data information based on the model specification of the contract information export model to obtain combined information.

[0201] After obtaining the combined information, the combined data can be stored in an off-chain database of the target blockchain, wherein the off-chain database is a database that can provide storage other than the target blockchain, for example, the off-chain database can include a relational database and a non-relational database, etc.

[0202] In actual application, based on the data export model, form data corresponding to each data export model can be exported from the off-chain database, so that data analysis and management of the blockchain application can be performed based on the exported data.

[0203] It can be known from the above that the embodiment can obtain a bottom chain type set of a blockchain, wherein the bottom chain type set includes a bottom chain type of at least one blockchain bottom chain; a target bottom chain type required for creating a blockchain is determined from the bottom chain type set; a target blockchain of a target service is created based on a blockchain bottom chain corresponding to the target bottom chain type; a target application of the target service is deployed on the target blockchain, and a smart contract of the target application is generated; and data analysis is performed on on-chain data of the target application on the target blockchain through the smart contract of the target application, so as to manage the target application based on an analysis result.

[0204] The scheme can provide a bottom chain type set including at least one bottom chain type, and create a blockchain belonging to different bottom chains based on a blockchain bottom chain of each bottom chain type, and then deploy an application on the created blockchain, and perform data analysis and application management on the deployed application through a smart contract. That is, the application can not only support the creation of a blockchain belonging to different bottom chains, but also support the deployment of an application on different blockchains and the data analysis and management of the deployed application. Therefore, the application can manage multiple chains and multiple applications, and compared with a management mode of supporting only the management of an application on a single bottom chain, the application can effectively improve the management efficiency of a blockchain application and avoid the inconvenience and inefficiency caused by supporting only the management of an application on a single bottom chain.

[0205] Secondly, the scheme supports mainstream alliance chains, such as FISCO BCOS and Hyperledger Fabric, provides multiple choices for users, and can provide standards to access bottom platforms of other manufacturers. The scheme provides development tools such as a contract integrated development environment (IDE), realizes one-stop development kits such as online editing, compiling, debugging and deployment of contracts, and encapsulates complex blockchain technology into simple and easy-to-use APIs, which can be connected to applications developed in any language and improve the convenience of system chain improvement. In addition, the scheme has built-in general blockchain application components, built-in smart contracts that have been verified for a long time, and the business layer does not need to be developed and can be used out of the box.

[0206] In addition, the scheme can deploy a blockchain hub management and control platform for users, support a developer platform, a data operation and analysis platform, and the like as shown in FIG. 2. Figure 10 The hub provides basic components such as private key management, message queue, CA (Certificate Authority) certificate service, and contract security detection service. The operation and management module supports application management, statistical log management, contract management, node management and other services.

[0207] In addition, the scheme also provides a powerful data analysis and management module for the blockchain application, which can parse the transaction and export it to an off-chain storage system, realize the structured processing of data, and access the data analysis and visualization system. It can provide a data supervision platform for regulatory agencies, which can easily search and detect illegal content on the chain.

[0208] According to the method described in the above embodiment, the following will be further illustrated in detail.

[0209] In this embodiment, the management device of the blockchain application is integrated in the server and the terminal as an example. The server can be a single server or a server cluster composed of multiple servers. The terminal can be a mobile phone, a tablet computer, a notebook computer, etc.

[0210] As shown in Figure 11 , a blockchain application management method, the specific process is as follows:

[0211] 201, the server acquires a bottom chain type set of the blockchain, wherein the bottom chain type set includes at least one bottom chain type of the blockchain bottom chain.

[0212] Wherein, the bottom chain type is the type of the blockchain bottom chain, for example, the bottom chain type can include BCOS type and Fabric type, etc.

[0213] In an embodiment, the server can determine the blockchain bottom chain that can support the chain creation, and then determine the bottom chain type set of the blockchain, wherein the bottom chain type set includes at least one bottom chain type of the blockchain bottom chain, and the server can create a blockchain based on the corresponding blockchain bottom chain of each bottom chain type.

[0214] In addition, as a specific application of the present application, the terminal can be configured with a blockchain hub control platform as shown in Figure 12 , wherein the blockchain application management method described in the present application can correspondingly provide data overview, agency management, host management, blockchain management, application management, contract management, private key management, certificate management, notification center, and user management, etc.

[0215] Referring to Figure 12 , the data overview function provided by the blockchain hub control platform is shown in the figure, the user can know the overview of the blockchain and the application through the data overview page, such as the number of blockchains, the number of applications, the number of agencies, the number of hosts, etc. In addition, the data overview page can also be provided with operation instructions as shown in Figure 12

[0216] ​The institution management can be used for a user to add an institution and learn the related information of all institutions. For example, the institution information list can be displayed on the institution management page, and each institution information item in the institution information list corresponds to the attribute information of an institution, such as an institution number, an institution name, an institution creation time, and the like.

[0217] The host management is also referred to as node management, and the node management can provide the functions of a front list, a node list, and modification of a consensus state of a node. A user can add a new node to the front list by adding a new node front. The system will automatically pull the group where the front is located and the node information of each group. In the node list, the user can modify the consensus state of the node.

[0218] The blockchain management can be used for a user to add a blockchain and learn the related information of all created blockchains. For example, the blockchain information list can be displayed on the blockchain management page, and each blockchain information item in the blockchain information list corresponds to the attribute information of a blockchain, such as a blockchain ID, a blockchain name, a blockchain type, a blockchain state, a blockchain creation time, and the like.

[0219] The application management can be used for a user to add an application and learn the related information of all applications. For example, the application information list can be displayed on the application management page, and each application information item in the application information list corresponds to the attribute information of an application, such as an application ID, an application name, an application version, an application belonging to a blockchain, an application state, an application creation time, and the like.

[0220] The contract management can provide the contract development IDE environment, the deployed contract list, the contract query, and the CRUD function of the pre-compiled contract.

[0221] Similarly, the private key management, the certificate management, and the user management can provide the management functions of the private key, the certificate, and the user in the blockchain, respectively. As an example, the private key management can be used to create a private key user and a public key user. Specifically, the private key management can create a private key user, and the private key is hosted in the signature service, and then the signature service is used to sign the contract deployment and the contract call. It is worth noting that the external account can be imported by creating a public key account, which is mainly used to associate the transaction and the user.

[0222] 202. The server sends a set of base chain types to the terminal, and the terminal determines a target base chain type required for creating a blockchain from the set of base chain types.

[0223] In an embodiment, the server can determine the target base chain type through the terminal. For example, a user can select a target base chain type from a set of base chain types through a blockchain hub management platform of the terminal. Further, the terminal can send the target base chain type information to the server, so that the server can determine the target base chain type required for creating a blockchain from the set of base chain types.

[0224] 203. The terminal sends the target base chain type to the server.

[0225] 204. The server creates a target blockchain of a target service based on a blockchain base chain corresponding to the target base chain type.

[0226] In an embodiment, the present application can be applied to a consortium chain. The server can determine attribute information of a target blockchain to be created. Further, based on a blockchain base chain and the attribute information, an initial blockchain of the target service is created, and a member organization is added to the initial blockchain to obtain an added target blockchain. The member organization has data processing authority for the target blockchain. If the member organization does not need to be added to the initial blockchain, the initial blockchain can be used as the target blockchain to obtain the target blockchain of the target service.

[0227] In another embodiment, the server can assign a preset account the right to create a target blockchain. For example, in the application scenario of a consortium chain, the account creating the target blockchain needs to be verified to determine whether the account meets the criteria of the consortium chain. Therefore, the server can determine a target account creating the target blockchain, and perform a right verification on the target account to determine the blockchain creation right of the target account. When it is detected that the right verification is passed, the target blockchain of the target service is created based on a blockchain base chain through the target account.

[0228] In this embodiment, the blockchain hub management platform on the terminal can correspondingly set a developer management page. For reference, Figure 13 The developer management can be used for an operation and maintenance manager to add a developer and obtain relevant information of all developers. For example, a developer information list can be displayed in the developer management page. The developer information list includes at least one developer information item. Each developer information item corresponds to attribute information of a developer, such as a developer name, a belonging enterprise, an email, a telephone, a state, an account creation time, and the like.

[0229] 205. The server deploys a target application of a target service on the target blockchain, and generates a smart contract of the target application.

[0230] In an embodiment, the server can obtain a to-be-deployed application of the target service, where the to-be-deployed application has corresponding application attribute information. Further, the server can determine a member organization of the to-be-deployed application, where the member organization has a data processing right for the deployed application, so that the server can deploy the to-be-deployed application to the target blockchain based on the application attribute information and the member organization, to deploy the target application of the target service on the target blockchain.

[0231] In an embodiment, the server can obtain program information of the smart contract and perform a compilation process on the program information to obtain a compiled smart contract. Further, the server can establish a connection relationship between the compiled smart contract and the target application, to generate a smart contract of the target application.

[0232] 206、The server performs data analysis on the on-chain data of the target application on the target blockchain through the smart contract of the target application, to manage the target application based on an analysis result.

[0233] In an embodiment, the server can determine a target smart contract required for data analysis of the target application, and obtain on-chain data of the target application on the target blockchain by calling an interface of the target smart contract. Further, the server can perform data analysis on the on-chain data, to manage the target application based on an analysis result.

[0234] As can be seen from the above, the embodiments of the present application can provide a bottom chain type set including at least one bottom chain type, and create blockchains belonging to different bottom chains based on blockchains of the bottom chain types, and then deploy applications on the created blockchains, and perform data analysis and application management on the deployed applications through smart contracts. That is, the embodiments of the present application not only support the creation of blockchains belonging to different bottom chains, but also support the deployment of applications on different blockchains and the data analysis and management of the deployed applications. Therefore, the embodiments of the present application can manage multiple chains and multiple applications, and compared with the management mode of supporting only the management of applications on a single bottom chain, the present application can effectively improve the management efficiency of blockchain applications and avoid the inconvenience and inefficiency caused by supporting only the management of applications on a single bottom chain.

[0235] Moreover, the embodiments of the present application can quickly build a blockchain technology platform, have a visual deployment node, quickly build a chain, and can centrally manage multiple chains. Provide convenient operation and maintenance management tools such as contract management, node management, certificate management, private key management, and configuration management. Multiple blockchain applications can be managed on the same management platform to realize centralized management of multiple chains and multiple applications.

[0236] To better implement the above method, accordingly, an embodiment of the present application further provides a blockchain application management device, wherein the blockchain application management device can be integrated in a server or a terminal. The server can be a single server or a server cluster composed of multiple servers; the terminal can be a mobile phone, a tablet computer, a notebook computer or the like.

[0237] For example, as shown in Figure 14 , the blockchain application management device can include an acquisition unit 301, a determination unit 302, a creation unit 303, a deployment unit 304 and an analysis unit 305, as follows:

[0238] The acquisition unit 301 is configured to acquire a bottom chain type set of a blockchain, wherein the bottom chain type set includes at least one bottom chain type of a bottom chain of a blockchain;

[0239] The determination unit 302 is configured to determine a target bottom chain type required for creating a blockchain from the bottom chain type set;

[0240] The creation unit 303 is configured to create a target blockchain of a target business based on a blockchain bottom chain corresponding to the target bottom chain type;

[0241] The deployment unit 304 is configured to deploy a target application of the target business on the target blockchain, and generate a smart contract of the target application;

[0242] The analysis unit 305 is configured to perform data analysis on on-chain data of the target application in the target blockchain through the smart contract of the target application, and manage the target application based on an analysis result.

[0243] In an embodiment, referring to Figure 15 , the creation unit 303 can include:

[0244] The information determination sub-unit 3031 can be configured to determine attribute information of a target blockchain to be created;

[0245] The initial creation sub-unit 3032 can be configured to create an initial blockchain of a target business based on the blockchain bottom chain and the attribute information;

[0246] The institution adding sub-unit 3033 can be configured to add a member institution to the initial blockchain to obtain an added target blockchain, wherein the member institution has a data processing authority for the target blockchain.

[0247] In an embodiment, referring to Figure 16 , the creation unit 303 can include:

[0248] The account determining sub-unit 3034 can be configured to determine a target account for creating a target blockchain.

[0249] The permission checking sub-unit 3035 can be configured to perform permission checking on the target account to determine a blockchain creation permission of the target account.

[0250] The target creating sub-unit 3036 can be configured to create, by the target account, a target blockchain of a target service based on the blockchain base chain when it is detected that the permission checking is passed.

[0251] In an embodiment, the permission checking sub-unit 3035 can be configured to:

[0252] perform affiliation checking on the target account to check affiliation information of the target account to obtain a first checking result, perform node checking on the target account to check node information of the target account to obtain a second checking result, and determine the blockchain creation permission of the target account based on the first checking result and the second checking result.

[0253] In an embodiment, referring to Figure 17 , the deployment unit 304 can include:

[0254] The application obtaining sub-unit 3041 can be configured to obtain a to-be-deployed application of the target service, where the to-be-deployed application has corresponding application attribute information.

[0255] The member institution determining sub-unit 3042 can be configured to determine a member institution of the to-be-deployed application, where the member institution has a data processing permission for the deployed application.

[0256] The application deploying sub-unit 3043 can be configured to deploy, based on the application attribute information and the member institution, the to-be-deployed application to the target blockchain to deploy a target application of the target service on the target blockchain.

[0257] In an embodiment, referring to Figure 18 , the deployment unit 304 can include:

[0258] The program obtaining sub-unit 3044 can be configured to obtain program information of a smart contract.

[0259] The program compiling sub-unit 3045 can be configured to perform compiling processing on the program information to obtain a compiled smart contract.

[0260] The relationship establishing sub-unit 3046 can be configured to establish a connection relationship between the compiled smart contract and the target application to obtain a smart contract of the target application.

[0261] In an embodiment, referring to Figure 19 After the smart contract of the target application is generated, the management apparatus of the blockchain application can further include:

[0262] The information obtaining unit 306 can be configured to obtain attribute information of at least one smart contract.

[0263] The information analyzing unit 307 can be configured to analyze the attribute information to obtain ownership information and state information of the smart contract, wherein the ownership information represents an application to which the smart contract belongs, and the state information represents a contract state of the smart contract.

[0264] The contract management unit 308 can be configured to manage the smart contract based on the ownership information and the state information.

[0265] In an embodiment, referring to Figure 20 The analysis unit 305 can include:

[0266] The contract determining sub-unit 3051 can be configured to determine a target smart contract required for data analysis of the target application.

[0267] The data obtaining sub-unit 3052 can be configured to obtain on-chain data of the target application in the target blockchain by calling an interface of the target smart contract.

[0268] The data analyzing sub-unit 3053 can be configured to perform data analysis on the on-chain data to manage the target application based on an analysis result.

[0269] In an embodiment, the data analyzing sub-unit 3053 can be specifically configured to:

[0270] structurally analyze the on-chain data to obtain structured data of the on-chain data, generate a data processing interface for the structured data, and perform data analysis on the structured data based on a calling request for the data processing interface.

[0271] In an embodiment, referring to Figure 21 After the on-chain data of the target application in the target blockchain is obtained, the analysis unit 305 can further include:

[0272] The standardization sub-unit 3054 can be configured to perform standardization processing on the on-chain data based on a storage mode of the target blockchain to obtain standardized data of the on-chain data.

[0273] The data storage sub-unit 3055 can be configured to store the standardized data to an off-chain database of the target blockchain.

[0274] In an embodiment, the data storage subunit 3055 can be specifically used for:

[0275] determining a data export model of the on-chain data, extracting target data information corresponding to the data export model from the standardized data, combining the target data information based on the data export model to obtain combined information, and storing the combined information to an off-chain database of the target blockchain.

[0276] In implementation, each of the above units can be implemented as an independent entity, or can be combined as the same or several entities. The implementation of each of the above units can be referred to the method embodiments above, and will not be described here.

[0277] As can be seen, in the blockchain application management apparatus, the acquisition unit 301 acquires a bottom chain type set of a blockchain, wherein the bottom chain type set includes at least one bottom chain type of a blockchain bottom chain; the determination unit 302 determines a target bottom chain type required for creating a blockchain from the bottom chain type set; the creation unit 303 creates a target blockchain of a target service based on a blockchain bottom chain corresponding to the target bottom chain type; the deployment unit 304 deploys a target application of the target service on the target blockchain, and generates a smart contract of the target application; and the analysis unit 305 performs data analysis on on-chain data of the target application on the target blockchain through the smart contract of the target application, to manage the target application based on the analysis result.

[0278] The scheme can provide a bottom chain type set including at least one bottom chain type, create a blockchain belonging to different bottom chains based on a blockchain bottom chain of each bottom chain type, and then deploy an application on the created blockchain, and perform data analysis and application management on the deployed application through a smart contract. That is, the present application can not only support the creation of blockchains belonging to different bottom chains, but also support the deployment of applications on different blockchains and the data analysis and management of the deployed applications. Therefore, the present application can manage multiple chains and multiple applications. Compared with the management mode of supporting only a single bottom chain of a blockchain application, the present application can effectively improve the management efficiency of the blockchain application and avoid the inconvenience and inefficiency caused by supporting only the management of applications on a single bottom chain.

[0279] In addition, the present application embodiment further provides a computer device, which can be a server or a terminal device, etc. Figure 18 As shown in the figure, the structure of the computer device related to the present application embodiment is shown, specifically:

[0280] The computer device can include a memory 401 having one or more computer readable storage media, an input unit 402, a display unit 403, a processor 404 having one or more processing cores, a power supply 405, and / or the like. Those skilled in the art will understand that the computer device structure shown in FIG. 6 is not meant to limit the computer device, which can include more or fewer components than shown, or combine some components, or have a different arrangement of the components. Among others: Figure 22

[0281] The memory 401 can be used to store software programs and modules, and the processor 404 can execute various functions and data processing by running the software programs and modules stored in the memory 401. The memory 401 can mainly include a program storage area and a data storage area, where the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the computer device (such as audio data, a phone book, etc.). In addition, the memory 401 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 401 can also include a memory controller to provide access to the memory 401 for the processor 404 and the input unit 402.

[0282] The input unit 402 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in one specific embodiment, the input unit 402 can include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or touchpad, can collect user touch operations (such as user operations using fingers, styluses, etc. on or near the touch-sensitive surface) and drive the corresponding connection device according to the pre-set program. Optionally, the touch-sensitive surface can include two parts of touch detection device and touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and sends it to the processor 404, and can also receive commands from the processor 404 and execute them. In addition, the touch-sensitive surface can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface, the input unit 402 can also include other input devices. Specifically, the other input devices can include one or more of a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), trackballs, mice, joysticks, and the like.

[0283] ​The display unit 403 can be configured to display information input by a user or provided to the user, as well as various graphical user interfaces of the computer device, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 403 can include a display panel, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, a touch-sensitive surface can cover the display panel, which, when detecting a touch operation thereon or adjacent thereto, transmits to the processor 404 to determine the type of touch event, and then the processor 404 provides corresponding visual output on the display panel according to the type of touch event. Although in the above embodiment, the touch-sensitive surface and the display panel are implemented as two independent components to realize input and output functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions. Figure 22

[0284] The processor 404 is the control center of the computer device, which connects various parts of the computer device through various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and / or modules stored in the memory 401 and calling data stored in the memory 401, thereby overall detecting the computer device. Optionally, the processor 404 can include one or more processing cores; preferably, the processor 404 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 404.

[0285] The computer device further includes a power supply 405 (such as a battery) for supplying power to various components, and preferably, the power supply can be logically connected to the processor 404 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 405 can also include one or more direct or alternating current power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and any other components.

[0286] Although not shown, the computer device can also include a camera, a Bluetooth module, and the like, which are not described herein in detail. Specifically, in the present embodiment, the processor 404 in the computer device will load the executable file corresponding to the process of one or more application programs into the memory 401 according to the following instructions, and run the application program stored in the memory 401 by the processor 404, thereby realizing various functions, as follows:

[0287] ​obtain a bottom chain type set of a blockchain, wherein the bottom chain type set comprises at least one bottom chain type of a blockchain bottom chain; determine a target bottom chain type required for creating a blockchain from the bottom chain type set; create a target blockchain of a target service based on a blockchain bottom chain corresponding to the target bottom chain type; deploy a target application of the target service on the target blockchain, and generate a smart contract of the target application; and perform data analysis on on-chain data of the target application on the target blockchain through the smart contract of the target application, to manage the target application based on an analysis result.

[0288] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here again.

[0289] As can be seen from the above, the computer device of the embodiment can provide a bottom chain type set comprising at least one bottom chain type, and create a blockchain of a different bottom chain based on a blockchain bottom chain of each bottom chain type, and then deploy an application on the created blockchain, and perform data analysis and application management on the deployed application through a smart contract. That is, the computer device of the embodiment can not only support the creation of a blockchain of a different bottom chain, but also support the deployment of an application on different blockchains and the data analysis and management of the deployed application. Therefore, the computer device of the embodiment can manage multiple chains and multiple applications, and compared with the management mode of supporting only the management of a blockchain application of a single bottom chain, the application can effectively improve the management efficiency of the blockchain application and avoid the inconvenience and inefficiency caused by supporting only the management of an application on a single bottom chain.

[0290] The system involved in the embodiment of the application can be a distributed system formed by a client, a plurality of nodes (any form of computing device in an access network, such as a server or a user terminal) and connected through network communication.

[0291] Taking a distributed system as a blockchain system for example, referring to Figure 23 , Figure 23 is an optional structural schematic diagram of a distributed system 500 provided by the embodiment of the application applied to a blockchain system, formed by a plurality of nodes 600 (any form of computing device in an access network, such as a server or a user terminal) and a client 700, the nodes form a point-to-point (P2P, Peer To Peer) network, and the P2P protocol is an application layer protocol running on a transmission control protocol (TCP, Transmission Control Protocol) protocol. In the distributed system, any machine such as a server or a terminal can join to become a node, and the node comprises a hardware layer, an intermediate layer, an operating system layer and an application layer.

[0292] Referring to Figure 23The functions of the nodes in the blockchain system are shown, and the functions involved include:

[0293] 1) Routing, the basic function of the node, used to support the communication between nodes.

[0294] In addition to the routing function, the node can also have the following functions:

[0295] 2) Application, used to be deployed in the blockchain, to implement specific business according to actual business needs, record the data related to the implementation of the function to form a record data, carry a digital signature in the record data to represent the source of the task data, and send the record data to other nodes in the blockchain system. When the other nodes verify the source and integrity of the record data successfully, the record data is added to the temporary block.

[0296] For example, the business implemented by the application includes:

[0297] 2.1) Wallet, used to provide the function of conducting electronic currency transactions, including initiating transactions (i.e. sending transaction records of the current transaction to other nodes in the blockchain system, and in response to the other nodes verifying successfully, storing the record data of the transaction in the temporary block of the blockchain; of course, the wallet also supports querying the remaining electronic currency in the electronic currency address;

[0298] 2.2) Shared ledger, used to provide the function of storing, querying, and modifying account data, and sending the record data of the operation on the account data to other nodes in the blockchain system, and in response to the other nodes verifying the validity of the account data, storing the record data in the temporary block, and also sending a confirmation to the node that initiated the operation.

[0299] 2.3) Smart contract, a computerized protocol that can execute the terms of a contract, implemented through code deployed on the shared ledger for execution when certain conditions are met, and the code is used to complete automated transactions according to actual business needs, such as querying the logistics status of the goods purchased by the buyer, and transferring the electronic currency of the buyer to the address of the merchant after the buyer signs for the goods; of course, the smart contract is not limited to executing contracts for transactions, but can also execute contracts for processing received information.

[0300] 3) Blockchain, including a series of blocks (Block) connected in chronological order, once a new block is added to the blockchain, it will not be removed, and the block records the record data submitted by the nodes in the blockchain system.

[0301] Referring to Figure 24 , Figure 24is a schematic diagram of a block structure provided by an embodiment of the present application. Each block includes a hash value of a transaction record stored in the block (hash value of the block) and a hash value of a previous block, and the blocks are connected by the hash values to form a block chain. In addition, the block can also include a timestamp and other information when the block is generated. The block chain is essentially a decentralized database, and is a series of data blocks associated using a cryptographic method. Each data block contains relevant information for verifying the validity of the information (anti-fake) and generating the next block.

[0302] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions or by controlling related hardware by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0303] To this end, an embodiment of the present application provides a storage medium having a plurality of instructions stored therein, which can be loaded by a processor to execute the steps in any of the management methods of the blockchain application provided by the embodiments of the present application. For example, the instructions can execute the following steps:

[0304] obtaining a set of bottom chain types of a block chain, wherein the set of bottom chain types includes a bottom chain type of at least one block chain bottom chain; determining a target bottom chain type required for creating a block chain from the set of bottom chain types; creating a target block chain of a target service based on a block chain bottom chain corresponding to the target bottom chain type; deploying a target application of the target service on the target block chain, and generating a smart contract of the target application; performing data analysis on on-chain data of the target application in the target block chain through the smart contract of the target application, to manage the target application based on the analysis result.

[0305] The specific implementation of each operation can be referred to the foregoing embodiments, which will not be described here.

[0306] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0307] Since the instructions stored in the storage medium can execute the steps in any of the management methods of the blockchain application provided by the embodiments of the present application, the beneficial effects that can be achieved by any of the management methods of the blockchain application provided by the embodiments of the present application can be achieved, which are described in detail in the foregoing embodiments and will not be described here.

[0308] According to an aspect of the present application, a computer program product or computer program is provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementations of the management aspect of the blockchain application.

[0309] The above describes in detail the method, device, computer device and storage medium provided by the embodiment of the present application for managing a blockchain application. The principle and implementation of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation and application range will be changed according to the idea of the present application. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method of managing blockchain applications, characterized by, The method comprises: acquiring a bottom chain type set of a blockchain, wherein the bottom chain type set comprises a bottom chain type of at least one blockchain bottom chain; determining a target bottom chain type required for creating a blockchain from the bottom chain type set; creating a target blockchain of a target business based on a blockchain bottom chain corresponding to the target bottom chain type; deploying a target application of the target business on the target blockchain, and generating a smart contract of the target application, wherein the smart contract is used by the target application, and there is a connection relationship between the smart contract and the target application; determining a target smart contract required for data analysis on the target application through the connection relationship; obtaining on-chain data of the target application on the target blockchain through multi-threaded calling of an interface of the target smart contract through task scheduling; performing data analysis on the on-chain data to manage the target application based on an analysis result. 2.The method of claim 1, wherein, The method comprises: determining attribute information of a target blockchain to be created; creating an initial blockchain of a target business based on the blockchain bottom chain and the attribute information; adding a member institution to the initial blockchain to obtain an added target blockchain, wherein the member institution has a data processing authority for the target blockchain. 3.The method of claim 1, wherein, The method comprises: determining a target account for creating a target blockchain; performing permission verification on the target account to determine a blockchain creation permission of the target account; when it is detected that the permission verification is passed, creating a target blockchain of a target business based on the blockchain bottom chain through the target account. 4.The method of claim 3, wherein The method comprises: performing belonging verification on the target account to verify belonging institution information of the target account to obtain a first verification result; performing node verification on the target account to verify node information of the target account to obtain a second verification result; determining a blockchain creation permission of the target account based on the first verification result and the second verification result. 5.The method of claim 1, wherein, The method comprises: acquiring a to-be-deployed application of the target business, wherein the to-be-deployed application has corresponding application attribute information; determining a member institution of the to-be-deployed application, wherein the member institution has a data processing authority for the deployed application; deploying the to-be-deployed application to the target blockchain based on the application attribute information and the member institution to deploy a target application of the target business on the target blockchain. 6.The method of claim 1, wherein, The method comprises: acquiring program information of a smart contract; performing compilation processing on the program information to obtain a compiled smart contract; establishing a connection relationship between the compiled smart contract and the target application to obtain a smart contract of the target application. 7.The method of claim 1, wherein, After the smart contract of the target application is generated, the method further comprises: Obtaining attribute information of at least one smart contract; Analyzing the attribute information to obtain ownership information and state information of the smart contract, wherein the ownership information represents an application to which the smart contract belongs, and the state information represents a contract state of the smart contract; Based on the ownership information and the state information, the smart contract is managed. 8.The method of claim 1, wherein, Data analysis on the on-chain data includes: Structural analysis on the on-chain data to obtain structured data of the on-chain data; Generating a data processing interface for the structured data; Based on the calling request for the data processing interface, the structured data is analyzed. 9.The method of claim 1, wherein, After obtaining the on-chain data of the target application in the target blockchain, the method further includes: Based on the storage mode of the on-chain data in the target blockchain, the on-chain data is standardized to obtain standardized data of the on-chain data; The standardized data is stored in an off-chain database of the target blockchain. 10.The method of claim 9, wherein, Storing the standardized model in the off-chain database of the target blockchain includes: Determining a data export model of the on-chain data; Extracting target data information corresponding to the data export model from the standardized data; Based on the data export model, the target data information is combined to obtain combined information; The combined information is stored in the off-chain database of the target blockchain. 11.A management apparatus of a blockchain application, characterized by, Including: An acquisition unit configured to acquire a set of underlying chain types of a blockchain, wherein the set of underlying chain types includes at least one underlying chain type of an underlying chain of a blockchain; A determination unit configured to determine a target underlying chain type required for creating a blockchain from the set of underlying chain types; A creation unit configured to create a target blockchain of a target business based on a blockchain underlying chain corresponding to the target underlying chain type; A deployment unit configured to deploy a target application of the target business on the target blockchain and generate a smart contract of the target application, wherein the smart contract is for use by the target application, and there is a connection relationship between the smart contract and the target application; An analysis unit configured to perform data analysis on on-chain data of the target application in the target blockchain through the smart contract of the target application, and manage the target application based on an analysis result; The analysis unit includes: A contract determination sub-unit configured to determine a target smart contract required for data analysis on the target application through the connection relationship; A data acquisition sub-unit configured to acquire on-chain data of the target application in the target blockchain by multi-threaded calling of an interface of the target smart contract through task scheduling; A data analysis sub-unit configured to perform data analysis on the on-chain data to manage the target application based on an analysis result.

12. An electronic device, comprising: A memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operations in the management method of the blockchain application of any one of claims 1 to 10.

13. A storage medium, characterized by The storage medium stores a plurality of instructions adapted to be loaded by the processor to execute the steps in the management of the blockchain application of any one of claims 1 to 10.

Citation Information

Patent Citations

  • Multi-type blockchain deployment management system and method

    CN111245624A