CN113542435B - User service using method and device - Google Patents

User service using method and device Download PDF

Info

Publication number
CN113542435B
CN113542435B CN202111081536.7A CN202111081536A CN113542435B CN 113542435 B CN113542435 B CN 113542435B CN 202111081536 A CN202111081536 A CN 202111081536A CN 113542435 B CN113542435 B CN 113542435B
Authority
CN
China
Prior art keywords
user
service
contract
blockchain
control platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111081536.7A
Other languages
Chinese (zh)
Other versions
CN113542435A (en
Inventor
刘勤
黄胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202111081536.7A priority Critical patent/CN113542435B/en
Publication of CN113542435A publication Critical patent/CN113542435A/en
Application granted granted Critical
Publication of CN113542435B publication Critical patent/CN113542435B/en
Priority to PCT/CN2022/109860 priority patent/WO2023040498A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

One or more embodiments of the present specification provide a user service using method and apparatus. The method comprises the following steps: acquiring a calling request which is initiated by a service user and aims at a service interface corresponding to user service; responding to the calling request, determining each user intelligent contract corresponding to each contract execution logic for generating the user service in a combined mode, and deploying each member block chain of each user intelligent contract; and respectively initiating cross-chain calling aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform so as to complete service calling aiming at the user service.

Description

User service using method and device
Technical Field
Embodiments of the present disclosure relate to the field of block chain technologies, and in particular, to a method and an apparatus for using a user service.
Background
As blockchain technology develops, more and more services can be implemented using intelligent contracts deployed in blockchain systems. The blockchain system serves as an infrastructure behind the business, and the operation and maintenance need to be invested in cost. Therefore, some large service organizations have introduced their own blockchain systems to provide basic services related to blockchains to business parties who are unable to build blockchain systems. And the service party accessing the blockchain system can realize the corresponding service by calling the intelligent contract deployed in the blockchain system.
However, in practical applications, different blockchain systems are usually independent from each other, and how to utilize the independent blockchain systems to more effectively provide basic services related to blockchains for a service provider is a technical problem to be solved.
Disclosure of Invention
According to a first aspect of various embodiments of the present disclosure, a user service using method is provided, which is applied to a centralized management and control platform corresponding to a blockchain service network; the centralized management and control platform is provided with a service interface corresponding to the user service registered on the centralized management and control platform; the user services comprise contract execution logic included in user intelligent contracts deployed on member blockchains in the blockchain services network; block chain accounts corresponding to the centralized control platform are respectively established on each member block chain in the block chain service network; the method comprises the following steps:
acquiring a calling request aiming at the service interface, which is initiated by a service user;
responding to the calling request, determining each user intelligent contract corresponding to each contract execution logic for generating the user service in a combined mode, and deploying each member block chain of each user intelligent contract;
and respectively initiating cross-chain calling aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform so as to complete service calling aiming at the user service.
According to a second aspect of the embodiments of the present specification, another user service using method is further proposed, which is applied to a node device in any target member blockchain in a blockchain service network; at least one system intelligent contract is respectively deployed on each member block chain in the block chain network by a centralized management platform corresponding to the block chain service network; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises cross-chain calling logic corresponding to user services registered and completed on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains; the method comprises the following steps:
acquiring call data aiming at the user service, which is initiated by a service user;
responding to the calling data, calling the cross-chain calling logic contained in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic combined and generated for the user service, and deploying each member block chain of each user intelligent contract; and the number of the first and second groups,
and respectively initiating cross-chain calling aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform so as to complete service calling aiming at the user service.
According to a third aspect of the multiple embodiments of the present specification, a user service using apparatus is further provided, where the user service using apparatus is applied to a centralized management and control platform corresponding to a blockchain service network; the centralized management and control platform is provided with a service interface corresponding to the user service registered on the centralized management and control platform; the user services comprise contract execution logic included in user intelligent contracts deployed on member blockchains in the blockchain services network; block chain accounts corresponding to the centralized control platform are respectively established on each member block chain in the block chain service network; the device comprises:
the first acquisition module is used for acquiring a calling request aiming at the service interface and initiated by a service user;
the first determining module is used for responding to the calling request, determining each user intelligent contract corresponding to each contract execution logic combined and generated by the target user service, and deploying each member block chain of each user intelligent contract;
and the first calling module is used for respectively initiating cross-chain calling aiming at the intelligent contracts of the users on the basis of the blockchain accounts which are created in the member blockchains and correspond to the centralized control platform so as to complete service calling aiming at the target user service.
According to a fourth aspect of the multiple embodiments of the present specification, there is further provided a user service using apparatus, which is applied to a node device in any target member blockchain in a blockchain service network; at least one system intelligent contract is respectively deployed on each member block chain in the block chain network by a centralized management platform corresponding to the block chain service network; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises cross-chain calling logic corresponding to user services registered and completed on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains;
the device comprises:
the second acquisition module is used for acquiring the calling data aiming at the user service, which is initiated by the service user;
the second determining module is used for responding to the calling data, calling the cross-chain calling logic contained in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic combined and generated to the target user service, and deploying each member block chain of each user intelligent contract; and the number of the first and second groups,
and the second calling module is used for respectively initiating cross-chain calling aiming at the intelligent contracts of the users on the basis of the blockchain accounts which are created in the member blockchains and correspond to the centralized control platform so as to complete service calling aiming at the target user service.
In the above embodiments of the present specification, based on contract execution logic included in a user intelligent contract distributed on a member block chain, a standardized user service may be registered on a centralized management and control platform, and the user service is opened to a service user for invocation;
contract execution logic that may be derived from user intelligence contracts on different member blockchains due to the user service being invoked; therefore, by the mode, the service capability of the user intelligent contracts on different member block chains is integrated, contract execution logic with basic service capability contained in the user intelligent contracts on different member block chains is integrated to generate services with more complex service capability, so that the service capability of the user intelligent contracts deployed on different member block chains can be fully circulated and shared among the member block chains, and the problem of information isolated island caused by the fact that the service capability provided by the member block chains cannot be integrated is fundamentally solved.
Drawings
Fig. 1 is a network architecture diagram of a block chain service network according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a method for managing a blockchain services network according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a process of registering a target blockchain according to the present specification.
Fig. 4 is a flowchart illustrating a service registration method for registering a user service on a centralized management and control platform according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating a user service usage method for user services registered on a centralized governance platform according to an exemplary embodiment of the present description.
Fig. 7 is a flowchart illustrating another user service usage method for a user service registered on a centralized governance platform according to an exemplary embodiment.
FIG. 8 is a schematic block diagram of an electronic device in accordance with an exemplary embodiment.
Fig. 9 is a block diagram of a service registration apparatus shown in accordance with an example embodiment of the present specification.
Fig. 10 is a block diagram illustrating another service registration apparatus in accordance with an example embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present 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 herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
As blockchain technology continues to evolve, more and more blockchains are built. However, each blockchain is usually independent from another blockchain, and different blockchains usually cannot be connected with each other. This, in turn, results in the service capabilities of the user intelligence contracts deployed on a single blockchain not being adequately circulated and shared between different blockchains.
The technical scheme is that a block chain service network formed by at least one member block chain is established, and contract execution logics contained in user intelligent contracts distributed on the member block chains in the block chain service network are integrated to form standardized services which are opened to a service user for calling.
When the method is implemented, the blockchains needing to be added into the blockchain service network can be registered to become member blockchains of the blockchain service network in a mode of sending a registration request to a centralized management and control platform of the blockchain service network. When receiving a registration request corresponding to a target blockchain, the centralized management and control platform may perform registration processing on the target blockchain, so as to add the blockchain as a member blockchain to the blockchain service network. When the centralized control platform registers the blockchain, a blockchain account corresponding to the centralized control platform can be created in the blockchain;
on the centralized management and control platform, the user service generated by executing logic combination by the contracts contained in the user intelligent contracts deployed on each member block chain can be registered, and the registered user service is centrally deployed on the centralized management and control platform in a manner of deploying a service interface corresponding to the registered user service on the centralized management and control platform.
When a service user needs to call the user service registered on the centralized management and control platform, the user service can be called by initiating a call request for the service interface to the centralized management and control platform.
After receiving the call request, the centralized management and control platform may determine to combine and generate each user intelligent contract corresponding to each contract execution logic of the target user service, and deploy each member block chain of each user intelligent contract; and respectively initiating cross-chain calling aiming at the intelligent contracts of the users on the basis of the blockchain accounts which are created in the member blockchains and correspond to the centralized control platform so as to complete service calling aiming at the user services.
In addition, when the centralized management and control platform performs registration processing on the blockchain, at least one system intelligent contract can be deployed on the blockchain; wherein the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains. Correspondingly, the centralized management and control platform can also distribute the registered user service on each member block chain in the form of the target system intelligent contract. At this time, the target system intelligent contract may specifically include a cross-chain call logic corresponding to the user service registered and completed on the centralized management and control platform.
When a service user needs to call the user service registered on the centralized management and control platform, the user service can be called by submitting call data for the user service to the target system intelligent contract.
After receiving the call data, the centralized management and control platform may call a cross-chain call logic corresponding to the user service, which is included in the target system intelligent contract, determine to combine and generate each user intelligent contract corresponding to each contract execution logic of the target user service, deploy each member block chain of each user intelligent contract, and respectively initiate a cross-chain call for each user intelligent contract based on a block chain account corresponding to the centralized management and control platform, which is created in each member block chain, so as to complete service call for the user service.
In the above technical solution, the called user service may include contract execution logic derived from user intelligent contracts on different member blockchains; therefore, by the mode, the service capability of the user intelligent contracts on different member block chains is integrated, contract execution logic with basic service capability contained in the user intelligent contracts on different member block chains is integrated to generate services with more complex service capability, so that the service capability of the user intelligent contracts deployed on different member block chains can be fully circulated and shared among the member block chains, and the problem of information isolated island caused by the fact that the service capability provided by the member block chains cannot be integrated is fundamentally solved.
Referring to fig. 1, fig. 1 is a network architecture diagram of a block chain service network according to an exemplary embodiment of the present disclosure.
As shown in fig. 1, in the network architecture of the above-mentioned blockchain service network, a blockchain service network composed of a plurality of member blockchains, a target blockchain network to be registered, and a centralized management and control platform for managing the blockchain service network may be included. It should be noted that, in the initial case, there is no member blockchain in the blockchain service network, and the target blockchain can be added to the blockchain service network only after the target blockchain is registered by the centralized management platform.
The target blockchain network to be registered shown in fig. 1 refers to a blockchain network that is not temporarily added to the blockchain service network, and the target blockchain network may perform registration interaction with the centralized management and control platform to apply for adding as a member blockchain to the target blockchain network.
The first member blockchain, the second member blockchain, and the third member blockchain shown in fig. 1 refer to member blockchains that have joined the above-described blockchain service network.
In an embodiment, at least some member blockchains in the blockchain service network may be heterogeneous blockchains.
It should be noted that, the narrow isomeric blockchains generally mean that there are significant differences in the value of circulation on the blockchains; that is, two blockchains with significant differences in value passed through may be generally referred to as heterogeneous blockchains. For example, bitcoin networks and etherhouses are heterogeneous blockchains in the narrow sense.
The heterogeneous block chains in a broad sense mean that the types of the block chains and/or the adopted block chain protocols have obvious differences; that is, the type of blockchain and/or the blockchain protocol employed is significantly between two blockchains, which may also be generally referred to as heterogeneous blockchains. For example, ANT CHAIN blocks (ANT CHAIN) and superhedge fabric CHAIN blocks are generalized heterogeneous CHAIN blocks.
On each member blockchain in the blockchain service network, a plurality of user intelligent contracts can be deployed.
The contract execution logic expressed by the contract code in the user intelligent contracts may generally include a plurality of contract execution logics respectively corresponding to different basic service capabilities.
For example, in practical applications, the contract execution logic included in an intelligent contract may be generally in the form of a function, and one intelligent contract may include a plurality of functions respectively corresponding to different service functions.
The centralized management and control platform shown in fig. 1 may be specifically a service platform for performing centralized management on the blockchain service network. It should be noted that the hardware device bearing the centralized management and control platform may be a server, or may be a server cluster formed by a plurality of servers, and is not particularly limited in this specification.
The centralized management and control platform is used as a centralized service platform and can manage members of the block chain service network; for example, it may be responsible for registration of member blockchains in a blockchain services network into the network, for exiting the network, and so on.
In addition, the centralized management and control platform can be used for realizing cross-chain access among member block chains;
for example, in practical applications, on the centralized management and control platform, a cross-chain service component may be mounted, and the cross-chain service component is specifically used for implementing cross-chain data interaction between member blockchains. Each member blockchain added into the blockchain service network can realize cross-chain data access with other member blockchains through the cross-chain service component on the centralized control platform.
Or, in the process of performing centralized management on each member blockchain, the centralized management and control platform may also issue and deploy a system intelligent contract for implementing cross-chain data access to each member blockchain, so that each member blockchain network may implement cross-chain data access with other member blockchains based on the deployed system intelligent contract.
Furthermore, the centralized management and control platform can be used for performing member management on the blockchain service network, realizing cross-chain access among member blockchains, and supporting registration of user services generated by contract execution logic combination included in user intelligent contracts deployed on the member blockchains.
The user service specifically refers to a service with more complex service capability generated after the contract execution logic with basic service capability included in the user intelligent contracts on different member block chains is combined.
For example, in implementation, contract execution logic with basic service capability included in user intelligent contracts distributed on each member blockchain may be combined as basic service components to generate more complex user services, and then the user services may be registered as standardized services to a centralized management and control platform for a user to call. In an embodiment, the user service registered on the centralized management and control platform may specifically include a service generated by combining at least one contract execution logic included in a user intelligent contract deployed on each member block chain according to a logic order of service logics corresponding to the user service.
It should be noted that the service logic corresponding to the user service and the logic sequence of the service logic generally depend on the specific service registration requirement of the user, and in practical applications, the service logic can be customized by the user based on the actual requirement.
Further, in another illustrated embodiment, at least some of the contract execution logic that is combined to generate the user service may correspond to user intelligent contracts deployed on different member blockchains, respectively. That is, the user may combine contract execution logic included in user intelligent contracts distributed over different member blockchains to generate a user service.
Certainly, in practical applications, at least part of the contract execution logics in the contract execution logics for generating the user services in a combined manner may also be derived from contract execution logics included in a plurality of user intelligent contracts in the same member block chain; alternatively, the contract execution logic may be derived from a plurality of contract execution logics included in the same user intelligent contract in the same member block chain, and is not particularly limited in this specification.
In order to facilitate users of the service provider to freely combine contract execution logic contained in intelligent contracts of the users deployed on the member blockchains to generate user services with more complex service capabilities, the centralized platform can open access rights of the contract execution logic contained in the intelligent contracts of the users deployed on the member blockchains in the blockchain service network to the users of the service provider.
When the centralized platform opens the access right of the contract execution logic included in the user intelligent contract deployed on each member blockchain in the blockchain service network to the user of the service provider, in order to protect the data privacy security of each user intelligent contract deployed on each member blockchain to the maximum extent, the centralized platform may specifically selectively open only the access right of the contract execution logic included in the part of the user intelligent contract deployed on the member blockchain to the user of the service provider. And the contract execution logic with unopened access right cannot be used for combining and generating the user service.
In an embodiment shown, the centralized management and control platform may further support a contract execution logic included in a user intelligent contract deployed on each member blockchain, and the contract execution logic is registered on the centralized management and control platform. Accordingly, the user service registered on the centralized management and control platform may be a service generated by combining at least one contract execution logic registered on the centralized management and control platform.
For example, in one example, the centralized management and control platform may support registration of contract execution logic included in a user intelligent contract deployed on each member blockchain as a basic service component on the centralized management and control platform; wherein the basic service components are to be used as basic units for combining and generating the user service. The user service registered on the centralized management and control platform may be a service generated by combining at least one basic service component registered on the centralized management and control platform. And the deployer or manager of the user intelligent contract deployed on each member blockchain can send a basic component registration request to the centralized management and control platform, wherein the basic component registration request can include identification information (such as a function name) of target contract execution logic to be registered, which is included in the user intelligent contract. When receiving the basic component registration request, the centralized management and control platform may allocate a basic service component identifier to the deployer or the manager, and then bind the identifier information of the target contract execution logic to be registered, the address of the user intelligent contract containing the target contract execution logic, and the identifier information of the member block chain for deploying the user intelligent contract with the basic service component identifier to complete the registration of the basic service component.
In this case, the centralized management and control platform may only open the access right of the contract execution logic registered on the centralized management and control platform to the user of the service provider, so that the user of the service provider may freely combine at least one contract execution logic registered on the centralized management and control platform to define new user services. And the access right of the contract execution logic which is not registered in the centralized management and control platform can not be opened to the user of the service party. In this way, the data privacy of the user intelligent contracts on each member blockchain can be protected to the greatest extent, so that the service provider can only freely combine contract execution logics registered on the centralized management and control platform to define new user services, and cannot access contract intelligent logics with unopened access rights.
For example, in an example, the centralized management and control platform may output the registered contract execution logic to a user of the service provider through a visual interface, so as to open an access right of the contract execution logic that is registered on the centralized management and control platform to the user of the service provider, then may obtain at least one contract execution logic that is selected by the user of the service provider in the visual interface, and then combine at least one contract execution logic that is selected by the user of the service provider in the visual interface according to a logic sequence of service logics corresponding to user services that the user of the service provider needs to register.
Due to contract execution logic included in user intelligent contracts deployed on various member blockchains, privacy of the user or other contract execution logic that is not conveniently open may be involved; therefore, by means of the method, a deployer or a manager of the user intelligent contract deployed on each member blockchain can selectively register only part of contract execution logic contained in the user intelligent contract on the centralized management and control platform, and only the access right of the contract execution logic registered on the centralized management and control platform is opened to the user of the service provider, so that the data privacy security of the user intelligent contract deployed on each member blockchain can be guaranteed to the greatest extent.
Certainly, in practical application, the centralized management and control platform may specifically select to open access permissions of contract execution logic included in all user intelligent contracts deployed on the member blockchain to users of the service provider.
In this case, the centralized management and control platform may no longer support the contract execution logic included in the user intelligent contract deployed on each member blockchain, and perform registration on the centralized management and control platform. After each member block chain joins the block chain service network, the centralized control platform can actively scan and analyze the block chain data of each member block chain to acquire the deployment condition of the user intelligent contract on each member block chain; for example, the user intelligent contracts deployed on the member blockchains and the contract execution logic included in the user intelligent contracts are acquired through a block scanning and analyzing mode. And then, opening the access authority of contract execution logic contained in all the user intelligent contracts deployed on the scanned and analyzed member blockchains to the user of the service provider.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for building a blockchain service network according to an exemplary embodiment of the present disclosure, where the method is applied to the centralized management and control platform shown in fig. 1; the method comprises the following steps:
step 201: receiving a registration request corresponding to a target block chain;
the target blockchain refers to a blockchain which needs to be added into the blockchain service network but is not completely added into the registration. The target blockchain can be registered to become a member blockchain of the blockchain service network by means of registering interaction with a centralized control platform of the blockchain service network and sending a registration request to the centralized control platform.
The registration request may be specifically initiated by a user having a registration authority of the target block chain through a user account registered on the centralized management and control platform;
for example, in practical applications, the user having the registration authority of the target block chain, the user account registered on the centralized management and control platform may specifically include a system administrator account in the centralized management and control platform, an administrator account registered on the centralized management and control platform by an administrator of the target block chain, a user account registered on the centralized management and control platform by a deployer user of a user intelligent contract in the target block chain, and the like. It should be noted that the user account issuing the registration request specifically refers to a centralized account registered in the centralized management and control platform, and not to a blockchain account registered in each member blockchain.
Wherein, in the registration request, some basic registration information related to the target block chain to be registered may be included. The basic registration information may specifically include access address information of the target block chain, and block chain configuration information related to the target block chain, and the like.
Of course, in practical applications, in the above registration request, besides some basic registration information related to the above target block chain to be registered, other forms of registration information may be included, and are not particularly limited in this specification. The access address information of the target block chain is specifically used for establishing network connection with a centralized management and control platform; in practical application, the access address information may specifically include domain name information or IP address information corresponding to one or more node devices in the target block chain, so that the centralized management and control platform may establish communication connection with the one or more node devices in the target block chain based on the domain name information or the IP address information.
The block chain configuration information may specifically include any form of information that can be used to indicate the basic configuration of the target block chain; for example, the block chain configuration information may specifically include block chain type information corresponding to the target block chain, protocol type information of a block chain protocol used by the target block chain, and algorithm type information of a consensus algorithm used by the target block chain, and the like.
For example, in one example, the registration request may be expressed in the following data format:
{chain001.io;Common chain;Polkadot ;… }
in the data format shown above, the domain name information of the target block chain is "chain 001. io", the block chain type is "Common chain", and the adopted block chain protocol is "Polkadot". Of course, in practical applications, the data format shown above may also include other forms of data content, which are not listed in this specification.
Step 202: responding to the registration request, and performing registration processing aiming at the target block chain so as to join the target block chain as a member block chain into the block chain service network; the registration processing comprises the step of creating a blockchain account corresponding to the centralized management and control platform in the target blockchain, wherein the blockchain account is used for initiating contract calling aiming at a target user intelligent contract deployed on the target blockchain when a service user calls a target user service registered on the centralized management and control platform; wherein the user service comprises contract execution logic of a target user intelligence contract deployed by the target blockchain.
When receiving a registration request corresponding to a target block chain, the centralized management and control platform may respond to the registration request and perform validity check on the registration request; for example, the validity check of the registration request may specifically include checking whether an initiator of the registration request has a corresponding registration right; and whether the data format in the registration request meets preset rules or format requirements, and the like.
After the centralized management and control platform completes the validity check on the registration request, if the registration request passes the validity check, the centralized management and control platform may further perform registration processing on the target block chain based on the data content carried in the registration request, so as to add the target block chain as a member block chain to the block chain service network.
The registration processing performed by the centralized management and control platform on the target blockchain may specifically include creating a blockchain account corresponding to the centralized management and control platform in the target blockchain.
For example, in implementation, a public-private key pair may be applied to the centralized management and control platform in the target block chain, the private key is held by a management user of the centralized management and control platform, a corresponding account address is generated by calculation based on the public key (for example, the account address may be a hash value calculated by the public key), and then a block chain account corresponding to the account address is created in the target block chain.
It should be noted that, in a blockchain adopting an account model, the types of accounts supported by the blockchain generally include an external account and a contract account. An external account is an account directly controlled by the user, also referred to as a user account. And the contract account is created by the user through an external account, the account containing the contract code (i.e. the smart contract). The creation of the blockchain account corresponding to the centralized management and control platform in the target blockchain described above may be specifically 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 obtains the legal user identity in the target blockchain, so that the centralized management and control platform can initiate a contract call for the user intelligent contract deployed in the target blockchain based on the external account.
The registration process performed by the centralized management and control platform on the target blockchain may include other forms of registration process procedures related to the registration process of the target blockchain, besides creating a blockchain account corresponding to the centralized management and control platform in the target blockchain.
For example, in an illustrated embodiment, the registration processing performed on the target blockchain by the centralized management and control platform may specifically further include deploying at least one system intelligence contract in the target blockchain; the at least one system intelligent contract may specifically include a target system intelligent contract for performing cross-chain communication with other member blockchains.
Of course, in addition to the target system intelligence contracts for cross-chain communication with other member blockchains, system intelligence contracts for implementing other underlying management functions may be included; for example, the at least one system intelligent contract may further include an intelligent contract for performing service management on the target block chain, an intelligent contract for performing service incentive on a user service registered on the centralized management and control platform or a user related to the service solution, and the like, which are not listed in this specification.
The process of registering the target blockchain is described in detail below by a specific embodiment.
Referring to fig. 3, fig. 3 is a flowchart illustrating a process of registering a target blockchain according to the present disclosure, which includes the following steps:
step 301, a registration request corresponding to a target block chain is initiated by a registration direction centralized platform;
after receiving the registration request, the centralized management and control platform may respond to the registration request and start to perform registration processing on the target block chain. In this embodiment, the registration process performed on the target block chain may include the following registration process flow shown in step 302 to step 306.
Step 302, saving the block chain configuration information of the target block chain;
step 303, establishing communication connection with at least part of node devices in the target block chain based on the access address information of the target block chain;
as mentioned above, some block chain configuration information related to the target block chain may be included in the registration request; for example, the block chain configuration information may include access address information of the target block chain, configuration information related to the target block chain, and the like. After receiving the registration request, the centralized management and control platform may acquire the block chain configuration information carried in the registration request, and then perform a subsequent registration processing procedure for the target block chain based on the acquired block chain configuration information.
After receiving the registration request, the centralized management and control platform may store the configuration information of the blockchain related to the target blockchain, which is read from the registration request, as the configuration information of the member blockchain in a local database.
For example, in implementation, the centralized management and control platform may maintain an information base for storing the blockchain configuration information related to each member blockchain in the blockchain service network, and the centralized management and control platform may read the blockchain configuration information related to the target blockchain from the registration request, and store the read blockchain configuration information as the blockchain configuration information of the member blockchain into the information base.
After the centralized management and control platform stores the configuration information of the blockchain related to the target blockchain as the configuration information of the member blockchain in a local database, the centralized management and control platform can further establish communication connection with at least part of node equipment in the target blockchain based on the access address information of the target blockchain read from the registration request.
For example, as described above, the access address information may specifically include domain name information or IP address information corresponding to one or more node devices in the target block chain, and the centralized management and control platform may establish a communication connection with one or more node devices in the target block chain based on the domain name information or the IP address information. In implementation, the centralized management and control platform may establish communication connection with all node devices in the target blockchain, or may establish communication connection with only some key node devices in the target blockchain (for example, all nodes storing a complete blockchain ledger).
Step 304, obtaining the blockchain data related to the target blockchain from the node device in the target blockchain based on the communication connection.
After establishing a communication connection with at least part of the node devices in the target blockchain, the centralized management and control platform may continue to acquire blockchain data related to the target blockchain from the node devices in the target blockchain based on the communication connection.
The block chain data related to the target block chain acquired from the node device in the target block chain may specifically include any form of data related to the target block chain, and is not particularly limited in this specification;
for example, in an example, the blockchain data related to the target blockchain acquired from the node device in the target blockchain may specifically include a complete blockchain ledger of the target blockchain, authentication root data corresponding to the blockchain ledger of the target blockchain, and public key data of each node device in the target blockchain, and the like.
In the field of blockchain, the authentication root data corresponding to the blockchain account may generally include created block data in the blockchain account, block header data of each block, and the like, and may be data used for authenticating data stored in the blockchain account.
After acquiring the blockchain data related to the target blockchain from the node device in the target blockchain, the centralized management and control platform may store the acquired blockchain data in the database.
For example, as described above, the centralized management and control platform may maintain an information base for storing the blockchain configuration information related to each member blockchain in the blockchain service network, and the centralized management and control platform may read the blockchain configuration information related to the target blockchain from the registration request, and store the read blockchain configuration information as the blockchain configuration information of the member blockchain into the information base. After acquiring the blockchain data related to the target blockchain from the node device in the target blockchain, the centralized management and control platform may also perform associated storage on the acquired blockchain data and the blockchain configuration information related to the target blockchain in the information base.
And 305, creating a blockchain account corresponding to the centralized management and control platform on the target blockchain.
After the centralized control platform acquires the blockchain data related to the target blockchain from the node device in the target blockchain based on the communication connection, the centralized control platform may also continue to create a corresponding blockchain account for the centralized control platform on the target blockchain. The specific process of creating the above blockchain account is not described in detail.
After a corresponding blockchain account is created for the centralized management and control platform on the target blockchain, at this time, the centralized management and control platform has obtained a legal user identity in the target blockchain and has the capability of invoking a user intelligent contract deployed on the target blockchain, and a subsequent centralized management and control platform may initiate a contract invocation for the user intelligent contract deployed on the target blockchain based on the blockchain account.
In the centralized management and control platform, a list of blockchain accounts may be maintained. The blockchain account list may specifically include blockchain accounts corresponding to the centralized management and control platform created on each member blockchain. After a corresponding blockchain account is created for the centralized management and control platform on the target blockchain, the blockchain account may be added to the blockchain account list for maintenance.
It should be noted that the blockchain accounts corresponding to the centralized management and control platform created on each member blockchain may be specifically the same or different. For example, in one example, in order to facilitate account management, the blockchain accounts corresponding to the centralized management and control platform created on each member blockchain may be the same preset blockchain account by default. For example, in implementation, each member blockchain may reserve a certain fixed blockchain account in advance, and the certain fixed blockchain account is used as a blockchain account corresponding to the centralized management and control platform.
Step 306, deploying at least one system intelligent contract in the target block chain; wherein the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains.
After a corresponding blockchain account is created for the centralized management and control platform on the target blockchain, the centralized management and control platform may further continue to deploy at least one system intelligence contract in the target blockchain. The at least one system intelligence contract may specifically include a target system intelligence contract for cross-chain communication with other member blockchains.
The at least one system intelligent contract may include, in addition to a target system intelligent contract for performing cross-link communication with other member blockchains, a system intelligent contract for performing network administration on a target blockchain network, a system intelligent contract for performing service incentive on a user related to a user service registered on a centralized management and control platform, and the like, which are not particularly limited in this specification.
It should be noted that the system intelligent contract and the user intelligent contract deployed on the target blockchain are two completely different types of intelligent contracts.
The system intelligent contract comprises contract execution logic, which is usually execution logic related to some management functions on a centralized management and control platform. For example, the contract execution logic included in the system intelligent contract for network administration as described above may be the execution logic related to the function of the centralized management and control platform for network administration on the block chain service network; accordingly, the contract execution logic included in the system intelligent contract for service incentive of the user related to the user service registered on the centralized management and control platform may be the execution logic related to the function of service incentive of the user related to the registered user service by the centralized management and control platform. The user intelligent contract includes contract execution logic, which is usually related to user service logic defined by the user on the member block chain.
By deploying at least one system intelligent contract on the target blockchain, on the basis that the centralized management and control platform already has the capability of calling the user intelligent contract deployed on the target blockchain, the user on the target blockchain can also complete some operations related to the management function on the centralized management and control platform on the target blockchain by calling the system intelligent contract deployed on the target blockchain.
Step 307, a successful registration message corresponding to the target block chain is returned to the registrar.
After the centralized management and control platform performs the registration processing procedures shown in steps 302 to 306 for the target block chain, the target block chain is used as a member block chain and successfully joins the member block chain to the block chain service network.
In this case, the centralized management and control platform returns a successful registration message corresponding to the target block chain to the registrar, so as to notify the registrar that the target block chain has been used as a member block chain and successfully joined to the block chain service network.
It should be noted that, in the above embodiment, the sequence of each registration processing flow shown in steps 302 to 306 is only illustrative, and is not particularly limited in this specification. It is understood that, in practical applications, the sequence of the registration processing flows shown in steps 302 to 306 in the above embodiments may be flexibly adjusted and interchanged based on actual registration requirements.
In this specification, after a target blockchain is added to the blockchain service network as a member blockchain, a user of a subsequent service provider may combine, according to a requirement of the user, a contract execution logic included in a target intelligent contract deployed on the target blockchain with a contract execution logic included in a user intelligent contract deployed on another member blockchain to generate a target user service, and then register the target user service to the centralized management and control platform.
It can be understood that the contract execution logic for generating the target user service in combination will include the contract execution logic included in the target user intelligent contract deployed on the target blockchain.
When a service user needs to invoke the target user service registered on the centralized control platform, a contract invocation aiming at the target user contract deployed on the target blockchain can be initiated by the blockchain identity represented by the blockchain account based on the blockchain account corresponding to the centralized control platform established in the target blockchain.
After the target user service is registered on the centralized management and control platform, the centralized management and control platform may specifically deploy the target user service as a standardized service so as to be opened to a service user for calling.
It should be noted that, when the centralized management and control platform deploys the target user service after the registration is completed, a distributed deployment manner may be specifically adopted, and a centralized deployment manner may also be adopted.
In an illustrated embodiment, when the centralized management and control platform deploys the target user service, the user service may be deployed in a distributed manner on each member block chain in a form of a system intelligent contract, so as to be invoked by a service user.
Because the contract invoking logic constituting the target user service may include contract execution logic included in a plurality of user intelligent contracts distributed on a plurality of member block chains, a user may also need to invoke the plurality of user intelligent contracts distributed on the plurality of member block chains across chains when invoking the target user service; therefore, when the centralized management and control platform deploys the user service registered on the centralized management and control platform, the centralized management and control platform may specifically develop a corresponding cross-chain call logic for the user service, and then deploy the cross-chain call logic as a contract execution logic of a system intelligent contract on each member block chain.
For example, as mentioned above, the system intelligence contract includes contract execution logic, which is typically execution logic associated with some management functions on a centralized management platform. Therefore, in this way, corresponding cross-chain call logic is developed for the user service, and is also deployed on each member block chain in the form of a system intelligence contract as a part of some management function related execution logic on the centralized management and control platform.
In an embodiment, the target system intelligent contract for cross-chain communication may include cross-chain call logic corresponding to the target user service.
The cross-chain call logic may be specifically configured to: determining each user intelligent contract corresponding to each contract execution logic of the target user service, deploying each member block chain of each user intelligent contract, and respectively initiating cross-chain calling aiming at each user intelligent contract according to the logic sequence of the service logic corresponding to the target user service based on the block chain account corresponding to the centralized control platform and established in each member block chain.
In this way, the service user can initiate a call to the target user service registered on the centralized management and control platform by calling the cross-chain call logic included in the target system intelligent contract. In an embodiment, in the target system intelligent contract, service configuration information corresponding to the target user service and a blockchain account list created on each member blockchain for the centralized platform may also be maintained.
For example, in implementation, service configuration information corresponding to the target user service and a blockchain account list created for the centralized platform on each member blockchain may be specifically stored in an account storage space of the target system intelligent contract; for example, the service configuration information and the blockchain account list may be specifically organized in a key-value key value pair form, and configured as a Merkle tree stored in a storage medium carried by a node device in each member blockchain; and storing the root hash of the Merkle tree into an account structure body of the contract account corresponding to the target system intelligent contract.
The service configuration information may specifically include: and combining and generating corresponding relations among identification information (such as function names) of each contract execution logic served by the target user, contract addresses of each user intelligent contract containing each contract execution logic, and block chain identifications of each member block chain for deploying each user intelligent contract.
In this case, the cross-chain call logic may specifically be composed of the following execution logic:
and query logic, configured to query the correspondence in the service configuration information corresponding to the target user service maintained in the target system intelligent contract, so as to determine each contract execution logic that combines and generates the target user service, each user intelligent contract that includes each contract execution logic, and each member block chain that deploys each user intelligent contract. And after determining that each member blockchain of each user intelligent contract is deployed, further querying the blockchain account list maintained in the target system intelligent contract to determine blockchain accounts corresponding to the centralized platform and created on each member blockchain.
And the cross-chain logic is used for respectively initiating cross-chain calling aiming at each user intelligent contract according to the logic sequence of the service logic corresponding to the target user service, wherein the cross-chain logic is determined based on the query logic and comprises each user intelligent contract of each contract execution logic, each member block chain for deploying each user intelligent contract, the block chain account and the like which are established on each member block chain and correspond to the centralized platform. The details of implementing the user intelligent contracts deployed on the other member blockchains are called across the chains, and are not detailed in this specification, and those skilled in the art may refer to the description in the related art.
In an embodiment, the service configuration information may further include: and generating a calling sequence determined by each contract execution logic of the target user service for combination based on the logic sequence of the service logic corresponding to the target user service.
In this case, when the cross-link logic included in the target system intelligent contract is called and the cross-link call to the user intelligent contract is respectively initiated according to the logic sequence of the service logic corresponding to the target user service, the call sequence included in the service configuration information may be specifically read, and then the cross-link call to the user intelligent contract is respectively initiated according to the read call sequence.
Of course, in practical applications, the logic sequence of the service logic corresponding to the target user service may be maintained not in the target system intelligent contract as a part of the service configuration information, but on the centralized management and control platform.
In this case, when the cross-chain logic included in the target system intelligent contract is called and the cross-chain call to the user intelligent contracts is respectively initiated according to the logic sequence of the service logic corresponding to the target user service, the off-chain interaction may be specifically performed with the centralized management and control platform, the logic sequence of the service logic corresponding to the target user service is read from the centralized management and control platform, and then the cross-chain call to the user intelligent contracts is initiated according to the read call sequence.
For example, when the target system intelligent contract is implemented, the target system intelligent contract may specifically perform out-of-link interaction with the centralized management and control platform through an oracle preplan program, and read a logic sequence of service logic corresponding to the target user service from the centralized management and control platform. The specific implementation details of the target system intelligent contract performing the out-of-link interaction with the centralized management and control platform through the oracle.
In an embodiment shown in the present disclosure, after the centralized management and control platform deploys a target system intelligent contract for performing cross-chain communication on each member blockchain, when a user of a subsequent service provider registers a new user service on the centralized management and control platform, the centralized management and control platform may further store service configuration information corresponding to the newly registered user service to the target system intelligent contract, so as to update service configuration information maintained in the target system intelligent contract.
In an illustrated embodiment, after the centralized management and control platform deploys a target system intelligent contract for performing cross-chain communication on each member blockchain, if a new member blockchain is added to the blockchain service network subsequently, the centralized management and control platform may also store a blockchain account, which is created on the new member blockchain and corresponds to the centralized management and control platform, in the target system intelligent contract, so as to update a blockchain account list maintained in the target system intelligent contract.
It should be noted that, in practical application, the centralized management and control platform described above updates the service configuration information and the blockchain account list maintained in the target system intelligent contract, specifically, a real-time update mode may be adopted, and an offline update mode may also be adopted.
On one hand, if a real-time updating manner is adopted, when a new user service is registered on the 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 to the target system intelligent contract so as to update the service configuration information maintained in the target system intelligent contract.
Correspondingly, when the new member blockchain is added to the blockchain service network, the centralized management and control platform may also immediately store the blockchain account corresponding to the centralized management and control platform, which is created on the new member blockchain, to the target system intelligent contract, so as to update the blockchain account list maintained in the target system intelligent contract.
On the other hand, if an offline updating mode is adopted, the service configuration information and the blockchain account list maintained in the target system intelligent contract can be triggered to be updated each time the target system intelligent contract is called.
In this case, each time a new user service is registered on the centralized management and control platform, the centralized management and control platform may cache service configuration information corresponding to the newly registered user service. When the target system intelligent contract is called, the cached service configuration information is stored in the target system intelligent contract so as to update the service configuration information maintained in the target system intelligent contract. Correspondingly, when the new member blockchain is added to the blockchain service network, the centralized management and control platform may cache the blockchain account corresponding to the centralized management and control platform and created on the new member blockchain. When the target system intelligent contract is called, the cached block chain account is stored in the target system intelligent contract so as to update a block chain account list maintained in the target system intelligent contract.
For example, in implementation, an execution logic for data synchronization may be introduced into the target system intelligent contract, so that the execution logic for data synchronization may be run first when the target system intelligent contract is called each time, perform data synchronization between the service configuration information and the blockchain account list with the centralized management and control platform, update the service configuration information and the blockchain account list maintained in the target system intelligent contract based on the service configuration information and the blockchain account cached by the centralized management and control platform, and then continue to execute the called contract execution logic.
In an embodiment shown in the present invention, when the centralized management and control platform deploys the target user service, the centralized management and control platform may also centrally deploy the user service on the centralized management and control platform in a form of a service interface, so as to be called by a service user.
The service interface may include a calling method related to the target user service (for example, the calling method may specifically be in the form of an interface function), and the calling logic corresponding to the calling methods may specifically include: determining each user intelligent contract corresponding to each contract execution logic of the target user service, deploying each member block chain of each user intelligent contract, and respectively initiating cross-chain calling aiming at each user intelligent contract according to the logic sequence of the service logic corresponding to the target user service based on the block chain account corresponding to the centralized control platform and established in each member block chain.
In this case, when a service user needs to invoke the target user service registered on the centralized management and control platform, a call request for the service interface may be initiated to invoke the target user service.
And after receiving a call request for the service interface, the centralized management and control platform may respond to the call request, execute the call method included in the service interface, determine to combine and generate each user intelligent contract corresponding to each contract execution logic of the target user service, deploy each member block chain of each user intelligent contract, respectively initiate a cross-chain call for each user intelligent contract according to a logic sequence of the service logic corresponding to the target user service based on a block chain account corresponding to the centralized management and control platform and created in each member block chain, then summarize a call result of the cross-chain call for each user intelligent contract, and return the call result to the service user.
For example, in an example, the service configuration information corresponding to the target user service and the blockchain account list created for the centralized platform on each member blockchain described in the above embodiment may be specifically maintained on the centralized management and control platform; for example, in practical applications, the service configuration information and the blockchain account list may be written into the service interface as a form of a call parameter related to the service interface.
Correspondingly, the invoking logic corresponding to the invoking method related to the target user service included in the service interface may specifically include:
and query logic, configured to query the corresponding relationship in the service configuration information, so as to determine each contract execution logic that is combined to generate the target user service, each user intelligent contract that includes each contract execution logic, and each member block chain that deploys each user intelligent contract. And after determining that each member blockchain of each user intelligent contract is deployed, further querying the blockchain account list to determine blockchain accounts which are created on each member blockchain and correspond to the centralized platform.
And the cross-chain logic is used for respectively initiating cross-chain calling aiming at the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the target user service according to the block chain account which is created on each member block chain and corresponds to the centralized platform, and inquired by the inquiry logic.
In another example, the service configuration information maintained by the centralized management and control platform may further include: and generating a calling sequence determined by each contract execution logic of the target user service for combination based on the logic sequence of the service logic corresponding to the target user service.
In this case, when the cross-link logic respectively initiates a cross-link call to the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the service of the target user, the cross-link logic may specifically read the call sequence from the service configuration information, and then respectively initiate a cross-link call to the intelligent contracts of the users according to the read call sequence.
Referring to fig. 4, fig. 4 is a flowchart illustrating a service registration method for registering a user service on a centralized management and control platform according to an exemplary embodiment, where the method is applied to the centralized management and control platform shown in fig. 1; the method comprises the following steps:
step 401, receiving a user service registration request initiated by a service provider;
the service provider may be specifically a user having a service requirement for registering a user service in the centralized control level. The user of the service provider can combine contract execution logics contained in user intelligent contracts deployed on each member block chain according to the service requirement of the user, generate user service, and then register the user service to the centralized management and control platform.
It should be noted that the user of the service provider may be specifically a user who registers a blockchain account in any member blockchain on the blockchain service network. That is, the user of the service provider may be a user member belonging to a member blockchain in the blockchain service network.
In this case, the user of the service provider may combine, according to the service requirement of the user, the contract execution logic included in the intelligent contract deployed on the member blockchain with the contract execution logic included in the user intelligent contract deployed on other member blockchains to generate a user service, and then register the user service to the centralized management and control platform.
Certainly, in an actual application, the user of the service provider may specifically be a user who has not registered a blockchain account on each member blockchain in the blockchain service network, but a user who has registered a user account on the centralized management and control platform; that is, the user of the service provider is a user member who is not affiliated to any member blockchain in the blockchain service network, but is affiliated to the centralized management and control platform. For example, the user of the service provider may specifically be a platform administrator who registers an administrator account on the centralized management and control platform.
In this case, the user of the service provider may freely combine contract execution logic included in the user intelligent contracts deployed on each member blockchain according to the service requirement of the user based on the global knowledge of the user about the deployment situation of the user intelligent contracts on each member blockchain, generate a user service, and then register the user service to the centralized management and control platform.
When the user of the service provider registers the user service with the centralized management and control platform, the registration may be specifically completed through a user client interfacing with the centralized management and control platform. The user of the service provider can initiate a service registration request to the centralized management and control platform by executing a service registration operation on the user client, so that the centralized management and control platform can respond to the service registration request and register user services on the centralized management and control platform.
Step 402, responding to the user service registration request, determining a contract execution logic set for realizing service functions corresponding to the user service; the contract execution logic set comprises contract execution logic contained in user intelligent contracts deployed on member blockchains;
when receiving a user service registration request initiated by a user of the service provider, the centralized management and control platform may respond to the user service registration request to determine a contract execution logic set for implementing a service function corresponding to a user service that the user of the service provider needs to register; wherein the set of contract execution logic includes contract execution logic included in a user intelligent contract deployed on each member blockchain.
For example, as previously described, at least some of the contract execution logic that is combined to generate the user services described above may correspond to user intelligent contracts deployed on different member blockchains, respectively. In this case, at least a portion of the contract execution logic in the set of contract execution logic may be contract execution logic included in a user-intelligent contract from a different member blockchain. Certainly, in practical applications, at least part of the contract execution logics in the contract execution logics for generating the user services in a combined manner may also be the contract execution logics included in a plurality of user intelligent contracts in the same member block chain; alternatively, it may be derived from multiple contract execution logic contained by the same user intelligent contract in the same member blockchain. In this case, at least part of the contract execution logic in the contract execution logic set may also be the contract execution logic contained in a plurality of user intelligent contracts in the same member block chain; alternatively, the contract execution logic may be derived from a plurality of contract execution logics included in the same user intelligent contract in the same member block chain, and is not particularly limited in this specification.
In one embodiment shown, the centralized management and control platform can support the contract execution logic contained in the user intelligent contracts deployed on each member blockchain, and the contract execution logic is registered on the centralized management and control platform. Accordingly, the user service registered on the centralized management and control platform may be a service generated by combining at least one contract execution logic registered on the centralized management and control platform.
In this case, when the centralized management and control platform responds to the user service registration request to determine a contract execution logic set for implementing a service function corresponding to a user service that needs to be registered by the user of the service provider, a contract execution logic set for implementing a service function corresponding to the user service may be specifically determined from already registered contract execution logics on the centralized management and control platform.
In an illustrated embodiment, the centralized management and control platform may output the registered contract execution logic to the user of the service provider through the visual interface on the merchant user client, so as to open the access right of the contract execution logic which completes registration on the centralized management and control platform to the user of the service provider.
And a user of the service provider may select at least one registered contract execution logic from the visual interface based on a service requirement of the user, carry identification information (such as a function name) corresponding to the selected contract execution logic in the user service registration request, and send the service registration request to the centralized management and control platform.
In this case, when determining, in response to the user service registration request, a contract execution logic set for implementing a service function corresponding to the user service from the already registered contract execution logics on the centralized management and control platform, the centralized management and control platform may specifically acquire the identification information carried in the user service registration request, and then determine at least one contract execution logic corresponding to the identification information in the already registered contract execution logics as a contract execution logic set for implementing the service function corresponding to the user service.
In another embodiment, the user of the service provider may define service logic for the user service that needs to be registered based on the service requirement of the user. The user service registration request may also carry, instead of the identification information corresponding to the contract execution logic selected from the visual interface and registered at least one, description information related to the service logic defined by the user of the service provider for the user service. For example, the description information may specifically be a function description related to a user service that the user needs to register.
In this case, when the centralized management and control platform determines, in response to the user service registration request, a contract execution logic set for implementing a service function corresponding to the user service from among contract execution logics already registered on the centralized management and control platform, the registered contract execution logics may be specifically matched with the service logics indicated by the description information, respectively; and then according to the matching result, determining at least one contract execution logic matched with the service logic indicated by the description information in the registered contract execution logics as a contract execution logic set for realizing the service function corresponding to the user service.
By the method, a user of a service provider can only submit description information related to service logic corresponding to user service to be registered to the centralized management and control platform on the premise of not knowing service logic corresponding to each registered contract execution logic, and the centralized management and control platform can search a contract execution logic set capable of generating the user service in a combined manner from the registered contract execution logic in a logic matching manner, so that users who have little knowledge on the service logic of each registered contract execution logic can autonomously register new user service on the centralized management and control platform based on self service requirements, and convenience in registering the user service on the centralized management and control platform can be improved,
and 403, combining the contract execution logics in the contract execution logic set to generate the user service so as to complete service registration of the user service.
After the centralized management and control platform determines a contract execution logic set for implementing a service function corresponding to the user service from the registered contract execution logics on the centralized management and control platform, the contract execution logics in the contract execution logic set may be combined to generate the user service, so as to complete service registration of the user service.
In an embodiment shown in the present disclosure, the centralized management and control platform may allocate a service identifier to a user of the service provider, combine the contract execution logics in the contract execution logic set to generate a contract execution logic combination, and then bind the contract execution logic combination and the service identifier to complete service registration for the user service.
For example, in implementation, the contract execution logic in the contract execution logic set may be combined with the service logic defined by the user of the service provider for the user service in a logic order to obtain a contract execution logic combination, and then the contract execution logic combination is bound to the service identifier to complete service registration for the user service.
In an embodiment shown, after the service registration of the user service is completed, the centralized management and control platform may generate corresponding service configuration information for the user service whose registration is completed, and locally store the service configuration information generated for the user service.
For example, in implementation, on the centralized management and control platform, an information base for storing service configuration information corresponding to a registered user service may be specifically maintained, and after a new user service is registered, the service configuration information generated for the new user service may be stored in the information base in association with a service identifier allocated to the new user service.
Specific contents of the service configuration information are not particularly limited in this specification; for example, it may include: and combining and generating identification information of each contract execution logic of the user service, a contract address of each user intelligent contract containing each contract execution logic, and a corresponding relation between block chain identifications of each member block chain for deploying each user intelligent contract, and the like.
In this specification, the centralized management and control platform may support, in addition to registering a user service generated by executing a logical combination of contracts included in a user intelligent contract deployed on each member blockchain, in an actual application, generating a service solution by combining at least one user service that has been registered.
Referring to fig. 5, fig. 5 is a flowchart illustrating a service registration method for registering a service solution on a centralized management and control platform according to an exemplary embodiment, where the method may also be applied to the centralized management and control platform shown in fig. 1; the method comprises the following steps:
step 501, receiving a solution registration request initiated by a service provider;
the service solution is specifically a solution in which service capabilities generated after at least one user service registered on the centralized management and control platform is combined are more complex.
When the user of the service provider registers the user service with the centralized management and control platform, the registration may be specifically completed through a user client interfacing with the centralized management and control platform. The user of the service provider may initiate a solution registration request to the centralized management and control platform by performing a service registration operation on the user client, so that the centralized management and control platform may respond to the solution registration request to register a service solution on the centralized management and control platform.
Step 502, in response to the solution registration request, determining a user service set for implementing a service function corresponding to the service solution from the registered user services;
when receiving a solution registration request initiated by a user of the service provider, the centralized management and control platform may respond to the solution registration request to determine a user service set for implementing a service function corresponding to a service solution that the user of the service provider needs to register.
In one embodiment, the centralized management and control platform may output the registered user services to a user of the service provider through a visual interface, so that the user of the service provider selects at least one user service in the visual interface for generating the service solution in combination. Accordingly, the solution registration request may carry identification information corresponding to the at least one user service selected by the user of the service provider, and when the centralized management and control platform responds to the solution registration request and determines a user service set for implementing a service function corresponding to the service solution from the registered user services on the centralized management and control platform, the centralized management and control platform may specifically obtain the identification information carried in the solution registration request, and then determine at least one user service corresponding to the identification information in the registered user services as the user service set for implementing the service function corresponding to the service solution.
In another embodiment, the user of the service provider may also define a service logic for the service solution to be registered based on the service requirement of the user. However, in the solution registration request, the identification information corresponding to the at least one registered user service selected from the visual interface may not be carried, but the description information related to the service logic defined by the user of the service provider for the service solution may be carried. For example, the description information may specifically be a function description related to a service solution that the user needs to register.
In this case, when the centralized management and control platform determines, in response to the solution registration request, a user service set for implementing a service function corresponding to the service solution from among the user services already registered on the centralized management and control platform, the service logics corresponding to the registered user services may be specifically matched with the service logics indicated by the description information, respectively; and then according to the matching result, determining at least one user service which is matched with the service logic indicated by the description information in the registered user services as a user service set for realizing the service function corresponding to the service solution.
Step 503, combining the user services in the user service set to generate the service solution, so as to complete service registration of the service solution.
After the centralized management and control platform determines a user service set for implementing a service function corresponding to the service solution from the registered user services on the centralized management and control platform, the user services in the user service set may be combined to generate the service solution, so as to complete registration of the service solution.
In an embodiment shown in the present disclosure, the centralized management and control platform may allocate a scheme identifier to a user of the service provider, combine user services in the user service set to generate a user service combination, and then bind the user service combination and the scheme identifier to complete service registration for the service solution.
For example, in implementation, the user services in the user service set may be combined with the service logic defined by the user of the service provider for the service solution in a logic order to obtain a user service combination, and then the user service combination is bound to the solution identifier to complete registration of the service solution.
In an illustrated embodiment, after the service registration of the service solution is completed, the centralized management and control platform may generate corresponding service configuration information for the service solution whose registration is completed, and locally store the service configuration information generated for the service solution.
For example, in implementation, on the centralized management and control platform, an information base for storing service configuration information corresponding to a registered service solution may be specifically maintained, and after a new service solution is registered, the service configuration information generated for the new service solution may be stored in the information base in association with a service identifier allocated to the new service solution.
Specific contents of the service configuration information are not particularly limited in this specification; for example, it may include: the service identification of each user service which is combined to generate the service solution, the identification information of each contract execution logic which is combined to generate each user service, the contract address of each user intelligent contract which comprises each contract execution logic, and the corresponding relation between the block chain identifications of each member block chain which is used for deploying each user intelligent contract, and the like.
In this specification, when a user of a service provider registers a user service in the centralized management and control platform, the centralized management and control platform may specifically perform service deployment on the user service that has been registered as a standardized service, so as to open the service provider for calling.
When the registered user service is deployed, the centralized management and control platform may be centrally deployed on the centralized management and control platform in the form of a service interface, or may be distributed on each member block chain in the form of a system intelligent contract.
Referring to fig. 6, fig. 6 is a flowchart illustrating a service usage method for a user service registered on a centralized management and control platform according to an exemplary embodiment, where the method may also be applied to the centralized management and control platform shown in fig. 1; the centralized management and control platform is provided with a service interface corresponding to the registered user service; the method comprises the following steps:
601, obtaining a call request aiming at the service interface and initiated by a service user;
the user service registered and completed on the centralized management and control platform may be specifically deployed on the centralized management and control platform in a form of a service interface. And the service user with the user service calling requirement can call the user service which is centrally deployed on the centralized management and control platform by initiating a calling request aiming at the service interface.
The service user may specifically be a user having the call requirement of the user service, or may be a business system having the call requirement of the user service, and is not particularly limited in this specification.
Step 602, in response to the call request, determining each user intelligent contract corresponding to each contract execution logic combined and generated for the user service, and deploying each member block chain of each user intelligent contract;
step 603, respectively initiating a cross-chain call for the user intelligent contracts based on the blockchain accounts which are created in the member blockchains and correspond to the centralized management and control platform, so as to complete the service call for the user services.
Wherein, the service interface may specifically include a calling method related to the user service; for example, in practical applications, the calling method included in the service interface may specifically be in the form of an interface function. The calling logic corresponding to the calling methods may specifically include: determining each user intelligent contract corresponding to each contract execution logic of the combined generated user service, deploying each member block chain of each user intelligent contract, and respectively initiating cross-chain calling aiming at each user intelligent contract based on a block chain account which is created in each member block chain and corresponds to a centralized control platform.
After receiving a call request of a user of the service user for the service interface, the centralized management and control platform may respond to the call request, execute the call method included in the service interface, determine to combine and generate each user intelligent contract corresponding to each contract execution logic of the user service, deploy each member block chain of each user intelligent contract, and respectively initiate a cross-chain call for each user intelligent contract based on a block chain account corresponding to the centralized management and control platform and created in each member block chain.
In an embodiment shown, service configuration information corresponding to a registered user service may be specifically maintained on the centralized management and control platform, and a blockchain account list created for the centralized platform on each member blockchain; for example, in practical applications, the service configuration information and the blockchain account list may be written into the service interface as a form of a call parameter related to the service interface.
Correspondingly, the invoking logic corresponding to the invoking method related to the target user service included in the service interface may specifically include:
and query logic, configured to query the corresponding relationship in the service configuration information to determine each contract execution logic for generating the target user service in a combined manner, each user intelligent contract including each contract execution logic, and each member block chain for deploying each user intelligent contract. And after determining that each member blockchain of each user intelligent contract is deployed, further querying the blockchain account list to determine blockchain accounts which are created on each member blockchain and correspond to the centralized platform.
And the cross-chain logic respectively initiates cross-chain calling aiming at the intelligent contracts of the users according to the block chain accounts which are created on the member block chains and correspond to the centralized platform, and are inquired by the inquiry logic.
In one embodiment shown, the user service may specifically be a service generated by combining at least one contract execution logic included in a user intelligent contract deployed on each member blockchain according to a logical order of service logics corresponding to the user service.
In this case, when the cross-chain logic initiates a cross-chain call for each user intelligent contract according to the blockchain account corresponding to the centralized platform created on each member blockchain, the cross-chain logic may specifically initiate a cross-chain call for each user intelligent contract according to the logic sequence according to the blockchain account corresponding to the centralized platform created on each member blockchain.
In an embodiment shown, the service configuration information maintained by the centralized management and control platform may further include: and generating calling sequence information determined by each contract execution logic of the user service for combination based on the logic sequence of the service logic corresponding to the user service. Correspondingly, when the cross-chain logic respectively initiates cross-chain calling for the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the user service, the cross-chain logic may specifically read the calling sequence from the service configuration information, and then respectively initiate cross-chain calling for the intelligent contracts of the users according to the read calling sequence.
After the centralized management and control platform completes the cross-chain call of the intelligent contract of each user by calling the service interface, the call result of the cross-chain call of the intelligent contract of each user can be further summarized, and the call result is used as the call result of the service of the user and is returned to the service user.
Referring to fig. 7, fig. 7 is a flowchart illustrating another service usage method for a user service registered on a centralized management and control platform according to an exemplary embodiment of the present specification, where the method may be applied to a node device in any target member blockchain in the blockchain service network shown in fig. 1. Each member block chain in the block chain service network is respectively provided with at least one system intelligent contract issued by a centralized control platform; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises a cross-chain calling logic corresponding to the user service registered and completed on the centralized management and control platform; the method comprises the following steps:
step 701, obtaining call data for the user service initiated by a service user;
the user service registered and completed on the centralized management and control platform may be specifically deployed on the centralized management and control platform in the form of the system intelligent contract. And the service user with the calling requirement of the user service can call the user service which is decentralized and deployed on each member blockchain by initiating a contract calling mode aiming at the target system intelligent contract.
The service user may specifically be a user having the call requirement of the user service, or may be a user intelligent contract having the call requirement of the user service and deployed on any member blockchain, which is not particularly limited in this specification.
For example, in one case, if the service user is a user with a call request of the user service, the user may be a user who registers a blockchain account with the target member blockchain. The user may initiate a contract invocation for the target system intelligence contract deployed on the target member blockchain based on a blockchain account registered on the target member blockchain to complete the service invocation for the user service.
In another case, if the service user is a target user intelligent contract deployed on the target member blockchain, the contract execution logic included in the target user intelligent contract may have a nested calling relationship with the user service; for example, contract execution logic included in the target user intelligent contract references user services registered on the centralized governance platform. In this case, the target user intelligent contract may further initiate a contract invocation for the target system intelligent contract in a nested invocation mode among the intelligent contracts in the process of executing the included contract execution logic.
Accordingly, the specific content of the call data generally depends on the specific type of the service user;
for example, if the service user is a user with a call request of the user service, the call data may be a contract call transaction initiated by the user on a blockchain account registered in the target member blockchain and used for calling the target system contract.
If the service user is a target user intelligent contract deployed on the target member blockchain, the invoking data may be specifically an invoking message, which is sent by the target user intelligent contract to the target system intelligent contract and is specific to the user service, when the target system intelligent contract is invoked by the target user intelligent contract.
For example, in practical applications, mutual invocation between intelligent contracts generally adopts a "message invocation" mode, and when one intelligent contract needs to invoke another intelligent contract, an invocation message is sent to the other intelligent contract. Therefore, in this specification, when the target system intelligent contract is called, the target user intelligent contract may specifically initiate a contract call for the target system intelligent contract by sending a call message to the target system intelligent contract in the manner of "message call".
It should be noted that, when a certain intelligent contract calls other intelligent contracts in a "message call" manner, the other intelligent contracts return call results to the intelligent contract that sends the call message after the call is completed, so as to trigger the intelligent contract to continue executing the contract execution logic of the next step based on the call results.
Step 702, in response to the invoking data, invoking the cross-chain invoking logic included in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic that is combined to generate the user service, and deploying each member block chain of each user intelligent contract;
step 703, respectively initiating a cross-chain call for the user intelligent contracts based on the blockchain accounts created in the member blockchains and corresponding to the centralized management and control platform, so as to complete a service call for the user service.
At least one system intelligent contract issued by a centralized control platform can be deployed on the target member block chain; the at least one system intelligence contract may specifically include a target system intelligence contract for cross-chain communication with other member blockchains. The target system intelligent contract may specifically include a cross-chain call logic corresponding to the user service.
For example, because the contract invoking logic constituting the user service may include contract execution logic included in a plurality of user intelligent contracts distributed on a plurality of member blockchains, the user may also need to invoke a plurality of user intelligent contracts distributed on a plurality of member blockchains across the chains when invoking the user service; therefore, when the centralized management and control platform deploys the user service, a corresponding cross-chain call logic may be specifically developed for the user service, and then the cross-chain call logic is deployed on the target member block chain as a contract execution logic of the system intelligent contract.
The cross-chain call logic may be specifically configured to: determining each user intelligent contract corresponding to each contract execution logic of the user service, deploying each member block chain of each user intelligent contract, and respectively initiating cross-chain calling aiming at each user intelligent contract according to the logic sequence of the service logic corresponding to the target user service based on the block chain account corresponding to the centralized control platform and established in each member block chain.
In this way, the service user can initiate the call to the target user service registered on the centralized management and control platform by autonomously calling the cross-chain call logic contained in the target system intelligent contract.
When the node device on the target member block chain receives call data initiated by a service user, the node device may respond to the call data, call the cross-chain call logic included in the target system intelligent contract, determine each user intelligent contract corresponding to each contract execution logic combined to generate the user service, deploy each member block chain of each user intelligent contract, and respectively initiate cross-chain call for each user intelligent contract according to a logic sequence of the service logic corresponding to the target user service based on a block chain account corresponding to a centralized control platform created in each member block chain.
For example, in one case, if the service user is a user with a call request of the user service, the user may be a user who registers a blockchain account with the target member blockchain. The invoking data may be a contract invoking transaction for the target system intelligent contract, which is packaged by the user through a blockchain account registered in the target member blockchain. After receiving the contract invoking transaction, the node device may respond to the contract invoking transaction and further invoke the cross-chain invoking logic included in the target system intelligent contract.
In another case, if the service user is a target user intelligent contract deployed on the target member blockchain, the contract execution logic included in the target user intelligent contract may have a nested calling relationship with the user service. In this case, the invoking data may specifically be an invoking message sent by the target user intelligent contract to the target system intelligent contract. After receiving the call message, the node device may respond to the call message and further call the cross-chain call logic included in the target system intelligent contract.
In an embodiment, in the target system intelligent contract, service configuration information corresponding to the user service and a blockchain account list created on each member blockchain for the centralized platform may be further maintained.
For example, in implementation, service configuration information corresponding to the user service and a blockchain account list created for the centralized platform on each member blockchain may be specifically stored in an account storage space of the target system intelligent contract; for example, the service configuration information and the blockchain account list may be specifically organized in a key-value key value pair form, and configured as a Merkle tree stored in a storage medium carried by a node device in each member blockchain; and storing the root hash of the Merkle tree into an account structure body of the contract account corresponding to the target system intelligent contract.
The service configuration information may specifically include: and combining and generating corresponding relations among identification information (such as function names) of each contract execution logic of the user service, contract addresses of each user intelligent contract containing each contract execution logic, and block chain identifications of each member block chain for deploying each user intelligent contract.
In this case, the cross-chain call logic may specifically be composed of the following execution logic:
and query logic, configured to query the correspondence in the service configuration information corresponding to the user service and maintained in the target system intelligent contract, so as to determine each contract execution logic that is combined to generate the user service, each user intelligent contract that includes each contract execution logic, and each member block chain that deploys each user intelligent contract. And after determining that each member blockchain of each user intelligent contract is deployed, further querying the blockchain account list maintained in the target system intelligent contract to determine blockchain accounts corresponding to the centralized platform and created on each member blockchain.
And the cross-chain logic is used for respectively initiating cross-chain calling aiming at each user intelligent contract determined based on the query logic and comprising each user intelligent contract of each contract execution logic, each member block chain for deploying each user intelligent contract, block chain accounts corresponding to the centralized platform and the like established on each member block chain. The details of implementing the user intelligent contracts deployed on the other member blockchains are called across the chains, and are not detailed in this specification, and those skilled in the art may refer to the description in the related art.
In this case, when the node device on the target member blockchain receives call data initiated by a service user, the node device may respond to the call data, call the query logic included in the target system intelligent contract, and query the corresponding relationship to determine each contract execution logic that is combined to generate the user service, each user intelligent contract that includes the each contract execution logic, and each member blockchain that deploys the each user intelligent contract. And further querying the blockchain account list to determine blockchain accounts corresponding to the centralized platform and created on the member blockchains. Then, the cross-chain logic included in the target system intelligent contract may be further invoked, and based on the determined blockchain account, a cross-chain invocation for each user intelligent contract is respectively initiated.
In one embodiment shown, the user service may specifically be a service generated by combining at least one contract execution logic included in a user intelligent contract deployed on each member blockchain according to a logical order of service logics corresponding to the user service.
In this case, the above-mentioned cross-chain logic is specifically configured to: and respectively initiating cross-link calling aiming at each user intelligent contract according to the logic sequence, wherein the information is determined based on the query logic, comprises each user intelligent contract of each contract execution logic, each member block chain for deploying each user intelligent contract, the block chain account which is established on each member block chain and corresponds to the centralized platform and the like.
Correspondingly, when the node device invokes the cross-link logic included in the target system intelligent contract and respectively initiates a cross-link call for the user intelligent contract based on the determined blockchain account, the node device may specifically initiate a cross-link call for the user intelligent contract based on the determined blockchain account according to the logic sequence.
In an embodiment shown, in the service configuration information, the method may further include: and generating a calling sequence determined by each contract execution logic of the target user service for combination based on the logic sequence of the service logic corresponding to the target user service.
The above-mentioned cross-chain logic is specifically configured to: and reading the calling sequence included in the service configuration information, determining information including each user intelligent contract of each contract execution logic, each member block chain for deploying each user intelligent contract, a block chain account corresponding to the centralized platform and the like established on each member block chain based on query logic, and respectively initiating cross-chain calling aiming at each user intelligent contract according to the read logic sequence.
Correspondingly, when the node device invokes the cross-link logic included in the target system intelligent contract and respectively initiates cross-link calls for the user intelligent contracts according to the determined block chain account and the logic sequence, the node device may specifically read the call sequence included in the service configuration information, and then respectively initiate cross-link calls for the user intelligent contracts according to the read logic sequence based on the determined block chain account.
Of course, in practical applications, the logic sequence of the service logic corresponding to the target user service may be maintained not in the target system intelligent contract as a part of the service configuration information, but on the centralized management and control platform.
In this case, when the cross-chain logic included in the target system intelligent contract is called and the cross-chain call to the user intelligent contracts is respectively initiated according to the logic sequence of the service logic corresponding to the target user service, the off-chain interaction may be specifically performed with the centralized management and control platform, the logic sequence of the service logic corresponding to the target user service is read from the centralized management and control platform, and then the cross-chain call to the user intelligent contracts is initiated according to the read call sequence.
For example, when the target system intelligent contract is implemented, the target system intelligent contract may specifically perform out-of-link interaction with the centralized management and control platform through another oracle predictive machine program, and read a logic sequence of service logic corresponding to the target user service from the centralized management and control platform. The specific implementation details of the target system intelligent contract performing the out-of-link interaction with the centralized management and control platform through the oracle.
In an embodiment shown in the present disclosure, after the centralized management and control platform deploys a target system intelligent contract for performing cross-chain communication on each member blockchain, when a user of a subsequent service provider registers a new user service on the centralized management and control platform, the centralized management and control platform may further store service configuration information corresponding to the newly registered user service to the target system intelligent contract, so as to update service configuration information maintained in the target system intelligent contract.
In an illustrated embodiment, after the centralized management and control platform deploys a target system intelligent contract for performing cross-chain communication on each member blockchain, if a new member blockchain is added to the blockchain service network subsequently, the centralized management and control platform may also store a blockchain account, which is created on the new member blockchain and corresponds to the centralized management and control platform, in the target system intelligent contract, so as to update a blockchain account list maintained in the target system intelligent contract.
It should be noted that, in practical application, the centralized management and control platform described above updates the service configuration information and the blockchain account list maintained in the target system intelligent contract, specifically, a real-time update mode may be adopted, and an offline update mode may also be adopted.
On one hand, if a real-time updating manner is adopted, when a new user service is registered on the 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 to the target system intelligent contract so as to update the service configuration information maintained in the target system intelligent contract.
Correspondingly, when the new member blockchain is added to the blockchain service network, the centralized management and control platform may also immediately store the blockchain account corresponding to the centralized management and control platform, which is created on the new member blockchain, to the target system intelligent contract, so as to update the blockchain account list maintained in the target system intelligent contract.
On the other hand, if an offline updating mode is adopted, the service configuration information and the blockchain account list maintained in the target system intelligent contract can be triggered to be updated each time the target system intelligent contract is called.
In this case, each time a new user service is registered on the centralized management and control platform, the centralized management and control platform may cache service configuration information corresponding to the newly registered user service. When the target system intelligent contract is called, the cached service configuration information is stored in the target system intelligent contract so as to update the service configuration information maintained in the target system intelligent contract. Correspondingly, when the new member blockchain is added to the blockchain service network, the centralized management and control platform may cache the blockchain account corresponding to the centralized management and control platform and created on the new member blockchain. When the target system intelligent contract is called, the cached block chain account is stored in the target system intelligent contract so as to update a block chain account list maintained in the target system intelligent contract.
For example, in implementation, an execution logic for data synchronization may be introduced into the target system intelligent contract, so that the execution logic for data synchronization may be run first when the target system intelligent contract is called each time, perform data synchronization between the service configuration information and the blockchain account list with the centralized management and control platform, update the service configuration information and the blockchain account list maintained in the target system intelligent contract based on the service configuration information and the blockchain account cached by the centralized management and control platform, and then continue to execute the called contract execution logic.
In an illustrated embodiment, the centralized management and control platform may support, in addition to registering the user service, registering, on the centralized management and control platform, an associated user service for a user intelligent contract that is a user of the service and is deployed on each member blockchain.
When the service user is a target user intelligent contract deployed on the target member blockchain, the deployment party or the management party of the target user intelligent contract can register the associated user service for the target user intelligent contract by sending a user intelligent contract registration request to the centralized management and control platform.
The user intelligent contract registration request may specifically carry a contract address of the target user intelligent contract and a service identifier of a target user service that needs to be associated with the target user intelligent contract.
After receiving a user intelligent contract registration request sent by a deployment party or a management party of the target user intelligent contract, the centralized management and control platform can respond to the user intelligent contract registration request, read a service identifier of a target user service and a contract address of the target user intelligent contract carried in the user intelligent contract registration request, then create an association relationship between the service identifier of the target user service and the contract address of the target user intelligent contract, and store the association relationship on the centralized management and control platform.
In this case, the invocation data for the user service may specifically be an invocation message for the user service that is submitted by the target user intelligent contract to the target system intelligent contract. Before the node device responds to the call message and calls the cross-chain call logic included in the target system intelligent contract, whether the user service is registered as the user service associated with the target user intelligent contract or not can be determined;
for example, in an example, the association relationship may be specifically maintained in the target system intelligent contract as a part of the service configuration information. In this case, before the node device invokes the cross-chain invocation logic included in the target system intelligent contract in response to the invocation message, the association relationship may be queried to determine whether the user service is already registered as a user service associated with the target user intelligent contract.
Of course, the association relationship may be maintained not in the target system intelligent contract but on the centralized management and control platform as part of the service configuration information. In this case, before the node device invokes the cross-chain invocation logic included in the target system intelligent contract in response to the invocation message, the node device may perform an off-chain interaction with the centralized management and control platform through an oracle ora. Or, before the node device responds to the call message and calls the cross-chain call logic included in the target system intelligent contract, the node device may perform an off-chain interaction with the centralized management and control platform through an oracle preplan program, send an inquiry request to the centralized management and control platform, inquire the association relationship by the centralized management and control platform to determine whether the user service is registered as a user service associated with the target user intelligent contract, and return an inquiry result to the target system intelligent contract.
When it is determined that the user service is registered as the user service associated with the target user intelligent contract, the cross-chain call logic included in the target system intelligent contract may be further called. And if the user service is determined not to be registered as the user service associated with the target user intelligent contract, rejecting the target user intelligent contract to call the cross-link calling logic contained in the target system intelligent contract.
By the method, the user service can be flexibly registered for each user intelligent contract which is deployed on each member block chain and serves as a service user, and the service calling authority of each user intelligent contract serving as the service user is strictly controlled according to the registration result; for example, through the registration mechanism, the call authority of the user service registered on the centralized management and control platform can be limited in the user intelligent contracts associated with the user services, and further, each user intelligent contract can only be used as a service user to call the user service associated with the user intelligent contract.
In this specification, when a user of a service provider registers a service solution in the centralized management and control platform, the centralized management and control platform may specifically deploy the registered service solution as a standardized service, so as to open the service solution to a service user for invocation. When deploying the registered service solution, the centralized management and control platform may be specifically deployed on the centralized management and control platform in the form of a service interface, or may be deployed on each member block chain in a distributed manner in the form of a system intelligent contract, so as to be invoked by a service user.
It should be noted that, the detailed process of the centralized management and control platform deploying the service solution after registration and the detailed process of the service user invoking the service solution after deployment are not described in detail in this specification, and those skilled in the art may refer to the detailed process of the user service after registration and the detailed process of the user service after service user invoking deployment, which are shown in fig. 6 and fig. 7 above.
In the above embodiments, a service generated after combining user services registered on a centralized management and control platform, specifically, contract execution logic included in a user intelligent contract on each member blockchain on a blockchain service network, is taken as an example for explanation. It should be noted that, in practical applications, the user service registered on the centralized management and control platform may be a service generated by combining contract execution logic included in the user intelligent contracts on the member blockchains, and specifically may also be a data service generated by combining blockchain data on the member blockchains.
In this case, the blockchain account corresponding to the centralized management and control platform, which is created on each member blockchain, is specifically configured to initiate data access for generating blockchain data of the user service for a combination on each member blockchain when the service user invokes the user service.
Accordingly, when the user service is a data service generated after combining the blockchain data on the member blockchains, details of registration, deployment, and invocation of the user service are similar to those of the registration, deployment, and invocation processes for the user service described in the embodiments shown in fig. 2 to fig. 7.
For example, in this case, when registering such user services with the centralized management and control platform, the service provider may send a user service registration request to the centralized management and control platform, and after receiving the user service registration request, the centralized management and control platform may determine, in response to the user service registration request, a block chain data set for implementing a service function corresponding to the user service; the blockchain data set comprises blockchain data deployed on each member blockchain in a blockchain service network; then, the blockchain data in the blockchain data set are combined to generate the user service, so as to complete service registration for the user service, details of the specific registration service are not described again, and those skilled in the art may refer to the record of each embodiment shown in fig. 4, and are not described again in this specification.
When the user service is deployed, the user service may be centrally deployed on the centralized management and control platform in the form of a service interface, or may be distributed on each member block chain in the form of a system intelligent contract. For example, taking a form of a system intelligent contract that is distributed and deployed in each member block chain as an example, at this time, the cross-chain call logic corresponding to the user service included in the system intelligent contract for performing cross-chain communication may be specifically configured to: determining each member blockchain corresponding to each blockchain data of the user service, which is generated in a combined manner, and respectively initiating data access aiming at each blockchain data on each member blockchain based on a blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform. When a service user needs to invoke the user service, the service user may invoke the cross-chain invocation logic included in the system intelligent contract to initiate invocation of the user service registered on the centralized management and control platform, details of specific service invocation are not described again, and those skilled in the art may refer to the records of each embodiment shown in fig. 6 and fig. 7, and are not described again in this specification.
The present specification also provides embodiments of an apparatus, an electronic device, and a storage medium, corresponding to embodiments of the foregoing method.
FIG. 8 is a schematic block diagram of an electronic device in accordance with an exemplary embodiment. Referring to fig. 8, at the hardware level, the apparatus includes a processor 802, an internal bus 804, a network interface 806, a memory 808, and a non-volatile memory 810, but may also include hardware required for other services. One or more embodiments of the present description may be implemented in software, such as by the processor 802 reading a corresponding computer program from the non-volatile storage 810 into the memory 808 and then executing the computer program. Of course, besides software implementation, the one or more embodiments in this specification do not exclude other implementations, such as logic devices or combinations of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Fig. 9 is a block diagram of a user service using apparatus according to an exemplary embodiment, which may be applied to the electronic device shown in fig. 8 to implement the technical solution of the present specification, as shown in fig. 9. The device is applied to a centralized control platform corresponding to a block chain service network; the centralized management and control platform is provided with a service interface corresponding to the user service registered on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains on the blockchain services network; block chain accounts corresponding to the centralized control platform are respectively established on each member block chain in the block chain service network; the apparatus 900 comprises:
a first obtaining module 901, which obtains a call request initiated by a service user for the service interface;
a first determining module 902, configured to determine, in response to the invocation request, each user intelligent contract corresponding to each contract execution logic that combines and generates the user service, and deploy each member block chain of each user intelligent contract;
the first calling module 903 is configured to initiate a cross-chain call for the user intelligent contract based on the blockchain account, created in each member blockchain, corresponding to the centralized management and control platform, so as to complete a service call for the user service.
The specific details of the modules of the apparatus 900 have been described in detail in the method flow described above, and therefore are not described herein again.
Fig. 10 is a block diagram of another user service using apparatus shown in this specification according to an exemplary embodiment, and the apparatus may also be applied to the electronic device shown in fig. 8 to implement the technical solution of this specification. The block chain service network comprises at least one member block chain; the device is applied to node equipment in any target member blockchain in a blockchain service network; at least one system intelligent contract is respectively deployed on each member block chain in the block chain network by a centralized management platform corresponding to the block chain service network; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises cross-chain calling logic corresponding to user services registered and completed on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains; the apparatus 1000 comprises:
a second obtaining module 1001, configured to obtain call data for the user service, where the call data is initiated by a service user;
a second determining module 1002, configured to invoke the cross-chain invocation logic included in the target system intelligent contract in response to the invocation data, determine each user intelligent contract corresponding to each contract execution logic that is combined to generate the user service, and deploy each member block chain of each user intelligent contract; and the number of the first and second groups,
the second invoking module 1003, based on the blockchain accounts created in the member blockchains and corresponding to the centralized management and control platform, respectively initiates a cross-chain invocation for the user intelligent contracts, so as to complete service invocation for the user services.
The specific details of the modules of the apparatus 1000 have been described in detail in the method flow described above, and therefore are not described herein again.
Correspondingly, the present specification also provides an electronic device, which includes a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of all of the method flows described previously.
Accordingly, the present specification also provides a computer readable storage medium having executable instructions stored thereon; wherein the instructions, when executed by a processor, implement steps of all of the method flows previously described.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The 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 Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than 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. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses 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 description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The above description is only for the purpose of illustrating the preferred embodiments of the one or more embodiments of the present disclosure, and is not intended to limit the scope of the one or more embodiments of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the one or more embodiments of the present disclosure should be included in the scope of the one or more embodiments of the present disclosure.

Claims (20)

1. A user service using method is applied to a centralized control platform corresponding to a block chain service network; the centralized management and control platform is provided with a service interface corresponding to the user service registered on the centralized management and control platform; the user services comprise contract execution logic included in user intelligent contracts deployed on member blockchains in the blockchain services network; block chain accounts corresponding to the centralized control platform are respectively established on each member block chain in the block chain service network; the method comprises the following steps:
acquiring a calling request aiming at the service interface, which is initiated by a service user;
responding to the calling request, determining each user intelligent contract corresponding to each contract execution logic for generating the user service in a combined mode, and deploying each member block chain of each user intelligent contract;
and respectively initiating cross-chain calling aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform so as to complete service calling aiming at the user service.
2. The method of claim 1, the customer services comprising services generated by contract execution logical composition of customer intelligence contracts deployed on member blockchains in the blockchain services network.
3. The method of claim 2, at least some of the contract execution logic that is combinatorially generated to the user services corresponding to user intelligent contracts deployed on different member blockchains, respectively.
4. The method of claim 1, wherein the centralized management and control platform maintains service configuration information corresponding to the user service; wherein the service configuration information includes: generating identification information of each contract execution logic of the user service, a contract address of each user intelligent contract containing each contract execution logic, and a corresponding relation among block chain identifications of each member block chain for deploying each user intelligent contract in a combined mode;
determining each user intelligent contract corresponding to each contract execution logic of the user service generated by combination, and deploying each member block chain of each user intelligent contract, wherein the method comprises the following steps:
and inquiring the corresponding relation to determine each contract execution logic for generating the user service in a combined mode, each user intelligent contract containing each contract execution logic and each member block chain for deploying each user intelligent contract.
5. The method of claim 4, wherein the centralized management platform further maintains a list of blockchain accounts created for the centralized platform on each member blockchain;
respectively initiating a cross-chain call aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform, wherein the cross-chain call comprises the following steps:
and querying the blockchain account list to determine blockchain accounts which are created in the member blockchains and correspond to the centralized control platform, and respectively initiating cross-chain calling aiming at the user intelligent contracts based on the determined blockchain accounts.
6. The method of claim 5, wherein the user service comprises a service generated by combining at least one contract execution logic contained in the user intelligent contract deployed on each member blockchain according to the logic sequence of the service logic corresponding to the user service;
the respectively initiating a chain crossing call for the intelligent contracts of the users based on the determined blockchain accounts comprises the following steps: and respectively initiating cross-chain calling aiming at the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the user service based on the determined block chain account.
7. The method of claim 6, the service configuration information further comprising: generating a calling sequence determined by each contract execution logic of the user service for combination based on a logic sequence of the service logic corresponding to the user service;
the respectively initiating a chain crossing call aiming at the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the user service based on the determined blockchain account comprises the following steps:
reading the calling sequence included in the service configuration information;
and respectively initiating cross-chain calling aiming at the intelligent contracts of the users according to the read calling sequence based on the determined block chain account.
8. A user service using method is applied to node equipment in any target member block chain in a block chain service network; at least one system intelligent contract is respectively deployed on each member block chain in the block chain network by a centralized management platform corresponding to the block chain service network; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises cross-chain calling logic corresponding to user services registered and completed on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains;
the method comprises the following steps:
acquiring call data aiming at the user service, which is initiated by a service user;
responding to the calling data, calling the cross-chain calling logic contained in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic combined and generated for the user service, and deploying each member block chain of each user intelligent contract; and the number of the first and second groups,
and respectively initiating cross-chain calling aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform so as to complete service calling aiming at the user service.
9. The method of claim 8, the customer services comprising services generated by contract execution logical composition of customer intelligence contracts deployed on member blockchains in the blockchain services network.
10. The method of claim 9, at least some of the contract execution logic that is combinatorially generated to the user services corresponding to user intelligent contracts deployed on different member blockchains, respectively.
11. The method of claim 8, wherein service configuration information corresponding to the user service is maintained in the target system intelligence contract; wherein the service configuration information includes: generating identification information of each contract execution logic of the user service, a contract address of each user intelligent contract containing each contract execution logic, and a corresponding relation among block chain identifications of each member block chain for deploying each user intelligent contract in a combined mode;
the step of calling the cross-chain calling logic contained in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic combined to generate target user service, and deploying each member block chain of each user intelligent contract comprises the following steps:
and calling the cross-chain calling logic contained in the target system intelligent contract, and inquiring the corresponding relation to determine each contract execution logic combined to generate the user service, each user intelligent contract containing each contract execution logic, and each member block chain for deploying each user intelligent contract.
12. The method of claim 11, the target system intelligence contract further maintaining a list of blockchain accounts created for the centralized platform on each member blockchain;
respectively initiating a cross-chain call aiming at each user intelligent contract based on the blockchain account which is created in each member blockchain and corresponds to the centralized management and control platform, wherein the cross-chain call comprises the following steps:
and querying the blockchain account list to determine blockchain accounts which are created in the member blockchains and correspond to the centralized control platform, and respectively initiating cross-chain calling aiming at the user intelligent contracts based on the determined blockchain accounts.
13. The method of claim 12, wherein the user service comprises a service generated by combining at least one contract execution logic included in the user intelligent contract deployed on each member blockchain according to the logical sequence of the service logic corresponding to the user service;
the respectively initiating a chain crossing call for the intelligent contracts of the users based on the determined blockchain accounts comprises the following steps: and respectively initiating cross-chain calling aiming at the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the user service based on the determined block chain account.
14. The method of claim 13, the service configuration information further comprising: generating a calling sequence determined by each contract execution logic of the user service for combination based on a logic sequence of the service logic corresponding to the user service;
the respectively initiating a chain crossing call aiming at the intelligent contracts of the users according to the logic sequence of the service logic corresponding to the user service based on the determined blockchain account comprises the following steps:
reading the calling sequence included in the service configuration information;
and respectively initiating cross-chain calling aiming at the intelligent contracts of the users according to the read calling sequence based on the determined block chain account.
15. The method of claim 12, wherein the service consumer comprises a target user intelligence contract deployed on any member blockchain in the blockchain service network; the invocation data includes an invocation message for the user service, generated during the invocation of the contract execution logic included in the target user intelligent contract, for submission to the target system intelligent contract.
16. The method of claim 15, wherein the centralized management and control platform further supports registering associated user services for user intelligent contracts deployed in each member blockchain;
in response to the invocation data, invoking the cross-chain invocation logic included in the target system intelligence contract, including:
determining whether the user service is registered as a user service associated with the target user intelligent contract in response to an inter-contract invocation message submitted by the target user intelligent contract to the target system intelligent contract; if so, the cross-chain calling logic contained in the target system intelligent contract is further called.
17. A user service using device is applied to a centralized control platform corresponding to a block chain service network; the centralized management and control platform is provided with a service interface corresponding to the user service registered on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains on the blockchain services network; block chain accounts corresponding to the centralized control platform are respectively established on each member block chain in the block chain service network; the device comprises:
the first acquisition module is used for acquiring a calling request aiming at the service interface and initiated by a service user;
the first determining module is used for responding to the calling request, determining each user intelligent contract corresponding to each contract execution logic for generating the user service in a combined mode, and deploying each member block chain of each user intelligent contract;
and the first calling module is used for respectively initiating cross-chain calling aiming at the intelligent contracts of the users on the basis of the blockchain accounts which are created in the member blockchains and correspond to the centralized control platform so as to complete service calling aiming at the user services.
18. A user service using device is applied to node equipment in any target member block chain in a block chain service network; at least one system intelligent contract is respectively deployed on each member block chain in the block chain network by a centralized management platform corresponding to the block chain service network; the at least one system intelligence contract comprises a target system intelligence contract for cross-chain communication with other member blockchains; the target system intelligent contract comprises cross-chain calling logic corresponding to user services registered and completed on the centralized management and control platform; the user services include contract execution logic included in user intelligent contracts deployed on member blockchains;
the device comprises:
the second acquisition module is used for acquiring the calling data aiming at the user service, which is initiated by the service user;
the second determining module is used for responding to the calling data, calling the cross-chain calling logic contained in the target system intelligent contract, determining each user intelligent contract corresponding to each contract execution logic which is combined to generate the user service, and deploying each member block chain of each user intelligent contract; and the number of the first and second groups,
and the second calling module is used for respectively initiating cross-chain calling aiming at the intelligent contracts of the users on the basis of the blockchain accounts which are created in the member blockchains and correspond to the centralized control platform so as to complete service calling aiming at the user services.
19. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of any one of claims 1-7 or 8-16 by executing the executable instructions.
20. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1-7 or 8-16.
CN202111081536.7A 2021-09-15 2021-09-15 User service using method and device Active CN113542435B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111081536.7A CN113542435B (en) 2021-09-15 2021-09-15 User service using method and device
PCT/CN2022/109860 WO2023040498A1 (en) 2021-09-15 2022-08-03 User service utilization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111081536.7A CN113542435B (en) 2021-09-15 2021-09-15 User service using method and device

Publications (2)

Publication Number Publication Date
CN113542435A CN113542435A (en) 2021-10-22
CN113542435B true CN113542435B (en) 2021-12-14

Family

ID=78123125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111081536.7A Active CN113542435B (en) 2021-09-15 2021-09-15 User service using method and device

Country Status (2)

Country Link
CN (1) CN113542435B (en)
WO (1) WO2023040498A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542435B (en) * 2021-09-15 2021-12-14 支付宝(杭州)信息技术有限公司 User service using method and device
CN115664718A (en) * 2022-09-27 2023-01-31 蚂蚁区块链科技(上海)有限公司 Cross-chain calling method and device for intelligent contract

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587200B (en) * 2017-09-29 2021-07-16 中兴通讯股份有限公司 Block chain as-a-service platform and system
US10686799B2 (en) * 2018-04-30 2020-06-16 EMC IP Holding Company LLC Blockchain-based method and system for providing tenant security and compliance in a cloud computing environment
CN108876610A (en) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 Intelligent contract implementation method, user equipment, storage medium and device
CN110622192B (en) * 2018-11-27 2023-07-14 创新先进技术有限公司 Functional As A Service (FAAS) platform in a blockchain network
US11269858B2 (en) * 2019-03-26 2022-03-08 International Business Machines Corporation Information management in a decentralized database including a fast path service
CN110471984B (en) * 2019-07-15 2020-08-25 阿里巴巴集团控股有限公司 Service processing method and device based on block chain and electronic equipment
CN110502218B (en) * 2019-08-26 2023-05-19 深圳前海环融联易信息科技服务有限公司 Intelligent contract development method, intelligent contract development device, computer equipment and storage medium
CN112182096A (en) * 2020-04-02 2021-01-05 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN111711690A (en) * 2020-06-16 2020-09-25 中国银行股份有限公司 Service processing method and device based on cross-chain technology
CN112631803A (en) * 2020-12-21 2021-04-09 杭州趣链科技有限公司 Intelligent contract calling method, device, server and storage medium for block chain
CN113542435B (en) * 2021-09-15 2021-12-14 支付宝(杭州)信息技术有限公司 User service using method and device

Also Published As

Publication number Publication date
WO2023040498A1 (en) 2023-03-23
CN113542435A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN113535691B (en) User service registration method and device
JP6880188B2 (en) Methods, systems, and devices for data access
CN113095822A (en) Intelligent contract calling method and device based on block chain and electronic equipment
CN110032599B (en) Data structure reading and updating method and device, and electronic equipment
CN113542435B (en) User service using method and device
US10091333B2 (en) System and method for supporting a bypass-domain model for across-domain messaging in a transactional middleware machine environment
US11687354B2 (en) Virtual machine management using onboarding operations and openstack control
CN112380294B (en) Block chain cross-chain access method and device
JP2000339287A (en) Concentrated affinity maintenance device and method therefor in client/server.data processing system managed by work load
CN113535335B (en) Virtual resource allocation method and device based on block chain and electronic equipment
CN111431956A (en) Cross-network service access method, device, system and storage medium
US11783071B2 (en) Authenticating accesses to a shared datastore of a multi-tenant computer system
CN113067897B (en) Cross-chain interaction method and device
CN112400182A (en) Method and device for executing intelligent contracts in block chain and electronic equipment
CN115002228B (en) Service cascade calling method and device, electronic equipment and storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
WO2020207194A1 (en) Blockchain-based iot device changing method and apparatus
CN113535690B (en) Block chain service network establishing method and device
CN113067914B (en) Method and device for distributing subnet identification, electronic equipment and storage medium
CN113095825A (en) Asset management method and device based on block chain and electronic equipment
CN113095824B (en) Asset management method and device based on block chain and electronic equipment
CN113259462A (en) Block chain message distribution method and device
WO2024066018A1 (en) Method and apparatus for cross-chain calling of smart contracts
CN113177080B (en) Block chain consensus engine system and block chain consensus processing flow method
CN115665141A (en) Cross-chain calling method and device for intelligent contract

Legal Events

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