CN114338433B - Block chain resource allocation method, device, system and computer equipment - Google Patents

Block chain resource allocation method, device, system and computer equipment Download PDF

Info

Publication number
CN114338433B
CN114338433B CN202111480349.6A CN202111480349A CN114338433B CN 114338433 B CN114338433 B CN 114338433B CN 202111480349 A CN202111480349 A CN 202111480349A CN 114338433 B CN114338433 B CN 114338433B
Authority
CN
China
Prior art keywords
blockchain
tenant
independent
class
shared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111480349.6A
Other languages
Chinese (zh)
Other versions
CN114338433A (en
Inventor
罗梅琴
刘述伟
郭林海
张琛
万化
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202111480349.6A priority Critical patent/CN114338433B/en
Publication of CN114338433A publication Critical patent/CN114338433A/en
Application granted granted Critical
Publication of CN114338433B publication Critical patent/CN114338433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to a blockchain resource allocation method, a blockchain resource allocation device, a computer device, a storage medium and a computer program product. The method comprises the following steps: receiving a block chain allocation request of a tenant; classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification; and according to the tenant isolation classification and the blockchain allocation request, realizing the allocation of blockchain resources through the classification and allocation of the blockchain. The method can enable the multi-block chain network to realize the sharing of part of block chain resources while meeting the logic isolation requirement of tenants, and can solve the problem of multi-tenant-based block chain sharing.

Description

Block chain resource allocation method, device, system and computer equipment
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a blockchain resource allocation method, device, and computer device.
Background
With the development of blockchain technology, multi-tenant technology (or multi-tenant technology, english is called multi-tenancy technology) has emerged. The multi-tenant technology is a software architecture technology for discussing and implementing sharing of the same system or program components in a multi-tenant environment, while ensuring isolation of data between tenants. In the multi-Tenant technology, a Tenant (english name Tenant) may refer to a Tenant using a system or a computing resource, and all Data that is included in the system and can be identified as a designated Tenant, such as an account and statistical information (english name Accounting Data) created in the system, various Data set in the system, and a customized application environment set by the Tenant, etc., all belong to the scope of the Tenant.
Currently, a single blockchain is generally deployed on a cloud computing platform such as a container cloud platform or IaaS (english is generally called Infrastructure as a Service, chinese is called infrastructure as a service) in the form of a node or a network. The cloud service of the current blockchain is generally in a single-tenant mode, and the tenants apply resources to deploy the blockchain.
The prior art fails to provide a solution to the multi-tenant based blockchain sharing problem.
Disclosure of Invention
In view of the foregoing, there is a need for a blockchain resource allocation method, apparatus, system, computer device, computer readable storage medium, and computer program product that can solve the blockchain sharing problem that is based on multi-tenants.
A blockchain resource allocation method, the method comprising:
receiving a block chain allocation request of a tenant;
classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
and according to the tenant isolation classification and the blockchain allocation request, realizing the allocation of blockchain resources through the classification and allocation of the blockchain.
In one embodiment, the categorized deployment of the blockchain includes:
When the tenant isolation classification comprises an independent single tenant class, providing a first service for tenants belonging to the independent single tenant class, wherein the first service comprises the steps of establishing an independent account system, providing an independent blockchain network and providing an independent blockchain software development kit, and the independent single tenant class refers to a tenant class in which the tenants independently share an independent blockchain.
In one embodiment, the categorized deployment of the blockchain includes:
and when the tenant isolation classification comprises an independent multi-tenant class, providing a second service for tenants belonging to the independent multi-tenant class, wherein the second service comprises a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization and an isolated blockchain member, and the independent multi-tenant class refers to the tenant class of the independent blockchain of each independent multi-tenant.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation class includes a shared single tenant class, a third service is provided to tenants belonging to the shared single tenant class, the third service including providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account system, providing an independent or shared blockchain software development kit, the shared single tenant class referring to a tenant class in which the tenants individually share independent multiple blockchains.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared multi-tenant class, providing a fourth service to tenants belonging to the shared multi-tenant class, the fourth service including providing a shared blockchain software development kit, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant class being a class of tenants that the multi-tenants share independent multi-blockchains.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared single tenant cross-chain class, providing a fifth service to tenants belonging to the shared single tenant cross-chain class, the fifth service including providing an independent blockchain software development kit, an independent cross-chain service, or an independent cross-chain blockchain gateway, the shared single tenant cross-chain class referring to a tenant class in which the tenant exclusively shares multiple cross-chain blockchains.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared multi-tenant cross-chain class, providing a sixth service to tenants belonging to the shared multi-tenant cross-chain class, the sixth service including providing a shared blockchain software development kit, a shared cross-chain gateway, an isolated cross-chain service, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant cross-chain class referring to a tenant class in which multiple cross-chain blockchains are shared by multiple tenants.
A blockchain resource allocation device, the device comprising:
the allocation request receiving module is used for receiving a block chain allocation request of the tenant;
the tenant classification module is used for classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
and the block chain deployment module is used for realizing the distribution of block chain resources through the classified deployment of the block chains according to the tenant isolation classification and the block chain distribution request.
A blockchain resource allocation system, the system comprising:
the block chain gateway module is used for event management, transaction management, software development kit and client management, and realizing efficient interaction between a user and the multi-block chain network;
the authentication management module is used for checking the tenant authority when the tenant requests the resource;
the identity management module is used for distributing appointed authorities for tenants;
the network isolation module is used for isolating the block chain networks, so that each block chain network can efficiently and stably operate in an independent network and is not influenced by other block chain networks;
the logic space isolation module is used for performing logic space isolation and ensuring that each block chain network, each block chain gateway and each software development kit independently and stably run;
The on-chain account system module is used for uniformly managing and connecting the tenant, organization, electronic commerce authentication and on-chain account;
the tenant management module is used for establishing an association relationship between a tenant and an account on the chain;
the tenant identity management module is used for carrying out identity authentication and authorization, user management and login management based on the access control authorization model of the role;
the application management module is used for dividing different tenants into different application entities and is also used for managing and configuring own resources for the tenants;
the block chain network management module is used for carrying out unified management and configuration on the multi-block chain network, and automatically creating, updating, managing and deleting block chain network resources according to the request of the tenant;
the cross-chain network management module is used for connecting each block chain network according to the tenant request to realize data interaction between each block chain network;
the cross-chain gateway module is used for cross-chain multi-block chain event management, transaction management, multi-block chain SDK adaptation and unified application programming interfaces;
and the cross-chain service module is used for realizing the transfer of data from one blockchain to another blockchain, and has the service capability of presence proving and data verifiable.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a block chain allocation request of a tenant;
classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
and according to the tenant isolation classification and the blockchain allocation request, realizing the allocation of blockchain resources through the classification and allocation of the blockchain.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a block chain allocation request of a tenant;
classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
and according to the tenant isolation classification and the blockchain allocation request, realizing the allocation of blockchain resources through the classification and allocation of the blockchain.
A computer program product comprising a computer program which, when executed by a processor, performs the steps of:
receiving a block chain allocation request of a tenant;
classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
And according to the tenant isolation classification and the blockchain allocation request, realizing the allocation of blockchain resources through the classification and allocation of the blockchain.
According to the block chain resource allocation method, the device, the computer equipment, the storage medium and the computer program product, the tenant is classified according to the block chain allocation request and the preset classification rule of the tenant, the tenant isolation classification is obtained, and then the block chain resource allocation is realized through the classification deployment of the block chain according to the tenant isolation classification and the block chain allocation request. Because different tenants in the same tenant isolation classification have the same or similar blockchain use requirements, the same or similar blockchain use requirements generally do not exclude sharing of partial blockchain resources, when the blockchains of various tenants are deployed, the partial blockchain resources can be set to be shared, so that the multi-zone blockchain network can realize sharing of the partial blockchain resources while meeting the logic isolation requirements of the tenants, and the problem of sharing the blockchain based on multiple tenants can be solved.
Drawings
FIG. 1 is a diagram of an application environment for a block chain resource allocation method in one embodiment;
FIG. 2 is a flow diagram of a block chain resource allocation method in one embodiment;
FIG. 3 is a block chain resource allocation method in one embodiment;
FIG. 4 is a block diagram of a block chain resource allocation device in one embodiment;
FIG. 5 is a block diagram of a block chain resource allocation apparatus in another embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The blockchain resource allocation method provided by the application can be applied to an application environment shown in fig. 1. The data storage system may store data that the server 102 needs to process. The data storage system may be integrated on the server 102 or may be located on a cloud or other network server. The server 102 has a data receiving interface, which can receive the blockchain allocation request of the tenant. The server 102 classifies the tenants according to the blockchain allocation request and a preset classification rule, and obtains tenant isolation classification. The server 102 realizes the allocation of the blockchain resources through the classified deployment of the blockchain according to the tenant isolation classification and the blockchain allocation request. The server 102 may be implemented as a stand-alone server or a server cluster including a plurality of servers.
In one embodiment, as shown in fig. 2, a method for allocating blockchain resources is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
s202, a block chain allocation request of the tenant is received.
Where a tenant may refer to a user using a system or computing resource.
Specifically, a blockchain resource allocation request of a tenant is received, where the blockchain resource allocation request may include information such as a blockchain usage number, an organization situation, an organization membership situation, a tenant number, whether a blockchain is cross-linked, whether a blockchain network is independent, a blockchain node isolation requirement, whether a blockchain software development kit is independent, and the like. The English name of the software development kit is Software Development Kit, and the English name is SDK.
S204, classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classifications.
The preset classification rule may be a rule for classifying according to one or more factors of whether the blockchain is shared independently, the number of blockchain used, whether the blockchain link points are shared, whether the blockchain is cross-linked, the number of tenants, whether the organization is included, whether the organization is independent, and the like.
Specifically, tenant isolation classification is established according to the preset classification rule. And dividing the tenants into tenant isolation classifications according to the blockchain allocation request. For example, the tenant isolation classification may be established according to three factors including whether the blockchains are exclusive, the number of used blockchains, and whether the blockchains are cross-linked, so that the tenant isolation classification includes a tenant class in which the tenants are exclusive to one independent blockchain, a tenant class in which the tenants are exclusive to multiple independent blockchains, a tenant class in which the tenants are exclusive to multiple cross-chain blockchains, and a tenant class in which the tenants are exclusive to multiple cross-chain blockchains. For example, the tenant isolation classification may be established according to seven factors including whether the blockchain is exclusive, the number of blockchains used, whether the blockchain link points are shared, whether the blockchain is cross-linked, the number of tenants, whether the organization is included, and whether the organization is independent, so that the tenant isolation classification at least includes the following categories: an independent blockchain-single tenant class, a shared blockchain-independent blockchain node class, a shared blockchain-shared blockchain node-independent organization class, a shared blockchain-shared blockchain node-shared organization-independent member class, a shared multi-blockchain-independent blockchain gateway class, a shared multi-blockchain-shared blockchain node-independent blockchain gateway class, a shared multi-blockchain network-shared organization class, a shared multi-blockchain network-independent cross-chain gateway class. It should be noted that the management of the tenants can be shared, that is, the management of all the tenants can be unified.
S206, according to the tenant isolation classification and the blockchain allocation request, the blockchain resources are allocated through classification and allocation of the blockchains.
Specifically, the same type of blockchain deployment is performed for different tenants belonging to the same class. The same type of blockchain deployment may include the same settings for whether the blockchain networks are independent, whether the blockchain nodes are isolated, whether the blockchain organizations are isolated, whether the blockchain members are isolated, whether the blockchain software development kits are independent, whether the blockchain account systems are independent, etc., which are generic settings for each tenant isolation class. And according to the block chain allocation request, personalized setting is carried out on the basis of the general setting. The personalized settings may include settings for the number of blockchains when a tenant uses multiple blockchains. And through the classified deployment of the block chains, the allocation of the block chain resources is realized.
In the above-mentioned block chain resource allocation method, the tenant is classified according to the block chain allocation request and the preset classification rule of the tenant, so as to obtain the tenant isolation classification, and then the allocation of the block chain resource is realized through the classification deployment of the block chain according to the tenant isolation classification and the block chain allocation request. Because different tenants in the same tenant isolation classification have the same or similar blockchain use requirements, the same or similar blockchain use requirements generally do not exclude sharing of partial blockchain resources, when the blockchains of various tenants are deployed, the partial blockchain resources can be set to be shared, so that the multi-zone blockchain network can realize sharing of the partial blockchain resources while meeting the logic isolation requirements of the tenants, and the problem of sharing the blockchain based on multiple tenants can be solved.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification comprises an independent single tenant class, providing a first service for tenants belonging to the independent single tenant class, wherein the first service comprises providing an independent blockchain software development kit, establishing an independent account system and providing an independent blockchain network, and the independent single tenant class refers to a tenant class in which the tenants independently share an independent blockchain.
Specifically, when the tenant isolation class includes an independent single tenant class, a first service is provided to tenants belonging to the independent single tenant class. The first service comprises establishing an independent account system, providing an independent blockchain network and providing an independent blockchain software development kit through logical space isolation. The independent single-tenant class refers to a class of tenants in which the tenants share an independent blockchain.
In this embodiment, by determining the first service corresponding to the independent single-tenant class, when the tenant isolation classification includes the independent single-tenant class, the purpose of implementing logical space isolation meeting the tenant requirement can be achieved, which is beneficial to implementing sharing of part of blockchain resources while the multi-blockchain network meets the tenant logical isolation requirement.
In one embodiment, the categorized deployment of the blockchain includes:
and when the tenant isolation classification comprises an independent multi-tenant class, providing a second service for tenants belonging to the independent multi-tenant class, wherein the second service comprises a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization and an isolated blockchain member, and the independent multi-tenant class refers to the tenant class of the independent blockchain of each independent multi-tenant.
Wherein a blockchain node may refer to a basic building block of a blockchain network. The blockchain network is composed of a plurality of blockchain nodes. A blockchain contract may refer to a smart contract for a blockchain. Blockchain organization may refer to an organization that uses blockchain resources by blockchain nodes. Blockchain members may refer to members belonging to a blockchain organization.
In particular, the blockchain contract may be a special protocol that is intended to provide, verify, and execute contracts. And when the tenant isolation classification comprises an independent multi-tenant class, providing a second service for tenants belonging to the independent multi-tenant class through logical space isolation. The second service includes providing a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, a shared blockchain software development kit. The independent multi-tenant class refers to a tenant class in which multiple tenants independently share independent blockchains.
In this embodiment, by determining the second service corresponding to the independent multi-tenant class, the beneficial effects that the multi-tenant occupies the same blockchain and shares one blockchain software development kit while the multi-blockchain network meets the logic isolation requirement of the tenant can be achieved.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation class includes a shared single tenant class, a third service is provided to tenants belonging to the shared single tenant class, the third service including providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account system, providing an independent or shared blockchain software development kit, the shared single tenant class referring to a tenant class in which the tenants individually share independent multiple blockchains.
The blockchain gateway may refer to a network service for fast and efficient interaction of tenants with the blockchain network.
Specifically, when the tenant isolation class includes a shared single tenant class, a third service is provided to tenants belonging to the shared single tenant class through logical space isolation. The third service includes providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account hierarchy, providing an independent or shared blockchain software development kit. The shared single-tenant class refers to a tenant class in which tenants independently share independent multiple blockchains.
In this embodiment, by determining the third service corresponding to the shared single tenant class, the beneficial effects that the multi-tenant shares an account system and a software development kit while the multi-blockchain network meets the logic isolation requirement of the tenant can be achieved.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared multi-tenant class, providing a fourth service to tenants belonging to the shared multi-tenant class, the fourth service including providing a shared blockchain software development kit, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant class being a class of tenants that the multi-tenants share independent multi-blockchains.
Specifically, when the tenant isolation class includes a shared multi-tenant class, a fourth service is provided to tenants belonging to the shared multi-tenant class through logical space isolation. The fourth service includes providing a shared blockchain software development kit, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, a shared blockchain software development kit. The shared multi-tenant class refers to a tenant class in which multiple tenants share independent multi-blockchains. As shown in fig. 3, the architecture diagram of the shared multi-tenant class receives a request of a tenant X, provides corresponding service resources for different tenants (for example, tenant a, tenant B, tenant C and tenant D) through gateway and authentication management according to the request of the tenant X, and realizes sharing and monopolizing of the blockchain network through mapping of the tenant and (naspace (meaning logical space) +network ID (meaning identity number)).
In this embodiment, by determining the fourth service corresponding to the shared multi-tenant class, the beneficial effects of the multi-tenant shared blockchain software development kit and the multi-blockchain can be achieved while the multi-blockchain network meets the logic isolation requirements of tenants.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared single tenant cross-chain class, providing a fifth service to tenants belonging to the shared single tenant cross-chain class, the fifth service including providing an independent blockchain software development kit, an independent cross-chain service, and an independent cross-chain blockchain gateway, the shared single tenant cross-chain class being a class of tenants where the tenants individually share multiple cross-chain blockchains.
The cross-chain may refer to a protocol that solves the problem of transferring, and exchanging assets and functional states from one another on two or more different blockchains. The cross-chain blockchain gateway may refer to a network service for fast and efficient interactions of tenants among multi-blockchain networks.
In particular, cross-chain may be understood as the transfer of information from one blockchain to another blockchain. And when the tenant isolation classification comprises a shared single-tenant cross-chain class, providing a fifth service to tenants belonging to the shared single-tenant cross-chain class through logical space isolation. The fifth service includes providing a separate blockchain software development kit, a separate cross-chain service, or a separate cross-chain blockchain gateway. The shared single-tenant cross-chain class refers to a tenant class in which tenants independently share multiple cross-chain blockchains.
In this embodiment, by determining the fifth service corresponding to the shared single-tenant cross-chain class, when the tenant isolation classification includes the shared single-tenant cross-chain class, the purpose of implementing logical space isolation meeting tenant requirements is achieved, which is favorable for implementing sharing of part of blockchain resources while the multi-blockchain network meets the tenant logical isolation requirements.
In one embodiment, the categorized deployment of the blockchain includes:
when the tenant isolation classification includes a shared multi-tenant cross-chain class, providing a sixth service to tenants belonging to the shared multi-tenant cross-chain class, the sixth service including providing a shared blockchain software development kit, a shared cross-chain gateway, an isolated cross-chain service, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant cross-chain class referring to a tenant class in which multiple cross-chain blockchains are shared by multiple tenants.
Specifically, when the tenant isolation classification includes a shared multi-tenant cross-chain class, a sixth service is provided to tenants belonging to the shared multi-tenant cross-chain class through logical space isolation. The sixth service includes providing a shared blockchain software development kit, a shared cross-chain gateway, an isolated cross-chain service, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, and an isolated blockchain member. The shared multi-tenant cross-chain class refers to a tenant class in which multiple multi-tenants share multiple cross-chain blockchains.
In this embodiment, by determining the sixth service corresponding to the shared multi-tenant cross-chain class, the multi-tenant shared blockchain software development kit, the cross-chain gateway and the cross-chain blockchain can be realized while the multi-blockchain network meets the logic isolation requirement of the tenant.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 2 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in FIG. 4, there is provided a blockchain resource allocation device 300, comprising: an allocation request receiving module 302, a tenant classification module 304, and a blockchain deployment module 306, wherein:
The allocation request receiving module 302 is configured to receive a blockchain allocation request of a tenant.
The tenant classification module 304 is configured to classify the tenant according to the blockchain allocation request and a preset classification rule, so as to obtain a tenant isolation classification.
And the blockchain deployment module 306 is configured to implement the allocation of blockchain resources through the classification deployment of the blockchain according to the tenant isolation classification and the blockchain allocation request.
In one embodiment, the blockchain deployment module 306 is configured to provide a first service to tenants belonging to an independent single tenant class when the tenant isolation classification includes the independent single tenant class. The first service comprises the steps of establishing an independent account system, providing an independent blockchain network and providing an independent blockchain software development kit, wherein the independent single-tenant class refers to a tenant class in which tenants independently share an independent blockchain.
In one embodiment, the blockchain deployment module 306 is configured to provide a second service to tenants belonging to an independent multi-tenant class when the tenant isolation classification includes the independent multi-tenant class. The second service includes providing a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, wherein the independent multi-tenant class refers to a class of tenants that the multi-tenant shares an independent blockchain.
In one embodiment, the blockchain deployment module 306 is configured to provide a third service to tenants belonging to the shared single tenant class when the tenant isolation classification includes the shared single tenant class. The third service includes providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account system, and providing an independent or shared blockchain software development kit, wherein the shared single-tenant class refers to a class of tenants in which the tenants independently share independent multiple blockchains.
In one embodiment, the blockchain deployment module 306 is configured to provide a fourth service to tenants belonging to the shared multi-tenant class when the tenant isolation classification includes the shared multi-tenant class. The fourth service includes providing a shared blockchain software development toolkit, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, wherein the shared multi-tenant class refers to a tenant class in which multiple tenants share independent multiple blockchains.
In one embodiment, the blockchain deployment module 306 is configured to provide a fifth service to tenants belonging to the shared single-tenant cross-chain class when the tenant isolation classification includes the shared single-tenant cross-chain class. The fifth service includes providing an independent blockchain software development kit, an independent cross-chain service, or an independent cross-chain blockchain gateway, and the shared single-tenant cross-chain class refers to a tenant class in which tenants individually share multiple cross-chain blockchains.
In one embodiment, the blockchain deployment module 306 is configured to provide a sixth service to tenants belonging to the shared multi-tenant cross-chain class when the tenant isolation classification includes the shared multi-tenant cross-chain class. The sixth service includes providing a shared blockchain software development toolkit, a shared cross-chain gateway, an isolated cross-chain service, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, and isolated blockchain members, wherein the shared multi-tenant cross-chain class refers to a class of tenants that are multi-tenant shared with multiple cross-chain blockchains.
In one embodiment, as shown in FIG. 5, there is provided a blockchain resource allocation system, comprising:
blockchain gateway module 402, authentication management module 404, identity management module 406, network isolation module 408, logical space isolation module 410, on-chain account system module 412, tenant management module 414, tenant identity management module 416, application management module 418, blockchain network management module 420, cross-chain network management module 422, cross-chain gateway module 424, cross-chain service module 426, wherein:
the blockchain gateway module 402 is used for event management, transaction management, software development kit and client management, and efficient interaction between a user and the multi-blockchain network.
The authentication management module 404 is configured to verify the tenant authority when the tenant requests the resource.
The identity management module 406 is configured to assign a specified authority to the tenant.
The network isolation module 408 is configured to isolate the blockchain networks, so that each blockchain network can efficiently and stably operate in its own independent network without being affected by other blockchain networks.
The logic space isolation module 410 is configured to perform logic space isolation to ensure that each blockchain network, blockchain gateway, and software development kit independently and stably operate.
The on-chain account system module 412 is configured to perform unified management and association on tenant, organization, e-commerce authentication, and on-chain account.
The tenant management module 414 is configured to establish an association relationship between a tenant and an account on the chain.
The tenant identity management module 416 is configured to perform identity authentication and authorization, user management, and login management based on the role-based access control authorization model.
The application management module 418 is configured to divide different tenants into different application entities, and is further configured to allow a user to manage and configure own resources.
The blockchain network management module 420 is configured to perform unified management and configuration on the multi-blockchain network, and automatically create, update, manage, and delete blockchain network resources according to the request of the tenant.
The cross-chain network management module 422 is configured to connect each blockchain network according to a tenant request, and implement data interaction between each blockchain network.
The cross-chain gateway module 424 is used for cross-chain multi-blockchain event management, transaction management, multi-blockchain SDK adaptation, and unified application programming interfaces.
The cross-chain service module 426 is configured to implement data transfer from one blockchain to another blockchain, and has a service capability for verifying the presence of the data.
The English name of the application program editing interface is Application Programming Interface, and the English name is API.
Specifically, the blockchain gateway module 402 eliminates the need for users to care about blockchain software development kits, certificate updates, and private key security storage. The authentication management module 404 performs verification on the authority of the user when the tenant requests the resource, and the tenant passes the verification to request the corresponding resource and service. The network isolation module 408 enables each blockchain network to be deployed independently, distributed under different logical spaces (english names). The logical space isolation module 410 has account registration, inquiry, change, cancellation, freezing, thawing and other functions, and can perform unified management on the on-chain accounts of various blockchain networks. The tenant identity management module 416 can control operation and management of the tenant on the blockchain application platform, and different tenants can give different roles, have different rights, and further have different request rights of resources and services. The application management module 418 enables each tenant to manage its own resources and its configuration under its own application, and controls the operation and management of the tenant on the blockchain application platform. Through the cross-chain gateway module 424, users can achieve efficient interactions between multi-blockchain networks. The cross-chain service module 426 has cross-chain capabilities. It should be noted that there are complex relationships between the modules in fig. 4, and the connection lines between the modules in fig. 4 are not used to define the relationships between the modules.
In fig. 4 and 5, there are connection lines between the modules, which are only used to indicate that the modules may be formed as a whole in the drawings, and are not used to limit the connection relationship between the modules. For specific limitations on the blockchain resource allocation device, reference may be made to the above limitation on the blockchain resource allocation method, and no further description is given here. The various modules in the blockchain resource allocation device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store blockchain resource allocation related data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a blockchain resource allocation method.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
The tenant information (including but not limited to tenant equipment information, tenant personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the tenant or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. A method of blockchain resource allocation, the method comprising:
receiving a block chain allocation request of a tenant;
classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification; the preset classification rules comprise rules for classifying according to one or more factors of whether the blockchains are exclusive, the using number of the blockchains, whether the blockchain link points are shared, whether the blockchains are cross-linked, the tenant number is included, whether the organization is included and whether the organization is independent;
according to the tenant isolation classification and the blockchain allocation request, the allocation of blockchain resources is realized through the classification and allocation of blockchains;
wherein the categorized deployment of the blockchain includes:
When the tenant isolation classification comprises an independent single tenant class, providing a first service for tenants belonging to the independent single tenant class, wherein the first service comprises the steps of establishing an independent account system, providing an independent blockchain network and providing an independent blockchain software development kit, and the independent single tenant class refers to a tenant class in which the tenants independently share an independent blockchain;
providing a second service to tenants belonging to the independent multi-tenant class when the tenant isolation classification comprises the independent multi-tenant class, wherein the second service comprises a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization and an isolated blockchain member;
when the tenant isolation class includes a shared single tenant class, a third service is provided to tenants belonging to the shared single tenant class, the third service including providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account system, providing an independent or shared blockchain software development kit, the shared single tenant class referring to a tenant class in which the tenants individually share independent multiple blockchains.
2. The method of claim 1, wherein the categorized deployment of the blockchain comprises:
when the tenant isolation classification includes a shared multi-tenant class, providing a fourth service to tenants belonging to the shared multi-tenant class, the fourth service including providing a shared blockchain software development kit, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant class being a class of tenants that the multi-tenants share independent multi-blockchains.
3. The method of claim 1, wherein the categorized deployment of the blockchain comprises:
when the tenant isolation classification includes a shared single tenant cross-chain class, providing a fifth service to tenants belonging to the shared single tenant cross-chain class, the fifth service including providing an independent blockchain software development kit, an independent cross-chain service, or an independent cross-chain blockchain gateway, the shared single tenant cross-chain class referring to a tenant class in which the tenant exclusively shares multiple cross-chain blockchains.
4. The method of claim 1, wherein the categorized deployment of the blockchain comprises:
When the tenant isolation classification includes a shared multi-tenant cross-chain class, providing a sixth service to tenants belonging to the shared multi-tenant cross-chain class, the sixth service including providing a shared blockchain software development kit, a shared cross-chain gateway, an isolated cross-chain service, an isolated blockchain gateway, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization, an isolated blockchain member, the shared multi-tenant cross-chain class referring to a tenant class in which multiple cross-chain blockchains are shared by multiple tenants.
5. A blockchain resource allocation device, the device comprising:
the allocation request receiving module is used for receiving a block chain allocation request of the tenant;
the tenant classification module is used for classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification;
the system comprises a block chain deployment module, a block chain management module and a block chain management module, wherein the block chain deployment module is used for realizing the distribution of block chain resources through the classified deployment of the block chains according to the tenant isolation classification and the block chain distribution request, and when the tenant isolation classification comprises an independent single tenant class, providing a first service for tenants belonging to the independent single tenant class, wherein the first service comprises the steps of establishing an independent account system, providing an independent block chain network and providing an independent block chain software development kit, and the independent single tenant class refers to the tenant class of the tenant which independently shares an independent block chain; providing a second service to tenants belonging to the independent multi-tenant class when the tenant isolation classification comprises the independent multi-tenant class, wherein the second service comprises a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization and an isolated blockchain member; when the tenant isolation class includes a shared single tenant class, a third service is provided to tenants belonging to the shared single tenant class, the third service including providing an independent multi-blockchain network, providing an independent blockchain gateway, providing a shared account system, providing an independent or shared blockchain software development kit, the shared single tenant class referring to a tenant class in which the tenants individually share independent multiple blockchains.
6. A blockchain resource allocation system, the system comprising:
the block chain gateway module is used for event management, transaction management, software development kit and client management, and realizing efficient interaction between a user and the multi-block chain network;
the authentication management module is used for checking the tenant authority when the tenant requests the resource;
the identity management module is used for distributing appointed authorities for tenants;
the network isolation module is used for isolating the block chain networks, so that each block chain network can efficiently and stably operate in an independent network and is not influenced by other block chain networks;
the logic space isolation module is used for performing logic space isolation and ensuring that each block chain network, each block chain gateway and each software development kit independently and stably run;
the on-chain account system module is used for uniformly managing and connecting the tenant, organization, electronic commerce authentication and on-chain account;
the tenant management module is used for establishing an association relationship between a tenant and an account on the chain;
the tenant identity management module is used for carrying out identity authentication and authorization, user management and login management based on the access control authorization model of the role;
the application management module is used for dividing different tenants into different application entities and is also used for managing and configuring own resources for the tenants;
The block chain network management module is used for carrying out unified management and configuration on the multi-block chain network, and automatically creating, updating, managing and deleting block chain network resources according to the request of the tenant; the block chain network management module is also used for receiving a block chain allocation request of a tenant; classifying the tenants according to the blockchain allocation request and a preset classification rule to obtain tenant isolation classification; according to the tenant isolation classification and the blockchain allocation request, the allocation of blockchain resources is realized through the classification and allocation of blockchains; the preset classification rules comprise rules for classifying according to one or more factors of whether the blockchains are exclusive, the number of the blockchains is used, whether the blockchain link points are shared, whether the blockchains are crossed, the number of tenants is large, whether the organization is contained and whether the organization is independent; wherein the categorized deployment of the blockchain includes: when the tenant isolation classification comprises an independent single tenant class, providing a first service for tenants belonging to the independent single tenant class, wherein the first service comprises the steps of establishing an independent account system, providing an independent blockchain network and providing an independent blockchain software development kit, and the independent single tenant class refers to a tenant class in which the tenants independently share an independent blockchain; providing a second service to tenants belonging to the independent multi-tenant class when the tenant isolation classification comprises the independent multi-tenant class, wherein the second service comprises a shared blockchain software development kit, an isolated blockchain node, an isolated blockchain account, an isolated blockchain contract, an isolated blockchain organization and an isolated blockchain member; providing a third service to a tenant belonging to a shared single tenant class when the tenant isolation classification comprises the shared single tenant class, wherein the third service comprises providing an independent multi-block chain network, providing an independent block chain gateway, providing a shared account system, and providing an independent or shared block chain software development kit, and the shared single tenant class refers to the tenant class of the tenant which independently shares independent multiple block chains;
The cross-chain network management module is used for connecting each block chain network according to the tenant request to realize data interaction between each block chain network;
the cross-chain gateway module is used for cross-chain multi-block chain event management, transaction management, multi-block chain SDK adaptation and unified application programming interfaces;
and the cross-chain service module is used for realizing the transfer of data from one blockchain to another blockchain, and has the service capability of presence proving and data verifiable.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202111480349.6A 2021-12-06 2021-12-06 Block chain resource allocation method, device, system and computer equipment Active CN114338433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111480349.6A CN114338433B (en) 2021-12-06 2021-12-06 Block chain resource allocation method, device, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111480349.6A CN114338433B (en) 2021-12-06 2021-12-06 Block chain resource allocation method, device, system and computer equipment

Publications (2)

Publication Number Publication Date
CN114338433A CN114338433A (en) 2022-04-12
CN114338433B true CN114338433B (en) 2024-04-12

Family

ID=81049198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111480349.6A Active CN114338433B (en) 2021-12-06 2021-12-06 Block chain resource allocation method, device, system and computer equipment

Country Status (1)

Country Link
CN (1) CN114338433B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347062A (en) * 2013-06-24 2013-10-09 北京汉柏科技有限公司 Virtual computing resource distribution method
WO2017041492A1 (en) * 2015-09-10 2017-03-16 中兴通讯股份有限公司 Resource allocation method and device, and computer-readable storage medium
CN110086598A (en) * 2019-03-22 2019-08-02 珠海高凌信息科技股份有限公司 A kind of moving method for service function the chain dynamic and isomery reducing side channel risk
CN112200635A (en) * 2020-10-21 2021-01-08 中国电子科技集团公司第十五研究所 Multi-tenant data isolation method and system based on tenant attributes
CN112564917A (en) * 2020-12-01 2021-03-26 浙商银行股份有限公司 Cloud service platform based on block chain and deployment method thereof
CN112615730A (en) * 2020-11-23 2021-04-06 北京邮电大学 Resource allocation method and device based on block chain network slice proxy
CN113190529A (en) * 2021-04-29 2021-07-30 电子科技大学 Multi-tenant data sharing storage system suitable for MongoDB database
CN113568738A (en) * 2021-07-02 2021-10-29 上海淇玥信息技术有限公司 Resource allocation method and device based on multi-label classification, electronic equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347062A (en) * 2013-06-24 2013-10-09 北京汉柏科技有限公司 Virtual computing resource distribution method
WO2017041492A1 (en) * 2015-09-10 2017-03-16 中兴通讯股份有限公司 Resource allocation method and device, and computer-readable storage medium
CN106535344A (en) * 2015-09-10 2017-03-22 中兴通讯股份有限公司 Resource distribution method and device
CN110086598A (en) * 2019-03-22 2019-08-02 珠海高凌信息科技股份有限公司 A kind of moving method for service function the chain dynamic and isomery reducing side channel risk
CN112200635A (en) * 2020-10-21 2021-01-08 中国电子科技集团公司第十五研究所 Multi-tenant data isolation method and system based on tenant attributes
CN112615730A (en) * 2020-11-23 2021-04-06 北京邮电大学 Resource allocation method and device based on block chain network slice proxy
CN112564917A (en) * 2020-12-01 2021-03-26 浙商银行股份有限公司 Cloud service platform based on block chain and deployment method thereof
CN113190529A (en) * 2021-04-29 2021-07-30 电子科技大学 Multi-tenant data sharing storage system suitable for MongoDB database
CN113568738A (en) * 2021-07-02 2021-10-29 上海淇玥信息技术有限公司 Resource allocation method and device based on multi-label classification, electronic equipment and medium

Also Published As

Publication number Publication date
CN114338433A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110896355B (en) Network slice selection method and device
CN107153565B (en) Method for configuring resource and network equipment thereof
Papagianni et al. A cloud-oriented content delivery network paradigm: Modeling and assessment
US10212050B2 (en) Providing recursively-generated instantiated computing resource in a multi-tenant environment
US20160219097A1 (en) Providing services as resources for other services
US20200322324A1 (en) Authenticating API Service Invocations
CN108512672B (en) Service arranging method, service management method and device
WO2015167541A2 (en) Service onboarding
US11729026B2 (en) Customer activation on edge computing environment
WO2020114608A1 (en) Method and apparatus for mapping network slices onto network infrastructures with sla guarantee
CN109743202B (en) Data management method, device and equipment and readable storage medium
CN113986528A (en) Method, system, equipment and storage medium for multi-tenant space resource management
CN114450685A (en) System and method for tag-based resource restriction or quota in a cloud infrastructure environment
CN113542033B (en) Many-to-many mapping method and system for alliance chain foundation establishment and management platform
CN114616807B (en) Method and system for managing and controlling a communication network
CN108667940A (en) Resource allocation methods, device and the computer readable storage medium of cloud platform
CN114338433B (en) Block chain resource allocation method, device, system and computer equipment
CN110839007A (en) Cloud network security processing method and device and computer storage medium
WO2023098433A1 (en) Secure policy distribution in a cloud environment
CN110662210A (en) Block chain-based secondary or repeated mobile phone number identification method, system and equipment
CN114090969B (en) Multilevel multi-tenant cross authorization management method
CN116488836A (en) Kubernetes cluster resource management method and system based on multiple tenants
CN114328650A (en) Database resource management method and device, computer equipment and storage medium
US11418515B2 (en) Multi-vendor support for network access control policies
CN113158225A (en) Authority management method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant