CN114499824A - A node system of blockchain and its cooperation method - Google Patents
A node system of blockchain and its cooperation method Download PDFInfo
- Publication number
- CN114499824A CN114499824A CN202210009693.5A CN202210009693A CN114499824A CN 114499824 A CN114499824 A CN 114499824A CN 202210009693 A CN202210009693 A CN 202210009693A CN 114499824 A CN114499824 A CN 114499824A
- Authority
- CN
- China
- Prior art keywords
- chain
- city
- cross
- sub
- main chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004891 communication Methods 0.000 claims abstract description 86
- 238000004873 anchoring Methods 0.000 claims description 12
- 230000008520 organization Effects 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 12
- 238000013480 data collection Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims 1
- 238000004806 packaging method and process Methods 0.000 claims 1
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 9
- 239000003999 initiator Substances 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 239000002699 waste material Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
本发明提供了一种区块链的节点系统及其协作方法,涉及区块链领域,该系统包括:部门子链、城市主链和省级主链构成的三级区块链网络,以及数据连接后台;其中,所述省级主链中包含若干城市节点,每一城市节点均通过所述数据连接后台连接有对应的一个所述城市主链,每个所述城市主链均通信连接有若干所述部门子链;所述城市主链与其通信连接的所述部门子链构成对应所述城市节点的城市主子链系统,所述数据连接后台用于为对应的所述城市主子链系统进行公证。本发明基于各个城市的三级区块链网络,同时建立省级联盟链,实现各地市节点共同管理,促进城市数据的联通化。
The invention provides a block chain node system and a cooperation method thereof, and relates to the field of block chain. The system includes: a three-level block chain network composed of a departmental sub-chain, a city main chain and a provincial main chain, and a data Connection backend; wherein, the provincial main chain includes several city nodes, each city node is connected to a corresponding city main chain through the data connection backend, and each city main chain is communicatively connected to a A number of the department sub-chains; the city main chain and the department sub-chains connected to it by communication constitute a city main sub-chain system corresponding to the city node, and the data connection background is used for the corresponding city main sub-chain system. notarization. The invention is based on the three-level blockchain network of each city, and establishes a provincial-level alliance chain at the same time, realizes the joint management of nodes in various cities, and promotes the connectivity of urban data.
Description
技术领域technical field
本发明涉及区块链技术领域,尤其涉及一种区块链的节点系统及其协作方法。The invention relates to the technical field of blockchain, and in particular, to a node system of a blockchain and a cooperation method thereof.
背景技术Background technique
区块链从本质上讲,它是一个共享数据库,存储于其中的数据或信息,具有“不可伪造”“全程留痕”“可以追溯”“公开透明”“集体维护”等特征。基于这些特征,区块链技术奠定了坚实的“信任”基础,创造了可靠的“合作”机制,具有广阔的运用前景。区块链是分布式总账的一种。一条区块链就是一个独立的账本,两条不同的链,就是两个不同的独立的账本,两个账本没有关联,本质上价值没有办法在账本间转移,但是对于具体的某个用户,用户在一条区块链上存储的价值,能够变成另一条链上的价值,这就是价值的流通。Blockchain is essentially a shared database, and the data or information stored in it has the characteristics of "unforgeable", "full traces", "traceable", "open and transparent" and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid "trust" foundation, created a reliable "cooperation" mechanism, and has broad application prospects. A blockchain is a type of distributed ledger. A blockchain is an independent ledger, and two different chains are two different independent ledgers. The two ledgers are not related. In essence, there is no way to transfer the value between the ledgers, but for a specific user, the user The value stored on one blockchain can become the value on another chain, which is the circulation of value.
现阶段区块链技术存在技术标准不统一,技术架构成熟度不够等问题,如政府部门各自单独建设,容易造成系统重复建设、数据无法共享等问题,耗费大量人力物力和时间成本。At this stage, the blockchain technology has problems such as inconsistent technical standards and insufficient maturity of the technical architecture. For example, government departments build independently, which may easily cause problems such as repeated system construction and data sharing, which consumes a lot of manpower, material resources and time costs.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明提供一种区块链的节点系统及其协作方法,用以解决现有技术中问题全部或者之一。In view of this, the present invention provides a block chain node system and a cooperation method thereof to solve all or one of the problems in the prior art.
基于上述目的,本发明提供了一种区块链的节点系统,包括:Based on the above purpose, the present invention provides a blockchain node system, including:
部门子链、城市主链和省级主链构成的三级区块链网络,以及数据连接后台;A three-level blockchain network composed of departmental sub-chains, city main chains and provincial main chains, as well as the data connection backend;
其中,所述省级主链中包含若干城市节点,每一城市节点均通过所述数据连接后台连接有对应的一个所述城市主链,每个所述城市主链均通信连接有若干所述部门子链;Among them, the provincial main chain includes several city nodes, each city node is connected to a corresponding city main chain through the data connection background, and each city main chain is communicatively connected to several department sub-chain;
所述城市主链与其通信连接的所述部门子链构成对应所述城市节点的城市主子链系统,所述数据连接后台用于为对应的所述城市主子链系统进行公证。The city main chain and the department sub-chains communicatively connected to it constitute a city main sub-chain system corresponding to the city node, and the data connection background is used to notarize the corresponding city main sub-chain system.
可选的,所述部门子链有若干业务部门组成,所述部门子链包括:Optionally, the department sub-chain is composed of several business departments, and the department sub-chain includes:
链上资源管理模块,用于对所述部门子链相关联的组织、节点和智能合约进行管理;The on-chain resource management module is used to manage the organizations, nodes and smart contracts associated with the sub-chain of the department;
业务功能模块,用于对所述部门子链的数据进行处理;The business function module is used to process the data of the department sub-chain;
跨链请求模块,用于当产生跨链需求时,发起跨链请求。The cross-chain request module is used to initiate cross-chain requests when cross-chain requirements are generated.
可选的,所述业务功能模块具体包括:Optionally, the business function module specifically includes:
上链单元,用于进行数据上链处理;On-chain unit, used for data on-chain processing;
调用单元,用于调用所述部门子链中的智能合约;a calling unit for calling the smart contract in the sub-chain of the department;
处理单元,用于进行所述智能合约的处理。The processing unit is used for processing the smart contract.
可选的,所述城市主链包括:Optionally, the city main chain includes:
组织管理模块,用于对所述城市主链对应的组织加入以及组织信息的管理;The organization management module is used to join the organization corresponding to the city main chain and manage the organization information;
子链管理模块,用于对所述城市主链通信连接的各个所述部门子链进行管理;a sub-chain management module, used to manage each of the department sub-chains connected to the main chain of the city;
本链管理模块,用于对所述城市主链相关联的组织、节点和智能合约进行管理;This chain management module is used to manage the organizations, nodes and smart contracts associated with the city main chain;
第一通讯模块,用于协调所述城市主链通信连接的各个所述部门子链间跨链通讯,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管。The first communication module is used for coordinating the cross-chain communication between the sub-chains of each department of the city main chain communication connection, providing a channel for cross-chain communication, and coordinating and supervising the cross-chain communication.
可选的,所述省级主链包括:Optionally, the provincial main chain includes:
城市管理模块,用于管理加入的城市接地那,并获取各个所述城市节点对应的城市主子链系统的整体运行情况;The city management module is used to manage the added cities and obtain the overall operation of the city main chain system corresponding to each city node;
第二通讯模块,用于当跨链请求为跨城市跨链请求时,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管。The second communication module is used to provide a channel for cross-chain communication when the cross-chain request is a cross-city cross-chain request, and to coordinate and supervise the cross-chain communication.
可选的,所述数据连接后台包括:Optionally, the data connection background includes:
数据收集模块,用于获取所述城市主链上的数据,并提交至所述省级主链;The data collection module is used to obtain the data on the city main chain and submit it to the provincial main chain;
第三通讯模块,用于当跨链请求为跨城市跨链请求时,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;The third communication module is used to provide a channel for cross-chain communication when the cross-chain request is a cross-city cross-chain request, and to coordinate and supervise cross-chain communication;
后台管理模块,用于提供省级主链的区块链即服务管理后台。The background management module is used to provide the blockchain-as-a-service management background of the provincial main chain.
可选的,所述部门子链还包括:Optionally, the department sub-chain further includes:
第一锚定模块,用于将所述部门子链的链上数据打包成merkle树,并提交至对应的所述城市主链;The first anchoring module is used to package the on-chain data of the department sub-chain into a merkle tree and submit it to the corresponding city main chain;
所述城市主链还包括:The city main chain also includes:
第二锚定模块,用于获取所述部门子链提交的所述merkle树,并提交至所述数据连接后台。The second anchoring module is used to obtain the merkle tree submitted by the department sub-chain, and submit it to the data connection background.
可选的,所述数据连接后台还包括:Optionally, the data connection background further includes:
第三锚定模块,用于获取所述城市主链提交的所述merkle树,并提交至所述省级主链。The third anchoring module is used to obtain the merkle tree submitted by the city main chain and submit it to the provincial main chain.
可选的,所述省级主链还包括:Optionally, the provincial main chain further includes:
第四锚定模块,用于获取所述数据连接后台提交的所述merkle树,并基于所述merkle树进行信用评定。The fourth anchoring module is used to obtain the merkle tree submitted by the data connection background, and perform credit evaluation based on the merkle tree.
进一步的,本发明还提供一种区块链的节点系统的协作方法,包括以下步骤:Further, the present invention also provides a collaboration method for a node system of a blockchain, comprising the following steps:
所述部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;The departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
基于所述跨链请求,所述城市主链协调所述城市主链通信连接的各个所述部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;Based on the cross-chain request, the city main chain coordinates cross-chain communication between each of the department sub-chains connected to the city main chain communication, provides channels for cross-chain communication, and coordinates and supervises cross-chain communication. ;
当所述跨链请求为跨城市跨链请求时,所述数据连接后台和所述省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至所述省级主链。When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide a channel for cross-chain communication, as well as coordination and supervision during cross-chain communication, linking the chain of the city main chain The above data is submitted to the provincial main chain.
进一步的,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述区块链的节点系统的协作方法的步骤。Further, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the program, any one of the above-mentioned programs is implemented. Steps of the collaborative method of the node system of the blockchain.
进一步的,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述区块链的节点系统的协作方法的步骤。Further, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the cooperation method of the node system of any of the above-mentioned blockchains A step of.
进一步的,本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述区块链的节点系统的协作方法的步骤。Further, the present invention also provides a computer program product, including a computer program, when the computer program is executed by a processor, the steps of the cooperation method of the node system of any of the above-mentioned blockchains are implemented.
从上面所述可以看出,本发明提供的区块链的节点系统及其协作方法,基于各个城市的三级区块链网络,同时建立省级联盟链,实现各地市节点共同管理,促进城市数据的联通化,实现各级机关部门、各城市、各企业以及企业各环节之间的协作,解决省市之间、地方之间、企业与政府之间以及部门之间的数据共享不足的问题,降低社会资源浪费,满足各应用子链或应用子链间的跨链业务需求。It can be seen from the above that the blockchain node system and its cooperation method provided by the present invention are based on the three-level blockchain network of each city, and at the same time establish a provincial-level alliance chain, realize the joint management of nodes in various cities, and promote the city The interconnection of data realizes the collaboration between government departments at all levels, cities, enterprises and various links of enterprises, and solves the problem of insufficient data sharing between provinces and cities, between localities, between enterprises and governments, and between departments , reduce the waste of social resources, and meet the cross-chain business needs of each application sub-chain or between application sub-chains.
附图说明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 These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明的区块链的节点系统的结构示意图;1 is a schematic structural diagram of a node system of the blockchain of the present invention;
图2为本发明的区块链的节点系统中部门子链具体的结构示意图;FIG. 2 is a schematic structural diagram of a sector sub-chain in the node system of the blockchain of the present invention;
图3为本发明的区块链的节点系统中城市主链具体的结构示意图;3 is a schematic structural diagram of a city main chain in the node system of the blockchain of the present invention;
图4为本发明的区块链的节点系统中省级主链具体的结构示意图;Fig. 4 is the specific structural schematic diagram of the provincial main chain in the node system of the blockchain of the present invention;
图5为本发明的区块链的节点系统中数据连接后台具体的结构示意图;5 is a schematic structural diagram of a data connection background in the node system of the blockchain of the present invention;
图6为本发明的区块链的节点系统应用在市内跨链请求时的示意图;6 is a schematic diagram of the application of the node system of the blockchain of the present invention to a cross-chain request in the city;
图7为本发明的区块链的节点系统应用在跨城市跨链请求时的示意图;7 is a schematic diagram of the application of the node system of the blockchain of the present invention to a cross-city cross-chain request;
图8为本发明的区块链的节点系统的协作方法的流程示意图;FIG. 8 is a schematic flowchart of the cooperation method of the node system of the blockchain of the present invention;
图9是本发明提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by the present invention.
具体实施方式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 specific embodiments and accompanying drawings.
需要说明的是,除非另外定义,本发明实施例使用的技术术语或者科学术语应当为本公开所属领域内具有一般技能的人士所理解的通常意义。本公开中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of the present invention shall have the usual meanings understood by those with ordinary skill in the art to which the present disclosure belongs. As used in this disclosure, "first," "second," and similar terms do not denote any order, quantity, or importance, but are merely used to distinguish the various components. "Comprises" or "comprising" and similar words mean that the elements or things appearing before the word encompass the elements or things recited after the word and their equivalents, but do not exclude other elements or things. Words like "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "Down", "Left", "Right", etc. are only used to represent the relative positional relationship, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
作为本发明的一个优选实施例,本发明提供了一种区块链的节点系统,包括:As a preferred embodiment of the present invention, the present invention provides a blockchain node system, including:
部门子链、城市主链和省级主链构成的三级区块链网络,以及数据连接后台;A three-level blockchain network composed of departmental sub-chains, city main chains and provincial main chains, as well as the data connection backend;
其中,所述省级主链中包含若干城市节点,每一城市节点均通过所述数据连接后台连接有对应的一个所述城市主链,每个所述城市主链均通信连接有若干所述部门子链;Among them, the provincial main chain includes several city nodes, each city node is connected to a corresponding city main chain through the data connection background, and each city main chain is communicatively connected to several department sub-chain;
所述城市主链与其通信连接的所述部门子链构成对应所述城市节点的城市主子链系统,所述数据连接后台用于为对应的所述城市主子链系统进行公证。The city main chain and the department sub-chains communicatively connected to it constitute a city main sub-chain system corresponding to the city node, and the data connection background is used to notarize the corresponding city main sub-chain system.
进一步的,本发明还提供一种区块链的节点系统的协作方法,包括以下步骤:Further, the present invention also provides a collaboration method for a node system of a blockchain, comprising the following steps:
所述部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;The departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
基于所述跨链请求,所述城市主链协调所述城市主链通信连接的各个所述部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;Based on the cross-chain request, the city main chain coordinates cross-chain communication between each of the department sub-chains connected to the city main chain communication, provides channels for cross-chain communication, and coordinates and supervises cross-chain communication. ;
当所述跨链请求为跨城市跨链请求时,所述数据连接后台和所述省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至所述省级主链。When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide a channel for cross-chain communication, as well as coordination and supervision during cross-chain communication, linking the chain of the city main chain The above data is submitted to the provincial main chain.
本发明基于多级的主子链跨链系统及其协作方法,基于各个城市的三级区块链网络,同时建立省级联盟链,实现各地市节点共同管理,促进城市数据的联通化,实现各级机关部门、各城市、各企业以及企业各环节之间的协作,解决省市之间、地方之间、企业与政府之间以及部门之间的数据共享不足的问题,降低社会资源浪费,满足各应用子链或应用子链间的跨链业务需求。The invention is based on a multi-level main-sub-chain cross-chain system and its collaboration method, based on the three-level block chain network of each city, and establishes a provincial-level alliance chain at the same time, realizes the joint management of nodes in various cities, promotes the connectivity of urban data, and realizes the Collaboration between government-level agencies, cities, enterprises, and all aspects of enterprises, to solve the problem of insufficient data sharing between provinces and cities, between localities, between enterprises and governments, and between departments, reduce social resource waste, and meet the needs of Cross-chain business requirements of each application sub-chain or between application sub-chains.
下面结合附图对本发明区块链的节点系统及其协作方法的较佳实施例进行说明。The preferred embodiments of the node system of the blockchain of the present invention and the cooperation method thereof will be described below with reference to the accompanying drawings.
请参阅图图1,本发明提供一种区块链的节点系统,该系统包括:Referring to FIG. 1, the present invention provides a node system of a blockchain, which includes:
部门子链100、城市主链200和省级主链300构成的三级区块链网络,以及数据连接后台400。A three-level blockchain network consisting of a
省级主链300中包含若干城市节点,每一城市节点均通过数据连接后台400连接有对应的一个城市主链200,每个城市主链200均通信连接有若干部门子链100。The provincial
城市主链200与其通信连接的部门子链100构成对应城市节点的城市主子链系统,数据连接后台400用于为对应的城市主子链系统进行公证。The city
需要说明的是,当应用对象为集团公司时,也可使用此三级区块链网络的构架,对集团及其下属的分公司、子公司进行区块链底层网络的部署应用,解决企业之间的区块链网络管理及数据交互问题。另外,当需要扩展网络层级时,只需增加对应的上层管理节点,同样通过数据连接后台400,对三级区块链网络进行多级扩展。It should be noted that when the application object is a group company, the structure of this three-level blockchain network can also be used to deploy and apply the blockchain underlying network to the group and its subordinate branches and subsidiaries, so as to solve the problem of enterprise problems. The problems of blockchain network management and data interaction between them. In addition, when the network level needs to be expanded, it is only necessary to add the corresponding upper-level management node, and also connect the
本发明基于多级的主子链跨链系统,基于各个城市的三级区块链网络,同时建立省级联盟链,实现各地市节点共同管理,促进城市数据的联通化,实现各级机关部门、各城市、各企业以及企业各环节之间的协作,解决省市之间、地方之间、企业与政府之间以及部门之间的数据共享不足的问题,降低社会资源浪费,满足各应用子链或应用子链间的跨链业务需求。The invention is based on a multi-level main and sub-chain cross-chain system, based on the three-level blockchain network of each city, and establishes a provincial-level alliance chain at the same time, realizes the joint management of nodes in various cities, promotes the interconnection of urban data, and realizes all levels of government departments, Collaboration between cities, enterprises and enterprise links to solve the problem of insufficient data sharing between provinces and cities, between localities, between enterprises and governments, and between departments, reduce social resource waste, and meet the needs of various application sub-chains Or apply cross-chain business requirements between sub-chains.
请参阅图图2,部门子链100有若干业务部门组成,部门子链100包括:Please refer to FIG. 2 , the department sub-chain 100 is composed of several business departments, and the department sub-chain 100 includes:
链上资源管理模块110,用于对部门子链相关联的组织、节点和智能合约进行管理。The on-chain
业务功能模块120,用于对部门子链100的数据进行处理。在本实施例中,业务功能模块120具体包括:The
上链单元,用于进行数据上链处理;On-chain unit, used for data on-chain processing;
调用单元,用于调用部门子链中的智能合约,智能合约可以是相关用户自定义设置的;The calling unit is used to call the smart contract in the sub-chain of the department, and the smart contract can be customized by the relevant user;
处理单元,用于进行智能合约的处理;A processing unit for processing smart contracts;
需要说明的是,部门子链100数据其他的相关处理也是通过业务功能模块120完成。It should be noted that other related processing of the data of the department sub-chain 100 is also completed through the
跨链请求模块130,用于当产生跨链需求时,发起跨链请求。The
第一锚定模块140,用于将部门子链100的链上数据打包成merkle树,并提交至对应的城市主链200。基于提交的mekle树,可以提升各个城市子链的信用。The
请参阅图3,城市主,200包括:See Figure 3, City Master, 200 includes:
组织管理模块210,用于对城市主链200对应的组织加入以及组织信息的管理。The
子链管理模块220,用于对城市主链200通信连接的各个部门子链进行管理,以此掌握各个部门子链100的运行信息,包括但不局限于部门子链100的数量、部门子链100各自参与组织、各个部门子链100的信息等。The
本链管理模块230,用于对城市主链200相关联的组织、节点和智能合约进行管理。The local
第一通讯模块240,用于协调城市主链200通信连接的各个部门子链100间跨链通讯,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管。The
第二锚定模块250,用于获取部门子链100提交的merkle树,并提交至数据连接后台400。The
请参阅图4,省级主链300包括:Referring to Figure 4, the provincial
城市管理模块310,用于管理加入的城市接地那,并获取各个城市节点对应的城市主子链系统的整体运行情况;The
第二通讯模块320,用于当跨链请求为跨城市跨链请求时,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管。The
第四锚定模块330,用于获取数据连接后台400提交的merkle树,并基于merkle树进行信用评定。The
省级主链300不仅可以容纳城市节点的加入,还可以容纳城市主子链同系统构网络的加入。The provincial
请参阅图5,数据连接后台400用于将城市主链200和省级主链200连接起来,数据连接后台400作为两个链的参与者,成为两个链的连接枢纽,起到跨链公证人作用,数据连接后台400包括:Please refer to Figure 5. The
数据收集模块410,用于获取即收集城市主链200上的数据,并提交至省级主链300,例如城市主子链的参与部门列表,城市上创建的子链列表等。The
第三通讯模块420,用于当跨链请求为跨城市跨链请求时,提供跨链通讯用信道,以及进行跨链通讯时的协调和监管。当有跨链事件发生时,数据连接后台400需判断是否是跨城市主子链的跨城市跨链需求,如果是,则需将该需求提交到省级主链300,由省级主链300路由后传递到目标城市的城市主子链系统。The
后台管理模块430,用于提供省级主链300的区块链即服务管理后台。包括省级主链300上的各种管理功能,如新城市接地那的加入、节点监控、新链码的部署等功能,需要在后台管理模块430上呈现和处理,各个城市节点的城市主子链系统的总览也需在后台管理模块430呈现。The
第三锚定模块440,用于获取城市主链200提交的merkle树,并提交至省级主链300。The
该系统可以应用于图6和图7分别所示的市内跨链和跨城市跨链两种跨链场景。在图6所示的跨链请求为市内跨链的场景中,市内跨链只需在本城市的主子链系统内完成跨链流程即可,具体流程为:在城市主链200下,部门A子链发起跨链请求,该请求会被该子链上的跨链节点传输到相应的城市主链200;数据连接后台400监听到该跨链请求,获取得知该跨链请求仅需本城市主子链系统内跨链即可,所以不做处理;之后,与该城市主链200连接的城市部门B子链上的跨链节点监听到城市主链200上发生的,目标为本子链的跨链请求后,将该跨链请求合理处理后提交到部门B子链,完成跨链。因此跨链请求为市内跨链的场景中需经过如下链路:发起方城市子链→发起方和目标方共同的城市主链→目标方城市子链。The system can be applied to the two cross-chain scenarios of intra-city cross-chain and cross-city cross-chain shown in Figure 6 and Figure 7 respectively. In the scenario shown in Figure 6 where the cross-chain request is an intra-city cross-chain, the intra-city cross-chain only needs to complete the cross-chain process in the main sub-chain system of the city. The specific process is: under the city
在图7所示的跨链请求为跨城市跨链的场景中,跨城市跨链需要将跨链请求传递到省级主链300,以省级主链300作为信道,方可到达目标城市的城市主子链系统,也就是对应的目标方子链,具体流程为:发起方城市的部门A子链发起跨链请求,该子链上的跨链节点将该跨链请求发送到发起方的城市主链200;发起方城市的数据连接后台400监听到该跨链请求后,判断此为跨城市的跨链请求,需要通过省级主链300处理,因此将其提交到省级主链300的发起方城市节点;目标方城市的数据连接后台400随时监听省级主链300上的所有跨链请求,当发现该请求的目标是目标方城市的部门B子链后,将该请求提交到目标方的城市主链200;目标方城市的部门B子链的跨链节点监听到目标方的的城市主链200上发生的目标为本子链的跨链请求后,将该跨链请求提交到部门B子链,完成跨链。因此跨链请求为跨城市跨链的场景中需经过如下链路:发起方城市子链→发起方城市主链→省级子链→目标方城市主链→目标方城市子链。In the scenario shown in Figure 7 where the cross-chain request is a cross-city cross-chain, the cross-city cross-chain needs to transmit the cross-chain request to the provincial
请参阅图图8,本发明提供一种区块链的节点系统的协作方法,该方法包括:Referring to FIG. 8 , the present invention provides a method for cooperating with a node system of a blockchain, which includes:
S100、部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;S100. The departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
S200、基于跨链请求,城市主链协调城市主链通信连接的各个部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;S200. Based on the cross-chain request, the city main chain coordinates cross-chain communication between the sub-chains of various departments connected by the city main chain communication, and provides channels for cross-chain communication, as well as coordination and supervision during cross-chain communication;
S300、当跨链请求为跨城市跨链请求时,数据连接后台和省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至省级主链。S300. When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide channels for cross-chain communication, as well as coordination and supervision during cross-chain communication, and submit the on-chain data of the city main chain to Provincial main chain.
图9示例了一种电子设备的实体结构示意图,如图9所示,该电子设备可以包括:处理器(processor)810、通信接口(Communications Interface)820、存储器(memory)830和通信总线840,其中,处理器810,通信接口820,存储器830通过通信总线840完成相互间的通信。处理器810可以调用存储器830中的逻辑指令,以执行区块链的节点系统的协作方法,该方法包括以下步骤:FIG. 9 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 9 , the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830, and a
S100、所述部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;S100, the departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
S200、基于所述跨链请求,所述城市主链协调所述城市主链通信连接的各个所述部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;S200. Based on the cross-chain request, the city main chain coordinates cross-chain communication between each of the department sub-chains connected by the city main chain communication, provides channels for cross-chain communication, and coordinates cross-chain communication and regulation;
S300、当所述跨链请求为跨城市跨链请求时,所述数据连接后台和所述省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至所述省级主链。S300. When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide a channel for cross-chain communication, as well as coordination and supervision during cross-chain communication, and connect the city main chain The data on the chain is submitted to the provincial main chain.
此外,上述的存储器830中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的区块链的节点系统的协作方法,该方法包括以下步骤:In another aspect, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can The method for executing the cooperation of the node system of the blockchain provided by the above methods includes the following steps:
S100、所述部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;S100, the departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
S200、基于所述跨链请求,所述城市主链协调所述城市主链通信连接的各个所述部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;S200. Based on the cross-chain request, the city main chain coordinates cross-chain communication between each of the department sub-chains connected by the city main chain communication, provides channels for cross-chain communication, and coordinates cross-chain communication and regulation;
S300、当所述跨链请求为跨城市跨链请求时,所述数据连接后台和所述省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至所述省级主链。S300. When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide a channel for cross-chain communication, as well as coordination and supervision during cross-chain communication, and connect the city main chain The data on the chain is submitted to the provincial main chain.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的区块链的节点系统的协作方法,该方法包括以下步骤:In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, is implemented to execute the cooperation of the node systems of the blockchain provided by the above methods method, the method includes the following steps:
S100、所述部门子链进行其数据的处理,并当产生跨链需求时,发起跨链请求;S100, the departmental sub-chain processes its data, and initiates a cross-chain request when a cross-chain demand is generated;
S200、基于所述跨链请求,所述城市主链协调所述城市主链通信连接的各个所述部门子链间跨链通讯,并提供跨链通讯用信道,以及进行跨链通讯时的协调和监管;S200. Based on the cross-chain request, the city main chain coordinates cross-chain communication between each of the department sub-chains connected by the city main chain communication, provides channels for cross-chain communication, and coordinates cross-chain communication and regulation;
S300、当所述跨链请求为跨城市跨链请求时,所述数据连接后台和所述省级主链提供跨链通讯用信道,以及进行跨链通讯时的协调和监管,将城市主链的链上数据提交至所述省级主链。S300. When the cross-chain request is a cross-city cross-chain request, the data connection backend and the provincial main chain provide a channel for cross-chain communication, as well as coordination and supervision during cross-chain communication, and connect the city main chain The data on the chain is submitted to the provincial main chain.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210009693.5A CN114499824A (en) | 2022-01-05 | 2022-01-05 | A node system of blockchain and its cooperation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210009693.5A CN114499824A (en) | 2022-01-05 | 2022-01-05 | A node system of blockchain and its cooperation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114499824A true CN114499824A (en) | 2022-05-13 |
Family
ID=81510578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210009693.5A Pending CN114499824A (en) | 2022-01-05 | 2022-01-05 | A node system of blockchain and its cooperation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114499824A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506228A (en) * | 2023-06-27 | 2023-07-28 | 苏州浪潮智能科技有限公司 | Computer authentication method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019072297A2 (en) * | 2018-12-13 | 2019-04-18 | Alibaba Group Holding Limited | Off-chain smart contract service based on trusted execution environment |
CN111931215A (en) * | 2020-09-11 | 2020-11-13 | 腾讯科技(深圳)有限公司 | Data management method and device and storage medium |
CN113407626A (en) * | 2021-06-16 | 2021-09-17 | 深圳大学 | Planning control method based on block chain, storage medium and terminal equipment |
CN113436049A (en) * | 2021-06-25 | 2021-09-24 | 北京市大数据中心 | Multi-level government affair block chain service organization architecture method and device |
-
2022
- 2022-01-05 CN CN202210009693.5A patent/CN114499824A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019072297A2 (en) * | 2018-12-13 | 2019-04-18 | Alibaba Group Holding Limited | Off-chain smart contract service based on trusted execution environment |
CN111931215A (en) * | 2020-09-11 | 2020-11-13 | 腾讯科技(深圳)有限公司 | Data management method and device and storage medium |
CN113407626A (en) * | 2021-06-16 | 2021-09-17 | 深圳大学 | Planning control method based on block chain, storage medium and terminal equipment |
CN113436049A (en) * | 2021-06-25 | 2021-09-24 | 北京市大数据中心 | Multi-level government affair block chain service organization architecture method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506228A (en) * | 2023-06-27 | 2023-07-28 | 苏州浪潮智能科技有限公司 | Computer authentication method and device, electronic equipment and storage medium |
CN116506228B (en) * | 2023-06-27 | 2023-08-25 | 苏州浪潮智能科技有限公司 | Computer authentication method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110990408B (en) | Business information collaboration method based on block chain, business system and alliance chain | |
CN110868438B (en) | Block chain network system | |
CN113965329A (en) | A cross-chain interoperability system, method, medium and data processing terminal | |
CN109088881B (en) | Shared chain platform for realizing cross-platform data exchange and data exchange method | |
CN111667366B (en) | Based on alliance block chain technology service trading system and trading method | |
CN111400734A (en) | Intelligent logistics system based on block chain | |
WO2020228531A1 (en) | Consortium blockchain governance method and apparatus, computer device and storage medium | |
CN113364831A (en) | Multi-domain heterogeneous computing network resource credible cooperation method based on block chain | |
CN110647581A (en) | Electronic contract configuration management system and method based on block chain | |
CN113888139A (en) | Construction method and system of unified substation data asset management system | |
CN114499824A (en) | A node system of blockchain and its cooperation method | |
US20220067659A1 (en) | Research and development system and method | |
CN112541732A (en) | Intelligent bidding contract generation method and device and readable storage medium | |
Liu et al. | Optimal allocation of shared manufacturing resources based on bilevel programming | |
CN107896242A (en) | One kind service sharing method and device | |
CN114356606A (en) | Block chain cross-chain method, device, equipment and product | |
CN102841934A (en) | Cloud data service system platform for supporting banking applications | |
CN112509652B (en) | Method and system for searching potential target points of innovative drugs by combining multiple parties based on block chain | |
CN110971624A (en) | Information interaction system supporting heterogeneous resources and heterogeneous information interaction method | |
CN106980950B (en) | Material supply management method and system based on mobile social contact | |
CN116094720B (en) | Block chain multi-platform management method, device, server and storage medium | |
CN115002217B (en) | Scheduling method, device, equipment and medium | |
CN117217856B (en) | Platform unified large market cooperation method based on block chain | |
WO2020042928A1 (en) | Block chain network system | |
CN113033943B (en) | Distributed unified management method applied to national defense industry supply chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |