WO2023040502A1 - User service registration - Google Patents

User service registration Download PDF

Info

Publication number
WO2023040502A1
WO2023040502A1 PCT/CN2022/109864 CN2022109864W WO2023040502A1 WO 2023040502 A1 WO2023040502 A1 WO 2023040502A1 CN 2022109864 W CN2022109864 W CN 2022109864W WO 2023040502 A1 WO2023040502 A1 WO 2023040502A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
user
blockchain
mentioned
execution logic
Prior art date
Application number
PCT/CN2022/109864
Other languages
French (fr)
Chinese (zh)
Inventor
刘勤
黄胜
Original Assignee
支付宝(杭州)信息技术有限公司
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 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2023040502A1 publication Critical patent/WO2023040502A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • Multiple embodiments of this specification relate to the technical field of blockchain, and in particular to a user service registration method and device.
  • a user service registration method is proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain;
  • the centralized management and control platform supports registered user services;
  • the user services include user services generated by contract execution logic combinations contained in user smart contracts deployed on each member blockchain.
  • the method includes: receiving a user service registration request initiated by a service provider; in response to the user service registration request, determining a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes The contract execution logic contained in the user smart contract deployed on each member blockchain; the contract execution logic in the contract execution logic set is combined to generate the user service, so as to complete the service registration of the user service.
  • a user service registration method is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain ;
  • the centralized management and control platform supports registered user services;
  • the user services include the user services generated by the contract execution logic combination contained in the user smart contracts deployed on each member blockchain in the blockchain service network .
  • the method includes: receiving a solution registration request initiated by a service provider; in response to the solution registration request, determining from registered user services a set of user services for implementing service functions corresponding to the service solution;
  • the user service includes the contract execution logic contained in the user smart contract deployed on each member blockchain; combine the user services in the user service set to generate the service solution to complete the service solution service registration.
  • a user service registration device is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member block chain; wherein, the centralized management and control platform supports registered user services; the user services include the user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain.
  • the device includes: a first receiving module, which receives a user service registration request initiated by a service provider; a first determining module, which responds to the user service registration request, and determines the contract execution for realizing the service function corresponding to the user service Logic set; the contract execution logic set includes the contract execution logic contained in the user smart contract deployed on each member block chain in the blockchain service network; the first registration module executes the contract in the logic set The contract execution logic is combined to generate the user service, so as to complete the service registration of the user service.
  • a user service registration device is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain ;
  • the centralized management and control platform supports registered user services;
  • the user services include user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain;
  • the device includes: The second receiving module is to receive the solution registration request initiated by the service provider; the second determination module is to respond to the solution registration request and determine from the registered user services to realize the service function corresponding to the service solution User service set;
  • the user service includes the contract execution logic contained in the user smart contract deployed on each member blockchain;
  • the second registration module combines the user services in the user service set to generate the service solution scheme to complete the service registration for said service solution.
  • a blockchain service network composed of at least one member blockchain can be built by way of registration, and based on the contract contained in the user smart contract distributed on the member blockchain Execute logic, and further register standardized user services on the centralized management and control platform; because the user services can include contract execution logic from user smart contracts on different member blockchains; therefore, in this way, it is equivalent to Integrate the service capabilities of user smart contracts on different member blockchains, and integrate the contract execution logic with basic service capabilities contained in user smart contracts on different member blockchains to generate more complex service capabilities Service, so that the service capabilities of user smart contracts deployed on different member blockchains can be fully circulated and shared among member blockchains, thereby fundamentally solving the mutual isolation between member blockchains, The problem of information islands caused by the inability to integrate the service capabilities it provides.
  • Fig. 1 is a network architecture diagram of a blockchain service network shown in an exemplary embodiment of this specification.
  • Fig. 2 is a flow chart of a method for managing a blockchain service network shown in this specification according to an exemplary embodiment.
  • Fig. 3 is a flow chart of a process of registering a target blockchain shown in this specification.
  • Fig. 4 is a flow chart of a service registration method for registering user services on a centralized management and control platform according to an exemplary embodiment of this specification.
  • Fig. 5 is a flowchart of a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment of this specification.
  • Fig. 6 is a flow chart of a method for using a service for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification.
  • Fig. 7 is a flow chart of another method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of the present specification.
  • Fig. 8 is a schematic structural diagram of an electronic device provided by an exemplary embodiment.
  • Fig. 9 is a block diagram of a device for registering a user service according to an exemplary embodiment in this specification.
  • Fig. 10 is a block diagram of another user service registration device according to an exemplary embodiment in this specification.
  • the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification.
  • the method may include more or less steps than those described in this specification.
  • a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe.
  • this manual aims to build a blockchain service network composed of at least one member blockchain, and distribute the information contained in the user smart contracts on each member blockchain in the blockchain service network.
  • the contract execution logic is integrated to build a technical solution for standardized services open to service users.
  • the target blockchain that needs to join the blockchain service network can be registered as a member blockchain of the blockchain service network by sending a registration request to the centralized management and control platform of the blockchain service network .
  • the centralized management and control platform When the centralized management and control platform receives the registration request corresponding to the target blockchain, it can register the target blockchain to add the target blockchain as a member blockchain to the blockchain service network.
  • the centralized management and control platform can support the registration of user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain.
  • the subsequent service provider can integrate the contract execution logic contained in the user smart contract deployed on the target blockchain to generate the target user service , or, integrate the contract execution logic contained in the user smart contract deployed on the target blockchain with the contract execution logic contained in the user smart contract deployed on other member blockchains to generate the target user service, and then the The target user service is registered to the centralized management and control platform.
  • the centralized management and control platform when the centralized management and control platform registers the target blockchain, it can also create a blockchain account corresponding to the centralized management and control platform in the target blockchain. Subsequently, when the user needs to call the above-mentioned target user service registered on the centralized control platform, the user can initiate a transaction for the target block based on creating a blockchain account corresponding to the centralized control platform in the target blockchain. The contract call of the above user smart contract deployed on the chain to complete the service call for the user service.
  • a blockchain service network composed of at least one member blockchain can be built by means of registration, and based on the contract execution logic contained in the user smart contracts distributed on the member blockchains, Further register standardized user services on the centralized management and control platform; because the user services can include contract execution logic from user smart contracts on different member blockchains; therefore, in this way, it is equivalent to integrating different The service capabilities of the user smart contracts on the member blockchains integrate the contract execution logic with basic service capabilities contained in the user smart contracts on different member blockchains to generate services with more complex service capabilities, making The service capabilities of user smart contracts deployed on different member blockchains can be fully circulated and shared among member blockchains, thereby fundamentally solving the mutual isolation between member blockchains and providing The problem of information islands caused by the failure of integrated service capabilities.
  • FIG. 1 is a network architecture diagram of a blockchain service network shown in an exemplary embodiment of this specification.
  • the network architecture of the above-mentioned blockchain service network may include a blockchain service network composed of several member blockchains, a target blockchain network to be registered, and a network for blockchain services A centralized management and control platform for network management. It should be noted that initially, there are no member blockchains in the blockchain service network, and the target blockchain can only be added to the blockchain service network after registration through the centralized management platform.
  • the target blockchain network to be registered shown in Figure 1 refers to a blockchain network that has not yet joined the blockchain service network.
  • the above-mentioned target blockchain network can register and interact with the centralized management and control platform. To apply to join the above target blockchain network as a member blockchain.
  • the first member blockchain, the second member blockchain and the third member blockchain shown in FIG. 1 refer to the member blockchains that have joined the aforementioned blockchain service network.
  • At least some of the member blockchains in the aforementioned blockchain service network may be heterogeneous blockchains.
  • heterogeneous blockchains in a narrow sense usually refer to significant differences in the value of circulation on the blockchain; that is, between two blockchains with significant differences in the value of circulation, usually Call it a heterogeneous blockchain.
  • the Bitcoin network and Ethereum are heterogeneous blockchains in a narrow sense.
  • heterogeneous blockchain refers to the obvious differences in the type of blockchain and/or the adopted blockchain protocol; that is, there are obvious differences in the type of blockchain and/or the adopted blockchain protocol. Between two blockchains, it can usually be called a heterogeneous blockchain.
  • ANT CHAIN and HyperLedger Fabric blockchain are heterogeneous blockchains in a broad sense.
  • the contract execution logic expressed by the contract code in these user smart contracts can usually include multiple contract execution logics corresponding to different basic service capabilities.
  • the contract execution logic contained in a smart contract can usually be in the form of a function, and a smart contract can contain multiple functions corresponding to different service functions.
  • the centralized management and control platform shown in FIG. 1 may specifically be a service platform for centralized management of the aforementioned blockchain service network.
  • the hardware device carrying the centralized management and control platform may be a server, or a server cluster based on several servers, which is not particularly limited in this specification.
  • the above-mentioned centralized management and control platform can manage members of the above-mentioned blockchain service network; for example, it can be responsible for the registration of member blockchains in the blockchain service network, joining and exiting the network, and so on.
  • the above-mentioned centralized management and control platform can also be used to realize cross-chain access between member blockchains; for example, in practical applications, a cross-chain service component can be installed on the above-mentioned centralized management and control platform, The cross-chain service component is specifically used to realize cross-chain data interaction between member blockchains.
  • Each member blockchain that joins the blockchain service network can realize cross-chain data access with other member blockchains through the cross-chain service components on the above-mentioned centralized management and control platform.
  • the above-mentioned centralized management and control platform in the process of centralized management of each member block chain, can also issue and deploy system smart contracts for cross-chain data access to each member block chain, so that each member block
  • the chain network can realize cross-chain data access with other member blockchains based on the above-mentioned system smart contracts deployed.
  • the above-mentioned centralized management and control platform can also support the registration of user intelligence deployed on each member blockchain.
  • the user service generated by the contract execution logic combination contained in the contract.
  • the above-mentioned user services specifically refer to services with more complex service capabilities generated by combining contract execution logic with basic service capabilities contained in user smart contracts on different member blockchains.
  • the contract execution logic with basic service capabilities contained in user smart contracts distributed on each member blockchain can be combined as basic service components to generate more complex user services, and then the user service Registered to the centralized management and control platform as a standardized service for users to call.
  • the user service registered on the above-mentioned centralized management and control platform may specifically include at least one contract execution logic contained in the user smart contract deployed on each member blockchain, according to the The logical sequence of the service logic corresponding to the user service is combined to generate the service.
  • the service logic corresponding to the user service and the logical sequence of the service logic usually depend on the user's specific service registration requirements, and in practical applications, the user can usually customize it based on actual needs.
  • At least part of the contract execution logic in the contract execution logic that is combined to generate the above-mentioned user services may correspond to user smart contracts deployed on different member blockchains respectively.
  • users can combine the contract execution logic contained in user smart contracts distributed on different member blockchains to generate a user service.
  • At least part of the contract execution logic in the contract execution logic for generating the above-mentioned user services can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or, it can also be The multiple contract execution logic contained in the same user smart contract originating from the same member blockchain is not specifically limited in this specification.
  • the contract execution logic contained in each user smart contract deployed on each member blockchain can be freely combined to generate user services with more complex service capabilities.
  • the centralized platform can combine the above blocks
  • the access authority of the contract execution logic contained in the user smart contract deployed on each member blockchain in the chain service network is open to the users of the service provider.
  • the centralized platform opens the access rights of the contract execution logic contained in the user smart contracts deployed on the member blockchains of the above-mentioned blockchain service network to the users of the service provider, in order to maximize the protection of all
  • the data privacy and security of each user smart contract deployed on the member blockchain can be selectively opened to the service provider's access rights to only part of the contract execution logic contained in the user smart contract deployed on the member blockchain. user.
  • contract execution logic that does not have open access rights, it cannot be used to combine and generate user services.
  • the centralized management and control platform can also support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain on the centralized management and control platform.
  • the user services registered on the centralized management and control platform can be services generated by combining at least one contract execution logic registered on the centralized management and control platform.
  • the centralized management and control platform can support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain as a basic service component on the centralized management and control platform; where the basic service component will be used as a combined
  • the user service registered on the centralized management and control platform can be a service generated by combining at least one basic service component registered on the centralized management and control platform.
  • the deployer or manager of the user smart contract deployed on each member blockchain can send a basic component registration request to the centralized management and control platform, and the basic component registration request can include the execution of the target contract to be registered contained in the user smart contract Logical identification information (such as function name).
  • the centralized management and control platform When the centralized management and control platform receives the basic component registration request, it can assign a basic service component identifier to the deployment party or management party, and then the identification information of the target contract execution logic to be registered, including the target contract execution logic The address of the user's smart contract and the identification information of the member blockchain where the user's smart contract is deployed are bound to the basic service component identification to complete the registration of the basic service component.
  • the centralized management and control platform can only open the access rights of the contract execution logic registered on the centralized management and control platform to the users of the service provider, so that the users of the service provider can control the At least one contract execution logic registered on the platform can be freely combined to define new user services.
  • access to contract execution logic that is not registered on the centralized management and control platform may not be opened to service users.
  • the data privacy of user smart contracts on each member blockchain can be protected to the greatest extent, so that service providers can only freely combine the execution logic of contracts registered on the centralized management and control platform to customize new ones. user services without access to the smart logic of contracts that have not been opened.
  • the centralized management and control platform can output the registered contract execution logic to the user of the service provider through a visual interface, so as to open the access rights of the contract execution logic registered on the centralized management and control platform to The user of the service provider can then obtain at least one contract execution logic selected by the user of the service provider in the visual interface, and then execute the logic of at least one contract selected by the user of the service provider in the visual interface, according to the The user of the service provider needs to combine the logical sequence of the service logic corresponding to the registered user service to generate the user service.
  • the contract execution logic contained in the user's smart contract deployed on each member blockchain may involve user privacy or other contract execution logic that is not easy to open; therefore, in this way, the deployment in each member block
  • the deployer or manager of the user's smart contract on the chain can selectively register only part of the contract execution logic contained in the user's smart contract on the centralized management and control platform, and only register these on the centralized management and control platform
  • the access authority of the contract execution logic is open to the users of the service provider, so that the data privacy and security of the user smart contracts deployed on each member blockchain can be guaranteed to the greatest extent.
  • the centralized management and control platform can also choose to open the access rights of the contract execution logic contained in all user smart contracts deployed on the member blockchains to the users of the service provider.
  • the centralized management and control platform can no longer support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain on the centralized management and control platform.
  • the centralized management and control platform can actively scan and analyze the blockchain data of each member blockchain to obtain user smart contracts on each member blockchain Deployment status; for example, through block scanning and analysis, to obtain user smart contracts deployed on each member blockchain, as well as the contract execution logic included in each user smart contract. Then, the access rights of the contract execution logic contained in all user smart contracts deployed on the member blockchains scanned and parsed are opened to the users of the service provider.
  • FIG. 2 is a flowchart of a method for forming a blockchain service network shown in this specification according to an exemplary embodiment. The method is applied to the centralized management and control platform shown in FIG. 1; the method includes The following steps.
  • Step 201 Receive a registration request corresponding to the target blockchain;
  • the above-mentioned target blockchain refers to a blockchain that needs to join the blockchain service network but has not yet completed registration.
  • the above-mentioned target blockchain can be registered as a member blockchain of the blockchain service network by registering and interacting with the centralized management and control platform of the blockchain service network, and sending a registration request to the above-mentioned centralized management and control platform.
  • the above-mentioned registration request may specifically be initiated by a user with the registration authority of the above-mentioned target block chain through a user account registered on the above-mentioned centralized management and control platform;
  • the users with the registration permission of the chain, the user account registered on the above-mentioned centralized management and control platform can specifically include the system administrator account in the above-mentioned centralized management and control platform, the manager of the above-mentioned target blockchain registered on the above-mentioned centralized management and control platform.
  • the user account that sends the registration request specifically refers to the centralized account registered in the centralized management and control platform, not the blockchain account registered in each member blockchain.
  • some basic registration information related to the above target blockchain to be registered may be included.
  • the above-mentioned basic registration information may specifically include, access address information of the above-mentioned target blockchain, and blockchain configuration information related to the above-mentioned target blockchain, and so on.
  • the above-mentioned access address information of the target blockchain is specifically used to establish a network connection with the centralized management and control platform; in practical applications, the above-mentioned access address information may specifically include one or more nodes in the above-mentioned target blockchain
  • the domain name information or IP address information corresponding to the device enables the centralized management and control platform to establish a communication connection with one or more node devices in the target blockchain based on the above domain name information or IP address information.
  • the above block chain configuration information may specifically include any form of information that can be used to represent the basic configuration of the above target block chain; for example, the above block chain configuration information may specifically include the block corresponding to the above target block chain Chain type information, protocol type information of the blockchain protocol adopted by the target blockchain, and algorithm type information of the consensus algorithm adopted by the target blockchain, etc.
  • the above registration request can be expressed in the following data format:
  • the domain name information of the above-mentioned target blockchain is "chain001.io”
  • its blockchain type is “Common chain (public chain)”
  • the blockchain protocol it has adopted is " Polkadot (Poca)”.
  • the data format shown above may also contain other forms of data content, which will not be listed in this specification.
  • Step 202 In response to the registration request, perform registration processing for the target blockchain, so as to add the target blockchain as a member blockchain to the blockchain service network; the registration processing includes Create a blockchain account corresponding to the centralized management and control platform in the target blockchain, and the blockchain account is used to initiate a target user service registered on the centralized management and control platform when the service user calls The contract call of the target user smart contract deployed on the target blockchain; wherein, the user service includes the contract execution logic of the target user smart contract deployed on the target blockchain.
  • the centralized management and control platform When the centralized management and control platform receives a registration request corresponding to the target blockchain, it can respond to the registration request and conduct a legality check on the registration request; for example, the legality check on the registration request may specifically include checking the Whether the initiator of the registration request has the corresponding registration authority; and whether the data format in the registration request meets the preset rules or format requirements, and so on.
  • the centralized management and control platform After the centralized management and control platform completes the legality check for the registration request, if the registration request passes the legality check, the centralized management and control platform can further register the target blockchain based on the data content carried in the registration request Process to add the target blockchain as a member blockchain to the blockchain service network.
  • the registration processing of the target blockchain by the centralized management and control platform may specifically include creating a blockchain account corresponding to the centralized management and control platform in the target blockchain.
  • the private key is held by the management user of the centralized management and control platform, and then calculate and generate a corresponding account based on the public key Address (for example, the account address can usually be a hash value calculated by the public key), and then create a blockchain account corresponding to the account address in the target blockchain.
  • the public key Address for example, the account address can usually be a hash value calculated by the public key
  • the types of accounts supported by the blockchain usually include external accounts and contract accounts.
  • An external account is an account directly controlled by a user, also called a user account.
  • the contract account is created by the user through an external account and contains an account of the contract code (that is, a smart contract).
  • the creation of a blockchain account corresponding to the centralized management and control platform in the target blockchain described above may specifically be an external account. After the corresponding blockchain account is created for the centralized management and control platform in the target blockchain, the centralized management and control platform has obtained the legal user identity in the target blockchain, so that the centralized management and control platform Based on the external account, a contract call for the user's smart contract deployed in the target blockchain can be initiated.
  • the registration processing of the target blockchain by the centralized management and control platform may include, in addition to creating a blockchain account corresponding to the centralized management and control platform in the target blockchain, it may also include Other forms of registration processing related to the registration process.
  • the registration process performed by the centralized management and control platform on the target blockchain may specifically include deploying at least one system smart contract in the target blockchain; wherein, the above-mentioned at least one system smart contract specifically Can include a target system smart contract for cross-chain communication with other member blockchains.
  • target system smart contract for cross-chain communication with other member blockchains, it may also include system smart contracts for implementing other basic management functions; for example, at least one of the above system smart contracts may also include Smart contracts for service management of the target blockchain, and smart contracts for service incentives for users registered on the centralized management and control platform for user services or service solutions, etc., will not be discussed one by one in this manual. enumerate.
  • Fig. 3 is a flow chart of the registration process for the target blockchain shown in this specification, including the following execution steps: Step 301, the registration direction centralized platform initiates the registration corresponding to the target blockchain request; after receiving the above registration request, the centralized management and control platform can respond to the registration request and start the registration process for the above target blockchain.
  • the registration process for the above-mentioned target blockchain may include the registration process flow shown in the following steps 302-306.
  • Step 302 saving the blockchain configuration information of the target blockchain.
  • Step 303 establish communication connections with at least some node devices in the target blockchain based on the access address information of the target blockchain;
  • Block chain configuration information for example, the above block chain configuration information may include access address information of the above target block chain, configuration information related to the above target block chain, and so on.
  • the centralized management and control platform can obtain the above-mentioned blockchain configuration information carried in the registration request, and then perform subsequent registration processing procedures for the above-mentioned target blockchain based on the obtained blockchain configuration information.
  • the centralized management and control platform can use the block chain configuration information related to the target block chain read from the registration request as the configuration information of the member block chains in the local database. storage.
  • the centralized management and control platform can maintain an information base for storing the blockchain configuration information related to each member blockchain in the above-mentioned blockchain service network, and the centralized management and control platform can read from the above-mentioned registration request Get the block chain configuration information related to the target block chain, and store it in the information base as the block chain configuration information of the member block chains.
  • the centralized management and control platform After the centralized management and control platform stores the block chain configuration information related to the target block chain as the configuration information of the member block chains in the local database, it can further base on the above-mentioned information read from the registration request.
  • the access address information of the target blockchain establishes communication connections with at least some of the node devices in the target blockchain.
  • the above-mentioned access address information may specifically include domain name information or IP address information corresponding to one or more node devices in the above-mentioned target blockchain, and the centralized management and control platform may be based on the above-mentioned domain name information or IP address information, and the above-mentioned A communication connection is established between one or more node devices in the target blockchain.
  • the centralized management and control platform can establish communication connections with all node devices in the above-mentioned target blockchain, or only with some key node devices in the above-mentioned target blockchain (such as storing complete block The full node of the chain ledger) establishes a communication connection.
  • Step 304 acquire block chain data related to the target block chain from node devices in the target block chain based on the communication connection.
  • the centralized management and control platform After the centralized management and control platform has established a communication connection with at least some node devices in the target blockchain, it can continue to obtain the blockchain related to the target blockchain from the node devices in the target blockchain based on the communication connection. data.
  • the block chain data related to the target block chain obtained from the node device in the target block chain may specifically include any form of data related to the target block chain, and no special description will be made in this specification. Limitation; for example, in one example, the block chain data related to the target block chain obtained from the node device in the target block chain may specifically include the complete block chain ledger of the target block chain, and The authentication root data corresponding to the blockchain ledger of the target blockchain, the public key data of each node device in the target blockchain, and so on.
  • the authentication root data corresponding to the blockchain ledger can usually include the genesis block data in the blockchain ledger, the block header data of each block, etc., which can be used for Data that authenticates the data stored in the blockchain ledger.
  • the centralized management and control platform After acquiring the blockchain data related to the target blockchain from the node devices in the target blockchain, the centralized management and control platform can store the acquired blockchain data in the database.
  • the centralized management and control platform can maintain an information base for storing the blockchain configuration information related to each member blockchain in the above-mentioned blockchain service network, and the centralized management and control platform can send The block chain configuration information related to the target block chain is read and stored in the information base as the block chain configuration information of the member block chains.
  • the centralized management and control platform obtains the block chain data related to the target block chain from the node device in the target block chain, it can also use the obtained block chain data in the above information base and the above target
  • the blockchain configuration information related to the blockchain is stored associatively.
  • Step 305 creating a blockchain account corresponding to the centralized management and control platform on the target blockchain.
  • the centralized management and control platform After the centralized management and control platform obtains the blockchain data related to the target blockchain from the node device in the target blockchain based on the above-mentioned communication connection, it can also continue to create a centralized management and control platform on the above-mentioned target blockchain A corresponding blockchain account. Among them, the specific process of creating the above-mentioned blockchain account will not be described in detail.
  • the centralized management and control platform After the corresponding blockchain account is created for the centralized management and control platform on the above target blockchain, the centralized management and control platform has obtained the legal user identity in the target blockchain and has the ability to call the above target area The ability of user smart contracts deployed on the block chain, the subsequent centralized management and control platform can initiate a contract call for the user smart contract deployed on the target block chain based on the block chain account.
  • a blockchain account list can be maintained specifically.
  • the block chain account list may specifically include the block chain accounts corresponding to the above-mentioned centralized management and control platforms created on each member block chain. After the corresponding blockchain account is created for the centralized management and control platform on the above-mentioned target blockchain, the blockchain account can be added to the above-mentioned blockchain account list for maintenance.
  • each member blockchain may be the same or different.
  • the blockchain accounts corresponding to the above-mentioned centralized management and control platforms created on each member blockchain can use the same preset blockchain account by default.
  • each member blockchain can reserve a fixed blockchain account in advance as the blockchain account corresponding to the centralized management and control platform.
  • Step 306 deploying at least one system smart contract in the target blockchain; wherein, the at least one system smart contract includes a target system smart contract for cross-chain communication with other member blockchains.
  • the centralized management and control platform can continue to deploy at least one system smart contract in the target blockchain.
  • the above at least one system smart contract may specifically include a target system smart contract for cross-chain communication with other member blockchains.
  • the above at least one system smart contract may include not only the target system smart contract for cross-chain communication with other member blockchains, but also the system smart contract for network governance of the target blockchain network,
  • the system smart contracts used to provide service incentives for users related to user services registered on the centralized management and control platform, etc., are not specifically limited in this specification.
  • the contract execution logic contained in the above-mentioned system smart contract is usually related to some management functions on the centralized management and control platform.
  • the contract execution logic contained in the system smart contract for network governance as mentioned above can be the execution logic related to the function of the centralized management and control platform for the network governance of the above-mentioned blockchain service network;
  • the contract execution logic contained in the system smart contract used to provide service incentives for users related to user services registered on the centralized management and control platform may be related to the centralized management and control platform for users related to registered user services. Execution logic associated with the function of the incentive.
  • the contract execution logic contained in the above user smart contract is usually related to the user service logic defined by the user on the member blockchain.
  • Step 307 returning a successful registration message corresponding to the target blockchain to the registrar.
  • the above-mentioned target blockchain will be successfully added to the above-mentioned block as a member blockchain Chain service network.
  • the above-mentioned centralized management and control platform returns a successful registration message corresponding to the above-mentioned target blockchain to the above-mentioned registrant to notify the above-mentioned registrant that the target blockchain has successfully joined the above-mentioned blockchain as a member blockchain.
  • Blockchain service network
  • the target blockchain joins the blockchain service network as a member blockchain
  • users of subsequent service providers can, according to their own needs, deploy the target smart contract on the target blockchain
  • the contract execution logic included is combined with the contract execution logic contained in the user smart contracts deployed on other member blockchains to generate target user services, and then register the target user services to the centralized management and control platform.
  • contract execution logic that is combined to generate the above-mentioned target user service will include the contract execution logic contained in the above-mentioned target user smart contract deployed on the above-mentioned target blockchain.
  • the service user When the service user needs to call the above-mentioned target user service registered on the centralized control platform, it can create a blockchain account corresponding to the centralized management and control platform in the target blockchain, and use the blockchain account The blockchain identity of the representative to initiate a contract call for the above-mentioned target user contract deployed on the target blockchain.
  • the above-mentioned centralized management and control platform can specifically deploy the target user service as a standardized service, so as to be open to service users to call.
  • the above-mentioned centralized management and control platform deploys the above-mentioned target user services that have been registered, it can specifically adopt a distributed deployment method or a centralized deployment method.
  • the above-mentioned centralized management and control platform deploys the above-mentioned target user services
  • the above-mentioned user services can be distributed and deployed on each member blockchain in the form of system smart contracts for service Called by the consumer.
  • the contract call logic that constitutes the above target user service may include contract execution logic contained in multiple user smart contracts deployed on multiple member blockchains
  • users may also need to call across chains when calling the above target user service
  • Multiple user smart contracts distributed on multiple member blockchains therefore, when the above-mentioned centralized management and control platform deploys user services registered on the centralized management and control platform, it can specifically develop corresponding cross-chain call logic for the user services , and then deploy the cross-chain call logic on each member blockchain as the contract execution logic of the system smart contract.
  • the contract execution logic contained in the above-mentioned system smart contract is usually related to some management functions on the centralized management and control platform. Therefore, in this way, it is equivalent to developing the corresponding cross-chain call logic for the user service, and as part of the execution logic related to some management functions on the centralized management and control platform, it is deployed in the form of system smart contracts in each member on the blockchain.
  • the above-mentioned target system smart contract for cross-chain communication may include cross-chain call logic corresponding to the above-mentioned target user service.
  • the cross-chain call logic can be specifically used to: determine the user smart contracts corresponding to the execution logic of each contract that generates the target user service, and deploy the member blockchains of the above-mentioned user smart contracts, and based on the above-mentioned member areas
  • the blockchain account created in the blockchain corresponding to the centralized management and control platform initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical sequence of the service logic corresponding to the above-mentioned target user services.
  • service users can call the above-mentioned target user services that have been registered on the centralized management and control platform by calling the above-mentioned cross-chain call logic contained in the target system smart contract.
  • the service configuration information corresponding to the above-mentioned target user service can also be maintained, as well as the block chain created for the above-mentioned centralized platform on each member block chain account list.
  • the service configuration information corresponding to the above-mentioned target user services and the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain can be stored in the account storage space of the above-mentioned target system smart contract ;
  • the above-mentioned service configuration information and the above-mentioned block chain account list can be specifically organized into the form of key-value key-value pairs, which are constructed into a Merkle tree and stored in the storage medium carried by the node devices in each member block chain; Store the root hash of the Merkle tree in the account structure of the contract account corresponding to the target system smart contract.
  • the above-mentioned service configuration information may specifically include: the identification information (such as the function name) of each contract execution logic that is combined to generate the above-mentioned target user service, the contract address of each user smart contract containing the above-mentioned contract execution logic, and the deployment of each of the above-mentioned user smart contracts.
  • the identification information such as the function name
  • the above-mentioned cross-chain calling logic may be specifically composed of the following execution logic: query logic, which is used to query the above-mentioned corresponding relationship in the service configuration information corresponding to the above-mentioned target user service maintained in the above-mentioned target system smart contract, Each contract execution logic of the above-mentioned target user service, each user smart contract including the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts are generated in a determined combination.
  • Cross-chain logic which is used to determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, each member blockchain that deploys the above-mentioned user smart contracts, and the created and According to the logical sequence of the service logic corresponding to the above-mentioned target user services, the information such as the blockchain account corresponding to the centralized platform initiates cross-chain calls for the smart contracts of the above-mentioned users respectively.
  • the specific implementation details of cross-chain calling user smart contracts deployed on other member blockchains will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
  • the above service configuration information may also include: based on the logic sequence of the service logic corresponding to the above target user service, the invocation sequence determined for each contract execution logic that is combined to generate the above target user service .
  • the details can be read Take the above call sequence included in the above service configuration information, and then initiate cross-chain calls for the above user smart contracts according to the read above call sequence.
  • the logical sequence of the service logic corresponding to the above-mentioned target user service may not be maintained in the above-mentioned target system smart contract as part of the service configuration information, but on the above-mentioned centralized management and control platform.
  • the above-mentioned centralized management and control platform performs off-chain interaction, reads the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform, and then initiates a cross-connection of the smart contracts for each of the above-mentioned users according to the above-mentioned call sequence read. chain calls.
  • the above-mentioned target system smart contract can specifically interact with the above-mentioned centralized management and control platform through an oracle oracle program, and read the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform.
  • the specific implementation details of the above-mentioned target system smart contract interacting with the above-mentioned centralized management and control platform through the oracle oracle program will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
  • the centralized management and control platform deploys the target system smart contracts for cross-chain communication on each member blockchain
  • users of subsequent service providers register on the above-mentioned centralized management and control platform
  • the centralized management and control platform can also store the service configuration information corresponding to the newly registered user service in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform deploys the target system smart contract for cross-chain communication on each member blockchain
  • the centralized management and control platform can also store the blockchain account corresponding to the centralized management and control platform created on the new member blockchain into the above target system smart contract, so that the target system smart contract Update the list of blockchain accounts maintained in .
  • the centralized management and control platform described above updates the service configuration information maintained in the smart contract of the target system and the list of blockchain accounts. Use the offline update method.
  • the centralized management and control platform can immediately store the service configuration information corresponding to the newly registered user service in the above-mentioned The target system smart contract to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform can also immediately transfer the blockchain account corresponding to the centralized management and control platform created on the new member blockchain, Stored in the above target system smart contract to update the blockchain account list maintained in the target system smart contract.
  • the offline update method each time the target system smart contract is invoked, it can trigger an update of the service configuration information and blockchain account list maintained in the target system smart contract.
  • the centralized management and control platform may first cache the service configuration information corresponding to the newly registered user service.
  • the cached service configuration information is stored in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform can also first transfer the block corresponding to the centralized management and control platform created on the new member blockchain to The chain account is cached.
  • the cached blockchain account is stored in the target system smart contract to update the list of blockchain accounts maintained in the target system smart contract.
  • the execution logic of data synchronization can be introduced into the above-mentioned target system smart contract, so that each time the above-mentioned target system smart contract is called, the execution logic of data synchronization can be run first, and the service configuration information can be communicated with the centralized management and control platform Synchronize with the data of the blockchain account list, update the service configuration information and blockchain account list maintained in the smart contract of the above target system based on the service configuration information and blockchain accounts cached by the centralized management and control platform, and then continue to execute The contract execution logic that is called this time.
  • the above-mentioned user service when the above-mentioned centralized management and control platform deploys the above-mentioned target user service, the above-mentioned user service can also be centrally deployed on the above-mentioned centralized management and control platform in the form of a service interface for service use party calls.
  • the calling method related to the above-mentioned target user service may be included in the service interface (for example, the calling method may specifically be in the form of an interface function), and the calling logic corresponding to these calling methods may specifically include: determining a combination to generate the target user service
  • Each user smart contract corresponding to the execution logic of each contract, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain accounts corresponding to the centralized management and control platform created in the above-mentioned member blockchains In accordance with the logical order of the service logic corresponding to the above-mentioned target user services, respectively initiate cross-chain calls for the smart contracts of each of the above-mentioned users.
  • the service user when it needs to call the above-mentioned target user service that has been registered on the above-mentioned centralized management and control platform, it can initiate a call request for the above-mentioned service interface to call the above-mentioned target user service.
  • the centralized management and control platform can respond to the call request and execute the above call method contained in the service interface to determine the execution logic of each contract corresponding to the combined generation of the target user service.
  • User smart contracts, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain accounts corresponding to the centralized management and control platform created in the above-mentioned member blockchains, according to the corresponding target user services The logical order of the service logic is to initiate cross-chain calls for the above-mentioned user smart contracts, and then summarize the call results of the cross-chain calls for the above-mentioned user smart contracts, and return the above-mentioned call results to the above-mentioned service users.
  • the service configuration information corresponding to the above-mentioned target user service described in the above embodiment, and the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain can be specifically maintained in the above-mentioned centralized management and control platform; for example, in practical applications, the above-mentioned service configuration information and the above-mentioned blockchain account list can be written into the above-mentioned service interface in the form of call parameters related to the service interface.
  • the invocation logic corresponding to the invocation method related to the above-mentioned target user service contained in the above-mentioned service interface may specifically include: query logic, used to query the above-mentioned corresponding relationship in the above-mentioned service configuration information, so as to determine the combinations that generate the above-mentioned target user service.
  • Contract execution logic each user smart contract including the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, after determining the member blockchains that deploy the above-mentioned user smart contracts, further query the above-mentioned blockchain account list to determine the blockchain corresponding to the centralized platform created on the above-mentioned member blockchains account.
  • Cross-chain logic which is used to query the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains according to the above-mentioned query logic, and initiate respectively according to the logical order of the service logic corresponding to the above-mentioned target user services Cross-chain calls for the above-mentioned user smart contracts.
  • the above-mentioned service configuration information maintained by the centralized management and control platform may also include: based on the logic sequence of the service logic corresponding to the above-mentioned target user service, the contract execution logic determined for the combination of the above-mentioned target user service call sequence.
  • the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts according to the logical sequence of the service logic corresponding to the above-mentioned target user service
  • the above-mentioned call can be read from the above-mentioned service configuration information. order, and then initiate cross-chain calls for the smart contracts of each user above in accordance with the read order of the above calls.
  • Fig. 4 is a flowchart of a service registration method for registering user services on a centralized management and control platform according to an exemplary embodiment of this specification, and the method is applied to the centralized management and control platform shown in Fig. 1 ; The method includes the following steps.
  • Step 401 receiving the user service registration request initiated by the service provider;
  • the above-mentioned service provider may specifically be a user who has a service requirement for registering user services on the centralized management and control platform.
  • Users of the service provider can combine the contract execution logic contained in the user smart contracts deployed on each member blockchain according to their own service requirements to generate user services, and then register the user services to the centralized Control platform.
  • the user of the above-mentioned service provider may specifically be a user who has registered a blockchain account on any member blockchain on the above-mentioned blockchain service network. That is to say, the user of the service provider may specifically be a user member belonging to a certain member blockchain in the above-mentioned blockchain service network.
  • the user of the service provider can combine the contract execution logic contained in the smart contract deployed on the member blockchain with the contract execution logic contained in the user smart contract deployed on other member blockchains according to their own service needs.
  • the included contract execution logic is combined to generate user services, and then register the user services to the centralized management and control platform.
  • the user of the above-mentioned service provider may also be a user who has not registered a blockchain account on each member blockchain on the above-mentioned blockchain service network, but a user in the above-mentioned centralized management and control A user who has registered a user account on the platform; that is, the user of the above-mentioned service provider is a user member who does not belong to any member blockchain in the above-mentioned blockchain service network, but belongs to the above-mentioned centralized management and control platform A user member of .
  • the user of the above-mentioned service provider may specifically be a platform administrator who has registered an administrator account on the centralized management and control platform.
  • the users of the above-mentioned service providers can, based on their own overall understanding of the deployment of user smart contracts on each member blockchain, and then according to their own service needs, deploy the smart contracts deployed on each member blockchain
  • the contract execution logic contained in the user smart contract is freely combined to generate user services, and then register the user services to the centralized management and control platform.
  • users of the above-mentioned service provider When users of the above-mentioned service provider register user services on the centralized management and control platform, it can specifically be completed through a user client docked with the above-mentioned centralized management and control platform. Users of the above-mentioned service provider can initiate a service registration request to the above-mentioned centralized management and control platform by performing a service registration operation on the above-mentioned user client, so that the above-mentioned centralized management and control platform can respond to the service registration request, and on the above-mentioned centralized management and control platform Sign up for user services.
  • Step 402 in response to the user service registration request, determine a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes user smart contracts deployed on each member blockchain Included contract execution logic; when the above-mentioned centralized management and control platform receives the user service registration request initiated by the user of the above-mentioned service provider, it can respond to the user service registration request to determine the user’s need to register for the implementation of the service provider.
  • the contract execution logic set of the service function corresponding to the user service wherein, the contract execution logic set includes the contract execution logic contained in the user smart contract deployed on each member blockchain.
  • At least part of the contract execution logic in the contract execution logic generated by combining the above user services can correspond to the user smart contracts deployed on different member blockchains respectively.
  • at least part of the contract execution logic in the contract execution logic set may be the contract execution logic contained in user smart contracts on different member blockchains.
  • at least part of the contract execution logic in the contract execution logic that generates the above-mentioned user services can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or , can also be derived from multiple contract execution logic contained in the same user smart contract in the same member blockchain.
  • At least part of the contract execution logic in the contract execution logic set can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or, it can also be derived from The multiple contract execution logic contained in the same user smart contract in the same member blockchain is not specifically limited in this specification.
  • the centralized management and control platform can support the registration of the contract execution logic included in the user smart contracts deployed on each member blockchain on the centralized management and control platform.
  • the user services registered on the centralized management and control platform can be services generated by combining at least one contract execution logic registered on the centralized management and control platform.
  • the above-mentioned centralized management and control platform responds to the above-mentioned user service registration request to determine the contract execution logic set for realizing the service function corresponding to the user service that the user of the above-mentioned service provider needs to register, then specifically, it can be obtained from the above-mentioned In the contract execution logic registered on the centralized management and control platform, the contract execution logic set used to realize the service function corresponding to the user service is determined.
  • the centralized management and control platform can output the registered contract execution logic to the user of the service provider through the visual interface on the above-mentioned business user client, so that the centralized management and control platform will The access rights of the registered contract execution logic are open to the users of the service provider.
  • the users of the service provider can select at least one registered contract execution logic from the above-mentioned visual interface based on their own service requirements, and carry the identification information (such as the function name) corresponding to the selected contract execution logic in the above-mentioned user service registration request, and then send the service registration request to the above-mentioned centralized management and control platform.
  • identification information such as the function name
  • the above-mentioned centralized management and control platform in response to the above-mentioned user service registration request, determines the contract execution for realizing the service function corresponding to the user service from the contract execution logic registered on the above-mentioned centralized management and control platform.
  • the above-mentioned identification information carried in the user service registration request can be obtained, and then at least one contract execution logic corresponding to the above-mentioned identification information in the registered contract execution logic can be determined as the corresponding one for realizing the above-mentioned user service
  • a collection of contract execution logic for service functions are examples of contract execution logic for service functions.
  • the user of the above-mentioned service provider may define service logic for the above-mentioned user services that need to be registered based on their own service requirements.
  • the above-mentioned user service registration request it is also possible not to carry the identification information corresponding to at least one registered contract execution logic selected from the above-mentioned visual interface, but to carry the service logic related to the service logic defined by the user of the service provider for the above-mentioned user service Description.
  • the description information may specifically be a function description related to the user service that the user needs to register.
  • the above-mentioned centralized management and control platform in response to the above-mentioned user service registration request, determines the contract execution for realizing the service function corresponding to the user service from the contract execution logic registered on the above-mentioned centralized management and control platform.
  • the registered contract execution logic can be matched with the service logic indicated by the description information; and then according to the matching result, the registered contract execution logic can be matched with the service logic indicated by the description information.
  • At least one contract execution logic that matches the logic is determined as a set of contract execution logic for realizing the service function corresponding to the above user service.
  • the centralized management and control platform can find the set of contract execution logic that can be combined to generate the above user services from the registered contract execution logic through logical matching, so that some service logics that execute logic for each registered contract Users who don't know much can also independently register new user services on the centralized management and control platform based on their own service needs, which can improve the convenience of registering user services on the centralized management and control platform.
  • Step 403 combine the contract execution logic in the contract execution logic set to generate the user service, so as to complete the service registration of the user service.
  • the above-mentioned centralized management and control platform determines the contract execution logic set used to realize the service functions corresponding to the above-mentioned user services from the contract execution logic registered on the above-mentioned centralized management and control platform, the above-mentioned contract execution logic set can be The contract execution logic is combined to generate the above user services to complete the service registration of the above user services.
  • the above-mentioned centralized management and control platform can assign a service identifier to the user of the service provider, and then combine the contract execution logic in the above-mentioned contract execution logic set to generate a contract execution logic combination, and then Bind the contract execution logic combination with the above service identifier to complete the service registration for the above user service.
  • the contract execution logic in the above contract execution logic set can be combined in accordance with the logical order of the service logic defined by the user of the above service provider for the above user service to obtain a combination of contract execution logic, and then execute the contract
  • the logical combination is bound with the above-mentioned service identifier to complete the service registration for the above-mentioned user service.
  • the centralized management and control platform can generate corresponding service configuration information for the registered user service, and store the service generated for the user service locally configuration information.
  • an information base for storing the service configuration information corresponding to the registered user service can be maintained.
  • a new user service When a new user service is registered, it can be generated for the new user service.
  • the service configuration information of the new user service is associated with the service identifier allocated for the new user service and stored in the information base.
  • the specific content of the above-mentioned service configuration information is not particularly limited in this specification; for example, it may include: the identification information of each contract execution logic that combines and generates the above-mentioned user services, and each user smart contract containing the above-mentioned contract execution logic The corresponding relationship between the contract address of , and the blockchain identification of each member blockchain that deploys the above-mentioned user smart contracts, and so on.
  • the above-mentioned centralized management and control platform can also support user services generated by At least one user service composition that has registered generates a service solution.
  • Fig. 5 is a flowchart of a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment of this specification. This method can also be applied to the center shown in Fig. 1 management and control platform; the method includes the following steps.
  • Step 501 receiving a solution registration request initiated by the service provider; wherein, the above-mentioned service solution specifically refers to combining at least one user service that has been registered on the above-mentioned centralized management and control platform to generate more complex service capabilities s solution.
  • users of the above-mentioned service provider When users of the above-mentioned service provider register user services on the centralized management and control platform, it can also be done through a user client docked with the above-mentioned centralized management and control platform. Users of the above-mentioned service provider can initiate a solution registration request to the above-mentioned centralized management and control platform by performing a service registration operation on the above-mentioned user client, so that the above-mentioned centralized management and control platform can respond to the solution registration request, and in the above-mentioned centralized management and control Register service solutions on the platform.
  • Step 502 in response to the solution registration request, determine from the registered user services the set of user services used to realize the service functions corresponding to the service solution;
  • the user service set for implementing the service function corresponding to the service solution that the user of the service provider needs to register may be determined in response to the solution registration request.
  • the above-mentioned centralized management and control platform can output the registered user services to the user of the service provider through the visual interface, so that the user of the service provider can select in the visual interface for combination Generate at least one user service of the above service solution.
  • the above-mentioned solution registration request may carry the identification information corresponding to the above-mentioned at least one user service selected by the user of the service provider, and the above-mentioned centralized management and control platform responds to the above-mentioned solution registration request.
  • the user of the above-mentioned service provider may also define a service logic for the above-mentioned service solution that needs to be registered based on his own service requirements.
  • the above-mentioned solution registration request it is also possible not to carry the identification information corresponding to at least one registered user service selected from the above-mentioned visual interface, but to carry the service logic-related information defined by the user of the service provider for the above-mentioned service solution.
  • the description information may specifically be a function description related to the service solution that the user needs to register.
  • the above-mentioned centralized management and control platform in response to the above-mentioned solution registration request, determines the user service for realizing the service function corresponding to the service solution from the user services registered on the above-mentioned centralized management and control platform.
  • the service logic corresponding to the registered user service can be matched with the service logic indicated by the description information; and then according to the matching result, the registered user service and the service logic indicated by the description information can be matched.
  • At least one user service matching the service logic is determined as a user service set for realizing the service function corresponding to the above service solution.
  • Step 503 Combine the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
  • the user service set in the above-mentioned user service set can be Combine to generate the above service solutions, so as to complete the registration of the above service solutions.
  • the above-mentioned centralized management and control platform can assign a scheme identifier to the user of the service provider, and then combine the user services in the above-mentioned user service set to generate a user service combination, and then the user The service combination is bound with the above-mentioned solution ID to complete the service registration for the above-mentioned service solution.
  • the user services in the above user service set can be combined according to the logical order of the service logic defined by the user of the service provider for the above service solution to obtain a user service combination, and then the user service combination can be combined with Bind the above solution ID to complete the registration for the above service solution.
  • the centralized management and control platform can generate corresponding service configuration information for the registered service solution, and store it locally as the service solution Generated service configuration information.
  • an information base for storing the service configuration information corresponding to the registered service solution can be maintained. After a new service solution is registered, the new service can be The service configuration information generated by the solution is associated with the service identifier assigned to the new service solution and stored in the information base.
  • the specific content of the above-mentioned service configuration information is not particularly limited in this specification; for example, it may include: combining and generating the service identification of each user service of the above-mentioned service solution, and combining and generating each contract execution logic of the above-mentioned user service Identification information, the contract address of each user smart contract containing the execution logic of each contract, and the corresponding relationship between the block chain identifiers of each member block chain that deploys the above-mentioned user smart contracts, and so on.
  • the centralized management and control platform can specifically deploy the registered user service as a standardized service to open it to the service user to make the call.
  • the centralized management and control platform when the centralized management and control platform deploys registered user services, it can be deployed centrally on the centralized management and control platform in the form of a service interface, or in the form of a system smart contract, distributed in each member area on the block chain.
  • FIG. 6 is a flow chart of a method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification. This method can also be applied to the method shown in FIG. 1 A centralized management and control platform; wherein, a service interface corresponding to the registered user service is deployed on the centralized management and control platform; the method includes the following steps.
  • Step 601 obtain the invocation request for the service interface initiated by the service user; the user service registered on the above-mentioned centralized management and control platform can be deployed on the above-mentioned centralized management and control platform in the form of a service interface.
  • the service user who has the invocation requirements of the above-mentioned user services can call the user services centrally deployed on the above-mentioned centralized management and control platform by initiating a call request for the above-mentioned service interface.
  • the above-mentioned service user may specifically be a user having a calling requirement of the above-mentioned user service, or a business system having a calling requirement of the above-mentioned user service, which is not specifically limited in this description.
  • Step 602 in response to the call request, determine the user smart contracts corresponding to the contract execution logics that are combined to generate the user services, and the member blockchains that deploy the user smart contracts; Step 603, based on the The blockchain accounts corresponding to the centralized management and control platform created in each of the member blockchains respectively initiate cross-chain calls for the smart contracts of each user to complete the service call for the user service.
  • the above-mentioned service interface may specifically include a calling method related to the above-mentioned user service; for example, in practical applications, the calling method included in the above-mentioned service interface may specifically be in the form of an interface function.
  • the invocation logic corresponding to these invocation methods may specifically include: determining each user smart contract corresponding to the execution logic of each contract that is combined to generate user services, and deploying each member block chain of each user smart contract above, and based on the above-mentioned member blocks
  • the blockchain account corresponding to the centralized management and control platform created in the chain respectively initiates cross-chain calls for the above-mentioned user smart contracts.
  • the centralized management and control platform After the centralized management and control platform receives the call request from the user of the above-mentioned service user for the above-mentioned service interface, it can respond to the call request and execute the above-mentioned call method contained in the service interface to determine the combined generation of each contract of the user service.
  • the service configuration information corresponding to the registered user service can be maintained on the above-mentioned centralized management and control platform, as well as the blockchain account created for the above-mentioned centralized platform on each member blockchain. list; for example, in practical applications, the above-mentioned service configuration information and the above-mentioned blockchain account list can be written into the above-mentioned service interface in the form of invocation parameters related to the service interface.
  • the invocation logic corresponding to the invocation method related to the above-mentioned target user service contained in the above-mentioned service interface may specifically include: query logic, querying the above-mentioned corresponding relationship in the above-mentioned service configuration information, so as to determine the execution of each contract that is combined to generate the above-mentioned target user service Logic, each user smart contract containing the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, after determining the member blockchains that deploy the above-mentioned user smart contracts, further query the above-mentioned blockchain account list to determine the blockchain corresponding to the centralized platform created on the above-mentioned member blockchains account.
  • Cross-chain logic according to the above-mentioned query logic, the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains are queried, and the cross-chain calls for the smart contracts of the above-mentioned users are respectively initiated.
  • the above-mentioned user service may also be at least one contract execution logic included in the user smart contract deployed on each member blockchain, according to the service logic corresponding to the user service Services that are combined in a logical order.
  • the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts based on the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, it can specifically According to the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, and in accordance with the above-mentioned logical order, respectively initiate cross-chain calls for the above-mentioned user smart contracts.
  • the above-mentioned service configuration information maintained by the centralized management and control platform may also include: based on the logical order of the service logic corresponding to the above-mentioned user services, the execution logic of each contract for the combination of the above-mentioned user services is determined. The call sequence information that comes out.
  • the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical sequence of the service logic corresponding to the above-mentioned user services
  • the above-mentioned call sequence can be read from the above-mentioned service configuration information, and then according to The read-out of the above-mentioned call sequence initiates cross-chain calls for the smart contracts of each of the above-mentioned users respectively.
  • the centralized management and control platform After the centralized management and control platform completes the cross-chain calls for the above-mentioned user smart contracts by calling the above-mentioned service interface, it can further summarize the call results of the cross-chain calls for the above-mentioned user smart contracts, and use the above-mentioned call results as the The call result of the user service is returned to the above service user.
  • FIG. 7 is a flowchart of another method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification.
  • This method can be applied to the method shown in FIG. 1 A node device in any target member blockchain in the blockchain service network.
  • at least one system smart contract issued by the centralized management and control platform is deployed on each member blockchain in the above-mentioned blockchain service network;
  • the target system smart contract includes cross-chain call logic corresponding to the user service registered on the centralized management and control platform; the method includes the following steps.
  • Step 701 obtain the call data for the user service initiated by the service user; the user service registered on the above-mentioned centralized management and control platform can be deployed on the above-mentioned centralized management and control platform in the form of the above-mentioned system smart contract.
  • the service user who has the call requirements of the above-mentioned user services can call the above-mentioned user services decentralized and deployed on each member blockchain by initiating a contract call for the above-mentioned target system smart contract.
  • the user of the above-mentioned service can be a user who has the call requirements of the above-mentioned user services, or a user smart contract deployed on any member blockchain that has the call requirements of the above-mentioned user services.
  • a user smart contract deployed on any member blockchain that has the call requirements of the above-mentioned user services not particularly limited.
  • the user may specifically be a user who has registered a blockchain account on the above-mentioned target member blockchain.
  • the user can initiate a contract call for the above-mentioned target system smart contract deployed on the target member blockchain based on the blockchain account registered on the target member blockchain, so as to complete the service call for the above-mentioned user service.
  • the contract execution logic contained in the target user smart contract can be embedded with the above user service. set of calling relationships; for example, the contract execution logic contained in the target user smart contract refers to the user service registered on the centralized management and control platform.
  • the target user smart contract in the process of executing the included contract execution logic, can further initiate a contract call for the above-mentioned target system smart contract through nested calls between smart contracts.
  • the specific content of the above-mentioned invocation data usually also depends on the specific type of the above-mentioned service user;
  • the above-mentioned call data can specifically be that when the above-mentioned target user smart contract calls the above-mentioned target system smart contract, the target user smart contract The call message for the above-mentioned user service sent by the contract to the above-mentioned target system smart contract.
  • Step 702 in response to the call data, call the cross-chain call logic contained in the target system smart contract, determine the user smart contracts corresponding to the contract execution logics that combine to generate the user service, and deploy the various user smart contracts.
  • At least one system smart contract issued by the centralized management and control platform can be deployed on the above-mentioned target member blockchain; the above-mentioned at least one system smart contract can specifically include the target system smart contract for cross-chain communication with other member blockchains .
  • the target system smart contract may specifically include cross-chain call logic corresponding to the above-mentioned user services.
  • the contract call logic that makes up the above user services may include the contract execution logic contained in multiple user smart contracts deployed on multiple member blockchains, users may also need to call across chains when calling the above user services. Multiple user smart contracts on multiple member blockchains; therefore, when the above-mentioned centralized management and control platform deploys the above-mentioned user services, it can specifically develop the corresponding cross-chain call logic for the user service, and then use the cross-chain call logic as The contract execution logic of the above-mentioned system smart contract is deployed on the above-mentioned target member blockchain.
  • the cross-chain call logic can be specifically used to: determine the user smart contracts corresponding to the execution logic of the contracts generated by the user service, and deploy the member blockchains of the above user smart contracts, and based on the above-mentioned member blocks
  • the blockchain account created in the chain corresponding to the centralized management and control platform initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical order of the service logic corresponding to the above-mentioned target user services.
  • the service user can independently call the above-mentioned cross-chain call logic contained in the target system smart contract, and the above-mentioned target users who have registered on the centralized management and control platform The service initiates the call.
  • the node device on the above-mentioned target member blockchain When the node device on the above-mentioned target member blockchain receives the calling data initiated by the service user, it can respond to the calling data, call the above-mentioned cross-chain calling logic contained in the smart contract of the above-mentioned target system, and determine the combination to generate the user service.
  • the user may specifically be a user who has registered a blockchain account on the above-mentioned target member blockchain.
  • the above invocation data may specifically be a contract invocation transaction for the above target system smart contract packaged by the user through the blockchain account registered on the target member blockchain.
  • the above-mentioned node device After the above-mentioned node device receives the contract call transaction, it can respond to the contract call transaction and further call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
  • the contract execution logic contained in the target user smart contract can be embedded with the above user service.
  • the above invocation data may specifically be an invocation message sent by the target user smart contract to the above target system smart contract.
  • the above-mentioned node device can respond to the call message and further call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
  • the service configuration information corresponding to the above-mentioned user service and the blockchain account created for the above-mentioned centralized platform on each member blockchain can also be maintained list.
  • the service configuration information corresponding to the above-mentioned user services, as well as the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain can be specifically stored in the account storage space of the above-mentioned target system smart contract;
  • the above-mentioned service configuration information and the above-mentioned block chain account list can be organized into the form of key-value key-value pairs, which can be constructed into a Merkle tree and stored in the storage medium carried by the node devices in each member block chain;
  • the root hash of the Merkle tree is stored in the account structure of the contract account corresponding to the target system smart contract.
  • the above-mentioned service configuration information may specifically include: the identification information (such as the function name) of each contract execution logic combined to generate the above-mentioned user service, the contract address of each user smart contract containing the above-mentioned contract execution logic, and the deployment of each of the above-mentioned user smart contracts.
  • the identification information such as the function name
  • the contract address of each user smart contract containing the above-mentioned contract execution logic the deployment of each of the above-mentioned user smart contracts.
  • the above-mentioned cross-chain call logic may specifically consist of the following execution logic: query logic, used to query the above-mentioned corresponding relationship in the service configuration information corresponding to the above-mentioned user service maintained in the above-mentioned target system smart contract, and Determine the combination of each contract execution logic for generating the above user services, each user smart contract containing the above each contract execution logic, and each member block chain that deploys the above each user smart contract. And, it can also be used to further query the above-mentioned blockchain account list maintained in the above-mentioned target system smart contract after determining the member blockchains that deploy the above-mentioned user smart contracts, so as to determine the The created blockchain account corresponding to the centralized platform.
  • Cross-chain logic which is used to determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, each member blockchain that deploys the above-mentioned user smart contracts, and the created and Information such as the blockchain account corresponding to the centralized platform initiates cross-chain calls for the above-mentioned user smart contracts.
  • the specific implementation details of cross-chain calling user smart contracts deployed on other member blockchains will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
  • the node device on the target member blockchain when it receives the call data initiated by the service user, it can respond to the call data, call the above query logic contained in the target system smart contract, and query the above correspondence , to determine the combination to generate each contract execution logic of the above-mentioned user services, each user smart contract containing the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, further query the above-mentioned block chain account list to determine the block chain accounts corresponding to the centralized platform created on the above-mentioned member block chains. Then, the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract can be further invoked, and based on the above-mentioned determined blockchain account, respectively initiate cross-chain calls for the smart contracts of each user.
  • the above-mentioned user service may also be at least one contract execution logic included in the user smart contract deployed on each member blockchain, according to the service logic corresponding to the user service Services that are combined in a logical order.
  • the above-mentioned cross-chain logic is specifically used for: the user smart contracts that contain the execution logic of the above-mentioned contracts determined based on the query logic, the member blockchains that deploy the above-mentioned user smart contracts, and the Information such as the blockchain accounts corresponding to the centralized platform created on the member blockchains, respectively initiate cross-chain calls for the above-mentioned user smart contracts in accordance with the above logical order.
  • the above-mentioned node device calls the above-mentioned cross-chain logic included in the above-mentioned target system smart contract, and based on the above-mentioned determined blockchain account, when respectively initiating a cross-chain call for each user smart contract, it can specifically be based on the determined above-mentioned area
  • the block chain account according to the above logical sequence, respectively initiates cross-chain calls for the above-mentioned user smart contracts.
  • the above service configuration information may also include: based on the logical sequence of the service logic corresponding to the above target user service, the call determined for each contract execution logic that is combined to generate the above target user service order.
  • the above-mentioned cross-chain logic is specifically used to: read the above-mentioned call sequence included in the above-mentioned service configuration information, determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, and each member area where the above-mentioned user smart contracts are deployed Block chains, and information such as the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, respectively initiate cross-chain calls for the above-mentioned user smart contracts according to the above-mentioned logical sequence read.
  • the specific can read Take the above invocation sequence included in the above service configuration information, and then initiate cross-chain calls for the above user smart contracts according to the above read logic sequence based on the above determined blockchain account.
  • the logical sequence of the service logic corresponding to the above-mentioned target user service may not be maintained in the above-mentioned target system smart contract as part of the service configuration information, but on the above-mentioned centralized management and control platform.
  • the above-mentioned centralized management and control platform performs off-chain interaction, reads the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform, and then initiates a cross-connection of the smart contracts for each of the above-mentioned users according to the above-mentioned call sequence read. chain calls.
  • the above-mentioned target system smart contract can specifically interact with the above-mentioned centralized management and control platform through another oracle oracle program, and read the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform .
  • the specific implementation details of the above-mentioned target system smart contract interacting with the above-mentioned centralized management and control platform through the oracle oracle program will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
  • the centralized management and control platform deploys the target system smart contracts for cross-chain communication on each member blockchain
  • users of subsequent service providers register on the above-mentioned centralized management and control platform
  • the centralized management and control platform can also store the service configuration information corresponding to the newly registered user service in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform deploys the target system smart contract for cross-chain communication on each member blockchain
  • the centralized management and control platform can also store the blockchain account corresponding to the centralized management and control platform created on the new member blockchain into the above target system smart contract, so that the target system smart contract Update the list of blockchain accounts maintained in .
  • the centralized management and control platform described above updates the service configuration information maintained in the smart contract of the target system and the list of blockchain accounts. Use the offline update method.
  • the centralized management and control platform can immediately store the service configuration information corresponding to the newly registered user service in the above-mentioned The target system smart contract to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform can also immediately transfer the blockchain account corresponding to the centralized management and control platform created on the new member blockchain, Stored in the above target system smart contract to update the blockchain account list maintained in the target system smart contract.
  • the offline update method each time the target system smart contract is invoked, it can trigger an update of the service configuration information and blockchain account list maintained in the target system smart contract.
  • the centralized management and control platform may first cache the service configuration information corresponding to the newly registered user service.
  • the cached service configuration information is stored in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
  • the centralized management and control platform can also first transfer the block corresponding to the centralized management and control platform created on the new member blockchain to The chain account is cached.
  • the cached blockchain account is stored in the target system smart contract to update the list of blockchain accounts maintained in the target system smart contract.
  • the execution logic of data synchronization can be introduced into the above-mentioned target system smart contract, so that each time the above-mentioned target system smart contract is called, the execution logic of data synchronization can be run first, and the service configuration information can be communicated with the centralized management and control platform Synchronize with the data of the blockchain account list, update the service configuration information and blockchain account list maintained in the smart contract of the above target system based on the service configuration information and blockchain accounts cached by the centralized management and control platform, and then continue to execute The contract execution logic that is called this time.
  • the above-mentioned centralized management and control platform can also support, on the above-mentioned centralized management and control platform, as the user of the above-mentioned services deployed on each member block chain The user smart contract registers the associated user service.
  • the deployer or manager of the target user smart contract can send the user smart contract registration request to the centralized management and control platform. way, register the associated user service for the target user smart contract.
  • the contract address of the above-mentioned target user smart contract and the service identifier of the target user service that needs to be associated with the target user smart contract can be carried.
  • the centralized management and control platform When the centralized management and control platform receives the user smart contract registration request sent by the deployment party or management party of the target user smart contract, it can respond to the user smart contract registration request and read the target user service information carried in the user smart contract registration request.
  • the service ID of the target user and the contract address of the target user’s smart contract and then create an association between the service ID of the target user’s service and the contract address of the target user’s smart contract, and store the association on the centralized management and control platform .
  • the invocation data for the above user service may specifically be an invocation message for the above user service submitted by the above target user smart contract to the above target system smart contract.
  • the above-mentioned node device can first determine whether the user service has been registered as a user service associated with the above-mentioned target user smart contract before invoking the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract; for example, in an example , the above-mentioned association relationship can be specifically maintained in the above-mentioned target system smart contract as part of the above-mentioned service configuration information.
  • the above-mentioned node device can first query the above-mentioned association relationship to determine whether the user service has been registered as a link with the above-mentioned target user User services associated with smart contracts.
  • the above-mentioned association relationship may not be part of the above-mentioned service configuration information, but maintained in the above-mentioned target system smart contract, but on the above-mentioned centralized management and control platform.
  • the above-mentioned node device before the above-mentioned node device responds to the above-mentioned calling message and calls the above-mentioned cross-chain calling logic contained in the above-mentioned target system smart contract, it can interact with the above-mentioned centralized management and control platform through an oracle oracle program outside the chain, from The above-mentioned association relationship is read on the above-mentioned centralized management and control platform, and then based on the read association relationship, it is determined whether the user service has been registered as a user service associated with the above-mentioned target user smart contract.
  • the above-mentioned node device before the above-mentioned node device responds to the above-mentioned call message and calls the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract, it can use an oracle oracle program to interact with the above-mentioned centralized management and control platform outside the chain, and provide the above-mentioned centralized management and control
  • the platform sends a query request, and the centralized management and control platform queries the above-mentioned relationship to determine whether the user service has been registered as a user service associated with the above-mentioned target user smart contract, and then returns the query result to the above-mentioned target system smart contract.
  • the above-mentioned cross-chain calling logic included in the above-mentioned target system smart contract can be further invoked. If it is determined that the above-mentioned user service is not registered as a user service associated with the above-mentioned target user smart contract, the above-mentioned target user smart contract can be rejected to call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
  • Service calling authority for example, through this registration mechanism, the calling authority of user services registered on the centralized management and control platform can be limited to the user smart contracts associated with these user services, thereby ensuring that each user smart contract can only As a service consumer to invoke the user service associated with it.
  • the centralized management and control platform can specifically deploy the registered service solution as a standardized service to open it to the service The consumer makes the call.
  • the centralized management and control platform deploys the registered service solution, it can also be deployed centrally on the centralized management and control platform in the form of a service interface, or distributed in the form of a system smart contract. On each member blockchain, for service users to call.
  • user services registered on the centralized management and control platform are combined to generate service as an example.
  • the user services registered on the centralized management and control platform can be services generated by combining the contract execution logic contained in the user smart contracts on the member blockchains. , specifically, it can also refer to the data service generated after combining the blockchain data on each member blockchain.
  • the blockchain account corresponding to the centralized management and control platform created on each member blockchain is specifically used for initiating a transaction on each member blockchain when the service user invokes the above-mentioned user services. Compose the data access that generates the blockchain data for that user service.
  • the above user service is a data service generated by combining the blockchain data on each member blockchain
  • the specific implementation details of the registration, deployment and invocation of this type of user service are the same as those shown in Figures 2-7 above.
  • the registration, deployment and invocation processes for user services described in the illustrated embodiments are similar.
  • the service provider when it registers such user services with the centralized management and control platform, it can send a user service registration request to the centralized management and control platform, and the centralized management and control platform can, after receiving the user service registration request, In response to the user service registration request, determine the block chain data set used to realize the service function corresponding to the user service; the above block chain data set includes the block chains deployed on each member block chain in the block chain service network block chain data; then, combine the block chain data in the above block chain data set to generate the above user service, so as to complete the service registration for the user service, the details of the specific registration service will not be repeated, and those skilled in the art Reference may be made to the descriptions of the various embodiments shown in FIG. 4 , and details are not repeated in this specification.
  • the above-mentioned user services When the above-mentioned user services are deployed, they can also be deployed centrally on the above-mentioned centralized management and control platform in the form of service interfaces, or can be distributed and deployed on each member blockchain in the form of system smart contracts. For example, take the distributed deployment of system smart contracts on each member blockchain as an example.
  • the above-mentioned system smart contract for cross-chain communication contains the cross-chain call logic corresponding to the above-mentioned user services. Specifically, you can use In: Determine the member blockchains corresponding to the blockchain data that are combined to generate the user service, and initiate the respective blockchain accounts corresponding to the centralized management and control platform created in the member blockchains Data access for each blockchain data on each of the above member blockchains.
  • the service user When the service user needs to call this type of user service, it can initiate a call to this type of user service that has been registered on the centralized management and control platform by calling the above-mentioned cross-chain call logic contained in the system smart contract.
  • the specific service call The details will not be repeated here, and those skilled in the art can refer to the descriptions of the embodiments shown in FIG. 6 and FIG. 7 , which will not be repeated in this specification.
  • this specification also provides embodiments of apparatuses, electronic equipment, and storage media.
  • Fig. 8 is a schematic structural diagram of an electronic device provided by an exemplary embodiment.
  • the device includes a processor 802 , an internal bus 804 , a network interface 806 , a memory 808 and a non-volatile memory 810 , and of course may also include hardware required by other services.
  • the processor 802 reads a corresponding computer program from the non-volatile memory 810 into the memory 808 and executes it.
  • one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each A logic unit, which can also be a hardware or logic device.
  • Figure 9 is a block diagram of a user service registration device shown in this specification according to an exemplary embodiment, which can be applied to the electronic device shown in Figure 8 to implement the technical solution of this specification .
  • the device is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain; wherein, the centralized management and control platform supports registered user services; the user services include The user service generated by the contract execution logic combination contained in the user smart contract deployed on each member blockchain;
  • the device 900 includes: a first receiving module 901, which receives the user service registration request initiated by the service provider; the first The determining module 902, in response to the user service registration request, determines a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes each member area deployed in the blockchain service network The contract execution logic contained in the user smart contract on the block chain; the first registration module 903, combining the contract execution logic in the contract execution logic set to generate the user service, so as to complete the service registration of the
  • FIG. 10 is a block diagram of another user service registration device shown in this specification according to an exemplary embodiment.
  • This device can also be applied to the electronic device shown in FIG. 8, so as to realize the Technical solutions.
  • the device is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain; wherein, the centralized management and control platform supports registered user services; the user services include The user service generated by the contract execution logic combination contained in the user smart contract deployed on each member blockchain;
  • the device 1000 includes: a second receiving module 1001, which receives the solution registration request initiated by the service provider; the second The determining module 1002, in response to the solution registration request, determines from the registered user services a set of user services for implementing the service functions corresponding to the service solution; the user services include The contract execution logic contained in the user smart contract on the above; the second registration module 1003, combining the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
  • This specification also provides an electronic device, the electronic device includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps in all the method processes described above.
  • the present specification also provides a computer-readable storage medium on which executable instructions are stored; wherein, when the instructions are executed by a processor, the steps in all the method processes described above are implemented.
  • the device embodiment since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment.
  • the device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without any creative effort.
  • a typical implementing device is a computer, which may take the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control device, etc. desktops, tablets, wearables, or any combination of these.
  • a computer includes one or more processors (CPUs), input/output interfaces, network interfaces and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer-readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
  • first, second, third, etc. may be used in one or more embodiments of the present specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of one or more embodiments of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word “if” as used herein may be interpreted as “at” or "when” or "in response to a determination.”

Abstract

One or more embodiments of the present description provide a user service registration method and apparatus. The method comprises: receiving a user service registration request initiated by a service provider; in response to the user service registration request, determining a set of contract execution logic used to implement a service function corresponding to the user service, the set of contract execution logic comprising contract execution logic contained in a user smart contract deployed on each member blockchain in a blockchain service network; and combining contract execution logic in the set of contract execution logic to generate the user service to complete service registration of the user service.

Description

用户服务注册User Service Registration 技术领域technical field
本说明书多个实施例涉及区块链技术领域,尤其涉及一种用户服务注册方法及装置。Multiple embodiments of this specification relate to the technical field of blockchain, and in particular to a user service registration method and device.
背景技术Background technique
随着区块链技术的发展,越来越多的业务可以利用区块链系统中部署的智能合约来实现。区块链系统作为业务背后的基础设施,运行与维护需要投入成本。因此,一些大型的服务机构分别推出了自己的区块链系统,来面向没有能力搭建区块链系统的业务方提供与区块链相关的基础服务。而接入该区块链系统的业务方可以通过调用区块链系统中部署的智能合约,来实现相应业务。With the development of blockchain technology, more and more businesses can be implemented using smart contracts deployed in the blockchain system. As the infrastructure behind the business, the blockchain system requires investment in operation and maintenance. Therefore, some large service organizations have launched their own blockchain systems to provide blockchain-related basic services for business parties who are unable to build blockchain systems. The business parties that access the blockchain system can realize the corresponding business by calling the smart contract deployed in the blockchain system.
在实际应用中,不同的区块链系统之间通常是相互独立的,如何利用这些相互独立的区块链系统来更有效地为业务方提供与区块链相关的基础服务,是亟待解决的技术问题。In practical applications, different blockchain systems are usually independent of each other. How to use these mutually independent blockchain systems to provide business parties with basic blockchain-related services more effectively is an urgent problem to be solved. technical problem.
发明内容Contents of the invention
根据本说明书多个实施例的第一方面,提出一种用户服务注册方法,应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务。所述方法包括:接收服务提供方发起的用户服务注册请求;响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。According to the first aspect of multiple embodiments of this specification, a user service registration method is proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain; Wherein, the centralized management and control platform supports registered user services; the user services include user services generated by contract execution logic combinations contained in user smart contracts deployed on each member blockchain. The method includes: receiving a user service registration request initiated by a service provider; in response to the user service registration request, determining a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes The contract execution logic contained in the user smart contract deployed on each member blockchain; the contract execution logic in the contract execution logic set is combined to generate the user service, so as to complete the service registration of the user service.
根据本说明书多个实施例的第二方面,还提出一种用户服务注册方法,应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务。所述方法包括:接收服务提供方发起的解决方案注册请求;响应于所述解决方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;所述用户服务包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。According to the second aspect of multiple embodiments of this specification, a user service registration method is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain ; Wherein, the centralized management and control platform supports registered user services; the user services include the user services generated by the contract execution logic combination contained in the user smart contracts deployed on each member blockchain in the blockchain service network . The method includes: receiving a solution registration request initiated by a service provider; in response to the solution registration request, determining from registered user services a set of user services for implementing service functions corresponding to the service solution; The user service includes the contract execution logic contained in the user smart contract deployed on each member blockchain; combine the user services in the user service set to generate the service solution to complete the service solution service registration.
根据本说明书多个实施例的第三方面,还提出了一种用户服务注册装置,应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务。所述装置包括:第一接收模块,接收服务提供方发起的用户服务注册请求;第一确定模块,响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑;第一注册模块,将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。According to the third aspect of multiple embodiments of this specification, a user service registration device is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member block chain; wherein, the centralized management and control platform supports registered user services; the user services include the user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain. The device includes: a first receiving module, which receives a user service registration request initiated by a service provider; a first determining module, which responds to the user service registration request, and determines the contract execution for realizing the service function corresponding to the user service Logic set; the contract execution logic set includes the contract execution logic contained in the user smart contract deployed on each member block chain in the blockchain service network; the first registration module executes the contract in the logic set The contract execution logic is combined to generate the user service, so as to complete the service registration of the user service.
根据本说明书多个实施例的第四方面,还提出一种用户服务注册装置,应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务;所述装置包括:第二接收模块,接收服务提供方发起的解决方案注册请求;第二确定模块,响应于所述解决 方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;所述用户服务包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;第二注册模块,将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。According to the fourth aspect of multiple embodiments of this specification, a user service registration device is also proposed, which is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain ; Wherein, the centralized management and control platform supports registered user services; the user services include user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain; the device includes: The second receiving module is to receive the solution registration request initiated by the service provider; the second determination module is to respond to the solution registration request and determine from the registered user services to realize the service function corresponding to the service solution User service set; the user service includes the contract execution logic contained in the user smart contract deployed on each member blockchain; the second registration module combines the user services in the user service set to generate the service solution scheme to complete the service registration for said service solution.
在本说明书以上的实施方式中,可以通过注册的方式,搭建一种由至少一个成员区块链构成的区块链服务网络,并基于分布在成员区块链上的用户智能合约所包含的合约执行逻辑,进一步在中心化管控平台上来注册标准化的用户服务;由于该用户服务,可以包括来源于不同的成员区块链上的用户智能合约的合约执行逻辑;因此,通过这种方式,相当于是整合了不同的成员区块链上的用户智能合约的服务能力,将不同的成员区块链上的用户智能合约包含的具有基础服务能力的合约执行逻辑,进行整合之后生成服务能力更为复杂的服务,使得不同的成员区块链上部署的用户智能合约的服务能力,能够在各成员区块链之间被充分地流通和共享,从而从根本上解决各个成员区块链之间相互隔离,其所提供的服务能力无法被整合造成的信息孤岛的问题。In the above implementations of this specification, a blockchain service network composed of at least one member blockchain can be built by way of registration, and based on the contract contained in the user smart contract distributed on the member blockchain Execute logic, and further register standardized user services on the centralized management and control platform; because the user services can include contract execution logic from user smart contracts on different member blockchains; therefore, in this way, it is equivalent to Integrate the service capabilities of user smart contracts on different member blockchains, and integrate the contract execution logic with basic service capabilities contained in user smart contracts on different member blockchains to generate more complex service capabilities Service, so that the service capabilities of user smart contracts deployed on different member blockchains can be fully circulated and shared among member blockchains, thereby fundamentally solving the mutual isolation between member blockchains, The problem of information islands caused by the inability to integrate the service capabilities it provides.
附图说明Description of drawings
图1是本说明书一示例性实施例示出的区块链服务网络的网络架构图。Fig. 1 is a network architecture diagram of a blockchain service network shown in an exemplary embodiment of this specification.
图2是本说明书根据一示例性实施例示出的一种区块链服务网络的管理方法的流程图。Fig. 2 is a flow chart of a method for managing a blockchain service network shown in this specification according to an exemplary embodiment.
图3是本说明书示出的一种对目标区块链进行注册处理的流程图。Fig. 3 is a flow chart of a process of registering a target blockchain shown in this specification.
图4是本说明书根据一示例性实施例示出的一种在中心化管控平台上注册用户服务的服务注册方法的流程图。Fig. 4 is a flow chart of a service registration method for registering user services on a centralized management and control platform according to an exemplary embodiment of this specification.
图5是本说明书根据一示例性实施例示出的一种在中心化管控平台上注册服务解决方案的服务注册方法的流程。Fig. 5 is a flowchart of a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment of this specification.
图6是本说明书根据一示例性实施例示出的一种针对在中心化管控平台上注册的用户服务的服务使用方法的流程图。Fig. 6 is a flow chart of a method for using a service for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification.
图7是本说明书根据一示例性实施例示出的另一种针对在中心化管控平台上注册的用户服务的服务使用方法的流程图。Fig. 7 is a flow chart of another method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of the present specification.
图8是一示例性实施例提供的一种电子设备的示意结构图。Fig. 8 is a schematic structural diagram of an electronic device provided by an exemplary embodiment.
图9是本说明书根据一示例性实施例示出的一种用户服务注册装置的框图。Fig. 9 is a block diagram of a device for registering a user service according to an exemplary embodiment in this specification.
图10是本说明书根据一示例性实施例示出的另一种用户服务注册装置的框图。Fig. 10 is a block diagram of another user service registration device according to an exemplary embodiment in this specification.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments in this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe.
随着区块链技术的不断发展,越来越多的区块链建立起来。然而,各个区块链之间,通常都是相互独立的,不同的区块链通常之间无法连通。因此,这就造成了在单个区块链上部署的用户智能合约的服务能力,无法在不同的区块链之间被充分地流通和共享。With the continuous development of blockchain technology, more and more blockchains have been established. However, each blockchain is usually independent of each other, and different blockchains are usually not connected to each other. Therefore, this results in the service capabilities of user smart contracts deployed on a single blockchain, which cannot be fully circulated and shared among different blockchains.
而本说明书则旨在搭建一种由至少一个成员区块链构成的区块链服务网络,并通过将分布在该区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑整合起来,构建成标准化的服务开放给服务使用方的技术方案。However, this manual aims to build a blockchain service network composed of at least one member blockchain, and distribute the information contained in the user smart contracts on each member blockchain in the blockchain service network. The contract execution logic is integrated to build a technical solution for standardized services open to service users.
在实现时,需要加入区块链服务网络的目标区块链,可以通过向区块链服务网络的中心化管控平台发送注册请求的方式,来注册成为该区块链服务网络的成员区块链。When implementing, the target blockchain that needs to join the blockchain service network can be registered as a member blockchain of the blockchain service network by sending a registration request to the centralized management and control platform of the blockchain service network .
而中心化管控平台在接收到与该目标区块链对应的注册请求时,可以对该目标区块链进行注册处理,以将该目标区块链作为成员区块链加入到该区块链服务网络。When the centralized management and control platform receives the registration request corresponding to the target blockchain, it can register the target blockchain to add the target blockchain as a member blockchain to the blockchain service network.
其中,在该中心化管控平台上,可以支持注册由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务。Among them, the centralized management and control platform can support the registration of user services generated by the combination of contract execution logic contained in the user smart contracts deployed on each member blockchain.
当目标区块链作为成员区块链加入了该区块链服务网络之后,后续服务提供方就可以将该目标区块链上部署的用户智能合约所包含的合约执行逻辑进行整合生成目标用户服务,或者,将该目标区块链上部署的用户智能合约所包含的合约执行逻辑与其它成员区块链上部署的用户智能合约所包含的合约执行逻辑进行整合,生成目标用户服务,然后将该目标用户服务注册到该中心化管控平台。After the target blockchain joins the blockchain service network as a member blockchain, the subsequent service provider can integrate the contract execution logic contained in the user smart contract deployed on the target blockchain to generate the target user service , or, integrate the contract execution logic contained in the user smart contract deployed on the target blockchain with the contract execution logic contained in the user smart contract deployed on other member blockchains to generate the target user service, and then the The target user service is registered to the centralized management and control platform.
其中,该中心化管控平台在对该目标区块链进行注册处理时,还可以在该目标区块链中创建与该中心化管控平台对应的区块链账户。后续,当用户需要调用在中心化控平台上注册的上述目标用户服务时,则可以基于在该目标区块链中创建与该中心化管控平台对应的区块链账户,发起针对该目标区块链上部署的上述用户智能合约的合约调用,以完成针对该用户服务的服务调用。Wherein, when the centralized management and control platform registers the target blockchain, it can also create a blockchain account corresponding to the centralized management and control platform in the target blockchain. Subsequently, when the user needs to call the above-mentioned target user service registered on the centralized control platform, the user can initiate a transaction for the target block based on creating a blockchain account corresponding to the centralized control platform in the target blockchain. The contract call of the above user smart contract deployed on the chain to complete the service call for the user service.
在以上技术方案中,可以通过注册的方式,搭建一种由至少一个成员区块链构成的区块链服务网络,并基于分布在成员区块链上的用户智能合约所包含的合约执行逻辑,进一步在中心化管控平台上来注册标准化的用户服务;由于该用户服务,可以包括来源于不同的成员区块链上的用户智能合约的合约执行逻辑;因此,通过这种方式,相当于是整合了不同的成员区块链上的用户智能合约的服务能力,将不同的成员区块链上的用户智能合约包含的具有基础服务能力的合约执行逻辑,进行整合之后生成服务能力更为复杂的服务,使得不同的成员区块链上部署的用户智能合约的服务能力,能够在各成员区块链之间被充分地流通和共享,从而从根本上解决各个成员区块链之间相互隔离,其所提供的服务能力无法被整合造成的信息孤岛的问题。In the above technical solutions, a blockchain service network composed of at least one member blockchain can be built by means of registration, and based on the contract execution logic contained in the user smart contracts distributed on the member blockchains, Further register standardized user services on the centralized management and control platform; because the user services can include contract execution logic from user smart contracts on different member blockchains; therefore, in this way, it is equivalent to integrating different The service capabilities of the user smart contracts on the member blockchains integrate the contract execution logic with basic service capabilities contained in the user smart contracts on different member blockchains to generate services with more complex service capabilities, making The service capabilities of user smart contracts deployed on different member blockchains can be fully circulated and shared among member blockchains, thereby fundamentally solving the mutual isolation between member blockchains and providing The problem of information islands caused by the failure of integrated service capabilities.
请参见图1,图1是本说明书一示例性实施例示出的区块链服务网络的网络架构图。Please refer to FIG. 1, which is a network architecture diagram of a blockchain service network shown in an exemplary embodiment of this specification.
如图1所示,在上述区块链服务网络的网络架构中,可以包括由若干成员区块链组成的区块链服务网络、待注册的目标区块链网络以及用于对区块链服务网络进行管理的中心化管控平台。需要说明的是,初始情况下区块链服务网络中没有成员区块链,目标区块链通过中心化管理平台完成注册后才能加入到区块链服务网络中。As shown in Figure 1, in the network architecture of the above-mentioned blockchain service network, it may include a blockchain service network composed of several member blockchains, a target blockchain network to be registered, and a network for blockchain services A centralized management and control platform for network management. It should be noted that initially, there are no member blockchains in the blockchain service network, and the target blockchain can only be added to the blockchain service network after registration through the centralized management platform.
其中,图1中示出的待注册的目标区块链网络,是指暂未加入区块链服务网络的区块链网络,上述目标区块链网络可以通过与中心化管控平台进行注册交互,来申请作为成员区块链加入到上述目标区块链网络。Among them, the target blockchain network to be registered shown in Figure 1 refers to a blockchain network that has not yet joined the blockchain service network. The above-mentioned target blockchain network can register and interact with the centralized management and control platform. To apply to join the above target blockchain network as a member blockchain.
图1中示出的第一成员区块链、第二成员区块链和第三成员区块链,是指已经加入上述区块链服务网络的成员区块链。The first member blockchain, the second member blockchain and the third member blockchain shown in FIG. 1 refer to the member blockchains that have joined the aforementioned blockchain service network.
其中,示出的一种实施方式中,上述区块链服务网络中的至少部分成员区块链,可以是异构的区块链。Wherein, in one embodiment shown, at least some of the member blockchains in the aforementioned blockchain service network may be heterogeneous blockchains.
需要说明的是,狭义上的异构区块链,通常是指在区块链上流通的价值存在明显差异;也即,所流通的价值存在明显差异的两个区块链之间,通常可以称之为异构区块链。比如,比特币网络和以太坊就是狭义上的异构区块链。It should be noted that heterogeneous blockchains in a narrow sense usually refer to significant differences in the value of circulation on the blockchain; that is, between two blockchains with significant differences in the value of circulation, usually Call it a heterogeneous blockchain. For example, the Bitcoin network and Ethereum are heterogeneous blockchains in a narrow sense.
而广义上的异构区块链,是指区块链的类型和/或采用的区块链协议存在明显差异;也即,区块链的类型和/或采用的区块链协议存在明显的两个区块链之间,通常也可以称之为异构区块链。比如,蚂蚁区块链(ANT CHAIN)和HyperLedger Fabric区块链就是 广义上的异构区块链。In a broad sense, heterogeneous blockchain refers to the obvious differences in the type of blockchain and/or the adopted blockchain protocol; that is, there are obvious differences in the type of blockchain and/or the adopted blockchain protocol. Between two blockchains, it can usually be called a heterogeneous blockchain. For example, ANT CHAIN and HyperLedger Fabric blockchain are heterogeneous blockchains in a broad sense.
在上述区块链服务网络中的各成员区块链上,均可以部署若干用户智能合约。Several user smart contracts can be deployed on each member blockchain in the above-mentioned blockchain service network.
其中,这些用户智能合约中的合约代码所表达的合约执行逻辑,通常可以包括分别对应不同的基础服务能力的多个合约执行逻辑。Among them, the contract execution logic expressed by the contract code in these user smart contracts can usually include multiple contract execution logics corresponding to different basic service capabilities.
在实际应用中,智能合约中包含的合约执行逻辑,通常可以是函数的形式,一个智能合约中则可以包含分别对应不同的服务功能的多个函数。In practical applications, the contract execution logic contained in a smart contract can usually be in the form of a function, and a smart contract can contain multiple functions corresponding to different service functions.
图1中示出的中心化管控平台,具体可以是一个用于对上述区块链服务网络进行中心化管理的服务平台。其中,需要说明的是,承载该中心化管控平台的硬件设备,可以是服务器,也可以是基于若干台服务器构成的服务器集群,在本说明书中不进行特别限定。The centralized management and control platform shown in FIG. 1 may specifically be a service platform for centralized management of the aforementioned blockchain service network. Wherein, it should be noted that the hardware device carrying the centralized management and control platform may be a server, or a server cluster based on several servers, which is not particularly limited in this specification.
上述中心化管控平台作为中心化的服务平台,可以对上述区块链服务网络进行成员管理;例如,可以负责区块链服务网络中的成员区块链的注册加入、退出网络,等等。As a centralized service platform, the above-mentioned centralized management and control platform can manage members of the above-mentioned blockchain service network; for example, it can be responsible for the registration of member blockchains in the blockchain service network, joining and exiting the network, and so on.
除此之外,上述中心化管控平台还可以用于实现各成员区块链之间的跨链访问;例如,在实际应用中,在上述中心化管控平台上,可以搭载一个跨链服务组件,该跨链服务组件具体用于实现各成员区块链之间的跨链数据交互。加入区块链服务网络的各成员区块链,可以通过上述中心化管控平台上的跨链服务组件,来实现与其它成员区块链之间的跨链数据访问。In addition, the above-mentioned centralized management and control platform can also be used to realize cross-chain access between member blockchains; for example, in practical applications, a cross-chain service component can be installed on the above-mentioned centralized management and control platform, The cross-chain service component is specifically used to realize cross-chain data interaction between member blockchains. Each member blockchain that joins the blockchain service network can realize cross-chain data access with other member blockchains through the cross-chain service components on the above-mentioned centralized management and control platform.
上述中心化管控平台,在对各成员区块链进行中心化管理的过程中,也可以向各成员区块链下发并部署用于实现跨链数据访问的系统智能合约,使得各成员区块链网络可以基于部署的上述系统智能合约,来实现与其它成员区块链之间的跨链数据访问。The above-mentioned centralized management and control platform, in the process of centralized management of each member block chain, can also issue and deploy system smart contracts for cross-chain data access to each member block chain, so that each member block The chain network can realize cross-chain data access with other member blockchains based on the above-mentioned system smart contracts deployed.
上述中心化管控平台除了可以用于对区块链服务网络进行成员管理,以及实现各成员区块链之间的跨链访问以外,还可以支持注册由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务。In addition to being used for member management of the blockchain service network and cross-chain access between member blockchains, the above-mentioned centralized management and control platform can also support the registration of user intelligence deployed on each member blockchain. The user service generated by the contract execution logic combination contained in the contract.
其中,上述用户服务,具体是指将不同的成员区块链上的用户智能合约所包含的具有基础服务能力的合约执行逻辑,进行组合之后生成的服务能力更为复杂的服务。Among them, the above-mentioned user services specifically refer to services with more complex service capabilities generated by combining contract execution logic with basic service capabilities contained in user smart contracts on different member blockchains.
在实现时,可以将分布在各个成员区块链上的用户智能合约所包含的具有基础服务能力的合约执行逻辑,作为基础服务组件进行组合,来生成更加复杂的用户服务,再将该用户服务作为标准化的服务注册到中心化管控平台,以供用户进行调用。其中,示出的一种实施方式中,在上述中心化管控平台上注册的用户服务,具体可以包括将部署在各成员区块链上的用户智能合约所包含的至少一个合约执行逻辑,按照与该用户服务对应的服务逻辑的逻辑顺序,进行组合生成的服务。During implementation, the contract execution logic with basic service capabilities contained in user smart contracts distributed on each member blockchain can be combined as basic service components to generate more complex user services, and then the user service Registered to the centralized management and control platform as a standardized service for users to call. Among them, in one embodiment shown, the user service registered on the above-mentioned centralized management and control platform may specifically include at least one contract execution logic contained in the user smart contract deployed on each member blockchain, according to the The logical sequence of the service logic corresponding to the user service is combined to generate the service.
需要说明的是,与该用户服务对应的服务逻辑,以及该服务逻辑的逻辑顺序,通常取决于用户具体的服务注册需求,在实际应用中,通常可以由用户基于实际的需求来进行自定义。It should be noted that the service logic corresponding to the user service and the logical sequence of the service logic usually depend on the user's specific service registration requirements, and in practical applications, the user can usually customize it based on actual needs.
在示出的另一种实施方式中,组合生成上述用户服务的合约执行逻辑中的至少部分合约执行逻辑,可以分别与不同的成员区块链上部署的用户智能合约相对应。也即,用户可以将分布在不同的成员区块链上的用户智能合约所包含的合约执行逻辑,进行组合生成一个用户服务。In another embodiment shown, at least part of the contract execution logic in the contract execution logic that is combined to generate the above-mentioned user services may correspond to user smart contracts deployed on different member blockchains respectively. In other words, users can combine the contract execution logic contained in user smart contracts distributed on different member blockchains to generate a user service.
在实际应用中,组合生成上述用户服务的合约执行逻辑中的至少部分合约执行逻辑,也可以来源于同一个成员区块链中的多个用户智能合约所包含的合约执行逻辑;或者,也可以来源于同一个成员区块链中的同一个用户智能合约所包含的多个合约执行逻辑,在本说明书中不进行特别限定。In practical applications, at least part of the contract execution logic in the contract execution logic for generating the above-mentioned user services can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or, it can also be The multiple contract execution logic contained in the same user smart contract originating from the same member blockchain is not specifically limited in this specification.
为了便于服务提供方的用户,对部署在各个成员区块链上的各个用户智能合约包含的合约执行逻辑进行自由组合,来生成服务能力更为复杂的用户服务,中心化平台可以将上述区块链服务网络中的各成员区块链上部署的用户智能合约包含的合约执行逻辑的访问权限,开放给服务提供方的用户。In order to facilitate users of the service provider, the contract execution logic contained in each user smart contract deployed on each member blockchain can be freely combined to generate user services with more complex service capabilities. The centralized platform can combine the above blocks The access authority of the contract execution logic contained in the user smart contract deployed on each member blockchain in the chain service network is open to the users of the service provider.
其中,中心化平台在将上述区块链服务网络中的各成员区块链上部署的用户智能合约包含的合约执行逻辑的访问权限,开放给服务提供方的用户时,为了最大程度的保护各成员区块链上部署的各用户智能合约的数据隐私安全,具体可以有选择的仅将成员区块链上部署的用户智能合约包含的部分的合约执行逻辑的访问权限,开放给服务提供方的用户。而对于未开放访问权限的合约执行逻辑,则无法用于组合生成用户服务。Among them, when the centralized platform opens the access rights of the contract execution logic contained in the user smart contracts deployed on the member blockchains of the above-mentioned blockchain service network to the users of the service provider, in order to maximize the protection of all The data privacy and security of each user smart contract deployed on the member blockchain can be selectively opened to the service provider's access rights to only part of the contract execution logic contained in the user smart contract deployed on the member blockchain. user. However, for contract execution logic that does not have open access rights, it cannot be used to combine and generate user services.
在示出的一种实施方式中,中心化管控平台还可以支持将各成员区块链上部署的用户智能合约包含的合约执行逻辑,在中心化管控平台上进行注册。相应的,中心化管控平台上注册的用户服务,则可以是由在中心化管控平台上已注册的至少一个合约执行逻辑进行组合生成的服务。In one embodiment shown, the centralized management and control platform can also support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain on the centralized management and control platform. Correspondingly, the user services registered on the centralized management and control platform can be services generated by combining at least one contract execution logic registered on the centralized management and control platform.
在一个例子中,中心化管控平台可以支持将各成员区块链上部署的用户智能合约包含的合约执行逻辑,注册为中心化管控平台上的基础服务组件;其中,该基础服务组件将作为组合生成用户服务的基本单元。中心化管控平台上注册的用户服务,则可以是由在中心化管控平台上已注册的至少一个基础服务组件进行组合生成的服务。而各成员区块链上部署的用户智能合约的部署方或者管理方,可以向中心化管控平台发送基础组件注册请求,该基础组件注册请求可以包括该用户智能合约包含的待注册的目标合约执行逻辑的标识信息(比如函数名)。中心化管控平台在收到该基础组件注册请求时,可以为该部署方或者管理方分配一个基础服务组件标识,然后将该待注册的目标合约执行逻辑的标识信息、包含该目标合约执行逻辑的用户智能合约的地址、以及部署该用户智能合约的成员区块链的标识信息,与该基础服务组件标识进行绑定,以完成基础服务组件的注册。In one example, the centralized management and control platform can support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain as a basic service component on the centralized management and control platform; where the basic service component will be used as a combined The basic unit for generating user services. The user service registered on the centralized management and control platform can be a service generated by combining at least one basic service component registered on the centralized management and control platform. The deployer or manager of the user smart contract deployed on each member blockchain can send a basic component registration request to the centralized management and control platform, and the basic component registration request can include the execution of the target contract to be registered contained in the user smart contract Logical identification information (such as function name). When the centralized management and control platform receives the basic component registration request, it can assign a basic service component identifier to the deployment party or management party, and then the identification information of the target contract execution logic to be registered, including the target contract execution logic The address of the user's smart contract and the identification information of the member blockchain where the user's smart contract is deployed are bound to the basic service component identification to complete the registration of the basic service component.
在这种情况下,中心化管控平台可以仅将在中心化管控平台上完成注册的合约执行逻辑的访问权限,开放给服务提供方的用户,以使服务提供方的用户可以对在中心化管控平台上注册的至少一个合约执行逻辑进行自由组合,来自定义新的用户服务。而对于未在中心化管控平台注册的合约执行逻辑的访问权限,则可以不开放给服务方用户。通过这种方式,可以最大程度的保护各成员区块链上的用户智能合约的数据隐私,使得服务提供方只可以对已经在中心化管控平台上注册的合约执行逻辑进行自由组合,来自定义新的用户服务,而无法访问那些未开放访问权限的合约智能逻辑。In this case, the centralized management and control platform can only open the access rights of the contract execution logic registered on the centralized management and control platform to the users of the service provider, so that the users of the service provider can control the At least one contract execution logic registered on the platform can be freely combined to define new user services. However, access to contract execution logic that is not registered on the centralized management and control platform may not be opened to service users. In this way, the data privacy of user smart contracts on each member blockchain can be protected to the greatest extent, so that service providers can only freely combine the execution logic of contracts registered on the centralized management and control platform to customize new ones. user services without access to the smart logic of contracts that have not been opened.
在一个例子中,中心化管控平台可以将已注册的合约执行逻辑,通过可视化界面,向服务提供方的用户输出,以将在中心化管控平台上完成注册的合约执行逻辑的访问权限,开放给服务提供方的用户,然后可以获取该服务提供方的用户在该可视化界面中选择的至少一个合约执行逻辑,然后再将服务提供方的用户在可视化界面中选择的至少一个合约执行逻辑,按照该服务提供方的用户需要注册的用户服务对应的服务逻辑的逻辑顺序,进行组合生成该用户服务。In one example, the centralized management and control platform can output the registered contract execution logic to the user of the service provider through a visual interface, so as to open the access rights of the contract execution logic registered on the centralized management and control platform to The user of the service provider can then obtain at least one contract execution logic selected by the user of the service provider in the visual interface, and then execute the logic of at least one contract selected by the user of the service provider in the visual interface, according to the The user of the service provider needs to combine the logical sequence of the service logic corresponding to the registered user service to generate the user service.
由于部署在各个成员区块链上的用户智能合约中所包含的合约执行逻辑,可能涉及用户的隐私或者其它不便于开放的合约执行逻辑;因此,通过这种方式,使得部署在各个成员区块链上的用户智能合约的部署方或者管理方,可以有选择性的仅将该用户智能合约包含的部分的合约执行逻辑在中心化管控平台进行注册,并只将这些在中心化管控平台上注册的合约执行逻辑的访问权限开放给服务提供方的用户,从而可以最大程度的保障部署在各成员区块链上的用户智能合约的数据隐私安全。Since the contract execution logic contained in the user's smart contract deployed on each member blockchain may involve user privacy or other contract execution logic that is not easy to open; therefore, in this way, the deployment in each member block The deployer or manager of the user's smart contract on the chain can selectively register only part of the contract execution logic contained in the user's smart contract on the centralized management and control platform, and only register these on the centralized management and control platform The access authority of the contract execution logic is open to the users of the service provider, so that the data privacy and security of the user smart contracts deployed on each member blockchain can be guaranteed to the greatest extent.
在实际应用中,中心化管控平台,具体也可以选择将成员区块链上部署的所有的用户智能合约包含的合约执行逻辑的访问权限,均开放给服务提供方的用户。In practical applications, the centralized management and control platform can also choose to open the access rights of the contract execution logic contained in all user smart contracts deployed on the member blockchains to the users of the service provider.
在这种情况下,中心化管控平台可以不再支持将各成员区块链上部署的用户智能合约包含的合约执行逻辑,在中心化管控平台上进行注册。当各成员区块链在加入区块链服务网络之后,中心化管控平台可以主动的对各成员区块链的区块链数据进行扫描和解析,来获取各成员区块链上的用户智能合约的部署情况;比如,通过区块扫描和解析的方式,来获取各成员区块链上部署的用户智能合约,以及各用户智能合约中包括的合约执行逻辑。然后,再将扫描和解析到的各成员区块链上部署的所有的用户智能合约包含的合约执行逻辑的访问权限,均开放给服务提供方的用户。In this case, the centralized management and control platform can no longer support the registration of the contract execution logic contained in the user smart contracts deployed on each member blockchain on the centralized management and control platform. After each member blockchain joins the blockchain service network, the centralized management and control platform can actively scan and analyze the blockchain data of each member blockchain to obtain user smart contracts on each member blockchain Deployment status; for example, through block scanning and analysis, to obtain user smart contracts deployed on each member blockchain, as well as the contract execution logic included in each user smart contract. Then, the access rights of the contract execution logic contained in all user smart contracts deployed on the member blockchains scanned and parsed are opened to the users of the service provider.
请参见图2,图2是本说明书根据一示例性实施例示出的一种区块链服务网络的组建方法的流程图,该方法应用于图1所示的中心化管控平台;所述方法包括以下步骤。Please refer to FIG. 2. FIG. 2 is a flowchart of a method for forming a blockchain service network shown in this specification according to an exemplary embodiment. The method is applied to the centralized management and control platform shown in FIG. 1; the method includes The following steps.
步骤201:接收与目标区块链对应的注册请求;上述目标区块链是指需要加入区块链服务网络,但还未完成加入注册的区块链。上述目标区块链可以通过与区块链服务网络的中心化管控平台进行注册交互,向上述中心化管控平台发送注册请求的方式,来注册成为该区块链服务网络的成员区块链。Step 201: Receive a registration request corresponding to the target blockchain; the above-mentioned target blockchain refers to a blockchain that needs to join the blockchain service network but has not yet completed registration. The above-mentioned target blockchain can be registered as a member blockchain of the blockchain service network by registering and interacting with the centralized management and control platform of the blockchain service network, and sending a registration request to the above-mentioned centralized management and control platform.
其中,上述注册请求具体可以是由具有上述目标区块链的注册权限的用户,通过在上述中心化管控平台上所注册的用户账户所发起的;例如,在实际应用中,具有上述目标区块链的注册权限的用户,在上述中心化管控平台上注册的用户账户,具体可以包括上述中心化管控平台中的系统管理员账户、上述目标区块链的管理者在上述中心化管控平台上注册的管理员账户、目标区块链中的用户智能合约的部署方用户在上述中心化管控平台上注册的用户账户,等等。需要指出的是,发出注册请求的用户账户,具体是指在中心化管控平台中注册的中心化账户,而并不是在各成员区块链中注册的区块链账户。Wherein, the above-mentioned registration request may specifically be initiated by a user with the registration authority of the above-mentioned target block chain through a user account registered on the above-mentioned centralized management and control platform; The users with the registration permission of the chain, the user account registered on the above-mentioned centralized management and control platform, can specifically include the system administrator account in the above-mentioned centralized management and control platform, the manager of the above-mentioned target blockchain registered on the above-mentioned centralized management and control platform The administrator account of the target blockchain, the user account registered by the deployment party user of the user smart contract in the target blockchain on the above-mentioned centralized management and control platform, and so on. It should be pointed out that the user account that sends the registration request specifically refers to the centralized account registered in the centralized management and control platform, not the blockchain account registered in each member blockchain.
其中,在上述注册请求中,可以包括与待注册的上述目标区块链相关的一些基础注册信息。上述基础注册信息具体可以包括,上述目标区块链的访问地址信息、以及上述目标区块链相关的区块链配置信息,等等。Wherein, in the above registration request, some basic registration information related to the above target blockchain to be registered may be included. The above-mentioned basic registration information may specifically include, access address information of the above-mentioned target blockchain, and blockchain configuration information related to the above-mentioned target blockchain, and so on.
在实际应用中,在上述注册请求中,除了可以包括与待注册的上述目标区块链相关的一些基础注册信息以外,还可以包含其它形式的注册信息,在本说明书中不进行特别限定。其中,上述目标区块链的访问地址信息,具体用于与中心化管控平台之间建立网络连接;在实际应用中,上述访问地址信息具体可以包括上述目标区块链中的一个或者多个节点设备对应的域名信息或者IP地址信息,使得中心化管控平台可以基于上述域名信息或者IP地址信息,与上述目标区块链中的一个或者多个节点设备之间建立通信连接。In practical applications, in addition to some basic registration information related to the target blockchain to be registered, other forms of registration information may also be included in the above registration request, which is not specifically limited in this specification. Among them, the above-mentioned access address information of the target blockchain is specifically used to establish a network connection with the centralized management and control platform; in practical applications, the above-mentioned access address information may specifically include one or more nodes in the above-mentioned target blockchain The domain name information or IP address information corresponding to the device enables the centralized management and control platform to establish a communication connection with one or more node devices in the target blockchain based on the above domain name information or IP address information.
上述区块链配置信息,具体可以包括任意形式的能够用于表示上述目标区块链的基本配置的信息;例如,上述区块链配置信息,具体可以包括与上述目标区块链对应的区块链类型信息、上述目标区块链所采用的区块链协议的协议类型信息,以及上述目标区块链采用的共识算法的算法类型信息,等等。The above block chain configuration information may specifically include any form of information that can be used to represent the basic configuration of the above target block chain; for example, the above block chain configuration information may specifically include the block corresponding to the above target block chain Chain type information, protocol type information of the blockchain protocol adopted by the target blockchain, and algorithm type information of the consensus algorithm adopted by the target blockchain, etc.
在一个例子中,上述注册请求可以表示成如下的数据格式:In an example, the above registration request can be expressed in the following data format:
{chain001.io;Common chain;Polkadot;….}。{chain001.io; Common chain; Polkadot;...}.
在以上示出的数据格式中,上述目标区块链的域名信息为“chain001.io”,其区块链类型为“Common chain(公链)”,其所采用过的区块链协议为“Polkadot(波卡)”。当然,在实际应用中,以上示出的数据格式中,还可以包含其它形式的数据内容,在本说明书中不再进行一一列举。In the data format shown above, the domain name information of the above-mentioned target blockchain is "chain001.io", its blockchain type is "Common chain (public chain)", and the blockchain protocol it has adopted is " Polkadot (Poca)". Of course, in practical applications, the data format shown above may also contain other forms of data content, which will not be listed in this specification.
步骤202:响应于所述注册请求,针对所述目标区块链进行注册处理,以将所述目标区块链作为成员区块链加入所述区块链服务网络;所述注册处理包括在所述目标区块链中创建与所述中心化管控平台对应的区块链账户,所述区块链账户用于在服务使用方调用所述中心化管控平台上注册的目标用户服务时,发起针对所述目标区块链上部署的目标用户智能合约的合约调用;其中,该用户服务包括所述目标区块链部署的目标用户智能合约的合约执行逻辑。Step 202: In response to the registration request, perform registration processing for the target blockchain, so as to add the target blockchain as a member blockchain to the blockchain service network; the registration processing includes Create a blockchain account corresponding to the centralized management and control platform in the target blockchain, and the blockchain account is used to initiate a target user service registered on the centralized management and control platform when the service user calls The contract call of the target user smart contract deployed on the target blockchain; wherein, the user service includes the contract execution logic of the target user smart contract deployed on the target blockchain.
中心化管控平台在接收到与目标区块链对应的注册请求时,可以响应该注册请求,对该注册请求进行合法性检查;例如,对该注册请求进行的合法性检查,具体可以包括检查该注册请求的发起者,是否具有相应的注册权限;以及,该注册请求中的数据格式是否满足预设的规则或格式要求,等等。When the centralized management and control platform receives a registration request corresponding to the target blockchain, it can respond to the registration request and conduct a legality check on the registration request; for example, the legality check on the registration request may specifically include checking the Whether the initiator of the registration request has the corresponding registration authority; and whether the data format in the registration request meets the preset rules or format requirements, and so on.
中心化管控平台在完成针对该注册请求的合法性检查后,如果该注册请求通过了合法性检查,中心化管控平台可以进一步基于该注册请求中携带的数据内容,对该目标区块链进行注册处理,以将该目标区块链作为成员区块链加入到该区块链服务网络。After the centralized management and control platform completes the legality check for the registration request, if the registration request passes the legality check, the centralized management and control platform can further register the target blockchain based on the data content carried in the registration request Process to add the target blockchain as a member blockchain to the blockchain service network.
其中,中心化管控平台对目标区块链进行的注册处理,具体可以包括在该目标区块链中创建与该中心化管控平台对应的区块链账户。Wherein, the registration processing of the target blockchain by the centralized management and control platform may specifically include creating a blockchain account corresponding to the centralized management and control platform in the target blockchain.
在实现时,可以先在该目标区块链中为该中心化管控平台申请一个公私钥对,私钥由该中心化管控平台的管理用户持有,再基于公钥进行计算生成一个对应的账户地址(比如该账户地址通常可以是公钥计算得到的一个hash值),然后在目标区块链中再创建一个与该账户地址对应的区块链账户。When implementing, you can first apply for a public-private key pair for the centralized management and control platform in the target blockchain, the private key is held by the management user of the centralized management and control platform, and then calculate and generate a corresponding account based on the public key Address (for example, the account address can usually be a hash value calculated by the public key), and then create a blockchain account corresponding to the account address in the target blockchain.
需要说明的是,在采用账户模型的区块链中,区块链支持的账户类型通常包括外部账户和合约账户。外部账户就是由用户直接控制的账户,也称之为用户账户。而合约账户则是由用户通过外部账户创建的,包含合约代码的账户(即智能合约)。而以上描述的在该目标区块链中创建与该中心化管控平台对应的区块链账户,具体可以是一个外部账户。当在该目标区块链中为该中心化管控平台创建了对应的区块链账户之后,此时该中心化管控平台已取得该目标区块链中合法的用户身份,从而使得中心化管控平台可以基于该外部账户,来发起针对该目标区块链中部署的用户智能合约的合约调用。It should be noted that in a blockchain that adopts an account model, the types of accounts supported by the blockchain usually include external accounts and contract accounts. An external account is an account directly controlled by a user, also called a user account. The contract account is created by the user through an external account and contains an account of the contract code (that is, a smart contract). The creation of a blockchain account corresponding to the centralized management and control platform in the target blockchain described above may specifically be an external account. After the corresponding blockchain account is created for the centralized management and control platform in the target blockchain, the centralized management and control platform has obtained the legal user identity in the target blockchain, so that the centralized management and control platform Based on the external account, a contract call for the user's smart contract deployed in the target blockchain can be initiated.
中心化管控平台对目标区块链进行的注册处理,除了可以包括在该目标区块链中创建与该中心化管控平台对应的区块链账户之外,还可以包括与该目标区块链的注册过程相关的其它形式的注册处理过程。The registration processing of the target blockchain by the centralized management and control platform may include, in addition to creating a blockchain account corresponding to the centralized management and control platform in the target blockchain, it may also include Other forms of registration processing related to the registration process.
在示出的一种实施方式中,中心化管控平台对目标区块链进行的注册处理,具体还可以包括在目标区块链中部署至少一个系统智能合约;其中,上述至少一个系统智能合约具体可以包括一个用于与其它成员区块链进行跨链通信的目标系统智能合约。In one embodiment shown, the registration process performed by the centralized management and control platform on the target blockchain may specifically include deploying at least one system smart contract in the target blockchain; wherein, the above-mentioned at least one system smart contract specifically Can include a target system smart contract for cross-chain communication with other member blockchains.
除了该用于与其它成员区块链进行跨链通信的目标系统智能合约以外,还可以包括用于实现其它的基础管理功能的系统智能合约;例如,上述至少一个系统智能合约还可以包括用于对目标区块链进行服务管理的智能合约,以及用于对中心化管控平台上注册的用户服务或者服务解决方案相关的用户进行服务激励的智能合约等等,在本说明书中不再进行一一列举。In addition to the target system smart contract for cross-chain communication with other member blockchains, it may also include system smart contracts for implementing other basic management functions; for example, at least one of the above system smart contracts may also include Smart contracts for service management of the target blockchain, and smart contracts for service incentives for users registered on the centralized management and control platform for user services or service solutions, etc., will not be discussed one by one in this manual. enumerate.
以下通过一个具体的实施例详细描述对目标区块链进行注册处理的过程。The process of registering the target blockchain is described in detail below through a specific embodiment.
请参见图3,图3为本说明书示出的一种对目标区块链进行注册处理的流程图,包括如下的执行步骤:步骤301,注册方向中心化平台发起与目标区块链对应的注册请求;中心化管控平台在收到上述注册请求后,可以响应该注册请求,开始对上述目标区块链进行注册处理。其中,在本实施例中,对上述目标区块链进行的注册处理,可以包括以下的步骤302-步骤306示出的注册处理流程。Please refer to Fig. 3, Fig. 3 is a flow chart of the registration process for the target blockchain shown in this specification, including the following execution steps: Step 301, the registration direction centralized platform initiates the registration corresponding to the target blockchain request; after receiving the above registration request, the centralized management and control platform can respond to the registration request and start the registration process for the above target blockchain. Wherein, in this embodiment, the registration process for the above-mentioned target blockchain may include the registration process flow shown in the following steps 302-306.
步骤302,保存目标区块链的区块链配置信息。Step 302, saving the blockchain configuration information of the target blockchain.
步骤303,基于目标区块链的访问地址信息与目标区块链中的至少部分节点设备建立通信连接;如前所述,在上述注册请求中,可以包括与上述目标区块链相关的一些区块链配置信息;例如,上述区块链配置信息,可以包括上述目标区块链的访问地址信息,以及上述目标区块链相关的配置信息,等等。中心化管控平台在收到上述注册请求后,可以获取该注册请求中携带的上述区块链配置信息,然后基于获取到的区块链配置信息针对上述目标区块链执行后续的注册处理流程。Step 303, establish communication connections with at least some node devices in the target blockchain based on the access address information of the target blockchain; Block chain configuration information; for example, the above block chain configuration information may include access address information of the above target block chain, configuration information related to the above target block chain, and so on. After receiving the above-mentioned registration request, the centralized management and control platform can obtain the above-mentioned blockchain configuration information carried in the registration request, and then perform subsequent registration processing procedures for the above-mentioned target blockchain based on the obtained blockchain configuration information.
中心化管控平台在收到上述注册请求后,可以将从注册请求中读取到的与目标区块链相关的区块链配置信息,作为成员区块链的配置信息,在本地的数据库中进行存储。After receiving the above registration request, the centralized management and control platform can use the block chain configuration information related to the target block chain read from the registration request as the configuration information of the member block chains in the local database. storage.
在实现时,中心化管控平台可以维护一个用于存储上述区块链服务网络中的各个成员区块链相关的区块链配置信息的信息库,中心化管控平台可以将从上述注册请求中读取到目标区块链相关的区块链配置信息,作为成员区块链的区块链配置信息存储至该信息库中。When implemented, the centralized management and control platform can maintain an information base for storing the blockchain configuration information related to each member blockchain in the above-mentioned blockchain service network, and the centralized management and control platform can read from the above-mentioned registration request Get the block chain configuration information related to the target block chain, and store it in the information base as the block chain configuration information of the member block chains.
中心化管控平台在将与目标区块链相关的区块链配置信息,作为成员区块链的配置信息,在本地的数据库中进行存储之后,还可以进一步基于从注册请求中读取到的上述目标区块链的访问地址信息,与目标区块链中的至少部分节点设备建立通信连接。After the centralized management and control platform stores the block chain configuration information related to the target block chain as the configuration information of the member block chains in the local database, it can further base on the above-mentioned information read from the registration request. The access address information of the target blockchain establishes communication connections with at least some of the node devices in the target blockchain.
如前所述,上述访问地址信息具体可以包括上述目标区块链中的一个或者多个节点设备对应的域名信息或者IP地址信息,中心化管控平台可以基于上述域名信息或者IP地址信息,与上述目标区块链中的一个或者多个节点设备之间建立通信连接。其中,在实现时,中心化管控平台可以与上述目标区块链中的所有节点设备均建立通信连接,也可以仅与上述目标区块链中的部分关键的节点设备(比如存储完整的区块链账本的全节点)建立通信连接。As mentioned above, the above-mentioned access address information may specifically include domain name information or IP address information corresponding to one or more node devices in the above-mentioned target blockchain, and the centralized management and control platform may be based on the above-mentioned domain name information or IP address information, and the above-mentioned A communication connection is established between one or more node devices in the target blockchain. Among them, during implementation, the centralized management and control platform can establish communication connections with all node devices in the above-mentioned target blockchain, or only with some key node devices in the above-mentioned target blockchain (such as storing complete block The full node of the chain ledger) establishes a communication connection.
步骤304,基于所述通信连接从目标区块链中的节点设备处获取所述目标区块链相关的区块链数据。Step 304, acquire block chain data related to the target block chain from node devices in the target block chain based on the communication connection.
中心化管控平台在与目标区块链中的至少部分节点设备建立了通信连接之后,可以继续基于该通信连接,从目标区块链中的节点设备处获取该目标区块链相关的区块链数据。After the centralized management and control platform has established a communication connection with at least some node devices in the target blockchain, it can continue to obtain the blockchain related to the target blockchain from the node devices in the target blockchain based on the communication connection. data.
其中,从目标区块链中的节点设备处获取到的该目标区块链相关的区块链数据,具体可以包括与该目标区块链相关的任意形式的数据,在本说明书中不进行特别限定;例如,在一个例子中,从目标区块链中的节点设备处获取到的该目标区块链相关的区块链数据,具体可以包括该目标区块链完整的区块链账本、与该目标区块链的区块链账本对应的认证根数据、以及该目标区块链中的各个节点设备的公钥数据,等等。Among them, the block chain data related to the target block chain obtained from the node device in the target block chain may specifically include any form of data related to the target block chain, and no special description will be made in this specification. Limitation; for example, in one example, the block chain data related to the target block chain obtained from the node device in the target block chain may specifically include the complete block chain ledger of the target block chain, and The authentication root data corresponding to the blockchain ledger of the target blockchain, the public key data of each node device in the target blockchain, and so on.
其中,需要说明的是,在区块链领域,与区块链账本对应的认证根数据,通常可以包括区块链账本中的创世块数据、各个区块的区块头数据等,可以用于对该区块链账本中存储的数据进行认证的数据。Among them, it should be noted that in the field of blockchain, the authentication root data corresponding to the blockchain ledger can usually include the genesis block data in the blockchain ledger, the block header data of each block, etc., which can be used for Data that authenticates the data stored in the blockchain ledger.
在从目标区块链中的节点设备处获取到该目标区块链相关的区块链数据之后,中心化管控平台可以在数据库中存储获取到的区块链数据。After acquiring the blockchain data related to the target blockchain from the node devices in the target blockchain, the centralized management and control platform can store the acquired blockchain data in the database.
如前所述,中心化管控平台可以维护一个用于存储上述区块链服务网络中的各个成员区块链相关的区块链配置信息的信息库,中心化管控平台可以将从上述注册请求中读取到目标区块链相关的区块链配置信息,作为成员区块链的区块链配置信息存储至该信息库中。而中心化管控平台在从目标区块链中的节点设备处获取到该目标区块链相关的区块链数据之后,也可以将获取到的区块链数据,在上述信息库中与上述目标区块链相关的区块链配置信息进行关联存储。As mentioned above, the centralized management and control platform can maintain an information base for storing the blockchain configuration information related to each member blockchain in the above-mentioned blockchain service network, and the centralized management and control platform can send The block chain configuration information related to the target block chain is read and stored in the information base as the block chain configuration information of the member block chains. After the centralized management and control platform obtains the block chain data related to the target block chain from the node device in the target block chain, it can also use the obtained block chain data in the above information base and the above target The blockchain configuration information related to the blockchain is stored associatively.
步骤305,在所述目标区块链上创建与所述中心化管控平台对应的区块链账户。Step 305, creating a blockchain account corresponding to the centralized management and control platform on the target blockchain.
中心化管控平台基于上述通信连接从目标区块链中的节点设备处获取所述目标区块链相关的区块链数据之后,还可以继续在上述目标区块链上,为中心化管控平台创建一个对应的区块链账户。其中,创建上述区块链账户的具体过程不再赘述。After the centralized management and control platform obtains the blockchain data related to the target blockchain from the node device in the target blockchain based on the above-mentioned communication connection, it can also continue to create a centralized management and control platform on the above-mentioned target blockchain A corresponding blockchain account. Among them, the specific process of creating the above-mentioned blockchain account will not be described in detail.
当在上述目标区块链上为中心化管控平台创建了对应的区块链账户之后,此时该中心化管控平台已取得该目标区块链中合法的用户身份,并已经具有调用上述目标区块链上部署的用户智能合约的能力,后续中心化管控平台可以基于该区块链账户来发起针对该目标区块链上部署的用户智能合约的合约调用。After the corresponding blockchain account is created for the centralized management and control platform on the above target blockchain, the centralized management and control platform has obtained the legal user identity in the target blockchain and has the ability to call the above target area The ability of user smart contracts deployed on the block chain, the subsequent centralized management and control platform can initiate a contract call for the user smart contract deployed on the target block chain based on the block chain account.
其中,在上述中心化管控平台上,具体可以维护一个区块链账户列表。该区块链账户列表中具体可以包含在各个成员区块链上创建的上述中心化管控平台对应的区块链账户。当在上述目标区块链上为中心化管控平台创建了对应的区块链账户之后,可以将该区块链账户添加至上述区块链账户列表中进行维护。Among them, on the above-mentioned centralized management and control platform, a blockchain account list can be maintained specifically. The block chain account list may specifically include the block chain accounts corresponding to the above-mentioned centralized management and control platforms created on each member block chain. After the corresponding blockchain account is created for the centralized management and control platform on the above-mentioned target blockchain, the blockchain account can be added to the above-mentioned blockchain account list for maintenance.
需要说明的是,在各个成员区块链上创建的上述中心化管控平台对应的区块链账户具体可以相同,也可以不相同。例如,在一个例子中,为了便于进行账户管理,在各个成员区块链上创建的上述中心化管控平台对应的区块链账户,默认可以采用同一个预设的区块链账户。比如,在实现时,各个成员区块链均可以将某一个固定的区块链账户提前进行预留,作为与中心化管控平台对应的区块链账户。It should be noted that the blockchain accounts corresponding to the above-mentioned centralized management and control platforms created on each member blockchain may be the same or different. For example, in one example, in order to facilitate account management, the blockchain accounts corresponding to the above-mentioned centralized management and control platforms created on each member blockchain can use the same preset blockchain account by default. For example, during implementation, each member blockchain can reserve a fixed blockchain account in advance as the blockchain account corresponding to the centralized management and control platform.
步骤306,在目标区块链中部署至少一个系统智能合约;其中,所述至少一个系统智能合约包括用于与其它成员区块链进行跨链通信的目标系统智能合约。Step 306, deploying at least one system smart contract in the target blockchain; wherein, the at least one system smart contract includes a target system smart contract for cross-chain communication with other member blockchains.
当在上述目标区块链上,为中心化管控平台创建一个对应的区块链账户之后,中心化管控平台还可以继续在该目标区块链中部署至少一个系统智能合约。上述至少一个系统智能合约具体可以包括用于与其它成员区块链进行跨链通信的目标系统智能合约。After creating a corresponding blockchain account for the centralized management and control platform on the above target blockchain, the centralized management and control platform can continue to deploy at least one system smart contract in the target blockchain. The above at least one system smart contract may specifically include a target system smart contract for cross-chain communication with other member blockchains.
其中,上述至少一个系统智能合约除了可以包括用于与其它成员区块链进行跨链通信的目标系统智能合约之外,还可以包括用于对目标区块链网络进行网络治理的系统智能合约、用于对在中心化管控平台上注册的用户服务相关的用户进行服务激励的系统智能合约,等等,在本说明书中不进行特别限定。Wherein, the above at least one system smart contract may include not only the target system smart contract for cross-chain communication with other member blockchains, but also the system smart contract for network governance of the target blockchain network, The system smart contracts used to provide service incentives for users related to user services registered on the centralized management and control platform, etc., are not specifically limited in this specification.
需要说明的是,上述系统智能合约与上述目标区块链上部署的用户智能合约,是两类完全不同的智能合约。It should be noted that the above-mentioned system smart contract and the user smart contract deployed on the above-mentioned target blockchain are two completely different types of smart contracts.
上述系统智能合约包含的合约执行逻辑,通常是与中心化管控平台上的一些管理功能相关执行逻辑。例如,如前所述的进行网络治理的系统智能合约所包含的合约执行逻辑,可以是与中心化管控平台对上述区块链服务网络进行网络治理的功能相关的执行逻辑;相应的,如前所述的用于对在中心化管控平台上注册的用户服务相关的用户进行服务激励的系统智能合约所包含的合约执行逻辑,可以是与中心化管控平台对注册的用户服务相关的用户进行服务激励的功能相关的执行逻辑。而上述用户智能合约包含的合约执行逻辑,通常与用户在成员区块链上定义的用户服务逻辑相关。The contract execution logic contained in the above-mentioned system smart contract is usually related to some management functions on the centralized management and control platform. For example, the contract execution logic contained in the system smart contract for network governance as mentioned above can be the execution logic related to the function of the centralized management and control platform for the network governance of the above-mentioned blockchain service network; The contract execution logic contained in the system smart contract used to provide service incentives for users related to user services registered on the centralized management and control platform may be related to the centralized management and control platform for users related to registered user services. Execution logic associated with the function of the incentive. The contract execution logic contained in the above user smart contract is usually related to the user service logic defined by the user on the member blockchain.
通过在上述目标区块链上部署至少一个系统智能合约,可以在中心化管控平台已经具有调用上述目标区块链上部署的用户智能合约的能力的基础上,使得上述目标区块链上的用户,也可以通过调用上述目标区块链上部署的系统智能合约的方式,在上述目标区块链上来完成一些与上述中心化管控平台上的管理功能相关的操作。By deploying at least one system smart contract on the above-mentioned target blockchain, on the basis that the centralized management and control platform already has the ability to invoke the user smart contracts deployed on the above-mentioned target blockchain, users on the above-mentioned target blockchain can , it is also possible to complete some operations related to the management functions on the above-mentioned centralized management and control platform on the above-mentioned target blockchain by calling the system smart contract deployed on the above-mentioned target blockchain.
步骤307,向所述注册方返回与所述目标区块链对应的成功注册消息。Step 307, returning a successful registration message corresponding to the target blockchain to the registrar.
当中心化管控平台针对上述目标区块链执行了如步骤302-步骤306示出的各项注册处理流程后,此时上述目标区块链将作为成员区块链,成功的加入到上述区块链服务网络。After the centralized management and control platform executes the various registration processes shown in steps 302 to 306 for the above-mentioned target blockchain, the above-mentioned target blockchain will be successfully added to the above-mentioned block as a member blockchain Chain service network.
在这种情况下,上述中心化管控平台向上述注册方返回与上述目标区块链对应的成功注册消息,以通知上述注册方该目标区块链已经作为成员区块链,成功的加入到了上述区块链服务网络。In this case, the above-mentioned centralized management and control platform returns a successful registration message corresponding to the above-mentioned target blockchain to the above-mentioned registrant to notify the above-mentioned registrant that the target blockchain has successfully joined the above-mentioned blockchain as a member blockchain. Blockchain service network.
需要说明的是,以上实施例中步骤302-步骤306示出的各项注册处理流程的先后顺序仅为示意性的,在本说明书中不进行特别的限定。可以理解的是,在实际应用中,以上实施例中步骤302-步骤306示出的各项注册处理流程的先后顺序,可以基于实际的注册需求进行灵活的调整和互换。It should be noted that the sequence of the various registration processing flows shown in steps 302 to 306 in the above embodiment is only illustrative, and is not specifically limited in this specification. It can be understood that, in practical applications, the order of the various registration processing procedures shown in steps 302 to 306 in the above embodiment can be flexibly adjusted and exchanged based on actual registration requirements.
在本说明书中,当目标区块链作为成员区块链加入了该区块链服务网络之后,后续服务提供方的用户就可以按照自身的需求,将该目标区块链上部署的目标智能合约所包含的合约执行逻辑,与其它成员区块链上部署的用户智能合约所包含的合约执行逻辑进行组合,生成目标用户服务,然后将该目标用户服务注册到该中心化管控平台。In this manual, after the target blockchain joins the blockchain service network as a member blockchain, users of subsequent service providers can, according to their own needs, deploy the target smart contract on the target blockchain The contract execution logic included is combined with the contract execution logic contained in the user smart contracts deployed on other member blockchains to generate target user services, and then register the target user services to the centralized management and control platform.
可以理解的是,组合生成上述目标用户服务的合约执行逻辑中,将包括上述目标区块链上部署的上述目标用户智能合约所包含的合约执行逻辑。It can be understood that the contract execution logic that is combined to generate the above-mentioned target user service will include the contract execution logic contained in the above-mentioned target user smart contract deployed on the above-mentioned target blockchain.
当服务使用方需要调用在中心化控平台上注册的上述目标用户服务时,就可以基于在该目标区块链中创建与该中心化管控平台对应的区块链账户,以该区块链账户代表的区块链身份,来发起针对该目标区块链上部署的上述目标用户合约的合约调用。When the service user needs to call the above-mentioned target user service registered on the centralized control platform, it can create a blockchain account corresponding to the centralized management and control platform in the target blockchain, and use the blockchain account The blockchain identity of the representative to initiate a contract call for the above-mentioned target user contract deployed on the target blockchain.
其中,当上述目标用户服务在上述中心化管控平台上注册完成后,上述中心化管控平台具体可以将该目标用户服务作为标准化的服务进行部署,以开放给服务使用方进行调用。Wherein, when the above-mentioned target user service is registered on the above-mentioned centralized management and control platform, the above-mentioned centralized management and control platform can specifically deploy the target user service as a standardized service, so as to be open to service users to call.
需要说明的是,上述中心化管控平台在部署注册完成的上述目标用户服务时,具体可以采用分布式部署的方式,也可以采用中心化部署的方式。It should be noted that when the above-mentioned centralized management and control platform deploys the above-mentioned target user services that have been registered, it can specifically adopt a distributed deployment method or a centralized deployment method.
在示出的一种实施方式中,上述中心化管控平台在部署上述目标用户服务时,具体 可以将上述用户服务以系统智能合约的形式,分布式部署在各成员区块链上,以供服务使用方调用。In one embodiment shown, when the above-mentioned centralized management and control platform deploys the above-mentioned target user services, specifically, the above-mentioned user services can be distributed and deployed on each member blockchain in the form of system smart contracts for service Called by the consumer.
由于组成上述目标用户服务的合约调用逻辑,可能包括分布于多个成员区块链上部署的多个用户智能合约所包含的合约执行逻辑,用户在调用上述目标用户服务时也可能需要跨链调用分布在多个成员区块链上的多个用户智能合约;因此,上述中心化管控平台在部署在中心化管控平台上注册的用户服务时,具体可以为该用户服务开发对应的跨链调用逻辑,然后将该跨链调用逻辑作为系统智能合约的合约执行逻辑,部署在各成员区块链上。Since the contract call logic that constitutes the above target user service may include contract execution logic contained in multiple user smart contracts deployed on multiple member blockchains, users may also need to call across chains when calling the above target user service Multiple user smart contracts distributed on multiple member blockchains; therefore, when the above-mentioned centralized management and control platform deploys user services registered on the centralized management and control platform, it can specifically develop corresponding cross-chain call logic for the user services , and then deploy the cross-chain call logic on each member blockchain as the contract execution logic of the system smart contract.
如前所述,上述系统智能合约包含的合约执行逻辑,通常是与中心化管控平台上的一些管理功能相关执行逻辑。因此,通过这种方式,相当于是将为该用户服务开发对应的跨链调用逻辑,也作为中心化管控平台上的一些管理功能相关执行逻辑的一部分,以系统智能合约的形式,部署在各成员区块链上。As mentioned earlier, the contract execution logic contained in the above-mentioned system smart contract is usually related to some management functions on the centralized management and control platform. Therefore, in this way, it is equivalent to developing the corresponding cross-chain call logic for the user service, and as part of the execution logic related to some management functions on the centralized management and control platform, it is deployed in the form of system smart contracts in each member on the blockchain.
在示出的一种实施方式中,上述用于跨链通信的目标系统智能合约中,可以包含与上述目标用户服务对应的跨链调用逻辑。In one embodiment shown, the above-mentioned target system smart contract for cross-chain communication may include cross-chain call logic corresponding to the above-mentioned target user service.
该跨链调用逻辑具体可以用于:确定组合生成该目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,按照与上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。The cross-chain call logic can be specifically used to: determine the user smart contracts corresponding to the execution logic of each contract that generates the target user service, and deploy the member blockchains of the above-mentioned user smart contracts, and based on the above-mentioned member areas The blockchain account created in the blockchain corresponding to the centralized management and control platform initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical sequence of the service logic corresponding to the above-mentioned target user services.
通过这种方式,使得服务使用方,都可以通过调用该目标系统智能合约中的包含的上述跨链调用逻辑的方式,对已经在中心化管控平台上注册的上述目标用户服务发起调用。在示出的一种实施方式中,在上述目标系统智能合约中,还可以维护与上述目标用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表。In this way, service users can call the above-mentioned target user services that have been registered on the centralized management and control platform by calling the above-mentioned cross-chain call logic contained in the target system smart contract. In one embodiment shown, in the above-mentioned target system smart contract, the service configuration information corresponding to the above-mentioned target user service can also be maintained, as well as the block chain created for the above-mentioned centralized platform on each member block chain account list.
在实现时,与上述目标用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表,具体可以存储在上述目标系统智能合约的账户存储空间中;比如,上述服务配置信息和上述区块链账户列表,具体可以组织成key-value键值对的形式,构建成Merkle树存储在各成员区块链中的节点设备搭载的存储介质中;再将该Merkle树的根hash存储到与该目标系统智能合约对应的合约账户的账户结构体中。During implementation, the service configuration information corresponding to the above-mentioned target user services and the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain can be stored in the account storage space of the above-mentioned target system smart contract ; For example, the above-mentioned service configuration information and the above-mentioned block chain account list can be specifically organized into the form of key-value key-value pairs, which are constructed into a Merkle tree and stored in the storage medium carried by the node devices in each member block chain; Store the root hash of the Merkle tree in the account structure of the contract account corresponding to the target system smart contract.
上述服务配置信息具体可以包括:组合生成上述目标用户服务的各合约执行逻辑的标识信息(比如函数名)、包含上述各合约执行逻辑的各用户智能合约的合约地址、以及部署上述各用户智能合约的各成员区块链的区块链标识之间的对应关系。The above-mentioned service configuration information may specifically include: the identification information (such as the function name) of each contract execution logic that is combined to generate the above-mentioned target user service, the contract address of each user smart contract containing the above-mentioned contract execution logic, and the deployment of each of the above-mentioned user smart contracts. The corresponding relationship between the blockchain identifiers of each member blockchain.
在这种情况下,上述跨链调用逻辑具体可以由如下的执行逻辑组成:查询逻辑,用于查询上述目标系统智能合约中维护的与上述目标用户服务对应的服务配置信息中的上述对应关系,以确定组合生成上述目标用户服务的各合约执行逻辑、包含上述各合约执行逻辑的各用户智能合约、和部署上述各用户智能合约的各成员区块链。以及,还可以用于在确定出部署上述各用户智能合约的各成员区块链之后,进一步查询上述目标系统智能合约中维护的上述区块链账户列表,以确定在上述各成员区块链上创建的与该中心化平台对应的区块链账户。In this case, the above-mentioned cross-chain calling logic may be specifically composed of the following execution logic: query logic, which is used to query the above-mentioned corresponding relationship in the service configuration information corresponding to the above-mentioned target user service maintained in the above-mentioned target system smart contract, Each contract execution logic of the above-mentioned target user service, each user smart contract including the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts are generated in a determined combination. And, it can also be used to further query the above-mentioned blockchain account list maintained in the above-mentioned target system smart contract after determining the member blockchains that deploy the above-mentioned user smart contracts, so as to determine the The created blockchain account corresponding to the centralized platform.
跨链逻辑,用于基于查询逻辑确定出的,包含上述各合约执行逻辑的各用户智能合约、部署上述各用户智能合约的各成员区块链、以及在上述各成员区块链上创建的与该中心化平台对应的区块链账户等信息,按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。其中,跨链调用其它成员区块链上部署的用户智能合约的具体实施细节,在本说明书中不再进行详述,本领域技术人员可以参考相关技术中的记载。Cross-chain logic, which is used to determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, each member blockchain that deploys the above-mentioned user smart contracts, and the created and According to the logical sequence of the service logic corresponding to the above-mentioned target user services, the information such as the blockchain account corresponding to the centralized platform initiates cross-chain calls for the smart contracts of the above-mentioned users respectively. Among them, the specific implementation details of cross-chain calling user smart contracts deployed on other member blockchains will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
在示出的一种实施方式中,上述服务配置信息中,还可以包括:基于上述目标用户服务对应的服务逻辑的逻辑顺序,为组合生成上述目标用户服务的各合约执行逻辑确定 出的调用顺序。In one embodiment shown, the above service configuration information may also include: based on the logic sequence of the service logic corresponding to the above target user service, the invocation sequence determined for each contract execution logic that is combined to generate the above target user service .
在这种情况下,在调用上述目标系统智能合约包含的上述跨链逻辑,按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用时,具体可以读取上述服务配置信息中包括的上述调用顺序,再按照读取到的上述调用顺序,分别发起针对上述各用户智能合约的跨链调用。In this case, when invoking the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract, according to the logical order of the service logic corresponding to the above-mentioned target user service, when initiating cross-chain calls for the above-mentioned user smart contracts, the details can be read Take the above call sequence included in the above service configuration information, and then initiate cross-chain calls for the above user smart contracts according to the read above call sequence.
在实际应用中,上述目标用户服务对应的服务逻辑的逻辑顺序,具体也可以不作为服务配置信息的一部分维护在上述目标系统智能合约中,而是维护在上述中心化管控平台上。In practical applications, the logical sequence of the service logic corresponding to the above-mentioned target user service may not be maintained in the above-mentioned target system smart contract as part of the service configuration information, but on the above-mentioned centralized management and control platform.
在这种情况下,在调用上述目标系统智能合约包含的上述跨链逻辑,按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用时,具体可以与上述中心化管控平台进行链外交互,从上述中心化管控平台上来读取上述目标用户服务对应的服务逻辑的逻辑顺序,再按照读取到的上述调用顺序,发起针对上述各用户智能合约的跨链调用。In this case, when invoking the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract, according to the logical sequence of the service logic corresponding to the above-mentioned target user service, when initiating cross-chain calls for the above-mentioned user smart contracts, it can be specifically related to The above-mentioned centralized management and control platform performs off-chain interaction, reads the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform, and then initiates a cross-connection of the smart contracts for each of the above-mentioned users according to the above-mentioned call sequence read. chain calls.
在实现时,上述目标系统智能合约具体可以通过一个oracle预言机程序,与上述中心化管控平台进行链外交互,从上述中心化管控平台上读取上述目标用户服务对应的服务逻辑的逻辑顺序。其中,上述目标系统智能合约通过oracle预言机程序与上述中心化管控平台进行链外交互的具体实施细节,在本说明书中不再进行详述,本领域技术人员可以参考相关技术中的记载。When implemented, the above-mentioned target system smart contract can specifically interact with the above-mentioned centralized management and control platform through an oracle oracle program, and read the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform. Among them, the specific implementation details of the above-mentioned target system smart contract interacting with the above-mentioned centralized management and control platform through the oracle oracle program will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
在示出的一种实施方式中,中心化管控平台在各成员区块链上部署了用于进行跨链通信的目标系统智能合约之后,后续服务提供方的用户在上述中心化管控平台上注册了新的用户服务时,中心化管控平台还可以将新注册的该用户服务对应的服务配置信息,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。In one embodiment shown, after the centralized management and control platform deploys the target system smart contracts for cross-chain communication on each member blockchain, users of subsequent service providers register on the above-mentioned centralized management and control platform When a new user service is created, the centralized management and control platform can also store the service configuration information corresponding to the newly registered user service in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
在示出的一种实施方式中,中心化管控平台在各成员区块链上部署了用于进行跨链通信的目标系统智能合约之后,后续如果上述区块链服务网络加入了新的成员区块链,中心化管控平台还可以将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户,也存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。In one embodiment shown, after the centralized management and control platform deploys the target system smart contract for cross-chain communication on each member blockchain, if the above-mentioned blockchain service network joins a new member area Blockchain, the centralized management and control platform can also store the blockchain account corresponding to the centralized management and control platform created on the new member blockchain into the above target system smart contract, so that the target system smart contract Update the list of blockchain accounts maintained in .
需要说明的是,在实际应用中,以上描述的中心化管控平台对上述目标系统智能合约中维护的服务配置信息以及区块链账户列表进行更新的操作,具体可以采用实时更新的方式,也可以采用离线更新的方式。It should be noted that in practical applications, the centralized management and control platform described above updates the service configuration information maintained in the smart contract of the target system and the list of blockchain accounts. Use the offline update method.
一方面,如果采用实时更新的方式,每当在上述中心化管控平台上注册了新的用户服务时,中心化管控平台就可以立即将新注册的该用户服务对应的服务配置信息,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。On the one hand, if a real-time update method is adopted, whenever a new user service is registered on the above-mentioned centralized management and control platform, the centralized management and control platform can immediately store the service configuration information corresponding to the newly registered user service in the above-mentioned The target system smart contract to update the service configuration information maintained in the target system smart contract.
每当上述区块链服务网络加入了新的成员区块链时,中心化管控平台也可以立即将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。Whenever the above-mentioned blockchain service network joins a new member blockchain, the centralized management and control platform can also immediately transfer the blockchain account corresponding to the centralized management and control platform created on the new member blockchain, Stored in the above target system smart contract to update the blockchain account list maintained in the target system smart contract.
另一方面,如果采用离线更新的方式,可以在上述目标系统智能合约每次被调用时,再触发对上述目标系统智能合约中维护的服务配置信息和区块链账户列表进行更新。On the other hand, if the offline update method is adopted, each time the target system smart contract is invoked, it can trigger an update of the service configuration information and blockchain account list maintained in the target system smart contract.
在这种情况下,每当在上述中心化管控平台上注册了新的用户服务时,中心化管控平台可以先将新注册的该用户服务对应的服务配置信息缓存起来。当上述目标系统智能合约被调用时,再将缓存的上述服务配置信息存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。相应的,每当上述区块链服务网络加入了新的成员区块链时,中心化管控平台也可以先将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户缓存起来。当上述目标系统智能合约被调用时,再将缓存的上述区块链账户存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。In this case, whenever a new user service is registered on the above-mentioned centralized management and control platform, the centralized management and control platform may first cache the service configuration information corresponding to the newly registered user service. When the target system smart contract is invoked, the cached service configuration information is stored in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract. Correspondingly, whenever a new member blockchain is added to the above-mentioned blockchain service network, the centralized management and control platform can also first transfer the block corresponding to the centralized management and control platform created on the new member blockchain to The chain account is cached. When the target system smart contract is invoked, the cached blockchain account is stored in the target system smart contract to update the list of blockchain accounts maintained in the target system smart contract.
在实现时,可以在上述目标系统智能合约中引入数据同步的执行逻辑,使得上述目标系统智能合约每次被调用时,可以先运行该数据同步的执行逻辑,与中心化管控平台进行服务配置信息和区块链账户列表的数据同步,基于中心化管控平台缓存的服务配置信息和区块链账户对上述目标系统智能合约中维护的服务配置信息和区块链账户列表进行更新,然后再继续执行本次被调用的合约执行逻辑。When implementing, the execution logic of data synchronization can be introduced into the above-mentioned target system smart contract, so that each time the above-mentioned target system smart contract is called, the execution logic of data synchronization can be run first, and the service configuration information can be communicated with the centralized management and control platform Synchronize with the data of the blockchain account list, update the service configuration information and blockchain account list maintained in the smart contract of the above target system based on the service configuration information and blockchain accounts cached by the centralized management and control platform, and then continue to execute The contract execution logic that is called this time.
在示出的一种实施方式中,上述中心化管控平台在部署上述目标用户服务时,也可以将上述用户服务以服务接口的形式,中心化部署在上述中心化管控平台上,以供服务使用方调用。In one embodiment shown, when the above-mentioned centralized management and control platform deploys the above-mentioned target user service, the above-mentioned user service can also be centrally deployed on the above-mentioned centralized management and control platform in the form of a service interface for service use party calls.
其中,在该服务接口中可以包含与上述目标用户服务相关的调用方法(比如该调用方法具体可以是接口函数的形式),这些调用方法对应的调用逻辑具体可以包括:确定组合生成该目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,按照与上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。Wherein, the calling method related to the above-mentioned target user service may be included in the service interface (for example, the calling method may specifically be in the form of an interface function), and the calling logic corresponding to these calling methods may specifically include: determining a combination to generate the target user service Each user smart contract corresponding to the execution logic of each contract, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain accounts corresponding to the centralized management and control platform created in the above-mentioned member blockchains, In accordance with the logical order of the service logic corresponding to the above-mentioned target user services, respectively initiate cross-chain calls for the smart contracts of each of the above-mentioned users.
在这种情况下,当服务使用方需要调用已经在上述中心化管控平台上注册的上述目标用户服务时,可以发起一个针对上述服务接口的调用请求,来调用上述目标用户服务。In this case, when the service user needs to call the above-mentioned target user service that has been registered on the above-mentioned centralized management and control platform, it can initiate a call request for the above-mentioned service interface to call the above-mentioned target user service.
而中心化管控平台在收到针对上述服务接口的调用请求后,可以响应该调用请求,执行该服务接口中包含的上述调用方法,来确定组合生成该目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,按照与上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用,然后再汇总针对上述各用户智能合约的跨链调用的调用结果,并将上述调用结果返回给上述服务使用方。After receiving the call request for the above service interface, the centralized management and control platform can respond to the call request and execute the above call method contained in the service interface to determine the execution logic of each contract corresponding to the combined generation of the target user service. User smart contracts, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain accounts corresponding to the centralized management and control platform created in the above-mentioned member blockchains, according to the corresponding target user services The logical order of the service logic is to initiate cross-chain calls for the above-mentioned user smart contracts, and then summarize the call results of the cross-chain calls for the above-mentioned user smart contracts, and return the above-mentioned call results to the above-mentioned service users.
在一个例子中,以上实施例描述的与上述目标用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表,具体可以维护在上述中心化管控平台上;比如,在实际应用中,上述服务配置信息和上述区块链账户列表,均可以作为服务接口相关的调用参数的形式,写入到上述服务接口中。In one example, the service configuration information corresponding to the above-mentioned target user service described in the above embodiment, and the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain can be specifically maintained in the above-mentioned centralized management and control platform; for example, in practical applications, the above-mentioned service configuration information and the above-mentioned blockchain account list can be written into the above-mentioned service interface in the form of call parameters related to the service interface.
上述服务接口所包含的与上述目标用户服务相关的调用方法对应的调用逻辑,具体可以包括:查询逻辑,用于查询上述服务配置信息中的上述对应关系,以确定组合生成上述目标用户服务的各合约执行逻辑、包含上述各合约执行逻辑的各用户智能合约、和部署上述各用户智能合约的各成员区块链。以及,在确定出部署上述各用户智能合约的各成员区块链之后,进一步查询上述区块链账户列表,以确定在上述各成员区块链上创建的与该中心化平台对应的区块链账户。The invocation logic corresponding to the invocation method related to the above-mentioned target user service contained in the above-mentioned service interface may specifically include: query logic, used to query the above-mentioned corresponding relationship in the above-mentioned service configuration information, so as to determine the combinations that generate the above-mentioned target user service. Contract execution logic, each user smart contract including the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, after determining the member blockchains that deploy the above-mentioned user smart contracts, further query the above-mentioned blockchain account list to determine the blockchain corresponding to the centralized platform created on the above-mentioned member blockchains account.
跨链逻辑,用于根据上述查询逻辑查询出的在上述各成员区块链上创建的与该中心化平台对应的区块链账户,按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。Cross-chain logic, which is used to query the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains according to the above-mentioned query logic, and initiate respectively according to the logical order of the service logic corresponding to the above-mentioned target user services Cross-chain calls for the above-mentioned user smart contracts.
在另一个例子中,中心化管控平台维护的上述服务配置信息中,还可以包括:基于上述目标用户服务对应的服务逻辑的逻辑顺序,为组合生成上述目标用户服务的各合约执行逻辑确定出的调用顺序。In another example, the above-mentioned service configuration information maintained by the centralized management and control platform may also include: based on the logic sequence of the service logic corresponding to the above-mentioned target user service, the contract execution logic determined for the combination of the above-mentioned target user service call sequence.
在这种情况下,上述跨链逻辑在按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用时,具体可以从上述服务配置信息中读取上述调用顺序,再按照读取到的上述调用顺序,分别发起针对上述各用户智能合约的跨链调用。In this case, when the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts according to the logical sequence of the service logic corresponding to the above-mentioned target user service, the above-mentioned call can be read from the above-mentioned service configuration information. order, and then initiate cross-chain calls for the smart contracts of each user above in accordance with the read order of the above calls.
请参见图4,图4是本说明书根据一示例性实施例示出的一种在中心化管控平台上注册用户服务的服务注册方法的流程图,该方法应用于图1所示的中心化管控平台;所述方法包括以下步骤。Please refer to Fig. 4, Fig. 4 is a flowchart of a service registration method for registering user services on a centralized management and control platform according to an exemplary embodiment of this specification, and the method is applied to the centralized management and control platform shown in Fig. 1 ; The method includes the following steps.
步骤401,接收服务提供方发起的用户服务注册请求;上述服务提供方,具体可以 是一个具有在该中心化管控平注册用户服务的服务需求的用户。该服务提供方的用户,可以按照自身的服务需求,将部署在各成员区块链上的用户智能合约所包含的合约执行逻辑进行组合,生成用户服务,然后将该用户服务注册到该中心化管控平台。 Step 401, receiving the user service registration request initiated by the service provider; the above-mentioned service provider may specifically be a user who has a service requirement for registering user services on the centralized management and control platform. Users of the service provider can combine the contract execution logic contained in the user smart contracts deployed on each member blockchain according to their own service requirements to generate user services, and then register the user services to the centralized Control platform.
需要说明的是,上述服务提供方的用户,具体可以是一个在上述区块链服务网络上的任一成员区块链上注册了区块链账户的用户。也即,该服务提供方的用户,具体可以是一个隶属于上述区块链服务网络中的某一个成员区块链的用户成员。It should be noted that the user of the above-mentioned service provider may specifically be a user who has registered a blockchain account on any member blockchain on the above-mentioned blockchain service network. That is to say, the user of the service provider may specifically be a user member belonging to a certain member blockchain in the above-mentioned blockchain service network.
在这种情况下,该服务提供方的用户可以按照自身的服务需求,将该成员区块链上部署的智能合约所包含的合约执行逻辑,与其它成员区块链上部署的用户智能合约所包含的合约执行逻辑进行组合,生成用户服务,然后将该用户服务注册到该中心化管控平台。In this case, the user of the service provider can combine the contract execution logic contained in the smart contract deployed on the member blockchain with the contract execution logic contained in the user smart contract deployed on other member blockchains according to their own service needs. The included contract execution logic is combined to generate user services, and then register the user services to the centralized management and control platform.
在实际应用中,上述服务提供方的用户,具体也可以是并未在上述区块链服务网络上的各成员区块链上注册了区块链账户的用户,而是一个在上述中心化管控平台上注册了用户账户的用户;也即,上述服务提供方的用户是一个不隶属于上述区块链服务网络中的任一成员区块链的用户成员,而是隶属于上述中心化管控平台的一个用户成员。例如,该上述服务提供方的用户,具体可以是在中心化管控平台上注册了管理员账户的一个平台管理员。In practical applications, the user of the above-mentioned service provider may also be a user who has not registered a blockchain account on each member blockchain on the above-mentioned blockchain service network, but a user in the above-mentioned centralized management and control A user who has registered a user account on the platform; that is, the user of the above-mentioned service provider is a user member who does not belong to any member blockchain in the above-mentioned blockchain service network, but belongs to the above-mentioned centralized management and control platform A user member of . For example, the user of the above-mentioned service provider may specifically be a platform administrator who has registered an administrator account on the centralized management and control platform.
在这种情况下,上述服务提供方的用户可以基于自身对各成员区块链上的用户智能合约的部署情况的全局了解,再按照自身的服务需求,将部署在各成员区块链上的用户智能合约所包含的合约执行逻辑进行自由组合,生成用户服务,然后将该用户服务注册到该中心化管控平台。In this case, the users of the above-mentioned service providers can, based on their own overall understanding of the deployment of user smart contracts on each member blockchain, and then according to their own service needs, deploy the smart contracts deployed on each member blockchain The contract execution logic contained in the user smart contract is freely combined to generate user services, and then register the user services to the centralized management and control platform.
上述服务提供方的用户在向中心化管控平台上注册用户服务时,具体可以通过一个与上述中心化管控平台对接的用户客户端来完成。上述服务提供方的用户可以通过在上述用户客户端上执行服务注册操作,向上述中心化管控平台发起服务注册请求,使得上述中心化管控平台可以响应该服务注册请求,在上述中心化管控平台上注册用户服务。When users of the above-mentioned service provider register user services on the centralized management and control platform, it can specifically be completed through a user client docked with the above-mentioned centralized management and control platform. Users of the above-mentioned service provider can initiate a service registration request to the above-mentioned centralized management and control platform by performing a service registration operation on the above-mentioned user client, so that the above-mentioned centralized management and control platform can respond to the service registration request, and on the above-mentioned centralized management and control platform Sign up for user services.
步骤402,响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;上述中心化管控平台在收到上述服务提供方的用户发起的用户服务注册请求时,可以响应该用户服务注册请求,来确定用于实现该服务提供方的用户需要注册的用户服务对应的服务功能的合约执行逻辑集合;其中,该合约执行逻辑集合包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑。 Step 402, in response to the user service registration request, determine a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes user smart contracts deployed on each member blockchain Included contract execution logic; when the above-mentioned centralized management and control platform receives the user service registration request initiated by the user of the above-mentioned service provider, it can respond to the user service registration request to determine the user’s need to register for the implementation of the service provider. The contract execution logic set of the service function corresponding to the user service; wherein, the contract execution logic set includes the contract execution logic contained in the user smart contract deployed on each member blockchain.
如前所述,组合生成上述用户服务的合约执行逻辑中的至少部分合约执行逻辑,可以分别与不同的成员区块链上部署的用户智能合约相对应。在这种情况下,该合约执行逻辑集合中的至少部分合约执行逻辑,可以是来自不同的成员区块链上的用户智能合约所包含的合约执行逻辑。当然,在实际应用中,组合生成上述用户服务的合约执行逻辑中的至少部分合约执行逻辑,也可以是来源于同一个成员区块链中的多个用户智能合约所包含的合约执行逻辑;或者,也可以来源于同一个成员区块链中的同一个用户智能合约所包含的多个合约执行逻辑。在这种情况下,该合约执行逻辑集合中的至少部分合约执行逻辑,也可以是来源于同一个成员区块链中的多个用户智能合约所包含的合约执行逻辑;或者,也可以来源于同一个成员区块链中的同一个用户智能合约所包含的多个合约执行逻辑,在本说明书中不进行特别限定。As mentioned above, at least part of the contract execution logic in the contract execution logic generated by combining the above user services can correspond to the user smart contracts deployed on different member blockchains respectively. In this case, at least part of the contract execution logic in the contract execution logic set may be the contract execution logic contained in user smart contracts on different member blockchains. Of course, in practical applications, at least part of the contract execution logic in the contract execution logic that generates the above-mentioned user services can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or , can also be derived from multiple contract execution logic contained in the same user smart contract in the same member blockchain. In this case, at least part of the contract execution logic in the contract execution logic set can also be derived from the contract execution logic contained in multiple user smart contracts in the same member blockchain; or, it can also be derived from The multiple contract execution logic contained in the same user smart contract in the same member blockchain is not specifically limited in this specification.
在示出的一种实施方式中,中心化管控平台可以支持将各成员区块链上部署的用户智能合约包含的合约执行逻辑,在中心化管控平台上进行注册。相应的,中心化管控平台上注册的用户服务,则可以是由在中心化管控平台上已注册的至少一个合约执行逻辑进行组合生成的服务。In one embodiment shown, the centralized management and control platform can support the registration of the contract execution logic included in the user smart contracts deployed on each member blockchain on the centralized management and control platform. Correspondingly, the user services registered on the centralized management and control platform can be services generated by combining at least one contract execution logic registered on the centralized management and control platform.
在这种情况下,上述中心化管控平台响应上述用户服务注册请求,来确定用于实现上述服务提供方的用户需要注册的用户服务对应的服务功能的合约执行逻辑集合时,则具体可以从上述中心化管控平台上已经注册的合约执行逻辑中,来确定用于实现该用户服务对应的服务功能的合约执行逻辑集合。In this case, when the above-mentioned centralized management and control platform responds to the above-mentioned user service registration request to determine the contract execution logic set for realizing the service function corresponding to the user service that the user of the above-mentioned service provider needs to register, then specifically, it can be obtained from the above-mentioned In the contract execution logic registered on the centralized management and control platform, the contract execution logic set used to realize the service function corresponding to the user service is determined.
在示出的一种实施方式中,中心化管控平台可以将已注册的合约执行逻辑,通过上述商用户客户端上的可视化界面,向服务提供方的用户输出,以将在中心化管控平台上完成注册的合约执行逻辑的访问权限,开放给服务提供方的用户。In one embodiment shown, the centralized management and control platform can output the registered contract execution logic to the user of the service provider through the visual interface on the above-mentioned business user client, so that the centralized management and control platform will The access rights of the registered contract execution logic are open to the users of the service provider.
而服务提供方的用户可以基于自身的服务需求,从上述可视化界面中选择至少一个已注册的合约执行逻辑,并将选择的合约执行逻辑对应的标识信息(比如函数名)携带在上述用户服务注册请求中,然后将该服务注册请求发送至上述中心化管控平台。The users of the service provider can select at least one registered contract execution logic from the above-mentioned visual interface based on their own service requirements, and carry the identification information (such as the function name) corresponding to the selected contract execution logic in the above-mentioned user service registration request, and then send the service registration request to the above-mentioned centralized management and control platform.
在这种情况下,上述中心化管控平台在响应上述用户服务注册请求,在从上述中心化管控平台上已经注册的合约执行逻辑中,来确定用于实现该用户服务对应的服务功能的合约执行逻辑集合时,具体可以获取该用户服务注册请求中携带的上述标识信息,然后将已注册的合约执行逻辑中与上述标识信息对应的至少一个合约执行逻辑,确定为用于实现上述用户服务对应的服务功能的合约执行逻辑集合。In this case, the above-mentioned centralized management and control platform, in response to the above-mentioned user service registration request, determines the contract execution for realizing the service function corresponding to the user service from the contract execution logic registered on the above-mentioned centralized management and control platform. In logic collection, specifically, the above-mentioned identification information carried in the user service registration request can be obtained, and then at least one contract execution logic corresponding to the above-mentioned identification information in the registered contract execution logic can be determined as the corresponding one for realizing the above-mentioned user service A collection of contract execution logic for service functions.
在示出的另一种实施方式中,上述服务提供方的用户,可以基于自身的服务需求,为需要注册的上述用户服务定义服务逻辑。而在上述用户服务注册请求中,也可以不携带从上述可视化界面中选择至少一个已注册的合约执行逻辑对应的标识信息,而是携带服务提供方的用户为上述用户服务定义的服务逻辑相关的描述信息。例如,该描述信息,具体可以是用户需要注册的用户服务相关的功能描述。In another illustrated implementation manner, the user of the above-mentioned service provider may define service logic for the above-mentioned user services that need to be registered based on their own service requirements. In the above-mentioned user service registration request, it is also possible not to carry the identification information corresponding to at least one registered contract execution logic selected from the above-mentioned visual interface, but to carry the service logic related to the service logic defined by the user of the service provider for the above-mentioned user service Description. For example, the description information may specifically be a function description related to the user service that the user needs to register.
在这种情况下,上述中心化管控平台在响应上述用户服务注册请求,在从上述中心化管控平台上已经注册的合约执行逻辑中,来确定用于实现该用户服务对应的服务功能的合约执行逻辑集合时,具体可以将已注册的合约执行逻辑,分别与该描述信息所指示的服务逻辑进行匹配;然后根据匹配的结果,将已注册的合约执行逻辑中,与该描述信息所指示的服务逻辑匹配的至少一个合约执行逻辑,确定为用于实现上述用户服务对应的服务功能的合约执行逻辑集合。In this case, the above-mentioned centralized management and control platform, in response to the above-mentioned user service registration request, determines the contract execution for realizing the service function corresponding to the user service from the contract execution logic registered on the above-mentioned centralized management and control platform. In logic collection, the registered contract execution logic can be matched with the service logic indicated by the description information; and then according to the matching result, the registered contract execution logic can be matched with the service logic indicated by the description information. At least one contract execution logic that matches the logic is determined as a set of contract execution logic for realizing the service function corresponding to the above user service.
通过这种方式,服务提供方的用户可以在不了解已经注册的各个合约执行逻辑对应的服务逻辑的前提下,仅向中心化管控平台提交与需要注册的用户服务对应的服务逻辑相关的描述信息,就可以由中心化管控平台通过逻辑匹配的方式,从已注册的合约执行逻辑中查找到能够组合生成上述用户服务的合约执行逻辑集合,从而使得一些对已经注册的各个合约执行逻辑的服务逻辑不太了解的用户,也可以自主的基于自身的服务需求在中心化管控平台上注册新的用户服务,进而可以提升在中心化管控平台上注册用户服务时的便捷性。In this way, users of the service provider can only submit description information related to the service logic corresponding to the user service that needs to be registered to the centralized management and control platform without knowing the service logic corresponding to each registered contract execution logic , the centralized management and control platform can find the set of contract execution logic that can be combined to generate the above user services from the registered contract execution logic through logical matching, so that some service logics that execute logic for each registered contract Users who don't know much can also independently register new user services on the centralized management and control platform based on their own service needs, which can improve the convenience of registering user services on the centralized management and control platform.
步骤403,将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。 Step 403, combine the contract execution logic in the contract execution logic set to generate the user service, so as to complete the service registration of the user service.
当上述中心化管控平台在从上述中心化管控平台上已经注册的合约执行逻辑中,确定出用于实现上述用户服务对应的服务功能的合约执行逻辑集合之后,可以将上述合约执行逻辑集合中的合约执行逻辑进行组合生成上述用户服务,以完成上述用户服务的服务注册。After the above-mentioned centralized management and control platform determines the contract execution logic set used to realize the service functions corresponding to the above-mentioned user services from the contract execution logic registered on the above-mentioned centralized management and control platform, the above-mentioned contract execution logic set can be The contract execution logic is combined to generate the above user services to complete the service registration of the above user services.
在示出的一种实施方式中,上述中心化管控平台可以为该服务提供方的用户分配一个服务标识,再将上述合约执行逻辑集合中的合约执行逻辑进行组合生成一个合约执行逻辑组合,然后将该合约执行逻辑组合与上述服务标识进行绑定,以完成针对上述用户服务的服务注册。In one embodiment shown, the above-mentioned centralized management and control platform can assign a service identifier to the user of the service provider, and then combine the contract execution logic in the above-mentioned contract execution logic set to generate a contract execution logic combination, and then Bind the contract execution logic combination with the above service identifier to complete the service registration for the above user service.
在实现时,可以将上述合约执行逻辑集合中的合约执行逻辑,按照与上述服务提供方的用户为上述用户服务定义的服务逻辑的逻辑顺序进行组合,得到合约执行逻辑组合,再将该合约执行逻辑组合与上述服务标识进行绑定,以完成针对上述用户服务的服务注册。During implementation, the contract execution logic in the above contract execution logic set can be combined in accordance with the logical order of the service logic defined by the user of the above service provider for the above user service to obtain a combination of contract execution logic, and then execute the contract The logical combination is bound with the above-mentioned service identifier to complete the service registration for the above-mentioned user service.
在示出的一种实施方式中,当完成上述用户服务的服务注册之后,中心化管控平台可以为注册完成的该用户服务生成对应的服务配置信息,并在本地存储为该用户服务生成的服务配置信息。In one embodiment shown, after the service registration of the above-mentioned user service is completed, the centralized management and control platform can generate corresponding service configuration information for the registered user service, and store the service generated for the user service locally configuration information.
在实现时,在中心化管控平台上,具体可以维护一个用于存储注册完成的用户服务 对应的服务配置信息的信息库,当注册了新的用户服务之后,可以将为该新的用户服务生成的服务配置信息,与为该新的用户服务分配的服务标识一起关联存储到该信息库中。During implementation, on the centralized management and control platform, an information base for storing the service configuration information corresponding to the registered user service can be maintained. When a new user service is registered, it can be generated for the new user service. The service configuration information of the new user service is associated with the service identifier allocated for the new user service and stored in the information base.
其中,上述服务配置信息的具体内容,在本说明书中不进行特别限定;例如,可以包括:组合生成上述用户服务的各合约执行逻辑的标识信息、包含所述各合约执行逻辑的各用户智能合约的合约地址、以及部署上述各用户智能合约的各成员区块链的区块链标识之间的对应关系,等等。Wherein, the specific content of the above-mentioned service configuration information is not particularly limited in this specification; for example, it may include: the identification information of each contract execution logic that combines and generates the above-mentioned user services, and each user smart contract containing the above-mentioned contract execution logic The corresponding relationship between the contract address of , and the blockchain identification of each member blockchain that deploys the above-mentioned user smart contracts, and so on.
在本说明书中,上述中心化管控平台,除了可以支持注册由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务以外,在实际应用中,还可以支持由已经注册的至少一个用户服务组合生成服务解决方案。In this specification, in addition to supporting the registration of user services generated by the contract execution logic combination contained in the user smart contracts deployed on each member blockchain, the above-mentioned centralized management and control platform can also support user services generated by At least one user service composition that has registered generates a service solution.
请参见图5,图5是本说明书根据一示例性实施例示出的一种在中心化管控平台上注册服务解决方案的服务注册方法的流程图,该方法也可以应用于图1所示的中心化管控平台;所述方法包括以下步骤。Please refer to Fig. 5. Fig. 5 is a flowchart of a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment of this specification. This method can also be applied to the center shown in Fig. 1 management and control platform; the method includes the following steps.
步骤501,接收服务提供方发起的解决方案注册请求;其中,上述服务解决方案,具体是指将已经在上述中心化管控平台上注册的至少一个用户服务,进行组合之后生成的服务能力更为复杂的解决方案。 Step 501, receiving a solution registration request initiated by the service provider; wherein, the above-mentioned service solution specifically refers to combining at least one user service that has been registered on the above-mentioned centralized management and control platform to generate more complex service capabilities s solution.
上述服务提供方的用户在向中心化管控平台上注册用户服务时,具体也可以通过一个与上述中心化管控平台对接的用户客户端来完成。上述服务提供方的用户可以通过在上述用户客户端上执行服务注册操作,向上述中心化管控平台发起解决方案注册请求,使得上述中心化管控平台可以响应该解决方案注册请求,在上述中心化管控平台上注册服务解决方案。When users of the above-mentioned service provider register user services on the centralized management and control platform, it can also be done through a user client docked with the above-mentioned centralized management and control platform. Users of the above-mentioned service provider can initiate a solution registration request to the above-mentioned centralized management and control platform by performing a service registration operation on the above-mentioned user client, so that the above-mentioned centralized management and control platform can respond to the solution registration request, and in the above-mentioned centralized management and control Register service solutions on the platform.
步骤502,响应于所述解决方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;上述中心化管控平台在收到上述服务提供方的用户发起的解决方案注册请求时,可以响应该解决方案注册请求,来确定用于实现该服务提供方的用户需要注册的服务解决方案对应的服务功能的用户服务集合。 Step 502, in response to the solution registration request, determine from the registered user services the set of user services used to realize the service functions corresponding to the service solution; When a user initiates a solution registration request, the user service set for implementing the service function corresponding to the service solution that the user of the service provider needs to register may be determined in response to the solution registration request.
在示出的一种实施方式中,上述中心化管控平台可以将已经注册的用户服务通过可视化界面向服务提供方的用户输出,以由该服务提供方的用户在该可视化界面中选择用于组合生成上述服务解决方案的至少一个用户服务。相应的,上述解决方案注册请求中可以携带该服务提供方的用户选择的上述至少一个用户服务对应的标识信息,上述中心化管控平台在响应上述解决方案注册请求,在从上述中心化管控平台上已经注册的用户服务中,来确定用于实现该服务解决方案对应的服务功能的用户服务集合时,具体可以获取该解决方案注册请求中携带的上述标识信息,然后将已注册的用户服务中与上述标识信息对应的至少一个用户服务,确定为用于实现上述服务解决方案对应的服务功能的用户服务集合。In one embodiment shown, the above-mentioned centralized management and control platform can output the registered user services to the user of the service provider through the visual interface, so that the user of the service provider can select in the visual interface for combination Generate at least one user service of the above service solution. Correspondingly, the above-mentioned solution registration request may carry the identification information corresponding to the above-mentioned at least one user service selected by the user of the service provider, and the above-mentioned centralized management and control platform responds to the above-mentioned solution registration request. When determining the set of user services used to implement the service functions corresponding to the service solution among the registered user services, you can specifically obtain the above identification information carried in the solution registration request, and then combine the registered user services with the The at least one user service corresponding to the above identification information is determined as a user service set for realizing the service function corresponding to the above service solution.
在示出的另一种实施方式中,上述服务提供方的用户,也可以基于自身的服务需求,为需要注册的上述服务解决方案定义一个服务逻辑。而在上述解决方案注册请求中,也可以不携带从上述可视化界面中选择至少一个已注册的用户服务对应的标识信息,而是携带服务提供方的用户为上述服务解决方案定义的服务逻辑相关的描述信息。例如,该描述信息,具体可以是用户需要注册的服务解决方案相关的功能描述。In another embodiment shown, the user of the above-mentioned service provider may also define a service logic for the above-mentioned service solution that needs to be registered based on his own service requirements. In the above-mentioned solution registration request, it is also possible not to carry the identification information corresponding to at least one registered user service selected from the above-mentioned visual interface, but to carry the service logic-related information defined by the user of the service provider for the above-mentioned service solution. Description. For example, the description information may specifically be a function description related to the service solution that the user needs to register.
在这种情况下,上述中心化管控平台在响应上述解决方案注册请求,在从上述中心化管控平台上已经注册的用户服务中,来确定用于实现该服务解决方案对应的服务功能的用户服务集合时,具体可以将已注册的用户服务对应的服务逻辑,分别与该描述信息所指示的服务逻辑进行匹配;然后根据匹配的结果,将已注册的用户服务中,与该描述信息所指示的服务逻辑匹配的至少一个用户服务,确定为用于实现上述服务解决方案对应的服务功能的用户服务集合。In this case, the above-mentioned centralized management and control platform, in response to the above-mentioned solution registration request, determines the user service for realizing the service function corresponding to the service solution from the user services registered on the above-mentioned centralized management and control platform. When gathering, specifically, the service logic corresponding to the registered user service can be matched with the service logic indicated by the description information; and then according to the matching result, the registered user service and the service logic indicated by the description information can be matched. At least one user service matching the service logic is determined as a user service set for realizing the service function corresponding to the above service solution.
步骤503,将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。Step 503: Combine the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
当上述中心化管控平台在从上述中心化管控平台上已经注册的用户服务中,确定出 用于实现上述服务解决方案对应的服务功能的用户服务集合之后,可以将上述用户服务集合中的用户服务进行组合生成上述服务解决方案,以完成上述服务解决方案的注册。After the above-mentioned centralized management and control platform determines the user service set used to realize the service function corresponding to the above-mentioned service solution from the user services registered on the above-mentioned centralized management and control platform, the user service set in the above-mentioned user service set can be Combine to generate the above service solutions, so as to complete the registration of the above service solutions.
在示出的一种实施方式中,上述中心化管控平台可以为该服务提供方的用户分配一个方案标识,再将上述用户服务集合中的用户服务进行组合生成一个用户服务组合,然后将该用户服务组合与上述方案标识进行绑定,以完成针对上述服务解决方案的服务注册。In one embodiment shown, the above-mentioned centralized management and control platform can assign a scheme identifier to the user of the service provider, and then combine the user services in the above-mentioned user service set to generate a user service combination, and then the user The service combination is bound with the above-mentioned solution ID to complete the service registration for the above-mentioned service solution.
在实现时,可以将上述用户服务集合中的用户服务,按照与上述服务提供方的用户为上述服务解决方案定义的服务逻辑的逻辑顺序进行组合,得到用户服务组合,再将该用户服务组合与上述方案标识进行绑定,以完成针对上述服务解决方案的注册。During implementation, the user services in the above user service set can be combined according to the logical order of the service logic defined by the user of the service provider for the above service solution to obtain a user service combination, and then the user service combination can be combined with Bind the above solution ID to complete the registration for the above service solution.
在示出的一种实施方式中,当完成上述服务解决方案的服务注册之后,中心化管控平台可以为注册完成的该服务解决方案生成对应的服务配置信息,并在本地存储为该服务解决方案生成的服务配置信息。In one embodiment shown, after the service registration of the above-mentioned service solution is completed, the centralized management and control platform can generate corresponding service configuration information for the registered service solution, and store it locally as the service solution Generated service configuration information.
在实现时,在中心化管控平台上,具体可以维护一个用于存储注册完成的服务解决方案对应的服务配置信息的信息库,当注册了新的服务解决方案之后,可以将为该新的服务解决方案生成的服务配置信息,与为该新的服务解决方案分配的服务标识一起关联存储到该信息库中。During implementation, on the centralized management and control platform, an information base for storing the service configuration information corresponding to the registered service solution can be maintained. After a new service solution is registered, the new service can be The service configuration information generated by the solution is associated with the service identifier assigned to the new service solution and stored in the information base.
其中,上述服务配置信息的具体内容,在本说明书中不进行特别限定;例如,可以包括:组合生成上述服务解决方案的各用户服务的服务标识、组合生成上述各用户服务的各合约执行逻辑的标识信息、包含所述各合约执行逻辑的各用户智能合约的合约地址、以及部署上述各用户智能合约的各成员区块链的区块链标识之间的对应关系,等等。Wherein, the specific content of the above-mentioned service configuration information is not particularly limited in this specification; for example, it may include: combining and generating the service identification of each user service of the above-mentioned service solution, and combining and generating each contract execution logic of the above-mentioned user service Identification information, the contract address of each user smart contract containing the execution logic of each contract, and the corresponding relationship between the block chain identifiers of each member block chain that deploys the above-mentioned user smart contracts, and so on.
在本说明书中,当服务提供方的用户在上述中心化管控平台注册了用户服务时,中心化管控平台具体可以将已经注册完成的用户服务作为标准化的服务进行服务部署,以开放给服务使用方进行调用。In this manual, when the user of the service provider registers the user service on the above-mentioned centralized management and control platform, the centralized management and control platform can specifically deploy the registered user service as a standardized service to open it to the service user to make the call.
其中,中心化管控平台在部署已注册完成的用户服务时,具体可以以服务接口的形式中心化的部署在中心化管控平台上,也可以以系统智能合约的形式,分布式部署在各成员区块链上。Among them, when the centralized management and control platform deploys registered user services, it can be deployed centrally on the centralized management and control platform in the form of a service interface, or in the form of a system smart contract, distributed in each member area on the block chain.
请参见图6,图6是本说明书根据一示例性实施例示出的一种针对在中心化管控平台上注册的用户服务的服务使用方法的流程图,该方法也可以应用于图1所示的中心化管控平台;其中,所述中心化管控平台上部署了与注册完成的用户服务对应的服务接口;所述方法包括以下步骤。Please refer to FIG. 6. FIG. 6 is a flow chart of a method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification. This method can also be applied to the method shown in FIG. 1 A centralized management and control platform; wherein, a service interface corresponding to the registered user service is deployed on the centralized management and control platform; the method includes the following steps.
步骤601,获取服务使用方发起的针对所述服务接口的调用请求;在上述中心化管控平台上注册完成的用户服务,具体可以以服务接口的形式部署在上述中心化管控平台上。而具有上述用户服务的调用需求的服务使用方,可以通过发起针对上述服务接口的调用请求,来调用中心化部署在上述中心化管控平台上的用户服务。 Step 601, obtain the invocation request for the service interface initiated by the service user; the user service registered on the above-mentioned centralized management and control platform can be deployed on the above-mentioned centralized management and control platform in the form of a service interface. The service user who has the invocation requirements of the above-mentioned user services can call the user services centrally deployed on the above-mentioned centralized management and control platform by initiating a call request for the above-mentioned service interface.
其中,上述服务使用方具体可以是一个具有上述用户服务的调用需求的用户,也可以是一个具有上述用户服务的调用需求的业务系统,在本说明书中不进行特别限定。Wherein, the above-mentioned service user may specifically be a user having a calling requirement of the above-mentioned user service, or a business system having a calling requirement of the above-mentioned user service, which is not specifically limited in this description.
步骤602,响应于所述调用请求,确定组合生成所述用户服务的各合约执行逻辑对应的各用户智能合约,以及部署所述各用户智能合约的各成员区块链;步骤603,基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,分别发起针对所述各用户智能合约的跨链调用,以完成针对所述用户服务的服务调用。 Step 602, in response to the call request, determine the user smart contracts corresponding to the contract execution logics that are combined to generate the user services, and the member blockchains that deploy the user smart contracts; Step 603, based on the The blockchain accounts corresponding to the centralized management and control platform created in each of the member blockchains respectively initiate cross-chain calls for the smart contracts of each user to complete the service call for the user service.
其中,在上述服务接口中具体可以包含与上述用户服务相关的调用方法;例如,在实际应用中,上述服务接口中包含的调用方法,具体可以是接口函数的形式。这些调用方法对应的调用逻辑具体可以包括:确定组合生成用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,分别发起针对上述各用户智能合约的跨链调用。Wherein, the above-mentioned service interface may specifically include a calling method related to the above-mentioned user service; for example, in practical applications, the calling method included in the above-mentioned service interface may specifically be in the form of an interface function. The invocation logic corresponding to these invocation methods may specifically include: determining each user smart contract corresponding to the execution logic of each contract that is combined to generate user services, and deploying each member block chain of each user smart contract above, and based on the above-mentioned member blocks The blockchain account corresponding to the centralized management and control platform created in the chain respectively initiates cross-chain calls for the above-mentioned user smart contracts.
而中心化管控平台在收到上述服务使用方的用户针对上述服务接口的调用请求后,可以响应该调用请求,执行该服务接口中包含的上述调用方法,来确定组合生成该用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,分别发起针对上述各用户智能合约的跨链调用。After the centralized management and control platform receives the call request from the user of the above-mentioned service user for the above-mentioned service interface, it can respond to the call request and execute the above-mentioned call method contained in the service interface to determine the combined generation of each contract of the user service. Each user smart contract corresponding to the execution logic, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain account corresponding to the centralized management and control platform created in each of the above member blockchains, respectively initiates a target The cross-chain calls of the above-mentioned user smart contracts.
在示出的一种实施方式中,在上述中心化管控平台上具体可以维护注册完成的用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表;比如,在实际应用中,上述服务配置信息和上述区块链账户列表,均可以作为服务接口相关的调用参数的形式,写入到上述服务接口中。In one embodiment shown, the service configuration information corresponding to the registered user service can be maintained on the above-mentioned centralized management and control platform, as well as the blockchain account created for the above-mentioned centralized platform on each member blockchain. list; for example, in practical applications, the above-mentioned service configuration information and the above-mentioned blockchain account list can be written into the above-mentioned service interface in the form of invocation parameters related to the service interface.
上述服务接口所包含的与上述目标用户服务相关的调用方法对应的调用逻辑,具体可以包括:查询逻辑,查询上述服务配置信息中的上述对应关系,以确定组合生成上述目标用户服务的各合约执行逻辑、包含上述各合约执行逻辑的各用户智能合约、和部署上述各用户智能合约的各成员区块链。以及,在确定出部署上述各用户智能合约的各成员区块链之后,进一步查询上述区块链账户列表,以确定在上述各成员区块链上创建的与该中心化平台对应的区块链账户。The invocation logic corresponding to the invocation method related to the above-mentioned target user service contained in the above-mentioned service interface may specifically include: query logic, querying the above-mentioned corresponding relationship in the above-mentioned service configuration information, so as to determine the execution of each contract that is combined to generate the above-mentioned target user service Logic, each user smart contract containing the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, after determining the member blockchains that deploy the above-mentioned user smart contracts, further query the above-mentioned blockchain account list to determine the blockchain corresponding to the centralized platform created on the above-mentioned member blockchains account.
跨链逻辑,根据上述查询逻辑查询出的在上述各成员区块链上创建的与该中心化平台对应的区块链账户,分别发起针对上述各用户智能合约的跨链调用。Cross-chain logic, according to the above-mentioned query logic, the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains are queried, and the cross-chain calls for the smart contracts of the above-mentioned users are respectively initiated.
在示出的一种实施方式中,上述用户服务具体可以也可以是将部署在各成员区块链上的用户智能合约所包含的至少一个合约执行逻辑,按照与该用户服务对应的服务逻辑的逻辑顺序进行组合生成的服务。In one embodiment shown, the above-mentioned user service may also be at least one contract execution logic included in the user smart contract deployed on each member blockchain, according to the service logic corresponding to the user service Services that are combined in a logical order.
在这种情况下,上述跨链逻辑在根据在上述各成员区块链上创建的与该中心化平台对应的区块链账户,分别发起针对上述各用户智能合约的跨链调用时,具体可以根据在上述各成员区块链上创建的与该中心化平台对应的区块链账户,按照上述逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。In this case, when the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts based on the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, it can specifically According to the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, and in accordance with the above-mentioned logical order, respectively initiate cross-chain calls for the above-mentioned user smart contracts.
在示出的一种实施方式中,中心化管控平台维护的上述服务配置信息中,还可以包括:基于上述用户服务对应的服务逻辑的逻辑顺序,为组合生成上述用户服务的各合约执行逻辑确定出的调用顺序信息。相应的,上述跨链逻辑在按照上述用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用时,具体可以从上述服务配置信息中读取上述调用顺序,再按照读取出的上述调用顺序,分别发起针对上述各用户智能合约的跨链调用。In one embodiment shown, the above-mentioned service configuration information maintained by the centralized management and control platform may also include: based on the logical order of the service logic corresponding to the above-mentioned user services, the execution logic of each contract for the combination of the above-mentioned user services is determined. The call sequence information that comes out. Correspondingly, when the above-mentioned cross-chain logic initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical sequence of the service logic corresponding to the above-mentioned user services, the above-mentioned call sequence can be read from the above-mentioned service configuration information, and then according to The read-out of the above-mentioned call sequence initiates cross-chain calls for the smart contracts of each of the above-mentioned users respectively.
当中心化管控平台通过调用上述服务接口,完成了针对上述各用户智能合约的跨链调用之后,可以进一步汇总针对上述各用户智能合约的跨链调用的调用结果,并将上述调用结果作为针对上述用户服务的调用结果,返回给上述服务使用方。After the centralized management and control platform completes the cross-chain calls for the above-mentioned user smart contracts by calling the above-mentioned service interface, it can further summarize the call results of the cross-chain calls for the above-mentioned user smart contracts, and use the above-mentioned call results as the The call result of the user service is returned to the above service user.
请参见图7,图7是本说明书根据一示例性实施例示出的另一种针对在中心化管控平台上注册的用户服务的服务使用方法的流程图,该方法可以应用于图1所示的区块链服务网络中的任一目标成员区块链中的节点设备。其中,上述区块链服务网络中的各成员区块链上分别部署了由中心化管控平台下发的至少一个系统智能合约;上述至少一个系统智能合约包括用于与其它成员区块链进行跨链通信的目标系统智能合约;该目标系统智能合约包含与在所述中心化管控平台上注册完成的用户服务对应的跨链调用逻辑;所述方法包括以下步骤。Please refer to FIG. 7. FIG. 7 is a flowchart of another method for using services for user services registered on a centralized management and control platform according to an exemplary embodiment of this specification. This method can be applied to the method shown in FIG. 1 A node device in any target member blockchain in the blockchain service network. Among them, at least one system smart contract issued by the centralized management and control platform is deployed on each member blockchain in the above-mentioned blockchain service network; A target system smart contract for chain communication; the target system smart contract includes cross-chain call logic corresponding to the user service registered on the centralized management and control platform; the method includes the following steps.
步骤701,获取服务使用方发起的针对所述用户服务的调用数据;在上述中心化管控平台上注册完成的用户服务,具体可以以上述系统智能合约的形式部署在上述中心化管控平台上。而具有上述用户服务的调用需求的服务使用方,可以通过发起针对上述目标系统智能合约的合约调用的方式,来调用去中心化部署在各成员区块链上的上述用户服务。 Step 701, obtain the call data for the user service initiated by the service user; the user service registered on the above-mentioned centralized management and control platform can be deployed on the above-mentioned centralized management and control platform in the form of the above-mentioned system smart contract. The service user who has the call requirements of the above-mentioned user services can call the above-mentioned user services decentralized and deployed on each member blockchain by initiating a contract call for the above-mentioned target system smart contract.
其中,上述服务使用方具体可以是一个具有上述用户服务的调用需求的用户,也可以是一个具有上述用户服务的调用需求的,部署在任一成员区块链上的用户智能合约, 在本说明书中不进行特别限定。Among them, the user of the above-mentioned service can be a user who has the call requirements of the above-mentioned user services, or a user smart contract deployed on any member blockchain that has the call requirements of the above-mentioned user services. In this specification Not particularly limited.
在一种情况下,如果上述服务使用方是一个具有上述用户服务的调用需求的用户,此时该用户具体可以是一个在上述目标成员区块链上注册了区块链账户的用户。该用户可以基于在该目标成员区块链上注册的区块链账户,来发起针对该目标成员区块链上部署的上述目标系统智能合约的合约调用,以完成针对上述用户服务的服务调用。In one case, if the above-mentioned service user is a user who needs to call the above-mentioned user service, the user may specifically be a user who has registered a blockchain account on the above-mentioned target member blockchain. The user can initiate a contract call for the above-mentioned target system smart contract deployed on the target member blockchain based on the blockchain account registered on the target member blockchain, so as to complete the service call for the above-mentioned user service.
在另一种情况下,如果上述服务使用方是一个部署在上述目标成员区块链上的目标用户智能合约,此时该目标用户智能合约中包含的合约执行逻辑,可以与上述用户服务具有嵌套的调用关系;例如,该目标用户智能合约中包含的合约执行逻辑,引用了在中心化管控平台上注册的用户服务。在这种情况下,该目标用户智能合约在执行包含的合约执行逻辑的过程中,可以通过智能合约之间的嵌套调用的方式,进一步发起针对上述目标系统智能合约的合约调用。In another case, if the user of the above service is a target user smart contract deployed on the target member blockchain, the contract execution logic contained in the target user smart contract can be embedded with the above user service. set of calling relationships; for example, the contract execution logic contained in the target user smart contract refers to the user service registered on the centralized management and control platform. In this case, in the process of executing the included contract execution logic, the target user smart contract can further initiate a contract call for the above-mentioned target system smart contract through nested calls between smart contracts.
上述调用数据的具体内容,通常也取决于上述服务使用方的具体类型;例如,如果上述服务使用方是一个具有上述用户服务的调用需求的用户,此时上述调用数据,具体可以是该用户在上述目标成员区块链注册的区块链账户发起的一笔用于调用上述目标系统合约的合约调用交易。The specific content of the above-mentioned invocation data usually also depends on the specific type of the above-mentioned service user; A contract invocation transaction initiated by the blockchain account registered in the above-mentioned target member blockchain to call the above-mentioned target system contract.
如果上述服务使用方是一个部署在上述目标成员区块链上的目标用户智能合约,此时上述调用数据,具体可以是上述目标用户智能合约在调用上述目标系统智能合约时,由上述目标用户智能合约发送给上述目标系统智能合约的针对上述用户服务的调用消息。If the above-mentioned service user is a target user smart contract deployed on the above-mentioned target member blockchain, at this time, the above-mentioned call data can specifically be that when the above-mentioned target user smart contract calls the above-mentioned target system smart contract, the target user smart contract The call message for the above-mentioned user service sent by the contract to the above-mentioned target system smart contract.
在实际应用中,智能合约之间相互的调用,通常采用的是“消息调用”的方式,当某一个智能合约需要调用其它智能合约时,会向该其他智能合约发送一个调用消息。因此,在本说明书中,上述目标用户智能合约在调用上述目标系统智能合约时,具体也可以采用这种“消息调用”的方式,通过向上述目标系统智能合约发送一个调用消息,来发起针对上述目标系统智能合约的合约调用。In practical applications, mutual calls between smart contracts usually adopt the method of "message call". When a smart contract needs to call other smart contracts, it will send a call message to the other smart contracts. Therefore, in this specification, when the above-mentioned target user smart contract calls the above-mentioned target system smart contract, this method of "message call" can also be used specifically, by sending a call message to the above-mentioned target system smart contract to initiate a call for the above-mentioned The contract call of the target system smart contract.
需要说明的是,当某一个智能合约采用“消息调用”的方式,调用其它智能合约时,该其它智能合约在调用完成后,会将调用结果返回给发送调用消息的智能合约,来触发该智能合约基于该调用结果继续执行下一步的合约执行逻辑。It should be noted that when a certain smart contract uses the method of "message call" to call other smart contracts, after the call is completed, the other smart contract will return the call result to the smart contract that sent the call message to trigger the smart contract. The contract continues to execute the next contract execution logic based on the call result.
步骤702,响应于所述调用数据,调用所述目标系统智能合约包含的所述跨链调用逻辑,确定组合生成所述用户服务的各合约执行逻辑对应的各用户智能合约,以及部署所述各用户智能合约的各成员区块链;步骤703,基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,分别发起针对所述各用户智能合约的跨链调用,以完成针对所述用户服务的服务调用。 Step 702, in response to the call data, call the cross-chain call logic contained in the target system smart contract, determine the user smart contracts corresponding to the contract execution logics that combine to generate the user service, and deploy the various user smart contracts. Each member block chain of the user smart contract; step 703, based on the block chain account corresponding to the centralized management and control platform created in each member block chain, respectively initiate cross-linking of each user smart contract chain call to complete the service call for the user service.
上述目标成员区块链上可以部署了由中心化管控平台下发的至少一个系统智能合约;上述至少一个系统智能合约具体可以包括用于与其它成员区块链进行跨链通信的目标系统智能合约。其中,该目标系统智能合约中,具体可以包含与上述用户服务对应的跨链调用逻辑。At least one system smart contract issued by the centralized management and control platform can be deployed on the above-mentioned target member blockchain; the above-mentioned at least one system smart contract can specifically include the target system smart contract for cross-chain communication with other member blockchains . Among them, the target system smart contract may specifically include cross-chain call logic corresponding to the above-mentioned user services.
由于组成上述用户服务的合约调用逻辑,可能包括分布于多个成员区块链上部署的多个用户智能合约所包含的合约执行逻辑,用户在调用上述用户服务时也可能需要跨链调用分布在多个成员区块链上的多个用户智能合约;因此,上述中心化管控平台在部署上述用户服务时,具体可以为该用户服务开发对应的跨链调用逻辑,然后将该跨链调用逻辑作为上述系统智能合约的合约执行逻辑,部署在上述目标成员区块链上。Since the contract call logic that makes up the above user services may include the contract execution logic contained in multiple user smart contracts deployed on multiple member blockchains, users may also need to call across chains when calling the above user services. Multiple user smart contracts on multiple member blockchains; therefore, when the above-mentioned centralized management and control platform deploys the above-mentioned user services, it can specifically develop the corresponding cross-chain call logic for the user service, and then use the cross-chain call logic as The contract execution logic of the above-mentioned system smart contract is deployed on the above-mentioned target member blockchain.
该跨链调用逻辑具体可以用于:确定组合生成该用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,按照与上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。The cross-chain call logic can be specifically used to: determine the user smart contracts corresponding to the execution logic of the contracts generated by the user service, and deploy the member blockchains of the above user smart contracts, and based on the above-mentioned member blocks The blockchain account created in the chain corresponding to the centralized management and control platform initiates cross-chain calls for the above-mentioned user smart contracts in accordance with the logical order of the service logic corresponding to the above-mentioned target user services.
通过这种方式,通过这种方式,使得服务使用方,可以通过自主的调用该目标系统智能合约中的包含的上述跨链调用逻辑的方式,对已经在中心化管控平台上注册的上述 目标用户服务发起调用。In this way, in this way, the service user can independently call the above-mentioned cross-chain call logic contained in the target system smart contract, and the above-mentioned target users who have registered on the centralized management and control platform The service initiates the call.
当上述目标成员区块链上的节点设备收到服务使用方发起的调用数据时,可以响应该调用数据,调用上述目标系统智能合约包含的上述跨链调用逻辑,确定组合生成该用户服务的各合约执行逻辑对应的各用户智能合约,以及部署上述各用户智能合约的各成员区块链,并基于在上述各成员区块链中创建的与中心化管控平台对应的区块链账户,按照与上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。When the node device on the above-mentioned target member blockchain receives the calling data initiated by the service user, it can respond to the calling data, call the above-mentioned cross-chain calling logic contained in the smart contract of the above-mentioned target system, and determine the combination to generate the user service. Each user smart contract corresponding to the contract execution logic, and each member blockchain that deploys the above-mentioned user smart contracts, and based on the blockchain account corresponding to the centralized management and control platform created in each of the above member blockchains, according to the The logical sequence of the service logic corresponding to the above-mentioned target user services initiates cross-chain calls for the smart contracts of each of the above-mentioned users respectively.
在一种情况下,如果上述服务使用方是一个具有上述用户服务的调用需求的用户,此时该用户具体可以是一个在上述目标成员区块链上注册了区块链账户的用户。上述调用数据具体可以是该用户通过在该目标成员区块链上注册的区块链账户,打包的一笔针对上述目标系统智能合约的合约调用交易。上述节点设备收到该合约调用交易后,可以响应该合约调用交易,进一步调用上述目标系统智能合约包含的上述跨链调用逻辑。In one case, if the above-mentioned service user is a user who needs to call the above-mentioned user service, the user may specifically be a user who has registered a blockchain account on the above-mentioned target member blockchain. The above invocation data may specifically be a contract invocation transaction for the above target system smart contract packaged by the user through the blockchain account registered on the target member blockchain. After the above-mentioned node device receives the contract call transaction, it can respond to the contract call transaction and further call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
在另一种情况下,如果上述服务使用方是一个部署在上述目标成员区块链上的目标用户智能合约,此时该目标用户智能合约中包含的合约执行逻辑,可以与上述用户服务具有嵌套的调用关系。在这种情况下,上述调用数据具体可以是该目标用户智能合约发送给上述目标系统智能合约的一个调用消息。上述节点设备在收到该调用消息后,可以响应该调用消息,进一步调用上述目标系统智能合约包含的上述跨链调用逻辑。In another case, if the user of the above service is a target user smart contract deployed on the target member blockchain, the contract execution logic contained in the target user smart contract can be embedded with the above user service. Set of calling relations. In this case, the above invocation data may specifically be an invocation message sent by the target user smart contract to the above target system smart contract. After receiving the call message, the above-mentioned node device can respond to the call message and further call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
在示出的一种实施方式中,在上述目标系统智能合约中,还可以维护与上述用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表。In one embodiment shown, in the above-mentioned target system smart contract, the service configuration information corresponding to the above-mentioned user service and the blockchain account created for the above-mentioned centralized platform on each member blockchain can also be maintained list.
在实现时,与上述用户服务对应的服务配置信息,以及在各成员区块链上为上述中心化平台创建的区块链账户列表,具体可以存储在上述目标系统智能合约的账户存储空间中;比如,上述服务配置信息和上述区块链账户列表,具体可以组织成key-value键值对的形式,构建成Merkle树存储在各成员区块链中的节点设备搭载的存储介质中;再将该Merkle树的根hash存储到与该目标系统智能合约对应的合约账户的账户结构体中。During implementation, the service configuration information corresponding to the above-mentioned user services, as well as the list of blockchain accounts created for the above-mentioned centralized platform on each member blockchain, can be specifically stored in the account storage space of the above-mentioned target system smart contract; For example, the above-mentioned service configuration information and the above-mentioned block chain account list can be organized into the form of key-value key-value pairs, which can be constructed into a Merkle tree and stored in the storage medium carried by the node devices in each member block chain; The root hash of the Merkle tree is stored in the account structure of the contract account corresponding to the target system smart contract.
其中,上述服务配置信息具体可以包括:组合生成上述用户服务的各合约执行逻辑的标识信息(比如函数名)、包含上述各合约执行逻辑的各用户智能合约的合约地址、以及部署上述各用户智能合约的各成员区块链的区块链标识之间的对应关系。Wherein, the above-mentioned service configuration information may specifically include: the identification information (such as the function name) of each contract execution logic combined to generate the above-mentioned user service, the contract address of each user smart contract containing the above-mentioned contract execution logic, and the deployment of each of the above-mentioned user smart contracts. The correspondence between the blockchain identifiers of each member blockchain of the contract.
在这种情况下,上述跨链调用逻辑具体可以由如下的执行逻辑组成:查询逻辑,用于查询上述目标系统智能合约中维护的与上述用户服务对应的服务配置信息中的上述对应关系,以确定组合生成上述用户服务的各合约执行逻辑、包含上述各合约执行逻辑的各用户智能合约、和部署上述各用户智能合约的各成员区块链。以及,还可以用于在确定出部署上述各用户智能合约的各成员区块链之后,进一步查询上述目标系统智能合约中维护的上述区块链账户列表,以确定在上述各成员区块链上创建的与该中心化平台对应的区块链账户。In this case, the above-mentioned cross-chain call logic may specifically consist of the following execution logic: query logic, used to query the above-mentioned corresponding relationship in the service configuration information corresponding to the above-mentioned user service maintained in the above-mentioned target system smart contract, and Determine the combination of each contract execution logic for generating the above user services, each user smart contract containing the above each contract execution logic, and each member block chain that deploys the above each user smart contract. And, it can also be used to further query the above-mentioned blockchain account list maintained in the above-mentioned target system smart contract after determining the member blockchains that deploy the above-mentioned user smart contracts, so as to determine the The created blockchain account corresponding to the centralized platform.
跨链逻辑,用于基于查询逻辑确定出的,包含上述各合约执行逻辑的各用户智能合约、部署上述各用户智能合约的各成员区块链、以及在上述各成员区块链上创建的与该中心化平台对应的区块链账户等信息,分别发起针对上述各用户智能合约的跨链调用。其中,跨链调用其它成员区块链上部署的用户智能合约的具体实施细节,在本说明书中不再进行详述,本领域技术人员可以参考相关技术中的记载。Cross-chain logic, which is used to determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, each member blockchain that deploys the above-mentioned user smart contracts, and the created and Information such as the blockchain account corresponding to the centralized platform initiates cross-chain calls for the above-mentioned user smart contracts. Among them, the specific implementation details of cross-chain calling user smart contracts deployed on other member blockchains will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
在这种情况下,当上述目标成员区块链上的节点设备收到服务使用方发起的调用数据时,可以响应该调用数据,调用上述目标系统智能合约包含的上述查询逻辑,查询上述对应关系,以确定组合生成上述用户服务的各合约执行逻辑、包含上述各合约执行逻辑的各用户智能合约、和部署上述各用户智能合约的各成员区块链。以及,进一步查询上述区块链账户列表,以确定在上述各成员区块链上创建的与该中心化平台对应的区块链账户。然后,可以进一步调用上述目标系统智能合约包含的上述跨链逻辑,基于确定出的上述区块链账户,分别发起针对所述各用户智能合约的跨链调用。In this case, when the node device on the target member blockchain receives the call data initiated by the service user, it can respond to the call data, call the above query logic contained in the target system smart contract, and query the above correspondence , to determine the combination to generate each contract execution logic of the above-mentioned user services, each user smart contract containing the above-mentioned contract execution logic, and each member blockchain deploying the above-mentioned user smart contracts. And, further query the above-mentioned block chain account list to determine the block chain accounts corresponding to the centralized platform created on the above-mentioned member block chains. Then, the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract can be further invoked, and based on the above-mentioned determined blockchain account, respectively initiate cross-chain calls for the smart contracts of each user.
在示出的一种实施方式中,上述用户服务具体可以也可以是将部署在各成员区块链上的用户智能合约所包含的至少一个合约执行逻辑,按照与该用户服务对应的服务逻辑的逻辑顺序进行组合生成的服务。In one embodiment shown, the above-mentioned user service may also be at least one contract execution logic included in the user smart contract deployed on each member blockchain, according to the service logic corresponding to the user service Services that are combined in a logical order.
在这种情况下,上述跨链逻辑具体用于:基于查询逻辑确定出的,包含上述各合约执行逻辑的各用户智能合约、部署上述各用户智能合约的各成员区块链、以及在上述各成员区块链上创建的与该中心化平台对应的区块链账户等信息,按照上述逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。In this case, the above-mentioned cross-chain logic is specifically used for: the user smart contracts that contain the execution logic of the above-mentioned contracts determined based on the query logic, the member blockchains that deploy the above-mentioned user smart contracts, and the Information such as the blockchain accounts corresponding to the centralized platform created on the member blockchains, respectively initiate cross-chain calls for the above-mentioned user smart contracts in accordance with the above logical order.
上述节点设备在调用上述目标系统智能合约包含的上述跨链逻辑,基于确定出的上述区块链账户,分别发起针对所述各用户智能合约的跨链调用时,具体可以基于确定出的上述区块链账户,按照上述逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。When the above-mentioned node device calls the above-mentioned cross-chain logic included in the above-mentioned target system smart contract, and based on the above-mentioned determined blockchain account, when respectively initiating a cross-chain call for each user smart contract, it can specifically be based on the determined above-mentioned area The block chain account, according to the above logical sequence, respectively initiates cross-chain calls for the above-mentioned user smart contracts.
在示出的一种实施方式中,在上述服务配置信息中,还可以包括:基于上述目标用户服务对应的服务逻辑的逻辑顺序,为组合生成上述目标用户服务的各合约执行逻辑确定出的调用顺序。In an illustrated embodiment, the above service configuration information may also include: based on the logical sequence of the service logic corresponding to the above target user service, the call determined for each contract execution logic that is combined to generate the above target user service order.
上述跨链逻辑具体用于:读取上述服务配置信息中包括的上述调用顺序,基于查询逻辑确定出的,包含上述各合约执行逻辑的各用户智能合约、部署上述各用户智能合约的各成员区块链、以及在上述各成员区块链上创建的与该中心化平台对应的区块链账户等信息,按照读取到的上述逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。The above-mentioned cross-chain logic is specifically used to: read the above-mentioned call sequence included in the above-mentioned service configuration information, determine based on the query logic, each user smart contract containing the above-mentioned contract execution logic, and each member area where the above-mentioned user smart contracts are deployed Block chains, and information such as the blockchain accounts corresponding to the centralized platform created on the above-mentioned member blockchains, respectively initiate cross-chain calls for the above-mentioned user smart contracts according to the above-mentioned logical sequence read.
上述节点设备在调用上述目标系统智能合约包含的上述跨链逻辑,基于确定出的上述区块链账户,按照上述逻辑顺序,分别发起针对所述各用户智能合约的跨链调用时,具体可以读取上述服务配置信息中包括的上述调用顺序,再基于确定出的上述区块链账户,按照读取到的上述逻辑顺序,分别发起针对上述各用户智能合约的跨链调用。When the above-mentioned node device calls the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract, based on the above-mentioned blockchain account determined, according to the above-mentioned logic sequence, when respectively initiating cross-chain calls for the smart contracts of each user, the specific can read Take the above invocation sequence included in the above service configuration information, and then initiate cross-chain calls for the above user smart contracts according to the above read logic sequence based on the above determined blockchain account.
在实际应用中,上述目标用户服务对应的服务逻辑的逻辑顺序,具体可以不作为服务配置信息的一部分维护在上述目标系统智能合约中,而是维护在上述中心化管控平台上。In practical applications, the logical sequence of the service logic corresponding to the above-mentioned target user service may not be maintained in the above-mentioned target system smart contract as part of the service configuration information, but on the above-mentioned centralized management and control platform.
在这种情况下,在调用上述目标系统智能合约包含的上述跨链逻辑,按照上述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对上述各用户智能合约的跨链调用时,具体可以与上述中心化管控平台进行链外交互,从上述中心化管控平台上来读取上述目标用户服务对应的服务逻辑的逻辑顺序,再按照读取到的上述调用顺序,发起针对上述各用户智能合约的跨链调用。In this case, when invoking the above-mentioned cross-chain logic contained in the above-mentioned target system smart contract, according to the logical sequence of the service logic corresponding to the above-mentioned target user service, when initiating cross-chain calls for the above-mentioned user smart contracts, it can be specifically related to The above-mentioned centralized management and control platform performs off-chain interaction, reads the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform, and then initiates a cross-connection of the smart contracts for each of the above-mentioned users according to the above-mentioned call sequence read. chain calls.
在实现时,上述目标系统智能合约具体可以通过另一个oracle预言机程序,与上述中心化管控平台进行链外交互,从上述中心化管控平台上读取上述目标用户服务对应的服务逻辑的逻辑顺序。其中,上述目标系统智能合约通过oracle预言机程序与上述中心化管控平台进行链外交互的具体实施细节,在本说明书中不再进行详述,本领域技术人员可以参考相关技术中的记载。During implementation, the above-mentioned target system smart contract can specifically interact with the above-mentioned centralized management and control platform through another oracle oracle program, and read the logical sequence of the service logic corresponding to the above-mentioned target user service from the above-mentioned centralized management and control platform . Among them, the specific implementation details of the above-mentioned target system smart contract interacting with the above-mentioned centralized management and control platform through the oracle oracle program will not be described in detail in this specification, and those skilled in the art can refer to the records in related technologies.
在示出的一种实施方式中,中心化管控平台在各成员区块链上部署了用于进行跨链通信的目标系统智能合约之后,后续服务提供方的用户在上述中心化管控平台上注册了新的用户服务时,中心化管控平台还可以将新注册的该用户服务对应的服务配置信息,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。In one embodiment shown, after the centralized management and control platform deploys the target system smart contracts for cross-chain communication on each member blockchain, users of subsequent service providers register on the above-mentioned centralized management and control platform When a new user service is created, the centralized management and control platform can also store the service configuration information corresponding to the newly registered user service in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract.
在示出的一种实施方式中,中心化管控平台在各成员区块链上部署了用于进行跨链通信的目标系统智能合约之后,后续如果上述区块链服务网络加入了新的成员区块链,中心化管控平台还可以将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户,也存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。In one embodiment shown, after the centralized management and control platform deploys the target system smart contract for cross-chain communication on each member blockchain, if the above-mentioned blockchain service network joins a new member area Blockchain, the centralized management and control platform can also store the blockchain account corresponding to the centralized management and control platform created on the new member blockchain into the above target system smart contract, so that the target system smart contract Update the list of blockchain accounts maintained in .
需要说明的是,在实际应用中,以上描述的中心化管控平台对上述目标系统智能合约中维护的服务配置信息以及区块链账户列表进行更新的操作,具体可以采用实时更新的方式,也可以采用离线更新的方式。It should be noted that in practical applications, the centralized management and control platform described above updates the service configuration information maintained in the smart contract of the target system and the list of blockchain accounts. Use the offline update method.
一方面,如果采用实时更新的方式,每当在上述中心化管控平台上注册了新的用户服务时,中心化管控平台就可以立即将新注册的该用户服务对应的服务配置信息,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。On the one hand, if a real-time update method is adopted, whenever a new user service is registered on the above-mentioned centralized management and control platform, the centralized management and control platform can immediately store the service configuration information corresponding to the newly registered user service in the above-mentioned The target system smart contract to update the service configuration information maintained in the target system smart contract.
每当上述区块链服务网络加入了新的成员区块链时,中心化管控平台也可以立即将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户,存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。Whenever the above-mentioned blockchain service network joins a new member blockchain, the centralized management and control platform can also immediately transfer the blockchain account corresponding to the centralized management and control platform created on the new member blockchain, Stored in the above target system smart contract to update the blockchain account list maintained in the target system smart contract.
另一方面,如果采用离线更新的方式,可以在上述目标系统智能合约每次被调用时,再触发对上述目标系统智能合约中维护的服务配置信息和区块链账户列表进行更新。On the other hand, if the offline update method is adopted, each time the target system smart contract is invoked, it can trigger an update of the service configuration information and blockchain account list maintained in the target system smart contract.
在这种情况下,每当在上述中心化管控平台上注册了新的用户服务时,中心化管控平台可以先将新注册的该用户服务对应的服务配置信息缓存起来。当上述目标系统智能合约被调用时,再将缓存的上述服务配置信息存储至上述目标系统智能合约,以对该目标系统智能合约中维护的服务配置信息进行更新。相应的,每当上述区块链服务网络加入了新的成员区块链时,中心化管控平台也可以先将在该新的成员区块链上创建的与该中心化管控平台对应的区块链账户缓存起来。当上述目标系统智能合约被调用时,再将缓存的上述区块链账户存储至上述目标系统智能合约,以对该目标系统智能合约中维护的区块链账户列表进行更新。In this case, whenever a new user service is registered on the above-mentioned centralized management and control platform, the centralized management and control platform may first cache the service configuration information corresponding to the newly registered user service. When the target system smart contract is invoked, the cached service configuration information is stored in the target system smart contract, so as to update the service configuration information maintained in the target system smart contract. Correspondingly, whenever a new member blockchain is added to the above-mentioned blockchain service network, the centralized management and control platform can also first transfer the block corresponding to the centralized management and control platform created on the new member blockchain to The chain account is cached. When the target system smart contract is invoked, the cached blockchain account is stored in the target system smart contract to update the list of blockchain accounts maintained in the target system smart contract.
在实现时,可以在上述目标系统智能合约中引入数据同步的执行逻辑,使得上述目标系统智能合约每次被调用时,可以先运行该数据同步的执行逻辑,与中心化管控平台进行服务配置信息和区块链账户列表的数据同步,基于中心化管控平台缓存的服务配置信息和区块链账户对上述目标系统智能合约中维护的服务配置信息和区块链账户列表进行更新,然后再继续执行本次被调用的合约执行逻辑。When implementing, the execution logic of data synchronization can be introduced into the above-mentioned target system smart contract, so that each time the above-mentioned target system smart contract is called, the execution logic of data synchronization can be run first, and the service configuration information can be communicated with the centralized management and control platform Synchronize with the data of the blockchain account list, update the service configuration information and blockchain account list maintained in the smart contract of the above target system based on the service configuration information and blockchain accounts cached by the centralized management and control platform, and then continue to execute The contract execution logic that is called this time.
在示出的一种实施方式中,上述中心化管控平台除了可以支持注册上述用户服务以外,还可以支持在上述中心化管控平台上,为部署在各成员区块链上的作为上述服务使用方的用户智能合约注册关联的用户服务。In one embodiment shown, in addition to supporting the registration of the above-mentioned user services, the above-mentioned centralized management and control platform can also support, on the above-mentioned centralized management and control platform, as the user of the above-mentioned services deployed on each member block chain The user smart contract registers the associated user service.
当上述服务使用方是一个部署在上述目标成员区块链上的目标用户智能合约,此时该目标用户智能合约的部署方或者管理方,可以通过向中心化管控平台发送用户智能合约注册请求的方式,为该目标用户智能合约注册关联的用户服务。When the above-mentioned service user is a target user smart contract deployed on the target member blockchain, at this time, the deployer or manager of the target user smart contract can send the user smart contract registration request to the centralized management and control platform. way, register the associated user service for the target user smart contract.
其中,在该用户智能合约注册请求中,具体可以携带上述目标用户智能合约的合约地址,以及需要与该目标用户智能合约进行关联的目标用户服务的服务标识。Wherein, in the user smart contract registration request, specifically, the contract address of the above-mentioned target user smart contract and the service identifier of the target user service that needs to be associated with the target user smart contract can be carried.
当中心化管控平台收到该目标用户智能合约的部署方或者管理方发送的用户智能合约注册请求后,可以响应该用户智能合约注册请求,读取该用户智能合约注册请求中携带的目标用户服务的服务标识和该目标用户智能合约的合约地址,然后创建该目标用户服务的服务标识和该目标用户智能合约的合约地址之间的关联关系,并将该关联关系在中心化管控平台上进行存储。When the centralized management and control platform receives the user smart contract registration request sent by the deployment party or management party of the target user smart contract, it can respond to the user smart contract registration request and read the target user service information carried in the user smart contract registration request. The service ID of the target user and the contract address of the target user’s smart contract, and then create an association between the service ID of the target user’s service and the contract address of the target user’s smart contract, and store the association on the centralized management and control platform .
在这种情况下,针对上述用户服务的调用数据,具体可以是上述目标用户智能合约提交给上述目标系统智能合约的针对上述用户服务的调用消息。上述节点设备响应于上述调用消息,调用上述目标系统智能合约包含的上述跨链调用逻辑之前,可以先确定该用户服务是否已经注册为与上述目标用户智能合约关联的用户服务;例如,在一个例子中,上述关联关系具体可以作为上述服务配置信息的一部分,维护在上述目标系统智能合约中。在这种情况下,上述节点设备响应于上述调用消息,调用上述目标系统智能合约包含的上述跨链调用逻辑之前,可以先查询上述关联关系,来确定该用户服务是否已经注册为与上述目标用户智能合约关联的用户服务。In this case, the invocation data for the above user service may specifically be an invocation message for the above user service submitted by the above target user smart contract to the above target system smart contract. In response to the above-mentioned call message, the above-mentioned node device can first determine whether the user service has been registered as a user service associated with the above-mentioned target user smart contract before invoking the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract; for example, in an example , the above-mentioned association relationship can be specifically maintained in the above-mentioned target system smart contract as part of the above-mentioned service configuration information. In this case, before calling the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract in response to the above-mentioned call message, the above-mentioned node device can first query the above-mentioned association relationship to determine whether the user service has been registered as a link with the above-mentioned target user User services associated with smart contracts.
上述关联关系具体也可以不作为上述服务配置信息的一部分,维护在上述目标系统智能合约中,而是维护在上述中心化管控平台上。在这种情况下,上述节点设备响应于上述调用消息,调用上述目标系统智能合约包含的上述跨链调用逻辑之前,可以通过一个oracle预言机程序,与上述中心化管控平台进行链外交互,从上述中心化管控平台上读取上述关联关系,再基于读取到的关联关系来确定该用户服务是否已经注册为与上述 目标用户智能合约关联的用户服务。或者,上述节点设备响应于上述调用消息,调用上述目标系统智能合约包含的上述跨链调用逻辑之前,可以通过一个oracle预言机程序,与上述中心化管控平台进行链外交互,向上述中心化管控平台发送一个查询请求,由中心化管控平台来查询上述关联关系确定该用户服务是否已经注册为与上述目标用户智能合约关联的用户服务,再将查询结果返回给上述目标系统智能合约。The above-mentioned association relationship may not be part of the above-mentioned service configuration information, but maintained in the above-mentioned target system smart contract, but on the above-mentioned centralized management and control platform. In this case, before the above-mentioned node device responds to the above-mentioned calling message and calls the above-mentioned cross-chain calling logic contained in the above-mentioned target system smart contract, it can interact with the above-mentioned centralized management and control platform through an oracle oracle program outside the chain, from The above-mentioned association relationship is read on the above-mentioned centralized management and control platform, and then based on the read association relationship, it is determined whether the user service has been registered as a user service associated with the above-mentioned target user smart contract. Alternatively, before the above-mentioned node device responds to the above-mentioned call message and calls the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract, it can use an oracle oracle program to interact with the above-mentioned centralized management and control platform outside the chain, and provide the above-mentioned centralized management and control The platform sends a query request, and the centralized management and control platform queries the above-mentioned relationship to determine whether the user service has been registered as a user service associated with the above-mentioned target user smart contract, and then returns the query result to the above-mentioned target system smart contract.
当确定出上述用户服务已经注册为与上述目标用户智能合约关联的用户服务,此时可以进一步调用上述目标系统智能合约包含的上述跨链调用逻辑。如果确定出上述用户服务并未注册为与上述目标用户智能合约关联的用户服务,此时可以拒绝上述目标用户智能合约来调用上述目标系统智能合约包含的上述跨链调用逻辑。When it is determined that the above-mentioned user service has been registered as a user service associated with the above-mentioned target user smart contract, the above-mentioned cross-chain calling logic included in the above-mentioned target system smart contract can be further invoked. If it is determined that the above-mentioned user service is not registered as a user service associated with the above-mentioned target user smart contract, the above-mentioned target user smart contract can be rejected to call the above-mentioned cross-chain call logic contained in the above-mentioned target system smart contract.
通过这种方式,可以为部署在各成员区块链上的作为服务使用方的各用户智能合约,灵活的注册用户服务,并根据注册结果,来严格的控制各用户智能合约作为服务使用方的服务调用权限;例如,通过这种注册机制,可以将在中心化管控平台上注册的用户服务的调用权限,限制在与这些用户服务关联的用户智能合约中,进而可以保证各用户智能合约只能作为服务使用方来调用与其关联的用户服务。In this way, it is possible to flexibly register user services for each user smart contract deployed on each member blockchain as a service user, and strictly control each user smart contract as a service user according to the registration result. Service calling authority; for example, through this registration mechanism, the calling authority of user services registered on the centralized management and control platform can be limited to the user smart contracts associated with these user services, thereby ensuring that each user smart contract can only As a service consumer to invoke the user service associated with it.
在本说明书中,当服务提供方的用户在上述中心化管控平台注册了服务解决方案时,中心化管控平台具体可以将已经注册完成的服务解决方案作为标准化的服务进行服务部署,以开放给服务使用方进行调用。其中,中心化管控平台在部署已注册完成的服务解决方案时,具体可以也以服务接口的形式,中心化的部署在中心化管控平台上,也可以以系统智能合约的形式,分布式部署在各成员区块链上,以供服务使用方进行调用。In this manual, when a user of the service provider registers a service solution on the above-mentioned centralized management and control platform, the centralized management and control platform can specifically deploy the registered service solution as a standardized service to open it to the service The consumer makes the call. Among them, when the centralized management and control platform deploys the registered service solution, it can also be deployed centrally on the centralized management and control platform in the form of a service interface, or distributed in the form of a system smart contract. On each member blockchain, for service users to call.
需要说明的是,上述中心化管控平台在部署注册完成的服务解决方案的详细过程,以及服务使用方调用部署完成的服务解决方案的详细过程,本说明书中不再进行赘述,本领域技术人员可以参考以上图6和图7示出的针对注册完成的用户服务进行部署的详细过程和服务使用方调用部署的用户服务的详细过程。It should be noted that the detailed process of the above-mentioned centralized management and control platform deploying and registering the service solution and the detailed process of the service user invoking the deployed service solution will not be described in detail in this manual, and those skilled in the art can Refer to the detailed process of deploying the registered user service and the detailed process of calling the deployed user service by the service consumer shown in FIG. 6 and FIG. 7 above.
在以上各个实施例中,以在中心化管控平台上注册的用户服务,具体是指区块链服务网络上的各成员区块链上的用户智能合约所包含的合约执行逻辑,进行组合之后生成的服务为例进行说明。需要补充说明的是,在实际应用中,在中心化管控平台上注册的用户服务,除了可以是将各成员区块链上的用户智能合约所包含的合约执行逻辑,进行组合之后生成的服务以外,具体也可以是指将各成员区块链上的区块链数据,进行组合之后生成的数据服务。In each of the above embodiments, user services registered on the centralized management and control platform, specifically referring to the contract execution logic contained in the user smart contracts on the member blockchains on the blockchain service network, are combined to generate service as an example. What needs to be added is that in practical applications, the user services registered on the centralized management and control platform can be services generated by combining the contract execution logic contained in the user smart contracts on the member blockchains. , specifically, it can also refer to the data service generated after combining the blockchain data on each member blockchain.
在这种情况下,在各成员区块链上创建的与中心化管控平台对应的区块链账户,则具体用于在服务使用方调用上述用户服务时,发起针对各成员区块链上的组合生成该用户服务的区块链数据的数据访问。In this case, the blockchain account corresponding to the centralized management and control platform created on each member blockchain is specifically used for initiating a transaction on each member blockchain when the service user invokes the above-mentioned user services. Compose the data access that generates the blockchain data for that user service.
当上述用户服务是将各成员区块链上的区块链数据,进行组合之后生成的数据服务时,针对该类用户服务的注册、部署以及调用的具体实施细节,与以上图2-图7示出的各实施例中描述的针对用户服务的注册、部署以及调用过程类似。When the above user service is a data service generated by combining the blockchain data on each member blockchain, the specific implementation details of the registration, deployment and invocation of this type of user service are the same as those shown in Figures 2-7 above. The registration, deployment and invocation processes for user services described in the illustrated embodiments are similar.
在这种情况下,服务提供方在向中心化管控平台注册这类用户服务时,可以向中心化管控平台发送用户服务注册请求,而中心化管控平台在收到该用户服务注册请求后,可以响应于该用户服务注册请求,确定用于实现该用户服务对应的服务功能的区块链数据集合;上述区块链数据集合包括部署在区块链服务网络中的各成员区块链上的区块链数据;然后,再将上述区块链数据集合中的区块链数据进行组合生成上述用户服务,以完成针对用户服务的服务注册,具体的注册服务的细节不再赘述,本领域技术人员可以参考图4示出的各实施例的记载,在本说明书中不再进行赘述。In this case, when the service provider registers such user services with the centralized management and control platform, it can send a user service registration request to the centralized management and control platform, and the centralized management and control platform can, after receiving the user service registration request, In response to the user service registration request, determine the block chain data set used to realize the service function corresponding to the user service; the above block chain data set includes the block chains deployed on each member block chain in the block chain service network block chain data; then, combine the block chain data in the above block chain data set to generate the above user service, so as to complete the service registration for the user service, the details of the specific registration service will not be repeated, and those skilled in the art Reference may be made to the descriptions of the various embodiments shown in FIG. 4 , and details are not repeated in this specification.
而上述用户服务在进行服务部署时,具体也可以以服务接口的形式中心化部署在上述中心化管控平台,也可以以系统智能合约的形式分布式部署在各成员区块链。比如,以系统智能合约的形式分布式部署在各成员区块链为例,此时上述用于进行跨链通信的系统智能合约包含的与上述用户服务对应的跨链调用逻辑,则具体可以用于:确定组合生成该用户服务的各区块链数据对应的各成员区块链,并基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,分别发起针对上述各成员区块链上的各 区块链数据的数据访问。服务使用方在需要调用该类用户服务时,可以通过调用该系统智能合约中的包含的上述跨链调用逻辑,对已经在中心化管控平台上注册的该类用户服务发起调用,具体的服务调用的细节不再赘述,本领域技术人员可以参考图6和图7示出的各实施例的记载,在本说明书中不再进行赘述。When the above-mentioned user services are deployed, they can also be deployed centrally on the above-mentioned centralized management and control platform in the form of service interfaces, or can be distributed and deployed on each member blockchain in the form of system smart contracts. For example, take the distributed deployment of system smart contracts on each member blockchain as an example. At this time, the above-mentioned system smart contract for cross-chain communication contains the cross-chain call logic corresponding to the above-mentioned user services. Specifically, you can use In: Determine the member blockchains corresponding to the blockchain data that are combined to generate the user service, and initiate the respective blockchain accounts corresponding to the centralized management and control platform created in the member blockchains Data access for each blockchain data on each of the above member blockchains. When the service user needs to call this type of user service, it can initiate a call to this type of user service that has been registered on the centralized management and control platform by calling the above-mentioned cross-chain call logic contained in the system smart contract. The specific service call The details will not be repeated here, and those skilled in the art can refer to the descriptions of the embodiments shown in FIG. 6 and FIG. 7 , which will not be repeated in this specification.
与前述方法的实施例相对应,本说明书还提供了装置、电子设备以及存储介质的实施例。Corresponding to the foregoing method embodiments, this specification also provides embodiments of apparatuses, electronic equipment, and storage media.
图8是一示例性实施例提供的一种电子设备的示意结构图。请参考图8,在硬件层面,该设备包括处理器802、内部总线804、网络接口806、内存808以及非易失性存储器810,当然还可能包括其他业务所需要的硬件。本说明书一个或多个实施例可以基于软件方式来实现,比如由处理器802从非易失性存储器810中读取对应的计算机程序到内存808中然后运行。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Fig. 8 is a schematic structural diagram of an electronic device provided by an exemplary embodiment. Please refer to FIG. 8 , at the hardware level, the device includes a processor 802 , an internal bus 804 , a network interface 806 , a memory 808 and a non-volatile memory 810 , and of course may also include hardware required by other services. One or more embodiments of this specification may be implemented based on software, for example, the processor 802 reads a corresponding computer program from the non-volatile memory 810 into the memory 808 and executes it. Of course, in addition to software implementations, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each A logic unit, which can also be a hardware or logic device.
如图9所示,图9是本说明书根据一示例性实施例示出的一种用户服务注册装置的框图,该装置可以应用于如图8所示的电子设备中,以实现本说明书的技术方案。该装置应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务;所述装置900包括:第一接收模块901,接收服务提供方发起的用户服务注册请求;第一确定模块902,响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑;第一注册模块903,将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。As shown in Figure 9, Figure 9 is a block diagram of a user service registration device shown in this specification according to an exemplary embodiment, which can be applied to the electronic device shown in Figure 8 to implement the technical solution of this specification . The device is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain; wherein, the centralized management and control platform supports registered user services; the user services include The user service generated by the contract execution logic combination contained in the user smart contract deployed on each member blockchain; the device 900 includes: a first receiving module 901, which receives the user service registration request initiated by the service provider; the first The determining module 902, in response to the user service registration request, determines a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes each member area deployed in the blockchain service network The contract execution logic contained in the user smart contract on the block chain; the first registration module 903, combining the contract execution logic in the contract execution logic set to generate the user service, so as to complete the service registration of the user service.
上述装置900的各个模块的具体细节已经在之前描述的方法流程中进行了详细的描述,因此此处不再赘述。The specific details of each module of the above-mentioned apparatus 900 have been described in detail in the method flow described above, so details are not repeated here.
如图10所示,图10是本说明书根据一示例性实施例示出的另一种用户服务注册装置的框图,该装置也可以应用于如图8所示的电子设备中,以实现本说明书的技术方案。该装置应用于与区块链服务网络对应的中心化管控平台,所述区块链服务网络包括至少一个成员区块链;其中,所述中心化管控平台支持注册用户服务;所述用户服务包括由部署在各成员区块链上的用户智能合约所包含的合约执行逻辑组合生成的用户服务;所述装置1000包括:第二接收模块1001,接收服务提供方发起的解决方案注册请求;第二确定模块1002,响应于所述解决方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;所述用户服务包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;第二注册模块1003,将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。As shown in FIG. 10, FIG. 10 is a block diagram of another user service registration device shown in this specification according to an exemplary embodiment. This device can also be applied to the electronic device shown in FIG. 8, so as to realize the Technical solutions. The device is applied to a centralized management and control platform corresponding to a blockchain service network, and the blockchain service network includes at least one member blockchain; wherein, the centralized management and control platform supports registered user services; the user services include The user service generated by the contract execution logic combination contained in the user smart contract deployed on each member blockchain; the device 1000 includes: a second receiving module 1001, which receives the solution registration request initiated by the service provider; the second The determining module 1002, in response to the solution registration request, determines from the registered user services a set of user services for implementing the service functions corresponding to the service solution; the user services include The contract execution logic contained in the user smart contract on the above; the second registration module 1003, combining the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
上述装置1000的各个模块的具体细节已经在之前描述的方法流程中进行了详细的描述,因此此处不再赘述。The specific details of each module of the above-mentioned apparatus 1000 have been described in detail in the method flow described above, so details are not repeated here.
本说明书还提供一种电子设备,所述电子设备包括有处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为实现之前描述的全部的方法流程中的步骤。This specification also provides an electronic device, the electronic device includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps in all the method processes described above.
本说明书还提供一种计算机可读存储介质,其上存储有可执行的指令;其中,该指令被处理器执行时,实现之前描述的全部的方法流程中的步骤。The present specification also provides a computer-readable storage medium on which executable instructions are stored; wherein, when the instructions are executed by a processor, the steps in all the method processes described above are implemented.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without any creative effort.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer, which may take the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control device, etc. desktops, tablets, wearables, or any combination of these.
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。Terms used in one or more embodiments of the present specification are for the purpose of describing specific embodiments only, and are not intended to limit the one or more embodiments of the present specification. As used in one or more embodiments of this specification and the appended claims, the singular forms "a", "the", and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of one or more embodiments of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. Within the spirit and principles of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. should be included in the scope of protection of one or more embodiments of this specification.

Claims (23)

  1. 一种用户服务注册方法,应用于与区块链服务网络对应的中心化管控平台,所述方法包括:A user service registration method applied to a centralized management and control platform corresponding to a blockchain service network, the method comprising:
    接收服务提供方发起的用户服务注册请求;Receive the user service registration request initiated by the service provider;
    响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑;In response to the user service registration request, determine a set of contract execution logic for realizing the service function corresponding to the user service; the set of contract execution logic includes deployment on each member blockchain in the blockchain service network The contract execution logic contained in the user smart contract;
    将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。The contract execution logic in the contract execution logic set is combined to generate the user service, so as to complete the service registration of the user service.
  2. 如权利要求1所述方法,所述区块链服务网络中的各个成员链上创建了与所述中心化管控平台对应的区块链账户;所述区块链账户用于在服务使用方调用所述中心化管控平台上注册的用户服务时,发起针对组合生成所述用户服务的合约执行逻辑对应的用户智能合约的合约调用。The method according to claim 1, a block chain account corresponding to the centralized management and control platform is created on each member chain in the block chain service network; the block chain account is used to call the service user When the user service registered on the centralized management and control platform, initiate a contract call for the user smart contract corresponding to the contract execution logic combined to generate the user service.
  3. 如权利要求1所述方法,各成员区块链上部署的用户智能合约包含的合约执行逻辑,在所述中心化管控平台上进行了注册;The method according to claim 1, the contract execution logic contained in the user smart contract deployed on each member blockchain is registered on the centralized management and control platform;
    确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合,包括:Determine the set of contract execution logic used to implement the service functions corresponding to the user service, including:
    从所述中心化管控平台上已经注册的合约执行逻辑中,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合。From the contract execution logic registered on the centralized management and control platform, determine a set of contract execution logic for realizing the service function corresponding to the user service.
  4. 如权利要求3所述方法,所述方法还包括:The method according to claim 3, said method further comprising:
    将在所述中心化管控平台上注册的合约执行逻辑通过可视化界面向所述服务提供方输出,以由所述服务提供方在所述可视化界面中选择用于组合生成所述用户服务的至少一个合约执行逻辑。Outputting the contract execution logic registered on the centralized management and control platform to the service provider through a visual interface, so that the service provider can select at least one of the user services in the visual interface for combined generation Contract execution logic.
  5. 如权利要求4所述方法,所述用户服务注册请求携带所述服务提供方在所述可视化界面中选择的至少一个合约执行逻辑对应的标识信息;The method according to claim 4, wherein the user service registration request carries identification information corresponding to at least one contract execution logic selected by the service provider in the visual interface;
    从所述中心化管控平台上已经注册的合约执行逻辑中,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合,包括:From the contract execution logic registered on the centralized management and control platform, determine the contract execution logic set used to realize the service function corresponding to the user service, including:
    获取所述用户服务注册请求中携带的所述至少一个合约执行逻辑对应的标识信息,将已注册的合约执行逻辑中与所述标识信息对应的所述至少一个合约执行逻辑,确定为用于实现所述用户服务对应的服务功能的合约执行逻辑集合。Acquire the identification information corresponding to the at least one contract execution logic carried in the user service registration request, and determine the at least one contract execution logic corresponding to the identification information in the registered contract execution logic as used to implement The contract execution logic set of the service function corresponding to the user service.
  6. 如权利要求3所述方法,所述用户服务注册请求携带所述服务提供方为所述用户服务定义的服务逻辑的描述信息;The method according to claim 3, wherein the user service registration request carries description information of service logic defined by the service provider for the user service;
    从所述中心化管控平台上已经注册的合约执行逻辑中,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合,包括:From the contract execution logic registered on the centralized management and control platform, determine the contract execution logic set used to realize the service function corresponding to the user service, including:
    将已注册的合约执行逻辑,分别与所述描述信息所指示的服务逻辑进行匹配;根据所述匹配的结果,将已注册的合约执行逻辑中,与所述描述信息所指示的服务逻辑匹配的至少一个合约执行逻辑,确定为用于实现所述用户服务对应的服务功能的合约执行逻辑集合。Match the registered contract execution logic with the service logic indicated by the description information; according to the matching result, match the registered contract execution logic with the service logic indicated by the description information At least one contract execution logic is determined as a set of contract execution logic for realizing the service function corresponding to the user service.
  7. 如权利要求1所述方法,将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务之前,还包括:The method according to claim 1, before combining the contract execution logic in the contract execution logic set to generate the user service, further comprising:
    响应于所述用户服务注册请求,为所述服务提供方分配服务标识;Allocating a service identifier to the service provider in response to the user service registration request;
    将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,包括:Combining the contract execution logic in the contract execution logic set to generate the user service includes:
    将所述合约执行逻辑集合中的合约执行逻辑进行组合得到合约执行逻辑组合,并将所述合约执行逻辑组合与所述服务标识进行绑定。Combining contract execution logics in the contract execution logic set to obtain a contract execution logic combination, and binding the contract execution logic combination to the service identifier.
  8. 如权利要求7所述方法,将所述合约执行逻辑集合中的合约执行逻辑进行组合得到合约执行逻辑组合,包括:The method according to claim 7, combining the contract execution logic in the contract execution logic set to obtain the contract execution logic combination, including:
    将所述合约执行逻辑集合中的合约执行逻辑,按照与所述用户服务对应的服务逻辑的逻辑顺序进行组合,得到合约执行逻辑组合。The contract execution logic in the contract execution logic set is combined according to the logical order of the service logic corresponding to the user service to obtain a contract execution logic combination.
  9. 根据权利要求8所述的方法,组合生成所述用户服务的合约执行逻辑中的至少部分合约执行逻辑,分别与不同的成员区块链上部署的用户智能合约相对应。According to the method according to claim 8, at least part of the contract execution logic in the contract execution logic of the user service is combined to correspond to user smart contracts deployed on different member blockchains.
  10. 如权利要求3所述方法,所述方法还包括:The method according to claim 3, said method further comprising:
    接收部署在任一目标成员区块链上的目标智能合约的合约管理方发起的合约执行逻辑注册请求;其中,所述合约执行逻辑注册请求包括目标智能合约所包含的待注册的 目标合约执行逻辑的标识信息;Receive the contract execution logic registration request initiated by the contract manager of the target smart contract deployed on any target member blockchain; wherein, the contract execution logic registration request includes the target contract execution logic contained in the target smart contract to be registered identification information;
    响应于所述合约执行逻辑注册请求,将所述标识信息对应的所述目标合约执行逻辑在所述中心化管控平台上进行注册。In response to the contract execution logic registration request, register the target contract execution logic corresponding to the identification information on the centralized management and control platform.
  11. 如权利要求1所述方法,所述用户服务以系统智能合约的形式,分布式部署在各成员区块链上,以供服务使用方调用;和/或,The method according to claim 1, wherein the user service is distributed and deployed on each member blockchain in the form of a system smart contract for calling by service users; and/or,
    所述用户服务以服务接口的形式,中心化部署在所述中心化管控平台上,以供服务使用方调用。The user service is centrally deployed on the centralized management and control platform in the form of a service interface for calling by service users.
  12. 一种用户服务注册方法,应用于与区块链服务网络对应的中心化管控平台,所述方法包括:A user service registration method applied to a centralized management and control platform corresponding to a blockchain service network, the method comprising:
    接收服务提供方发起的解决方案注册请求;Receive the solution registration request initiated by the service provider;
    响应于所述解决方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;所述用户服务包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;In response to the solution registration request, determine from the registered user services a set of user services for implementing the service functions corresponding to the service solution; the user services include user intelligence deployed on each member blockchain The contract execution logic contained in the contract;
    将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。Combining the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
  13. 如权利要求12所述方法,所述方法还包括:The method of claim 12, further comprising:
    将在所述中心化管控平台上注册的用户服务通过可视化界面向所述服务提供方输出,以由所述服务提供方在所述可视化界面中选择用于组合生成所述服务解决方案的至少一个用户服务。Outputting the user services registered on the centralized management and control platform to the service provider through a visual interface, so that the service provider can select at least one of the service solutions used to combine and generate the service solution in the visual interface User Services.
  14. 如权利要求13所述方法,所述解决方案注册请求携带所述服务提供方在所述可视化界面中选择的至少一个用户服务对应的标识信息;The method according to claim 13, wherein the solution registration request carries identification information corresponding to at least one user service selected by the service provider in the visual interface;
    从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合,包括:Determine the set of user services used to implement the service functions corresponding to the service solution from the registered user services, including:
    获取所述用户服务注册请求中携带的所述至少一个用户服务对应的标识信息,将已注册的用户服务中与所述标识信息对应的所述至少一个用户服务,确定为用于实现所述服务解决方案对应的服务功能的用户服务集合。Acquire the identification information corresponding to the at least one user service carried in the user service registration request, and determine the at least one user service corresponding to the identification information among the registered user services as used to implement the service The user service collection of the service function corresponding to the solution.
  15. 如权利要求13所述方法,所述用户服务注册请求携带所述服务提供方为所述服务解决方案定义的服务逻辑的描述信息;The method according to claim 13, wherein the user service registration request carries description information of the service logic defined by the service provider for the service solution;
    从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合,包括:Determine the set of user services used to implement the service functions corresponding to the service solution from the registered user services, including:
    将已注册的用户服务对应的服务逻辑,分别与所述描述信息所指示的服务逻辑进行匹配;根据所述匹配的结果,将已注册的用户服务中,与所述描述信息所指示的服务逻辑匹配的至少一个用户服务,确定为用于实现所述服务解决方案对应的服务功能的用户服务集合。Match the service logic corresponding to the registered user service with the service logic indicated by the description information; according to the matching result, match the registered user service with the service logic indicated by the description information The matched at least one user service is determined as a set of user services for realizing the service function corresponding to the service solution.
  16. 如权利要求12所述方法,将所述用户服务集合中的用户服务进行组合生成所述服务解决方案之前,还包括:The method according to claim 12, before combining the user services in the user service set to generate the service solution, further comprising:
    响应于所述解决方案注册请求,为所述服务提供方分配方案标识;assigning a solution identifier to the service provider in response to the solution registration request;
    将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,包括:Combining the user services in the user service set to generate the service solution includes:
    将所述用户服务集合中的用户服务进行组合得到用户服务组合,并将所述用户服务组合与所述方案标识进行绑定。Combining the user services in the user service set to obtain a user service combination, and binding the user service combination with the scheme identifier.
  17. 根据权利要求16所述的方法,将所述用户服务集合中的用户服务进行组合得到用户服务组合,包括:According to the method of claim 16, combining the user services in the user service set to obtain the user service combination includes:
    将所述用户服务集合中的用户服务,按照与所述服务解决方案对应的服务逻辑的逻辑顺序进行组合,得到用户服务组合。Combining the user services in the user service set according to the logical order of the service logic corresponding to the service solution to obtain a user service combination.
  18. 根据权利要求17所述的方法,组合生成所述用户服务的合约执行逻辑中的至少部分合约执行逻辑,分别与不同的成员区块链上部署的用户智能合约相对应。According to the method according to claim 17, at least part of the contract execution logic in the contract execution logic of the user service is combined to correspond to user smart contracts deployed on different member blockchains.
  19. 根据权利要求12所述的方法,所述服务解决方案以系统智能合约的形式,分布式部署在各成员区块链上,以供服务使用方调用;或者,According to the method according to claim 12, the service solution is distributed and deployed on each member blockchain in the form of a system smart contract, so as to be invoked by the service user; or,
    所述服务解决方案以服务接口的形式,中心化部署在所述中心化管控平台上,以供服务使用方调用。The service solution is centrally deployed on the centralized management and control platform in the form of a service interface for calling by service users.
  20. 一种用户服务注册装置,应用于与区块链服务网络对应的中心化管控平台所述装置包括:A user service registration device, applied to a centralized management and control platform corresponding to a blockchain service network. The device includes:
    第一接收模块,接收服务提供方发起的用户服务注册请求;The first receiving module receives the user service registration request initiated by the service provider;
    第一确定模块,响应于所述用户服务注册请求,确定用于实现所述用户服务对应的服务功能的合约执行逻辑集合;所述合约执行逻辑集合包括部署在区块链服务网络中的各成员区块链上的用户智能合约所包含的合约执行逻辑;The first determining module, in response to the user service registration request, determines a contract execution logic set for realizing the service function corresponding to the user service; the contract execution logic set includes each member deployed in the blockchain service network The contract execution logic contained in the user smart contract on the blockchain;
    第一注册模块,将所述合约执行逻辑集合中的合约执行逻辑进行组合生成所述用户服务,以完成所述用户服务的服务注册。The first registration module combines the contract execution logic in the contract execution logic set to generate the user service, so as to complete the service registration of the user service.
  21. 一种用户服务注册装置,应用于与区块链服务网络对应的中心化管控平台,所述装置包括:A user service registration device, applied to a centralized management and control platform corresponding to a blockchain service network, said device comprising:
    第二接收模块,接收服务提供方发起的解决方案注册请求;The second receiving module receives the solution registration request initiated by the service provider;
    第二确定模块,响应于所述解决方案注册请求,从已注册的用户服务中确定用于实现所述服务解决方案对应的服务功能的用户服务集合;所述用户服务包括部署在各成员区块链上的用户智能合约所包含的合约执行逻辑;The second determination module, in response to the solution registration request, determines from the registered user services a set of user services for implementing the service functions corresponding to the service solution; the user services include deployment in each member block The contract execution logic contained in the user smart contract on the chain;
    第二注册模块,将所述用户服务集合中的用户服务进行组合生成所述服务解决方案,以完成所述服务解决方案的服务注册。The second registration module combines the user services in the user service set to generate the service solution, so as to complete the service registration of the service solution.
  22. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-11或者12-19中任一项所述的方法。Wherein, the processor implements the method according to any one of claims 1-11 or 12-19 by running the executable instructions.
  23. 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1-11或者12-19中任一项所述方法的步骤。A computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method according to any one of claims 1-11 or 12-19 are implemented.
PCT/CN2022/109864 2021-09-15 2022-08-03 User service registration WO2023040502A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111082161.6 2021-09-15
CN202111082161.6A CN113535691B (en) 2021-09-15 2021-09-15 User service registration method and device

Publications (1)

Publication Number Publication Date
WO2023040502A1 true WO2023040502A1 (en) 2023-03-23

Family

ID=78092635

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/109864 WO2023040502A1 (en) 2021-09-15 2022-08-03 User service registration

Country Status (2)

Country Link
CN (1) CN113535691B (en)
WO (1) WO2023040502A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535691B (en) * 2021-09-15 2022-01-25 支付宝(杭州)信息技术有限公司 User service registration method and device
CN115102993B (en) * 2022-07-15 2023-08-11 北京智芯微电子科技有限公司 Active access method, device and equipment for plug and play of terminal and readable medium
CN115664718A (en) * 2022-09-27 2023-01-31 蚂蚁区块链科技(上海)有限公司 Cross-chain calling method and device for intelligent contract

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566153A (en) * 2017-07-21 2018-01-09 哈尔滨工程大学 A kind of micro services implementation method of Self management
CN108667618A (en) * 2018-05-10 2018-10-16 阿里巴巴集团控股有限公司 Data processing method, device, server and the system of block chain member management
CN108989389A (en) * 2018-06-11 2018-12-11 北京航空航天大学 A method of establishing intelligent contract micro services
CN110995521A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Service providing method, device, equipment and system
CN113535691A (en) * 2021-09-15 2021-10-22 支付宝(杭州)信息技术有限公司 User service registration method and device
US20220021538A1 (en) * 2017-09-13 2022-01-20 Vijay Madisetti Blockchain token-based cloud orchestration architecture for discrete virtual network instances

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10642967B2 (en) * 2017-11-28 2020-05-05 American Express Travel Related Services Company, Inc. Single sign-on solution using blockchain
CN111861433B (en) * 2018-03-30 2024-04-02 创新先进技术有限公司 Business execution method and device based on block chain and electronic equipment
CN108667612B (en) * 2018-04-03 2021-06-11 中电科大数据研究院有限公司 Trust service architecture and method based on block chain
CN110348202B (en) * 2019-07-12 2020-06-12 北京物资学院 Role access control system and method based on intelligent contract of block chain
US11381558B2 (en) * 2019-10-18 2022-07-05 Avaya Inc. Blockchain-based device enrollment service
CN112488706B (en) * 2020-11-23 2023-02-17 国网河南省电力公司信息通信公司 Cloud service management method and system based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566153A (en) * 2017-07-21 2018-01-09 哈尔滨工程大学 A kind of micro services implementation method of Self management
US20220021538A1 (en) * 2017-09-13 2022-01-20 Vijay Madisetti Blockchain token-based cloud orchestration architecture for discrete virtual network instances
CN108667618A (en) * 2018-05-10 2018-10-16 阿里巴巴集团控股有限公司 Data processing method, device, server and the system of block chain member management
CN108989389A (en) * 2018-06-11 2018-12-11 北京航空航天大学 A method of establishing intelligent contract micro services
CN110995521A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Service providing method, device, equipment and system
CN113535691A (en) * 2021-09-15 2021-10-22 支付宝(杭州)信息技术有限公司 User service registration method and device

