WO2023040450A1 - Blockchain service network establishment - Google Patents

Blockchain service network establishment Download PDF

Info

Publication number
WO2023040450A1
WO2023040450A1 PCT/CN2022/106350 CN2022106350W WO2023040450A1 WO 2023040450 A1 WO2023040450 A1 WO 2023040450A1 CN 2022106350 W CN2022106350 W CN 2022106350W WO 2023040450 A1 WO2023040450 A1 WO 2023040450A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
blockchain
user
mentioned
target
Prior art date
Application number
PCT/CN2022/106350
Other languages
French (fr)
Chinese (zh)
Inventor
刘勤
李书博
孙善禄
黄胜
余逸荣
陈辰
王利凯
王进成
马玉
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2023040450A1 publication Critical patent/WO2023040450A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

Provided are a method an apparatus for establishing a blockchain service network. The establishment method comprises: receiving a registration request corresponding to a target blockchain; and in response to the registration request, performing registration processing on the target blockchain, so as to add the target blockchain to a blockchain service network as a member blockchain; registration processing comprises creating a blockchain account corresponding to a centralized management platform on the target blockchain, the blockchain account being used for initiating contract invocation of a target user smart contract deployed on the target blockchain when a service-using party invokes a registered user service on the centralized management platform; wherein the user service comprises contract execution logic of the target user smart contract deployed on the target blockchain.

Description

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

Claims (16)

  1. 一种区块链服务网络的组建方法,应用于组建所述区块链服务网络的中心化管控平台;所述方法包括:A method for forming a block chain service network, applied to the centralized management and control platform of the block chain service network; the method includes:
    接收与目标区块链对应的注册请求;Receive a registration request corresponding to the target blockchain;
    响应于所述注册请求,针对所述目标区块链进行注册处理,以将所述目标区块链作为成员区块链加入所述区块链服务网络;In response to the registration request, perform registration processing for the target blockchain, so as to add the target blockchain as a member blockchain to the blockchain service network;
    所述注册处理包括在所述目标区块链中创建与所述中心化管控平台对应的区块链账户,所述区块链账户用于在服务使用方调用所述中心化管控平台上注册的用户服务时,发起针对所述目标区块链上部署的目标用户智能合约的合约调用;其中,该用户服务包括所述目标区块链部署的目标用户智能合约的合约执行逻辑。The registration process includes creating a block chain account corresponding to the centralized management and control platform in the target block chain, and the block chain account is used when the service user calls the account registered on the centralized control platform. When serving the user, initiate a contract call for the target user smart contract deployed on the target blockchain; wherein, the user service includes the contract execution logic of the target user smart contract deployed on the target blockchain.
  2. 根据权利要求1所述的方法,所述用户服务包括由部署在所述区块链服务网络中的各成员区块链上的用户智能合约的合约执行逻辑组合生成的服务。According to the method according to claim 1, the user service includes a service generated by the contract execution logic combination of user smart contracts deployed on each member blockchain in the blockchain service network.
  3. 根据权利要求2所述的方法,所述用户服务包括将部署在各成员区块链上的用户智能合约的至少一个合约执行逻辑,按照与所述用户服务对应的服务逻辑的逻辑顺序进行组合生成的服务。According to the method according to claim 2, the user service includes combining at least one contract execution logic of the user smart contract deployed on each member blockchain according to the logical sequence of the service logic corresponding to the user service to generate services.
  4. 根据权利要求2所述的方法,组合生成所述用户服务的合约执行逻辑中的至少部分合约执行逻辑,分别与不同的成员区块链上部署的用户智能合约相对应。According to the method of claim 2, at least part of the contract execution logic in the contract execution logic of the user service is combined to correspond to user smart contracts deployed on different member blockchains.
  5. 根据权利要求2所述的方法,所述注册处理还包括:The method according to claim 2, said registration process further comprising:
    在目标区块链中部署至少一个系统智能合约;其中,所述至少一个系统智能合约包括用于与其它成员区块链进行跨链通信的目标系统智能合约。Deploy at least one system smart contract in the target blockchain; wherein, the at least one system smart contract includes a target system smart contract for cross-chain communication with other member blockchains.
  6. 根据权利要求5所述的方法,The method according to claim 5,
    所述目标系统智能合约包含与所述目标用户服务对应的跨链调用逻辑;The target system smart contract includes cross-chain call logic corresponding to the target user service;
    其中,所述跨链调用逻辑用于:Among them, the cross-chain calling logic is used for:
    确定组合生成所述目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署所述各用户智能合约的各成员区块链,并基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,按照与所述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对所述各用户智能合约的跨链调用。Determine the user smart contracts corresponding to the execution logic of each contract that generates the target user service, and the member blockchains that deploy the user smart contracts, and based on the information created in the member blockchains and the The blockchain account corresponding to the centralized management and control platform respectively initiates cross-chain calls for the smart contracts of each user according to the logical sequence of the service logic corresponding to the target user service.
  7. 根据权利要求6所述的方法,所述目标系统智能合约中维护了与所述目标用户服务对应的服务配置信息,以及在各成员区块链上为所述中心化平台创建的区块链账户列表;其中,所述服务配置信息包括:组合生成所述目标用户服务的各合约执行逻辑的标识信息、包含所述各合约执行逻辑的各用户智能合约的合约地址、以及部署所述各用户智能合约的各成员区块链的区块链标识之间的对应关系;According to the method according to claim 6, the service configuration information corresponding to the target user service is maintained in the target system smart contract, and the blockchain account created for the centralized platform on each member blockchain list; wherein, the service configuration information includes: the identification information of each contract execution logic combined to generate the target user service, the contract address of each user smart contract containing the each contract execution logic, and the deployment of each user smart contract Correspondence between the blockchain identifiers of each member blockchain of the contract;
    所述确定组合生成所述目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署所述各用户智能合约的各成员区块链,并基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,按照与所述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对所述各用户智能合约的跨链调用,包括:The determined combination generates each user smart contract corresponding to each contract execution logic of the target user service, and each member block chain that deploys each user smart contract, and based on the created in each member block chain The blockchain account corresponding to the centralized management and control platform, according to the logical sequence of the service logic corresponding to the target user service, respectively initiates cross-chain calls for the smart contracts of each user, including:
    查询所述对应关系,以确定组合生成所述目标用户服务的各合约执行逻辑、包含所述各合约执行逻辑的各用户智能合约、和部署所述各用户智能合约的各成员区块链;以及,进一步查询所述区块链账户列表,以确定在所述各成员区块链上创建的与所述中心化平台对应的区块链账户,并基于确定出的所述区块链账户,按照所述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对所述各用户智能合约的跨链调用。Querying the corresponding relationship to determine the combination of each contract execution logic for generating the target user service, each user smart contract containing the each contract execution logic, and each member blockchain deploying each user smart contract; and , and further query the list of blockchain accounts to determine the blockchain accounts corresponding to the centralized platform created on the member blockchains, and based on the determined blockchain accounts, according to The logic sequence of the service logic corresponding to the target user service respectively initiates cross-chain calls for the smart contracts of each user.
  8. 根据权利要求7所述的方法,所述服务配置信息还包括:基于所述目标用户服务对应的服务逻辑的逻辑顺序,为组合生成所述目标用户服务的各合约执行逻辑确定出的调用顺序;According to the method according to claim 7, the service configuration information further includes: based on the logic sequence of the service logic corresponding to the target user service, the call sequence determined for the execution logic of each contract combined to generate the target user service;
    所述基于确定出的所述区块链账户,按照所述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对所述各用户智能合约的跨链调用包括:Based on the determined blockchain account, according to the logical sequence of the service logic corresponding to the target user service, respectively initiating cross-chain calls for the smart contracts of each user includes:
    读取所述服务配置信息中包括的所述调用顺序;reading the invocation sequence included in the service configuration information;
    基于确定出的所述区块链账户,按照读取到的所述调用顺序,分别发起针对所述各用户智能合约的跨链调用。Based on the determined blockchain account, according to the read invocation order, respectively initiate cross-chain invocations for the user smart contracts.
  9. 根据权利要求7所述的方法,所述方法还包括:The method according to claim 7, said method further comprising:
    响应于所述中心化管控平台上注册了新的用户服务,将所述新的用户服务对应的服务配置信息,存储至所述目标系统智能合约,以对所述系统智能合约中维护的所述服务配置信息进行更新;以及,In response to the registration of a new user service on the centralized management and control platform, the service configuration information corresponding to the new user service is stored in the target system smart contract, so that the Service configuration information is updated; and,
    响应于所述区块链服务网络中加了新的成员区块链,将在所述新的成员区块链上创建的与所述中心化管控平台对应的区块链账户,存储至所述目标系统智能合约,以对所述系统智能合约中维护的所述区块链账户列表进行更新。In response to the addition of a new member blockchain in the blockchain service network, the blockchain account corresponding to the centralized management and control platform created on the new member blockchain is stored in the The target system smart contract is used to update the blockchain account list maintained in the system smart contract.
  10. 根据权利要求5所述的方法,所述方法还包括:The method according to claim 5, said method further comprising:
    响应于服务使用方发起的针对所述中心化管控平台上部署的与所述目标用户服务对应的服务接口的调用请求,确定组合生成所述目标用户服务的各合约执行逻辑对应的各用户智能合约,以及部署所述各用户智能合约的各成员区块链,并基于在所述各成员区块链中创建的与所述中心化管控平台对应的区块链账户,按照与所述目标用户服务对应的服务逻辑的逻辑顺序,分别发起针对所述各用户智能合约的跨链调用。In response to the invocation request initiated by the service user for the service interface corresponding to the target user service deployed on the centralized management and control platform, determine the user smart contracts corresponding to the execution logic of each contract that is combined to generate the target user service , and deploy each member blockchain of each user smart contract, and based on the blockchain account corresponding to the centralized management and control platform created in each member blockchain, according to the target user service The logical sequence of the corresponding service logic initiates cross-chain calls for the smart contracts of each user.
  11. 根据权利要求2所述的方法,所述中心化管控平台支持将各成员区块链上部署的用户智能合约包含的合约执行逻辑,在所述中心化管控平台上进行注册;所述中心化管控平台上注册的用户服务包括,由在所述中心化管控平台上已注册的至少一个合约执行逻辑进行组合生成的服务。According to the method described in claim 2, the centralized management and control platform supports the contract execution logic contained in the user smart contracts deployed on each member block chain to be registered on the centralized management and control platform; the centralized management and control The user services registered on the platform include services generated by combining at least one contract execution logic registered on the centralized management and control platform.
  12. 根据权利要求11所述的方法,所述方法还包括:The method of claim 11, further comprising:
    将在所述中心化管控平台上注册的合约执行逻辑通过可视化界面向服务提供方输出;Output the contract execution logic registered on the centralized management and control platform to the service provider through a visual interface;
    获取所述服务提供方在所述可视化界面选择的至少一个合约执行逻辑;Obtain at least one contract execution logic selected by the service provider on the visual interface;
    将所述至少一个合约执行逻辑按照与所述用户服务对应的服务逻辑的逻辑顺序进行组合生成所述用户服务。The user service is generated by combining the at least one contract execution logic according to the logic sequence of the service logic corresponding to the user service.
  13. 根据权利要求1所述的方法,所述区块链服务网络中的至少部分成员区块链为异构的区块链。According to the method according to claim 1, at least some member blockchains in the blockchain service network are heterogeneous blockchains.
  14. 一种区块链服务网络的组建装置,应用于组建所述区块链服务网络的中心化管控平台;所述装置包括:A device for establishing a blockchain service network, which is applied to the centralized management and control platform for establishing the blockchain service network; the device includes:
    接收模块,接收与目标区块链对应的注册请求;The receiving module receives the registration request corresponding to the target blockchain;
    注册模块,响应于所述注册请求,针对所述目标区块链进行注册处理,以将所述目标区块链作为成员区块链加入所述区块链服务网络;所述注册处理包括在所述目标区块链中创建与所述中心化管控平台对应的区块链账户,所述区块链账户用于在服务使用方调用所述中心化管控平台上注册的用户服务时,发起针对所述目标区块链上部署的目标用户智能合约的合约调用;其中,该用户服务包括所述目标用户智能合约的合约执行逻辑。The registration module, in response to the registration request, performs registration processing for the target blockchain, so as to add the target blockchain as a member blockchain to the blockchain service network; the registration processing includes Create a block chain account corresponding to the centralized management and control platform in the target block chain, and the block chain account is used for initiating a target The contract call of the target user smart contract deployed on the target blockchain; wherein, the user service includes the contract execution logic of the target user smart contract.
  15. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-13中任一项所述的方法。Wherein, the processor implements the method according to any one of claims 1-13 by running the executable instructions.
  16. 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1-13中任一项所述方法的步骤。A computer-readable storage medium, on which computer instructions are stored, and the steps of the method according to any one of claims 1-13 are implemented when the instructions are executed by a processor.
PCT/CN2022/106350 2021-09-15 2022-07-19 Blockchain service network establishment WO2023040450A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111081531.4 2021-09-15
CN202111081531.4A CN113535690B (en) 2021-09-15 2021-09-15 Block chain service network establishing method and device

Publications (1)

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

Family

ID=78123127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106350 WO2023040450A1 (en) 2021-09-15 2022-07-19 Blockchain service network establishment

Country Status (2)

Country Link
CN (1) CN113535690B (en)
WO (1) WO2023040450A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535690B (en) * 2021-09-15 2021-12-21 支付宝(杭州)信息技术有限公司 Block chain service network establishing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190066068A1 (en) * 2017-08-22 2019-02-28 Sap Se Transaction Platform Providing Unified Interaction with Multiple Heterogeneous Blockchains
CN111163129A (en) * 2019-12-05 2020-05-15 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network
US20200372501A1 (en) * 2019-05-24 2020-11-26 Visa International Service Association Blockchain enabled service request system
CN112631803A (en) * 2020-12-21 2021-04-09 杭州趣链科技有限公司 Intelligent contract calling method, device, server and storage medium for block chain
CN113194143A (en) * 2021-04-30 2021-07-30 支付宝(杭州)信息技术有限公司 Block chain account creating method and device and electronic equipment
CN113329081A (en) * 2021-05-28 2021-08-31 深圳技术大学 Block chain service access method, device and computer readable storage medium
CN113535690A (en) * 2021-09-15 2021-10-22 支付宝(杭州)信息技术有限公司 Block chain service network establishing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737348A (en) * 2017-04-21 2018-11-02 中国科学院信息工程研究所 A kind of internet of things equipment access control method of the intelligent contract based on block chain
CN108667618B (en) * 2018-05-10 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, device, server and system for member management of block chain
CN108876618A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN108833081B (en) * 2018-06-22 2021-01-05 中国人民解放军国防科技大学 Block chain-based equipment networking authentication method
CN109889503B (en) * 2019-01-22 2022-02-22 平安科技(深圳)有限公司 Identity management method based on block chain, electronic device and storage medium
WO2021006616A1 (en) * 2019-07-11 2021-01-14 Coinplug, Inc. Method for providing relational decentralized identifier service and blockchain node using the same
CN110348202B (en) * 2019-07-12 2020-06-12 北京物资学院 Role access control system and method based on intelligent contract of block chain
CN110941679B (en) * 2019-12-05 2021-04-30 腾讯科技(深圳)有限公司 Contract data processing method, related equipment and medium
CN111324672A (en) * 2020-03-25 2020-06-23 中国工商银行股份有限公司 Block chain safety processing system and method
CN111857892B (en) * 2020-09-22 2020-12-18 支付宝(杭州)信息技术有限公司 Method and device for processing service through block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190066068A1 (en) * 2017-08-22 2019-02-28 Sap Se Transaction Platform Providing Unified Interaction with Multiple Heterogeneous Blockchains
US20200372501A1 (en) * 2019-05-24 2020-11-26 Visa International Service Association Blockchain enabled service request system
CN111163129A (en) * 2019-12-05 2020-05-15 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network
CN112631803A (en) * 2020-12-21 2021-04-09 杭州趣链科技有限公司 Intelligent contract calling method, device, server and storage medium for block chain
CN113194143A (en) * 2021-04-30 2021-07-30 支付宝(杭州)信息技术有限公司 Block chain account creating method and device and electronic equipment
CN113329081A (en) * 2021-05-28 2021-08-31 深圳技术大学 Block chain service access method, device and computer readable storage medium
CN113535690A (en) * 2021-09-15 2021-10-22 支付宝(杭州)信息技术有限公司 Block chain service network establishing method and device

Also Published As

Publication number Publication date
CN113535690A (en) 2021-10-22
CN113535690B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
WO2023040502A1 (en) User service registration
CN108650262B (en) Cloud platform expansion method and system based on micro-service architecture
WO2023040498A1 (en) User service utilization
WO2023040496A1 (en) Virtual resource allocation based on blockchain
WO2022161181A1 (en) Data processing method and apparatus based on blockchain, and electronic device
WO2022008996A1 (en) Privacy preserving architecture for permissioned blockchains
CN113067904B (en) Method for building block chain sub-network and block chain system
JP2000339287A (en) Concentrated affinity maintenance device and method therefor in client/server.data processing system managed by work load
US20230361987A1 (en) Blockchain network control system and methods
CN113067897B (en) Cross-chain interaction method and device
CN111950019A (en) Block chain-based Internet of things access control system and method
WO2023124746A1 (en) Cross-subnet interaction permission control
WO2023040450A1 (en) Blockchain service network establishment
CN113259464B (en) Method for building block chain sub-network and block chain system
CN113067914B (en) Method and device for distributing subnet identification, electronic equipment and storage medium
CN115002228A (en) Service cascade calling method and device, electronic equipment and storage medium
CN113326290B (en) Cross-network query control method
WO2022206209A1 (en) Blockchain-based asset management
CN113259119B (en) Block chain message distribution method and device
CN117319412A (en) Management method of block chain network and related equipment
CN113259462A (en) Block chain message distribution method and device
CN113259237A (en) Transaction forwarding method between block chain networks
WO2024066018A1 (en) Method and apparatus for cross-chain calling of smart contracts
CN113098984B (en) Method for forming multi-layer block chain system based on registration mechanism and block chain system
CN114363349B (en) Block chain sub-network starting method and device

Legal Events

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

Ref document number: 22868827

Country of ref document: EP

Kind code of ref document: A1