技术领域technical field
本发明涉及区块链技术领域,特别涉及一种基于区块链的数据处理方法、装置及设备和一种联盟区块链系统。The present invention relates to the technical field of blockchain, in particular to a method, device and equipment for data processing based on blockchain, and an alliance blockchain system.
背景技术Background technique
联盟区块链(Consortium blockchains),又称共同体区块链,简称“联盟链”,联盟链只针对某个特定群体的成员和有限的第三方,其内部指定多个节点为初始的验证或记账节点,每个块的生成由所有的验证节点共同决定。一般地,任意两个或两个以上机构可组成一个联盟区块链,联盟区块链内设有多个域,每个域中设有多个节点。其中,“域”也可称之为“zone”。Consortium blockchains, also known as community blockchains, referred to as "consortium chains", consortium chains are only for members of a specific group and limited third parties, and multiple nodes are designated internally as initial verification or recording. Account nodes, the generation of each block is jointly decided by all verification nodes. Generally, any two or more organizations can form a consortium blockchain, and there are multiple domains in the consortium blockchain, and each domain has multiple nodes. Among them, "domain" can also be called "zone".
目前,当为已有域的联盟区块链新创建域时,新创建的域必须和某个旧域为父子关系,即:新创建的域和当前联盟区块链为间接所属关系。同时,由于新创建的域和旧域为父子关系,因此新域中需要存储旧域的基础数据,而这些基础数据会占据新域的存储空间,从而导致新创建的域的存储空间比理想中要小。At present, when a new domain is created for a consortium blockchain of an existing domain, the newly created domain must have a parent-child relationship with an old domain, that is, the newly created domain and the current consortium blockchain have an indirect ownership relationship. At the same time, since the newly created domain and the old domain are in a parent-child relationship, the new domain needs to store the basic data of the old domain, and these basic data will occupy the storage space of the new domain, resulting in the storage space of the newly created domain being less than ideal. Be small.
需要说明的是,为联盟区块链创建新域,存储空间本应成倍增长,联盟区块链处理数据的性能也应成倍提高。即创建一个域,将会增加一倍存储空间,处理性能也相应增加一倍。但是,由于现有的创建方式需要将旧域的基础数据拷贝至新域,这就导致创建得到的新域的存储空间有所缩小,从而导致联盟区块链的处理性能的改善也比较有限。It should be noted that to create a new domain for the consortium blockchain, the storage space should have grown exponentially, and the performance of the consortium blockchain in processing data should also be exponentially improved. That is, to create a domain, the storage space will be doubled, and the processing performance will be doubled accordingly. However, since the existing creation method needs to copy the basic data of the old domain to the new domain, the storage space of the created new domain is reduced, resulting in a limited improvement in the processing performance of the consortium blockchain.
因此,现有的域创建方式造成了域存储空间的浪费,无法实现存储空间的平行扩展,不利于联盟区块链中的数据存储和数据处理。Therefore, the existing domain creation method causes a waste of domain storage space, cannot achieve parallel expansion of storage space, and is not conducive to data storage and data processing in the alliance blockchain.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的主要目的在于提供一种基于区块链的数据处理方法、装置及设备和一种联盟区块链系统,旨在解决现有域创建方式无法实现存储空间的平行扩展的技术问题。其具体方案如下:In view of this, the main purpose of the present invention is to provide a block chain-based data processing method, device and equipment and a consortium block chain system, aiming to solve the problem that the existing domain creation method cannot realize the parallel expansion of the storage space. technical problem. Its specific plan is as follows:
为实现上述目的,本发明提供了一种基于区块链的数据处理方法,包括:In order to achieve the above purpose, the present invention provides a data processing method based on blockchain, including:
接收新域的创建请求;Receive a request to create a new domain;
提取创建请求携带的创建信息,创建信息至少包括:新域的标识信息、新域直接所属的联盟区块链的标识信息、以及新域的初始验证人节点的信息;Extract the creation information carried in the creation request, the creation information at least includes: the identification information of the new domain, the identification information of the consortium blockchain to which the new domain directly belongs, and the information of the initial validator node of the new domain;
根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,以利用新域处理接收到的数据。Create a new domain in the consortium blockchain based on the creation information, and initialize the initial validator node of the new domain to process the received data with the new domain.
优选地,基于区块链的数据处理方法还包括:Preferably, the blockchain-based data processing method further includes:
接收新的交易账户的注册请求;Receive registration requests for new trading accounts;
根据注册请求注册新的交易账户,并将新的交易账户分配至新域。Register a new trading account according to the registration request and assign the new trading account to the new domain.
优选地,将新的交易账户分配至新域之后,基于区块链的数据处理方法还包括:Preferably, after allocating the new transaction account to the new domain, the blockchain-based data processing method further includes:
确定新的交易账户对应的路由信息;新的交易账户对应的路由信息用于记录新的交易账户被分配的域,以及新的交易账户被分配的域直接所属的联盟区块链;Determine the routing information corresponding to the new trading account; the routing information corresponding to the new trading account is used to record the domain to which the new trading account is allocated, and the alliance blockchain to which the domain to which the new trading account is allocated directly belongs;
将新的交易账户对应的路由信息存储至预设的路由配置服务。Store the routing information corresponding to the new trading account to the preset routing configuration service.
优选地,将新的交易账户对应的路由信息存储至预设的路由配置服务之后,基于区块链的数据处理方法还包括:Preferably, after the routing information corresponding to the new transaction account is stored in the preset routing configuration service, the blockchain-based data processing method further includes:
接收新的交易账户对应的交易信息;Receive transaction information corresponding to the new transaction account;
在路由配置服务中查询新的交易账户对应的路由信息;Query the routing information corresponding to the new trading account in the routing configuration service;
根据查询到的新的交易账户对应的路由信息将交易信息发送至新域,以便新域中的节点对新的交易账户对应的路由信息和交易信息进行校验。The transaction information is sent to the new domain according to the queried routing information corresponding to the new transaction account, so that the nodes in the new domain can verify the routing information and transaction information corresponding to the new transaction account.
优选地,在路由配置服务中查询新的交易账户对应的路由信息之前,基于区块链的数据处理方法还包括:Preferably, before querying the routing information corresponding to the new transaction account in the routing configuration service, the blockchain-based data processing method further includes:
判断本地的共享内存中是否存在新的交易账户对应的路由信息;Determine whether there is routing information corresponding to the new trading account in the local shared memory;
若否,则执行在路由配置服务中查询新的交易账户对应的路由信息的步骤。If not, execute the step of querying the routing information corresponding to the new trading account in the routing configuration service.
优选地,基于区块链的数据处理方法还包括:Preferably, the blockchain-based data processing method further includes:
接收部署智能合约至新域的部署请求;Receive deployment requests to deploy smart contracts to new domains;
获取智能合约,并根据部署请求部署智能合约至新域。Get the smart contract and deploy the smart contract to the new domain according to the deployment request.
优选地,根据部署请求部署智能合约至新域之后,基于区块链的数据处理方法还包括:Preferably, after deploying the smart contract to the new domain according to the deployment request, the blockchain-based data processing method further includes:
确定智能合约对应的路由信息;智能合约对应的路由信息用于记录智能合约部署的域,以及智能合约部署的域直接所属的联盟区块链;Determine the routing information corresponding to the smart contract; the routing information corresponding to the smart contract is used to record the domain where the smart contract is deployed, and the consortium blockchain to which the domain deployed by the smart contract directly belongs;
将智能合约对应的路由信息存储至路由配置服务。Store the routing information corresponding to the smart contract to the routing configuration service.
优选地,将智能合约对应的路由信息存储至路由配置服务之后,基于区块链的数据处理方法还包括:Preferably, after the routing information corresponding to the smart contract is stored in the routing configuration service, the blockchain-based data processing method further includes:
接收智能合约的调用请求;Receive the call request of the smart contract;
判断本地的共享内存中是否存在智能合约对应的路由信息;Determine whether there is routing information corresponding to the smart contract in the local shared memory;
若否,则在路由配置服务中查询智能合约对应的路由信息,并根据查询到的智能合约对应的路由信息从新域中调用智能合约。If not, query the routing information corresponding to the smart contract in the routing configuration service, and call the smart contract from the new domain according to the routing information corresponding to the queried smart contract.
为实现上述目的,本发明还提供了一种基于区块链的数据处理装置,包括:In order to achieve the above purpose, the present invention also provides a data processing device based on blockchain, including:
接收模块,用于接收新域的创建请求;The receiving module is used to receive the creation request of the new domain;
提取模块,用于提取创建请求携带的创建信息,创建信息至少包括:新域的标识信息、新域直接所属的联盟区块链的标识信息、以及新域的初始验证人节点的信息;The extraction module is used to extract the creation information carried in the creation request, and the creation information at least includes: the identification information of the new domain, the identification information of the consortium blockchain to which the new domain directly belongs, and the information of the initial validator node of the new domain;
处理模块,用于根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,以利用新域处理接收到的数据。The processing module is used to create a new domain in the consortium blockchain according to the creation information, and after initializing the initial validator node of the new domain, to process the received data using the new domain.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
注册请求接收模块,用于接收新的交易账户的注册请求;A registration request receiving module is used to receive a registration request for a new trading account;
注册模块,用于根据注册请求注册新的交易账户,并将新的交易账户分配至新域。The registration module is used to register a new trading account according to the registration request, and assign the new trading account to a new domain.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
第一确定模块,用于确定新的交易账户对应的路由信息;新的交易账户对应的路由信息用于记录新的交易账户被分配的域,以及新的交易账户被分配的域直接所属的联盟区块链;The first determination module is used to determine the routing information corresponding to the new trading account; the routing information corresponding to the new trading account is used to record the domain to which the new trading account is allocated, and the alliance to which the domain to which the new trading account is allocated directly belongs blockchain;
第一存储模块,用于将新的交易账户对应的路由信息存储至预设的路由配置服务。The first storage module is used for storing the routing information corresponding to the new transaction account in the preset routing configuration service.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
交易信息接收模块,用于接收新的交易账户对应的交易信息;The transaction information receiving module is used to receive the transaction information corresponding to the new transaction account;
查询模块,用于在路由配置服务中查询新的交易账户对应的路由信息;The query module is used to query the routing information corresponding to the new trading account in the routing configuration service;
发送模块,用于根据查询到的新的交易账户对应的路由信息将交易信息发送至新域,以便新域中的节点对新的交易账户对应的路由信息和交易信息进行校验。The sending module is configured to send the transaction information to the new domain according to the queried routing information corresponding to the new transaction account, so that the nodes in the new domain can verify the routing information and transaction information corresponding to the new transaction account.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
第一判断模块,用于判断本地的共享内存中是否存在新的交易账户对应的路由信息;The first judgment module is used for judging whether there is routing information corresponding to the new transaction account in the local shared memory;
执行模块,用于当本地的共享内存中不存在新的交易账户对应的路由信息,则执行查询模块中的步骤。The execution module is configured to execute the steps in the query module when the routing information corresponding to the new transaction account does not exist in the local shared memory.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
部署请求接收模块,用于接收部署智能合约至新域的部署请求;The deployment request receiving module is used to receive the deployment request for deploying the smart contract to the new domain;
部署模块,用于获取智能合约,并根据部署请求部署智能合约至新域。The deployment module is used to obtain the smart contract and deploy the smart contract to the new domain according to the deployment request.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
第二确定模块,用于确定智能合约对应的路由信息;智能合约对应的路由信息用于记录智能合约部署的域,以及智能合约部署的域直接所属的联盟区块链;The second determination module is used to determine the routing information corresponding to the smart contract; the routing information corresponding to the smart contract is used to record the domain where the smart contract is deployed and the consortium blockchain to which the domain deployed by the smart contract directly belongs;
第二存储模块,用于将智能合约对应的路由信息存储至路由配置服务。The second storage module is used to store the routing information corresponding to the smart contract in the routing configuration service.
优选地,基于区块链的数据处理装置还包括:Preferably, the blockchain-based data processing device further includes:
调用请求接收模块,用于接收智能合约的调用请求;The call request receiving module is used to receive the call request of the smart contract;
第二判断模块,用于判断本地的共享内存中是否存在智能合约对应的路由信息;The second judgment module is used to judge whether there is routing information corresponding to the smart contract in the local shared memory;
调用模块,用于当本地的共享内存中不存在智能合约对应的路由信息,则在路由配置服务中查询智能合约对应的路由信息,并根据查询到的智能合约对应的路由信息从新域中调用智能合约。The calling module is used to query the routing information corresponding to the smart contract in the routing configuration service when the routing information corresponding to the smart contract does not exist in the local shared memory, and call the smart contract from the new domain according to the routing information corresponding to the queried smart contract. contract.
为实现上述目的,本发明还提供了一种基于区块链的数据处理设备,设备包括存储器和处理器,存储器上存储有可在处理器上运行的计算机程序,计算机程序被处理器执行时实现前述任一项所公开方法。In order to achieve the above purpose, the present invention also provides a blockchain-based data processing device, the device includes a memory and a processor, the memory stores a computer program that can run on the processor, and the computer program is executed when the processor is executed. Any of the methods disclosed above.
为实现上述目的,本发明还提供了一种联盟区块链系统,包括多个联盟区块链和前述公开的基于区块链的数据处理设备。In order to achieve the above object, the present invention also provides a consortium blockchain system, including a plurality of consortium blockchains and the aforementioned disclosed blockchain-based data processing equipment.
为实现上述目的,本发明还提供了一种可读存储介质,用于保存计算机程序,其中,计算机程序被处理器执行时实现前述公开的方法。To achieve the above object, the present invention also provides a readable storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed method when executed by a processor.
可见,本发明能够基于新域的创建请求中的创建信息,创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域,并利用创建得到的新域处理交易或请求等数据,从而较高程度地提高了基于区块链的数据处理性能。即:新创建得到的域与联盟区块链为直接所属关系,其与当前联盟区块链中的任意一个旧域为并列关系,而非父子关系,因此新创建得到的域无需拷贝某个旧域的基础数据,这样就实现了存储空间成倍增长,存储空间的扩大可以提高交易的处理效率。故本发明提供的方法在创建新域时,不会造成域存储空间的浪费,实现了存储空间的平行扩展,有利于联盟区块链中的数据存储和基于区块链的数据处理。It can be seen that based on the creation information in the creation request of the new domain, the present invention can create a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain, and use the created new domain to process transactions or requests. and other data, thereby improving the data processing performance based on blockchain to a higher degree. That is: the newly created domain has a direct relationship with the alliance blockchain, and it has a parallel relationship with any old domain in the current alliance blockchain, not a parent-child relationship, so the newly created domain does not need to copy an old domain. In this way, the storage space can be doubled, and the expansion of the storage space can improve the processing efficiency of transactions. Therefore, the method provided by the present invention does not cause waste of domain storage space when creating a new domain, realizes parallel expansion of storage space, and is beneficial to data storage in the alliance blockchain and data processing based on the blockchain.
相应地,本发明提供的一种基于区块链的数据处理装置及设备和一种联盟区块链系统,也同样具有上述技术效果。Correspondingly, a blockchain-based data processing device and equipment and a consortium blockchain system provided by the present invention also have the above technical effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.
图1为本发明第一实施例公开的一种基于区块链的数据处理方法流程图;1 is a flowchart of a blockchain-based data processing method disclosed in the first embodiment of the present invention;
图2为本发明第二实施例公开的一种交易账户的注册方法流程图;2 is a flowchart of a method for registering a transaction account disclosed in a second embodiment of the present invention;
图3为本发明第二实施例公开的一种交易信息的处理方法流程图;3 is a flowchart of a method for processing transaction information disclosed in a second embodiment of the present invention;
图4为本发明第三实施例公开的一种智能合约的部署方法流程图;4 is a flowchart of a method for deploying a smart contract disclosed in a third embodiment of the present invention;
图5为本发明第三实施例公开的一种智能合约的调用方法流程图;5 is a flowchart of a method for invoking a smart contract disclosed in a third embodiment of the present invention;
图6为本发明第四实施例公开的基于区块链的数据处理装置示意图;FIG. 6 is a schematic diagram of a blockchain-based data processing apparatus disclosed in a fourth embodiment of the present invention;
图7为本发明第五实施例公开的基于区块链的数据处理设备示意图;7 is a schematic diagram of a blockchain-based data processing device disclosed in a fifth embodiment of the present invention;
图8为本发明第六实施例公开的联盟区块链系统示意图。FIG. 8 is a schematic diagram of a consortium blockchain system disclosed in a sixth embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for the purpose of description, and should not be construed as indicating or implying their relative importance or implying the number of indicated technical features . Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection required by the present invention.
本发明第一实施例公开了一种基于区块链的数据处理方法,参见图1,图1为本发明第一实施例公开的一种基于区块链的数据处理方法流程图。The first embodiment of the present invention discloses a blockchain-based data processing method. Referring to FIG. 1 , FIG. 1 is a flowchart of a blockchain-based data processing method disclosed in the first embodiment of the present invention.
在第一实施例中,该方法包括:In a first embodiment, the method includes:
S101、接收新域的创建请求;S101. Receive a request for creating a new domain;
S102、提取创建请求携带的创建信息,创建信息至少包括:新域的标识信息、新域直接所属的联盟区块链的标识信息、以及新域的初始验证人节点的信息;S102, extracting the creation information carried in the creation request, where the creation information at least includes: identification information of the new domain, identification information of the consortium blockchain to which the new domain directly belongs, and information of the initial validator node of the new domain;
需要说明的是,根据新域的标识信息、以及新域直接所属的联盟区块链的标识信息就可以确定当前新域与联盟区块链的直接所属关系。It should be noted that the direct relationship between the current new domain and the consortium blockchain can be determined according to the identification information of the new domain and the identification information of the consortium blockchain to which the new domain directly belongs.
具体的,用户可以基于人机交互界面输入上述创建信息,具体的创建信息还包括下列信息中的一种或多种:当前创建的新域的名称、域原始账户信息、原始账户额度、奖励地址;初始验证人节点的名称、投票权重和节点公钥等。创建域所需的其他信息可以参考现有技术,故本实施例对此不再一一说明。Specifically, the user can input the above creation information based on the human-computer interaction interface, and the specific creation information also includes one or more of the following information: the name of the new domain currently created, the domain original account information, the original account limit, and the reward address. ; The name, voting weight and node public key of the initial validator node, etc. For other information required for creating a domain, reference may be made to the prior art, so this embodiment will not describe them one by one.
需要说明的是,本实施例创建得到的域与该域所属的联盟区块链为直接所属关系,同时与该域所属的联盟区块链内的其他域为并列关系。It should be noted that the domain created in this embodiment has a direct affiliation relationship with the consortium blockchain to which the domain belongs, and is in a parallel relationship with other domains in the consortium blockchain to which the domain belongs.
S103、根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,以利用新域处理接收到的数据。S103. Create a new domain in the consortium blockchain according to the creation information, and after initializing the initial validator node of the new domain, use the new domain to process the received data.
需要说明的是,本说明书提及的交易指代的是联盟区块链中的任意一次数据处理过程,例如:一次事件共识过程、一次订单提交处理过程等,而非狭义理解上的交易。It should be noted that the transaction mentioned in this specification refers to any data processing process in the alliance blockchain, such as an event consensus process, an order submission process, etc., rather than a transaction in a narrow sense.
在本实施例中,由于新创建得到域中还未有交易账户注册,因此当有新的交易账户注册于新创建的域时,便可以根据域的标识信息,以及域所属的联盟区块链的标识信息确定新的注册交易账户对应的路由信息。交易账户对应的路由信息用于记录交易账户注册的域,以及交易账户注册的域直接所属的联盟区块链。In this embodiment, since there is no transaction account registered in the newly created domain, when a new transaction account is registered in the newly created domain, it can be based on the identification information of the domain and the alliance blockchain to which the domain belongs. The identification information of the new registered transaction account determines the routing information corresponding to the new registered transaction account. The routing information corresponding to the trading account is used to record the domain registered by the trading account and the consortium blockchain to which the domain registered by the trading account directly belongs.
需要说明的是,当联盟区块链的性能需要提高时,可以按照本实施例提供的方法创建多个域。例如:用户可以在人机交互界面输入要创建的域的数量和每个域的创建信息,提交创建请求后,便可自动创建得到多个域,从而使联盟区块链的存储空间成倍增长,并且,用户交易和智能合约的执行性能和存储空间不再受限于联盟区块链的性能和容量,计算和存储都可以实现水平扩展,即域的数量越多,计算和存储的能力就越强,合约和交易等数据的执行性能也就越高。It should be noted that when the performance of the consortium blockchain needs to be improved, multiple domains can be created according to the method provided in this embodiment. For example: the user can input the number of domains to be created and the creation information of each domain on the human-computer interaction interface. After submitting the creation request, multiple domains can be automatically created, thereby multiplying the storage space of the alliance blockchain. , and the execution performance and storage space of user transactions and smart contracts are no longer limited by the performance and capacity of the consortium blockchain, and both computing and storage can be scaled horizontally, that is, the greater the number of domains, the greater the computing and storage capabilities The stronger it is, the higher the execution performance of data such as contracts and transactions.
可见,本发明实施例能够基于新域的创建请求中的创建信息,创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域,并利用创建得到的新域处理交易或请求等数据,从而较高程度地提高了基于区块链的数据处理性能。即:新创建得到的域与联盟区块链为直接所属关系,其与联盟区块链中的任意一个旧域为并列关系,而非父子关系,因此新创建得到的域无需拷贝某个旧域的基础数据,这样就实现了存储空间成倍增长,存储空间的扩大可以提高交易的处理效率。故本发明提供的方法在创建新域时,不会造成域存储空间的浪费,实现了存储空间的平行扩展,有利于联盟区块链中的数据存储和基于区块链的数据处理。It can be seen that the embodiment of the present invention can create a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain based on the creation information in the creation request of the new domain, and use the created new domain to process transactions. or request data, thereby improving the data processing performance based on the blockchain to a higher degree. That is: the newly created domain has a direct relationship with the alliance blockchain, and it has a parallel relationship with any old domain in the alliance blockchain, rather than a parent-child relationship, so the newly created domain does not need to copy an old domain. In this way, the storage space can be doubled, and the expansion of the storage space can improve the processing efficiency of transactions. Therefore, the method provided by the present invention does not cause waste of domain storage space when creating a new domain, realizes parallel expansion of storage space, and is beneficial to data storage in the alliance blockchain and data processing based on the blockchain.
本发明第二实施例公开了一种交易账户的注册方法,参见图2,图2为本发明第二实施例公开的一种交易账户的注册方法流程图。The second embodiment of the present invention discloses a method for registering a transaction account. Referring to FIG. 2 , FIG. 2 is a flowchart of a method for registering a transaction account disclosed in the second embodiment of the present invention.
在第二实施例中,若创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域,则交易账户的注册方法包括:In the second embodiment, if a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain is created, the registration method of the transaction account includes:
S201、接收新的交易账户的注册请求;S201. Receive a registration request for a new trading account;
S202、根据注册请求注册新的交易账户,并将新的交易账户分配至新域;S202, registering a new trading account according to the registration request, and assigning the new trading account to a new domain;
S203、确定新的交易账户对应的路由信息;S203, determining routing information corresponding to the new transaction account;
S204、将新的交易账户对应的路由信息存储至预设的路由配置服务。S204. Store the routing information corresponding to the new transaction account in a preset routing configuration service.
其中,新的交易账户对应的路由信息用于记录新的交易账户被分配的域,以及新的交易账户被分配的域直接所属的联盟区块链,例如:若交易账户A注册的域为域A,且域A属于联盟区块链A,那么交易账户对应的路由信息即为:交易账户A-域A-联盟区块链A。交易账户对应的路由信息的存储方式可根据实际需要灵活调整。The routing information corresponding to the new trading account is used to record the domain to which the new trading account is allocated, and the alliance blockchain to which the domain to which the new trading account is allocated directly belongs. For example, if the domain registered by trading account A is a domain A, and domain A belongs to consortium blockchain A, then the routing information corresponding to the transaction account is: transaction account A-domain A-consortium blockchain A. The storage method of the routing information corresponding to the trading account can be flexibly adjusted according to actual needs.
需要说明的是,在交易账户注册于域的过程中,对交易账户进行了审核认证,这样可以提高联盟区块链的安全性和可控性。It should be noted that in the process of registering the transaction account in the domain, the transaction account is reviewed and certified, which can improve the security and controllability of the alliance blockchain.
具体的,当注册新的交易账户时,用户可以基于人机交互页面输入待注册的交易账户地址,该交易账户注册在哪个联盟区块链上,哪个域上。当然还可以输入其他信息,以完成交易账户的注册。注册新交易账户所需的其他信息可以参考现有技术,故本实施例对此不再一一说明。Specifically, when registering a new trading account, the user can input the address of the trading account to be registered based on the human-computer interaction page, which alliance blockchain and which domain the trading account is registered on. Of course, other information can be entered to complete the registration of the trading account. For other information required for registering a new trading account, reference may be made to the prior art, so this embodiment will not describe them one by one.
在本实施例中,因为创建得到的新域与旧域为并列关系,其也就不会与注册于旧域上的旧交易账户产生关联,旧交易账户的路由信息不会随着联盟区块链中域数量的增加而更改,新域中也不会有冗余数据,更不会发生数据迁移问题。需要说明的是,同一个交易账户一般不会被注册到多个域。In this embodiment, since the created new domain and the old domain are in a parallel relationship, they will not be associated with the old trading account registered on the old domain, and the routing information of the old trading account will not follow the alliance block. If the number of domains in the chain increases and changes, there will be no redundant data in the new domain, and no data migration problem will occur. It should be noted that the same trading account is generally not registered to multiple domains.
在本实施例中,当将新的交易账户对应的路由信息存储至预设的路由配置服务之后,还包括交易账户对应的交易信息的处理过程,请参见图3,图3为本发明第二实施例公开的一种交易信息的处理方法流程图,具体包括:In this embodiment, after the routing information corresponding to the new transaction account is stored in the preset routing configuration service, the processing process of the transaction information corresponding to the transaction account is also included. Please refer to FIG. 3 , which is the second embodiment of the present invention. The flowchart of a method for processing transaction information disclosed in the embodiment specifically includes:
S301、接收新的交易账户对应的交易信息;S301. Receive transaction information corresponding to a new transaction account;
S302、在路由配置服务中查询新的交易账户对应的路由信息;S302, query the routing information corresponding to the new transaction account in the routing configuration service;
S303、根据查询到的新的交易账户对应的路由信息将交易信息发送至新域,以便新域中的节点对新的交易账户对应的路由信息和交易信息进行校验。S303. Send the transaction information to the new domain according to the queried routing information corresponding to the new transaction account, so that the nodes in the new domain can verify the routing information and transaction information corresponding to the new transaction account.
需要说明的是,在路由配置服务中查询新的交易账户对应的路由信息之前,还包括:判断本地的共享内存中是否存在新的交易账户对应的路由信息;若否,则执行在路由配置服务中查询新的交易账户对应的路由信息的步骤。It should be noted that, before querying the routing information corresponding to the new trading account in the routing configuration service, it also includes: judging whether there is routing information corresponding to the new trading account in the local shared memory; if not, executing the routing configuration service The step of querying the routing information corresponding to the new trading account.
具体的,根据查询到的新的交易账户对应的路由信息将交易信息发送至新域,以便新域中的节点对新的交易账户对应的路由信息和交易信息进行校验,包括:根据路由信息将交易信息发送至域中的目标节点,以便目标节点对路由信息和交易信息校验通过后,转发交易信息至域中的其他节点;当其他节点中的提议者节点在验证交易信息合法后,将路由信息和交易信息打包成区块,并广播该区块至其他节点中的验证者节点;当超过预设阈值的验证者节点对区块校验通过并达成共识后,将区块写入域的区块链存储系统。具体的校验过程可以参考现有技术,故本实施例在此不再赘述。Specifically, the transaction information is sent to the new domain according to the queried routing information corresponding to the new transaction account, so that the nodes in the new domain can verify the routing information and transaction information corresponding to the new transaction account, including: according to the routing information Send the transaction information to the target node in the domain, so that the target node can forward the transaction information to other nodes in the domain after verifying the routing information and transaction information. Pack the routing information and transaction information into blocks, and broadcast the block to the validator nodes in other nodes; when the validator nodes exceeding the preset threshold pass the block verification and reach a consensus, the block is written into Domain's blockchain storage system. For the specific verification process, reference may be made to the prior art, and thus the details are not described herein again in this embodiment.
其中,目标节点对路由信息和交易信息校验,包括:目标节点对比接收到的交易账户对应的路由信息,和路由配置服务中存储的交易账户对应的路由信息是否一致;若一致,则校验交易信息是否合法;若交易信息合法,则将路由信息和交易信息写入联盟区块链中新创建的区块。各个节点首先校验路由信息的正确性,进而再校验交易信息的合法性,这样不会因为节点路由信息不一致而导致信息区块落盘失败。The verification of the routing information and the transaction information by the target node includes: the target node compares the routing information corresponding to the received transaction account with the routing information corresponding to the transaction account stored in the routing configuration service; Whether the transaction information is legal; if the transaction information is legal, the routing information and transaction information will be written into the newly created block in the alliance blockchain. Each node first verifies the correctness of the routing information, and then verifies the legality of the transaction information, so that the information block will not fail to be placed on the disk due to inconsistent routing information of the nodes.
具体的,各个节点可能由于网络或者其他原因对于某个交易账户对应的路由信息存在不同的视角,因此各节点对路由信息做共识,达成一致,说明这些节点查询到的路由信息和当前交易信息的路由信息一致。Specifically, each node may have different perspectives on the routing information corresponding to a certain transaction account due to network or other reasons. Therefore, each node agrees on the routing information and reaches an agreement, indicating the routing information queried by these nodes and the current transaction information. The routing information is consistent.
需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that, other implementation steps in this embodiment are the same as or similar to the above-mentioned embodiments, and thus are not described again in this embodiment.
由上可见,在创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域后,本实施例将新的交易账户注册于新域上,并记录了交易账户对应的路由信息;当需要处理该交易账户的交易信息时,可以根据交易账户对应的路由信息确定处理当前交易信息的域,从而利用该域完成交易信息的处理。其中,创建新域实现了联盟区块链存储空间成倍增长,因此相应也提高了交易信息的处理效率。As can be seen from the above, after creating a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain, this embodiment registers the new transaction account on the new domain, and records the corresponding transaction account. Routing information; when the transaction information of the transaction account needs to be processed, the domain for processing the current transaction information can be determined according to the routing information corresponding to the transaction account, so as to use this domain to complete the processing of the transaction information. Among them, the creation of a new domain realizes the exponential increase in the storage space of the consortium blockchain, thus correspondingly improving the processing efficiency of transaction information.
本发明第三实施例公开了一种智能合约的部署方法,参见图4,图4为本发明第三实施例公开的一种智能合约的部署方法流程图。A third embodiment of the present invention discloses a method for deploying a smart contract. Referring to FIG. 4 , FIG. 4 is a flowchart of a method for deploying a smart contract disclosed by the third embodiment of the present invention.
在第三实施例中,若创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域,则智能合约的部署方法包括:In the third embodiment, if a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain is created, the deployment method of the smart contract includes:
S401、接收部署智能合约至新域的部署请求;S401. Receive a deployment request for deploying the smart contract to the new domain;
S402、获取智能合约,并根据部署请求部署智能合约至新域。S402. Obtain the smart contract, and deploy the smart contract to the new domain according to the deployment request.
S403、确定智能合约对应的路由信息;S403. Determine routing information corresponding to the smart contract;
S404、将智能合约对应的路由信息存储至路由配置服务。S404. Store the routing information corresponding to the smart contract in the routing configuration service.
其中,智能合约对应的路由信息用于记录智能合约部署的域,以及智能合约部署的域直接所属的联盟区块链。例如:若智能合约B部署的域为域B,且域B属于联盟区块链B,那么智能合约对应的路由信息即为:智能合约B-域B-联盟区块链B。智能合约对应的路由信息的存储方式可根据实际需要灵活调整。Among them, the routing information corresponding to the smart contract is used to record the domain where the smart contract is deployed, and the consortium blockchain to which the domain where the smart contract is deployed directly belongs. For example: if the domain deployed by smart contract B is domain B, and domain B belongs to consortium blockchain B, then the routing information corresponding to the smart contract is: smart contract B-domain B-consortium blockchain B. The storage method of routing information corresponding to smart contracts can be flexibly adjusted according to actual needs.
在本实施例中,将智能合约对应的路由信息存储至路由配置服务之后,还包括智能合约的调用过程,请参见图5,图5为本发明第三实施例公开的一种智能合约的调用方法流程图,具体包括:In this embodiment, after the routing information corresponding to the smart contract is stored in the routing configuration service, the invocation process of the smart contract is also included. Please refer to FIG. 5 , which is an invocation of a smart contract disclosed in the third embodiment of the present invention. The flow chart of the method includes:
S501、接收智能合约的调用请求;S501. Receive an invocation request of the smart contract;
S502、判断本地的共享内存中是否存在智能合约对应的路由信息;若是,则执行S503;若否,则执行S504;S502, determine whether there is routing information corresponding to the smart contract in the local shared memory; if so, execute S503; if not, execute S504;
S503、在本地的共享内存中查询智能合约对应的路由信息,根据查询到的智能合约对应的路由信息从新域中调用智能合约;S503, query the routing information corresponding to the smart contract in the local shared memory, and call the smart contract from the new domain according to the routing information corresponding to the inquired smart contract;
S504、在路由配置服务中查询智能合约对应的路由信息,并根据查询到的智能合约对应的路由信息从新域中调用智能合约。S504 , query the routing information corresponding to the smart contract in the routing configuration service, and call the smart contract from the new domain according to the routing information corresponding to the queried smart contract.
其中,还包括:判断智能合约的调用请求的数量是否超过预设的阈值;若是,则执行接收新域的创建请求;提取创建请求携带的创建信息;根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,将智能合约部署至创建得到的域。Among them, it also includes: judging whether the number of invocation requests of the smart contract exceeds a preset threshold; if so, executing and receiving a creation request for a new domain; extracting the creation information carried in the creation request; creating a new domain in the alliance blockchain according to the creation information domain, and after initializing the initial validator node of the new domain, deploy the smart contract to the created domain.
例如:某联盟区块链中原有一个域,其中部署了智能合约contracta。若同时有10个用户调用此智能合约,那么此域被访问的频率就比较高,而当并发量比较高时,可能造成系统宕机等异常情况。针对此情况,可以按照本发明提供的方法在当前联盟区块链中新创建几个域,并将智能合约contracta部署至新创建的这几个域中,那么就可以实现智能合约调用分流。这样不仅提高了合约执行的并发性,还具有易扩展的优点,同时存储空间还会成倍增长。创建10个新的域存储空间就增长大约10倍,域的数量越多,意味着可以并发同一个合约的机器就越多,性能提升就越快。因此创建新域部署智能合约,可以实现智能合约调用分流,提升系统的吞吐量。For example: there is a domain in a consortium blockchain, in which the smart contract contracta is deployed. If 10 users call this smart contract at the same time, the frequency of this domain being accessed is relatively high, and when the concurrency is relatively high, it may cause abnormal situations such as system downtime. In view of this situation, several domains can be newly created in the current consortium blockchain according to the method provided by the present invention, and the smart contract contracta can be deployed in these newly created domains, then the smart contract invocation can be separated. This not only improves the concurrency of contract execution, but also has the advantage of easy expansion, and the storage space will increase exponentially. Creating 10 new domains will increase the storage space by about 10 times. The more domains there are, the more machines that can run the same contract concurrently, and the faster the performance improvement. Therefore, creating a new domain to deploy smart contracts can realize the offloading of smart contract calls and improve the throughput of the system.
需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that, other implementation steps in this embodiment are the same as or similar to the above-mentioned embodiments, and thus are not described again in this embodiment.
由上可见,在创建得到和联盟区块链具有直接所属关系的、未存储旧域基础数据的新域后,本实施例将智能合约部署于新域上,并记录了智能合约对应的路由信息;当需要调用该智能合约时,可以根据智能合约对应的路由信息确定该从哪些域中调用智能合约,从而利用该域完成了智能合约的调用。其中,创建新域实现了联盟区块链存储空间成倍增长,因此相应也提高了智能合约的调用效率。It can be seen from the above that after creating a new domain that has a direct relationship with the alliance blockchain and does not store the basic data of the old domain, this embodiment deploys the smart contract on the new domain, and records the routing information corresponding to the smart contract ; When the smart contract needs to be invoked, it can be determined from which domains the smart contract should be invoked according to the routing information corresponding to the smart contract, so that the invocation of the smart contract is completed by using this domain. Among them, the creation of a new domain realizes the exponential increase in the storage space of the consortium blockchain, thus improving the calling efficiency of smart contracts accordingly.
本发明第四实施例公开了一种基于区块链的数据处理装置,参见图6,图6为本发明第四实施例公开的基于区块链的数据处理装置示意图。A fourth embodiment of the present invention discloses a blockchain-based data processing apparatus. Referring to FIG. 6 , FIG. 6 is a schematic diagram of the blockchain-based data processing apparatus disclosed in the fourth embodiment of the present invention.
在第四实施例中,该装置包括:In a fourth embodiment, the apparatus includes:
接收模块601,用于接收新域的创建请求;A receiving module 601, configured to receive a creation request of a new domain;
提取模块602,用于提取创建请求携带的创建信息,创建信息至少包括:新域的标识信息、新域直接所属的联盟区块链的标识信息、以及新域的初始验证人节点的信息;The extraction module 602 is configured to extract the creation information carried in the creation request, and the creation information at least includes: identification information of the new domain, identification information of the consortium blockchain to which the new domain directly belongs, and information of the initial validator node of the new domain;
处理模块603,用于根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,以利用新域处理接收到的数据。The processing module 603 is configured to create a new domain in the consortium blockchain according to the creation information, and after initializing the initial validator node of the new domain, to process the received data by using the new domain.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
注册请求接收模块,用于接收新的交易账户的注册请求;A registration request receiving module is used to receive a registration request for a new trading account;
注册模块,用于根据注册请求注册新的交易账户,并将新的交易账户分配至新域。The registration module is used to register a new trading account according to the registration request, and assign the new trading account to a new domain.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
第一确定模块,用于确定新的交易账户对应的路由信息;新的交易账户对应的路由信息用于记录新的交易账户被分配的域,以及新的交易账户被分配的域直接所属的联盟区块链;The first determination module is used to determine the routing information corresponding to the new trading account; the routing information corresponding to the new trading account is used to record the domain to which the new trading account is allocated, and the alliance to which the domain to which the new trading account is allocated directly belongs blockchain;
第一存储模块,用于将新的交易账户对应的路由信息存储至预设的路由配置服务。The first storage module is used for storing the routing information corresponding to the new transaction account in the preset routing configuration service.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
交易信息接收模块,用于接收新的交易账户对应的交易信息;The transaction information receiving module is used to receive the transaction information corresponding to the new transaction account;
查询模块,用于在路由配置服务中查询新的交易账户对应的路由信息;The query module is used to query the routing information corresponding to the new trading account in the routing configuration service;
发送模块,用于根据查询到的新的交易账户对应的路由信息将交易信息发送至新域,以便新域中的节点对新的交易账户对应的路由信息和交易信息进行校验。The sending module is configured to send the transaction information to the new domain according to the queried routing information corresponding to the new transaction account, so that the nodes in the new domain can verify the routing information and transaction information corresponding to the new transaction account.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
第一判断模块,用于判断本地的共享内存中是否存在新的交易账户对应的路由信息;The first judgment module is used for judging whether there is routing information corresponding to the new transaction account in the local shared memory;
执行模块,用于当本地的共享内存中不存在新的交易账户对应的路由信息,则执行查询模块中的步骤。The execution module is configured to execute the steps in the query module when the routing information corresponding to the new transaction account does not exist in the local shared memory.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
部署请求接收模块,用于接收部署智能合约至新域的部署请求;The deployment request receiving module is used to receive the deployment request for deploying the smart contract to the new domain;
部署模块,用于获取智能合约,并根据部署请求部署智能合约至新域。The deployment module is used to obtain the smart contract and deploy the smart contract to the new domain according to the deployment request.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
第二确定模块,用于确定智能合约对应的路由信息;智能合约对应的路由信息用于记录智能合约部署的域,以及智能合约部署的域直接所属的联盟区块链;The second determination module is used to determine the routing information corresponding to the smart contract; the routing information corresponding to the smart contract is used to record the domain where the smart contract is deployed and the consortium blockchain to which the domain deployed by the smart contract directly belongs;
第二存储模块,用于将智能合约对应的路由信息存储至路由配置服务。The second storage module is used to store the routing information corresponding to the smart contract in the routing configuration service.
在一种具体实施方式中,基于区块链的数据处理装置还包括:In a specific embodiment, the blockchain-based data processing device further includes:
调用请求接收模块,用于接收智能合约的调用请求;The call request receiving module is used to receive the call request of the smart contract;
第二判断模块,用于判断本地的共享内存中是否存在智能合约对应的路由信息;The second judgment module is used to judge whether there is routing information corresponding to the smart contract in the local shared memory;
调用模块,用于当本地的共享内存中不存在智能合约对应的路由信息,则在路由配置服务中查询智能合约对应的路由信息,并根据查询到的智能合约对应的路由信息从新域中调用智能合约。The calling module is used to query the routing information corresponding to the smart contract in the routing configuration service when the routing information corresponding to the smart contract does not exist in the local shared memory, and call the smart contract from the new domain according to the routing information corresponding to the queried smart contract. contract.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
可见,本实施例提供了一种基于区块链的数据处理装置,包括:接收模块、提取模块以及处理模块。首先由接收模块接收新域的创建请求;然后提取模块提取创建请求携带的创建信息;最后处理模块根据创建信息在联盟区块链中创建新域,并对新域的初始验证人节点进行初始化后,以利用新域处理接收到的数据。如此各个模块之间分工合作,各司其职,从而创建得到和联盟区块链具有直接所属关系的域,实现了存储空间的平行扩展,有利于联盟区块链中的数据存储,也提高了数据处理效率。It can be seen that this embodiment provides a blockchain-based data processing device, including: a receiving module, an extracting module, and a processing module. First, the receiving module receives the creation request of the new domain; then the extraction module extracts the creation information carried by the creation request; finally, the processing module creates a new domain in the alliance blockchain according to the creation information, and initializes the initial validator node of the new domain. , to process the received data with the new domain. In this way, each module divides labor and cooperates and performs its own duties, thereby creating a domain that has a direct relationship with the alliance blockchain, realizing the parallel expansion of storage space, which is beneficial to the data storage in the alliance blockchain, and also improves the Data processing efficiency.
本发明第五实施例公开了一种基于区块链的数据处理设备,参见图7,图7为本发明第五实施例公开的基于区块链的数据处理设备示意图。本实施例描述的一种基于区块链的数据处理设备与上文描述的一种基于区块链的数据处理方法及装置可以相互参照。A fifth embodiment of the present invention discloses a blockchain-based data processing device. Referring to FIG. 7 , FIG. 7 is a schematic diagram of the blockchain-based data processing device disclosed in the fifth embodiment of the present invention. The blockchain-based data processing device described in this embodiment and the blockchain-based data processing method and apparatus described above can be referred to each other.
在第五实施例中,该设备包括存储器701和处理器702,其中:所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器用于执行所述计算机程序,以实现前述任意实施例公开的方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。In the fifth embodiment, the device includes a memory 701 and a processor 702, wherein: the memory stores a computer program that can run on the processor, and the processor is configured to execute the computer program to achieve A method as disclosed in any of the preceding embodiments. For the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
本发明第六实施例公开了一种联盟区块链系统,参见图8,图8为本发明第六实施例公开的联盟区块链系统示意图。The sixth embodiment of the present invention discloses a consortium blockchain system. Referring to FIG. 8 , FIG. 8 is a schematic diagram of the consortium blockchain system disclosed in the sixth embodiment of the present invention.
在第六实施例中,该系统包括:多个联盟区块链1,2,……,N,和前述第五实施例公开的基于区块链的数据处理设备;其中,每个联盟区块链中创建有多个域。In the sixth embodiment, the system includes: a plurality of consortium blockchains 1, 2, . . . , N, and the blockchain-based data processing device disclosed in the fifth embodiment; wherein, each consortium block Multiple domains are created in the chain.
具体的,可在该系统中设置联盟管理中心,以用于管理基于区块链的数据处理设备,还可以管理联盟区块链中的域与联盟区块链的所属关系。该系统中的每个联盟区块链中的域可以采用上述实施例公开的方法进行创建。Specifically, an alliance management center can be set up in the system to manage the data processing equipment based on the blockchain, and can also manage the affiliation between the domains in the alliance blockchain and the alliance blockchain. The domains in each consortium blockchain in the system can be created using the methods disclosed in the above embodiments.
具体的,上述提及的路由配置服务可设置于联盟管理中心,该路由配置服务中存储交易账户对应的路由信息和智能合约对应的路由信息。Specifically, the above-mentioned routing configuration service can be set in the alliance management center, and the routing configuration service stores routing information corresponding to the transaction account and routing information corresponding to the smart contract.
需要说明的是,前述公开的方法均可以本系统为执行主体,以完成相应的处理过程。It should be noted that, for the methods disclosed above, the system can be used as the execution body to complete the corresponding processing process.
由上可见,本实施例提供的联盟区块链系统能够管理多个联盟区块链,从而实现了多联盟的综合管理,提高了管理效率。It can be seen from the above that the consortium blockchain system provided in this embodiment can manage multiple consortium blockchains, thereby realizing comprehensive management of multiple consortia and improving management efficiency.
本发明第七实施例公开了一种可读存储介质,本实施例描述的一种可读存储介质与上文描述的一种基于区块链的数据处理方法、装置及设备可以相互参照。The seventh embodiment of the present invention discloses a readable storage medium. The readable storage medium described in this embodiment and the blockchain-based data processing method, apparatus, and device described above can be referred to each other.
一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述实施例公开的方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。A readable storage medium for storing a computer program, wherein the computer program implements the methods disclosed in the foregoing embodiments when executed by a processor. For the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprising", "comprising" or any other variation thereof herein are intended to encompass a non-exclusive inclusion such that a process, device, article or method comprising a list of elements includes not only those elements, but also includes no explicit Other elements listed, or those inherent to such a process, apparatus, article, or method are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的可读存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other form of readable storage medium that is well known.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910469732.8ACN110162274B (en) | 2019-05-31 | 2019-05-31 | Data processing method, device and equipment based on block chain |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910469732.8ACN110162274B (en) | 2019-05-31 | 2019-05-31 | Data processing method, device and equipment based on block chain |
| Publication Number | Publication Date |
|---|---|
| CN110162274Atrue CN110162274A (en) | 2019-08-23 |
| CN110162274B CN110162274B (en) | 2022-09-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910469732.8AActiveCN110162274B (en) | 2019-05-31 | 2019-05-31 | Data processing method, device and equipment based on block chain |
| Country | Link |
|---|---|
| CN (1) | CN110162274B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111422078A (en)* | 2020-03-09 | 2020-07-17 | 上海能链众合科技有限公司 | Electric vehicle charging data allocation monitoring method based on block chain |
| CN111683120A (en)* | 2020-05-22 | 2020-09-18 | 哈尔滨工程大学 | An alliance node storage method that supports dynamic changes of verification nodes |
| CN114553884A (en)* | 2022-01-24 | 2022-05-27 | 中国科学院计算技术研究所 | Block chain cross-chain interaction method and system based on-demand domain building |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107018125A (en)* | 2017-02-17 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of block catenary system, date storage method and device |
| CN107464148A (en)* | 2017-08-23 | 2017-12-12 | 众安信息技术服务有限公司 | A kind of intelligent contract upgrade method and system based on alliance's chain |
| CN108537666A (en)* | 2018-04-09 | 2018-09-14 | 深圳市云蚂蚁科技有限责任公司 | A kind of block catenary system and block chain network method of commerce |
| CN108737370A (en)* | 2018-04-05 | 2018-11-02 | 西安电子科技大学 | A kind of cross-domain Verification System of Internet of Things based on block chain and method |
| CN109064309A (en)* | 2018-07-02 | 2018-12-21 | 浙江大学 | A kind of small micro- loan transaction system and method for commerce based on alliance's chain |
| CN109447643A (en)* | 2018-10-31 | 2019-03-08 | 中国银联股份有限公司 | A kind of data-sharing systems and data sharing method based on block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107018125A (en)* | 2017-02-17 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of block catenary system, date storage method and device |
| CN107464148A (en)* | 2017-08-23 | 2017-12-12 | 众安信息技术服务有限公司 | A kind of intelligent contract upgrade method and system based on alliance's chain |
| CN108737370A (en)* | 2018-04-05 | 2018-11-02 | 西安电子科技大学 | A kind of cross-domain Verification System of Internet of Things based on block chain and method |
| CN108537666A (en)* | 2018-04-09 | 2018-09-14 | 深圳市云蚂蚁科技有限责任公司 | A kind of block catenary system and block chain network method of commerce |
| CN109064309A (en)* | 2018-07-02 | 2018-12-21 | 浙江大学 | A kind of small micro- loan transaction system and method for commerce based on alliance's chain |
| CN109447643A (en)* | 2018-10-31 | 2019-03-08 | 中国银联股份有限公司 | A kind of data-sharing systems and data sharing method based on block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111422078A (en)* | 2020-03-09 | 2020-07-17 | 上海能链众合科技有限公司 | Electric vehicle charging data allocation monitoring method based on block chain |
| CN111422078B (en)* | 2020-03-09 | 2021-11-16 | 上海能链众合科技有限公司 | Electric vehicle charging data allocation monitoring method based on block chain |
| CN111683120A (en)* | 2020-05-22 | 2020-09-18 | 哈尔滨工程大学 | An alliance node storage method that supports dynamic changes of verification nodes |
| CN114553884A (en)* | 2022-01-24 | 2022-05-27 | 中国科学院计算技术研究所 | Block chain cross-chain interaction method and system based on-demand domain building |
| CN114553884B (en)* | 2022-01-24 | 2023-05-30 | 中国科学院计算技术研究所 | Block chain cross-chain interaction method and system based on-demand domain establishment |
| Publication number | Publication date |
|---|---|
| CN110162274B (en) | 2022-09-02 |
| Publication | Publication Date | Title |
|---|---|---|
| EP3591510B1 (en) | Method and device for writing service data in block chain system | |
| CN107147501B (en) | Time stamp processing method and device | |
| WO2019042101A1 (en) | Cross-chain trading method and apparatus | |
| CN110503558A (en) | A processing method and device based on blockchain system | |
| US20150254329A1 (en) | Entity resolution from documents | |
| CN110162274B (en) | Data processing method, device and equipment based on block chain | |
| CN111563098A (en) | Structured and unstructured data query method, device, storage medium and device | |
| WO2022048357A1 (en) | Transaction endorsement method and apparatus, and storage medium | |
| CN111506589A (en) | Blockchain data service system, access method and storage medium based on alliance chain | |
| CN109669955A (en) | A kind of digital asset inquiry system and method based on block chain | |
| CN107070645A (en) | Compare the method and system of the data of tables of data | |
| WO2022206430A1 (en) | Method and apparatus for processing bill data by using off-chain trusted device | |
| CN114884962A (en) | Load balancing method and device and electronic equipment | |
| JP2020204898A (en) | Method, system, and program for managing operation of distributed ledger system | |
| CN117194324A (en) | A snapshot-based business continuation method, device, media and equipment | |
| WO2023040453A1 (en) | Transaction information processing method and apparatus | |
| CN110879900B (en) | A data processing method and device based on blockchain system | |
| CN112181599B (en) | Model training method, device and storage medium | |
| CN114116637A (en) | Data sharing method, device, equipment and storage medium | |
| CN108520401A (en) | User list management method, device, platform and storage medium | |
| CN114070847A (en) | Current limiting method, device, equipment and storage medium of server | |
| CN111738855B (en) | A smart contract management method and device | |
| CN112001800B (en) | Method and device for processing business in block chain system | |
| CN112017052A (en) | Method and apparatus for deploying and invoking contracts in blockchain | |
| CN114157614A (en) | Resource management method, device, equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | Effective date of registration:20210914 Address after:518000 21 / f-23 / F, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, South Keji Road, high tech community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant after:Xunlei Networking Technologies, Ltd. Applicant after:SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd. Address before:518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant before:SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd. | |
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | Effective date of registration:20240625 Address after:518000, 2101 to 2107, Xunlei Building, No. 3709 Baishi Road, Gaoxin District, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province Patentee after:Xunlei Networking Technologies, Ltd. Country or region after:China Address before:518000 21 / f-23 / F, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, South Keji Road, high tech community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Patentee before:Xunlei Networking Technologies, Ltd. Country or region before:China Patentee before:SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd. | |
| TR01 | Transfer of patent right |