Also Published As

Publication number Publication date
CN113535691B (en) 2022-01-25
CN113535691A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
WO2023040502A1 (en) User service registration
WO2023040498A1 (en) User service utilization
WO2023040496A1 (en) Virtual resource allocation based on blockchain
US20150312377A1 (en) System and method for updating service information for across-domain messaging in a transactional middleware machine environment
CN113067904B (en) Method for building block chain sub-network and block chain system
CN113067897B (en) Cross-chain interaction method and device
CN113067895B (en) Method for building block chain sub-network and block chain system
CN111950019A (en) Block chain-based Internet of things access control system and method
WO2023124746A1 (en) Cross-subnet interaction permission control
WO2023040450A1 (en) Blockchain service network establishment
CN113067914B (en) Method and device for distributing subnet identification, electronic equipment and storage medium
CN113259464B (en) Method for building block chain sub-network and block chain system
CN113098982B (en) Block chain message transmission method and device
CN113067898B (en) Method for scheduling computing services for business process contracts
CN113259462B (en) Block chain message distribution method and device
WO2022206209A1 (en) Blockchain-based asset management
CN113259119B (en) Block chain message distribution method and device
CN113259237B (en) Transaction forwarding method between block chain networks
CN114268634A (en) Business execution method based on off-chain computing service
CN113326290B (en) Cross-network query control method
CN114363349B (en) Block chain sub-network starting method and device
WO2024066018A1 (en) Method and apparatus for cross-chain calling of smart contracts
CN113098984B (en) Method for forming multi-layer block chain system based on registration mechanism and block chain system
CN114297171A (en) Account data reading and writing method and device
CN114357080A (en) Account data reading and writing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22868879

Country of ref document: EP

Kind code of ref document: A1