CN112712371A - Federation chain system and method for same - Google Patents

Federation chain system and method for same Download PDF

Info

Publication number
CN112712371A
CN112712371A CN202011613475.XA CN202011613475A CN112712371A CN 112712371 A CN112712371 A CN 112712371A CN 202011613475 A CN202011613475 A CN 202011613475A CN 112712371 A CN112712371 A CN 112712371A
Authority
CN
China
Prior art keywords
node
service
organization
services
federation 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
Application number
CN202011613475.XA
Other languages
Chinese (zh)
Inventor
王诗鈞
徐石成
何光宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN202011613475.XA priority Critical patent/CN112712371A/en
Publication of CN112712371A publication Critical patent/CN112712371A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Abstract

The disclosure relates to a federation chain system and a method for the federation chain system, the federation chain system comprises a sequencing node set and a plurality of organization node sets, each node in one organization node set belongs to the same organization, the nodes in the sequencing node set are used for generating blocks, wherein federation chain services are executed by adopting a decentralized mode between the organization node sets; a first organization node set of the plurality of organization node sets is deployed with an organization trusted service, the first organization node set being any one of the plurality of organization node sets; based on the organization trusted service, business logic corresponding to the first organization node set can be executed between nodes in the first organization node set in a centralized mode.

Description

Federation chain system and method for same
Technical Field
The present disclosure relates to the field of block chain technology, and in particular, to an alliance chain system and a method for the alliance chain system.
Background
There are three main categories of blockchain technology, namely public, private, and federation, with federation having wider application. Federation chain networks are typically managed by several enterprises or organizations, each operating one or more nodes, with the data in the federation chain being allowed to be read only by different enterprises within the system and the transaction data being recorded together.
In a related scenario, a plurality of peer nodes may be deployed in the same organization, each peer node stores an account book in the federation chain network, and each peer node also needs to implement functions such as accounting, querying, endorsement and the like, which costs more computing resources and storage resources of the organization, but does not improve the system performance.
Disclosure of Invention
An object of the present disclosure is to provide a federation chain system and a method for the federation chain system to solve the above-mentioned related technical problems.
In order to achieve the above object, according to a first aspect of the embodiments of the present disclosure, there is provided an alliance chain system comprising an order node set and a plurality of organization node sets, each node in one of the organization node sets belonging to a same organization, the nodes in the order node set being used for generating a block, wherein,
adopting a decentralized mode to execute alliance chain business among all the organization node sets;
a first organization node set of the plurality of organization node sets is deployed with an organization trusted service, the first organization node set being any one of the plurality of organization node sets;
based on the organization trusted service, business logic corresponding to the first organization node set can be executed between nodes in the first organization node set in a centralized mode.
Optionally, the organization trusted service comprises an event processing service for processing different federation chain business events, and a routing service deployed on each node in the first set of organization nodes;
each node in the first organization node set can determine a first event processing service for processing the federation chain business event under the condition of receiving any one federation chain business event based on the routing service, and sends the federation chain business event to the node with the first event processing service, so that the node processes the federation chain business event through the first event processing service.
Optionally, the organization trusted service comprises a routing service and a plurality of event handling services for handling target events;
each node in the first organization node set can respond to the target event and determine a second event processing service with the resource occupancy rate smaller than a first resource occupancy rate threshold value from the plurality of event processing services according to the state information of the plurality of event processing services based on the routing service, and send the target event to a node with the second event processing service, so that the node processes the target event through the second event processing service.
Optionally, the organization trusted service comprises a data storage service and a plurality of billing services;
in the event that a node in the first set of organization nodes receives a new chunk generated by a node in the set of sequencing nodes, a target accounting service can be determined from the plurality of accounting services, the target accounting service being used to verify transaction data in the chunk, and the data storage service being used to add the chunk save to a chain of chunks stored by the first set of organization nodes when the target accounting service successfully verifies the transaction data.
Optionally, the organization trusted service comprises one or more endorsement services;
in the case that a node in the first organization node set receives a transaction request, the transaction request can be endorsed based on the one or more endorsement services, so that the node sends an endorsement result of the transaction request to a node corresponding to the transaction request.
Optionally, the organization trusted service comprises a data storage service and one or more query services;
when a node in the first organization node set receives a data query request, the data storage service can be invoked to obtain data information corresponding to the data query request through the one or more query services, so that the node sends the data information to the node corresponding to the data query request.
Optionally, the organization trusted service comprises a resource scheduling service;
the resource scheduling service is used for acquiring the state information of each service included in the organization trusted service and adjusting the service included in the organization trusted service according to the state information of each service.
Optionally, the resource scheduling service is specifically configured to regenerate the service when the state information of the service included in the organization trusted service indicates that the service is in the downtime state.
Optionally, the resource scheduling service is specifically configured to generate one or more services of a target type when the state information represents that the resource occupancy of the service of the target type is greater than a second resource occupancy threshold in the organization trusted service; alternatively, the first and second electrodes may be,
and in the state information representing the organization trusted service, when the resource occupancy rate of the service of the target type is less than a third resource occupancy rate threshold value, canceling one or more services of the target type, wherein the third resource occupancy rate threshold value is less than the second resource occupancy rate threshold value.
Optionally, the resource scheduling service is specifically configured to perform one or more of the following operations:
adjusting a deployment location of a query service in the organization trusted service to an input/output (I/O) intensive node in the first set of organization nodes;
adjusting a deployment location of an endorsement service in the organization trusted service to a Central Processing Unit (CPU) intensive node in the first set of organization nodes.
Optionally, the data storage service comprises a file storage module and an account book information maintenance module,
the file storage module is used for responding to the successful verification of the transaction data and adding the block storage to a block chain stored by the first organization node set;
the book information maintenance module is used for establishing an association relationship between the identity ID of the transaction data and the storage address information of the transaction data aiming at each transaction data in each block stored by the file storage module, and storing each association relationship.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for a federation chain system, applied to the federation chain system of any one of the above first aspects, the method including:
a first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by a second node in the organization node set;
the first node endorsements the transaction through the target endorsement service to obtain an endorsement result;
and the first node sends the endorsement result to the second node.
According to a third aspect of the embodiments of the present disclosure, there is provided a method for a federation chain system, applied to the federation chain system of any one of the above first aspects, the method including:
a third node of the first organization node set, in response to receiving a new block generated by a node of the ordered set of nodes, determines a target billing service from a plurality of billing services included in the organization trusted service;
the third node verifies the transaction data in the block through the target accounting service;
the third node adds the block save to a chain of blocks stored by the first set of organization nodes by a data storage service included by the organization trusted service when the transaction data validation is successful.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a method for a federation chain system, applied to the federation chain system of any one of the above first aspects, the method including:
a fourth node in the first organization node set determines a target query service from a plurality of query services included in the organization trusted service in response to receiving a data query request sent by a fifth node in the organization node set;
the fourth node calls a data storage service included in the organization trusted service through the target query service to acquire data information corresponding to the data query request;
and the fourth node sends the data information to the fifth node.
In the above technical solution, federation chain services can be performed in a decentralized manner between organization node sets corresponding to organizations in a federation chain system, so as to maintain a trust system between organizations in a federation chain network. In addition, in the first organization node set, each node can execute the service logic corresponding to the first organization node set in a centralized manner, thereby improving the service processing efficiency. For example, when the ledger is stored, the nodes in the first organization node set can perform centralized storage control on the ledger, so that the storage efficiency of the ledger data is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic diagram of an allied chain system shown in an exemplary embodiment of the present disclosure.
FIG. 2 is a schematic diagram of an organization trusted service, shown in an exemplary embodiment of the present disclosure.
FIG. 3 is a flow chart illustrating a method for a federation chain system in accordance with an exemplary embodiment of the present disclosure.
FIG. 4 is a flow chart illustrating a method for a federation chain system in an exemplary embodiment of the present disclosure.
FIG. 5 is a flow chart illustrating a method for a federation chain system in accordance with an exemplary embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before introducing the federation chain system and the method for the federation chain system of the present disclosure, an application scenario of the present disclosure is first introduced. Embodiments provided by the present disclosure may be applied in a federation chain scenario. The federation chain network may generally include a plurality of organizations, each of which may operate a corresponding peer node, each peer node storing a ledger in the federation chain network. Meanwhile, each peer node also needs to realize functions of accounting, inquiring, endorsement and the like, which costs more computing resources and storage resources of an organization, but the system performance is not improved.
To this end, the present disclosure provides an federated chain system that includes a set of sequencing nodes and a plurality of sets of organizational nodes.
Wherein the nodes in the ordered set of nodes are used to generate a block. Each of the organization node sets may correspond to an organization, and each of the organization node sets may include a plurality of nodes. When implemented in particular, the nodes may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone, wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer, a server, and so forth.
In addition, a decentralized mode can be adopted among the organization node sets to execute the alliance chain business. For example, a transaction initiated in the federation chain system may be saved in a blockchain ledger based on endorsement node endorsement, accounting node validation, and other processes, thereby maintaining a trust hierarchy between organizations.
The plurality of organization node sets further includes a first organization node set deployed with an organization trusted service. In particular implementations, the first set of organization nodes may be any one of the plurality of sets of organization nodes. Referring to fig. 1, a schematic diagram of a federation chain system is shown, which may include a first set of organization nodes 1 and a first set of organization nodes 2 (not shown) in the example of fig. 1. Wherein, the first organization node set 1 may correspond to organization 1, and the first organization node set 1 is also deployed with an organization trusted service 1; the first set of organization nodes 2 may correspond to organization 2, the first set of organization nodes 2 also having deployed organization trusted services 2.
Further, based on the organization trusted service, business logic corresponding to the first organization node set can be executed between nodes in the first organization node set in a centralized mode.
For example, in one possible implementation, the organization trusted service includes an event processing service for processing different federation chain business events, and a routing service deployed on each node in the first set of organization nodes.
Wherein the event processing services may include, for example, one or more billing services, one or more endorsement services, one or more query services, and/or the like, and each of the event processing services may be deployed in a respective node device of the first set of organization nodes.
Each node in the first organization node set can determine a first event processing service for processing the federation chain business event under the condition of receiving any one federation chain business event based on the routing service, and sends the federation chain business event to the node with the first event processing service, so that the node processes the federation chain business event through the first event processing service.
For example, when a node in the first organization node set receives a federation chain service event, the node may determine an event type of the federation chain service event according to information of the federation chain service event. When the event type of the federation chain service event is a transaction proposal, the node may forward the federation chain service event to a corresponding node deployed with an endorsement service, so that the node processes the federation chain service event through the deployed endorsement service.
In some possible embodiments, the organization trusted service further comprises a plurality of endorsement services;
when a node in the first organization node set receives a transaction request, the transaction request can be endorsed based on the endorsement services, so that the node sends an endorsement result of the transaction request to a node corresponding to the transaction request.
For example, the plurality of endorsement services may be deployed in a plurality of nodes, for example. Therefore, when the nodes in the first organization node set receive a plurality of endorsement service events, each endorsement service event can be forwarded to the corresponding node with the endorsement service deployed, so that the plurality of endorsement service events are processed in parallel through the plurality of endorsement services, and the processing efficiency of the alliance chain transaction is improved. Of course, in some implementation scenarios, when a node in the first organization node set receives an endorsement business event, a target endorsement service may also be determined from the plurality of endorsement services, so that the node endorses the transaction request based on the target endorsement service to obtain an endorsement result. In addition, the node can also send the endorsement result of the transaction request to the node corresponding to the transaction request, thereby completing the transaction.
Referring to fig. 1, in another possible embodiment, the organization trusted service includes a data storage service and a plurality of billing services, which may be deployed, for example, in a plurality of nodes in the first set of organization nodes.
In the event that a node in the first set of organization nodes receives a new block generated by a node in the set of sequencing nodes, a target accounting service can be determined from the plurality of accounting services, the target accounting service being used to validate transaction data in the block. For example, a node in the first set of organization nodes may obtain a newly generated block from the sequencing node, determine a target billing service from the plurality of billing services, and verify transaction data in the block based on the node deploying the target billing service. The target accounting service may be determined based on the number of task loads of each accounting service and status information of a node device deploying the accounting service, for example, the status information may be CPU (Central Processing Unit) occupancy rate.
The data storage service may be deployed, for example, at a node in the first set of organization nodes, for adding the blockwork to a blockchain stored by the first set of organization nodes when the target billing service successfully verifies the transaction data. For example, the node deploying the targeted billing service may invoke the data storage service after successful verification of the transactional data in the block, thereby adding the block save to the blockchain stored by the first set of organizational nodes.
In some possible embodiments, the data storage service further includes a file storage module and an ledger information maintenance module, the file storage module is configured to add the blockhold to a blockchain stored by the first set of organization nodes in response to a successful verification of the transaction data.
For example, the file storage module may store blockchain account data using a distributed file system, for example. Through such a storage mode, the block chain account book data can be dynamically expanded, so that the data expansion phenomenon in the data storage of the account book is relieved. In some embodiments, the file storage module may also generate one or more copies of data for the saved blockchain ledger data and save to a different storage device. For example, 3 data copies of the blockchain ledger data may be generated, thereby improving the security of the data while ensuring the system performance.
The file storage module further includes an account book information maintenance module, and the account book information maintenance module is configured to establish, for each transaction data in each block stored by the file storage module, an association relationship between an ID (Identity) of the transaction data and storage address information of the transaction data, and store each association relationship.
For example, the ledger information maintenance module may store transaction data index information by using a distributed key value database. The transaction ID and the ledger ID may be regarded as keys, and the value may correspond to information such as a physical address, a file pointer, and an address offset of an ledger file (e.g., a block) in the file storage module. The ledger information maintenance module may, for example, maintain meta information (such as file pointer, address offset, and other information) of the transaction data, and store the transaction data through the file storage module.
Therefore, when a query request is received, the account book information maintenance module can be accessed through the transaction ID and the account book ID to acquire the pointer and the offset of the account book file, and then the corresponding account book file is accessed to perform query or write operation, so that the query speed is increased.
For the query request, in one possible implementation, the organization trusted service further includes a data storage service and one or more query services. For the sake of brevity of the description, the present disclosure is not repeated herein. The query service may be deployed, for example, in one or more nodes of the first set of organization nodes.
When a node in the first organization node set receives a data query request, the data storage service can be invoked to obtain data information corresponding to the data query request through the one or more query services, so that the node sends the data information to the node corresponding to the data query request.
For example, when a node in the first organization node set receives a plurality of query business events, each query business event may be forwarded to a corresponding node to which a query service is deployed, so that the plurality of query business events are processed in parallel by the plurality of query services, and the processing efficiency of the data query event is further improved. Of course, in some implementation scenarios, when a node in the first organization node set receives a query traffic event, a target query service may also be determined from the plurality of query services, so that the node queries the transaction request based on the target query service to obtain a query result. In addition, the node can also send the query result of the transaction request to the node corresponding to the data query request, thereby completing the transaction.
In the above technical solution, federation chain services can be performed in a decentralized manner between organization node sets corresponding to organizations in a federation chain system, so as to maintain a trust system between organizations in a federation chain network. In addition, in the first organization node set, each node can execute the service logic corresponding to the first organization node set in a centralized manner, thereby improving the service processing efficiency.
Referring to fig. 2, a schematic diagram of an organization trusted service is shown, which in some possible embodiments further includes a routing service and a plurality of event processing services for processing target events.
Wherein the routing service may be deployed, for example, in each node in the first set of organization nodes. In this way, each node in the first organization node set can respond to the target event by determining a second event processing service with the resource occupancy rate smaller than the first resource occupancy rate threshold value from the plurality of event processing services according to the state information of the plurality of event processing services based on the routing service, and sending the target event to the node with the second event processing service, so that the node processes the target event through the second event processing service.
For example, the node may implement a reverse proxy function based on the routing service, that is, when the node receives the target event, the node may route the target event to a node deployed with a service corresponding to the type of the target event according to the type of the target event (e.g., endorsement, data query, etc.). Of course, since the number of the services of the same type may also be multiple, in this case, the node may also determine, from the multiple event processing services of the same type, a second event processing service whose resource occupancy rate is smaller than the first resource occupancy rate threshold, and send the target event to the node where the second event processing service is deployed, so that the node processes the target event through the second event processing service. The resource occupancy rate may be a computing resource, a storage resource, and the like according to an application requirement, which is not limited in this disclosure.
In addition, in some implementation scenarios, the second event processing service may also be determined from a plurality of event processing services of the same type according to the number of service tasks (e.g., target events are evenly distributed to the respective services), so as to achieve load balancing. Alternatively, the second event processing service may be determined from a plurality of event processing services of the same type according to the resource occupancy rate and the number of service tasks, which is not limited in this disclosure.
It is noted that, in some embodiments, the routing service may also be deployed in a node of the first organization node set, so as to receive and centrally manage each target event.
For the state information of each service, referring to fig. 2, in a possible implementation, the organization trusted service further includes a resource scheduling service, and the resource scheduling service is configured to obtain the state information of each service included in the organization trusted service.
The status information may include, for example, resource occupancy corresponding to each service, whether the service runs the identifier, and the like. The organization trusted service can also store the state information of each service in a registry, so that the routing service can acquire the state information of each service conveniently.
In addition, the resource scheduling service may further adjust services included in the organization trusted service according to state information of each service.
In particular, in one embodiment, the resource scheduling service is specifically configured to regenerate a service included in the organization trusted service when the state information of the service indicates that the service is in a down state. For example, when the service running identifier of the endorsement service indicates that the endorsement service is down, the resource scheduling service may generate an endorsement service, so as to recover the function of the endorsement service, thereby ensuring that the system runs stably.
In another embodiment, the resource scheduling service is specifically configured to generate one or more services of a target type when the resource occupancy of the service of the target type is greater than a second resource occupancy threshold in the organization trusted service characterized by the status information. The resource occupancy rate of the target type service may be, for example, an average resource occupancy rate of the target type service, and the second resource occupancy rate threshold may be set according to an application requirement, which is not limited in this disclosure. Still taking the endorsement service as an example, if the resource occupancy rate of the endorsement service in the first organization node set is greater than the second resource occupancy rate threshold, it may be determined that a performance bottleneck occurs in the endorsement service in the first organization node set. In this case, one or more endorsement services may be generated, thereby improving the processing efficiency of the endorsement transaction.
Of course, in another embodiment, the resource scheduling service may also be specifically configured to, in the state information indicating that the organization trusted service has a resource occupancy (for example, an average resource occupancy within a preset time duration) that is less than a third resource occupancy threshold, deregister one or more services of a target type, so as to reduce resource occupancy. Wherein the third resource occupancy threshold is less than the second resource occupancy threshold.
In another embodiment, the resource scheduling service may be specifically configured to perform one or more of the following operations:
adjusting a deployment location of a query service in the organization trusted service to an input/output (I/O) intensive node in the first set of organization nodes. Since query services involve more I/O operations and occupy a larger cache, query services can be scheduled to I/O-intensive devices.
Adjusting a deployment location of an endorsement service in the organization trusted service to a Central Processing Unit (CPU) intensive node in the first set of organization nodes. Since the endorsement nodes involve fewer I/O operations and more logical operations, the endorsement nodes can be scheduled into CPU-intensive devices.
Therefore, the deployment position of each service is adjusted through the resource scheduling service, and the utilization rate of system resources can be improved.
The present disclosure also provides a method for a federation chain system, applied to the federation chain system provided by the present disclosure, with reference to the flowchart of a method for a federation chain system illustrated in fig. 3, the method comprising:
s31, the first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by the second node in the organization node set.
Wherein the first node may be any node in the first set of organization nodes and the transaction request may be one or more. When the organization trusted service comprises an endorsement service, the first node may determine the endorsement service as a target endorsement service. When the organization trusted service comprises a plurality of endorsement services, the first node may determine a target endorsement service from the plurality of endorsement services for each of the transaction requests. For example, in some implementation scenarios, the target endorsement service may be determined from a plurality of endorsement services included by the organization trusted service based on a routing service included by the organization trusted service. For the method for determining the event processing service through the routing service, please refer to the above description of the embodiment of the federation chain system, which is not repeated herein.
And S32, the first node endorses the transaction through the target endorsement service to obtain an endorsement result. For example, the first node may send each transaction request to a node where a target endorsement service corresponding to the transaction request is deployed, so as to obtain an endorsement result by invoking the node to endorse the transaction.
In addition, in S33, the first node may also send the endorsement result to the second node, thereby completing the transaction.
By adopting the technical scheme, a plurality of endorsement services can be deployed in an organization so as to perform parallel processing on a plurality of endorsement service events, and further the processing efficiency of the alliance chain transaction is improved.
The present disclosure also provides a method for a federation chain system, applied to the federation chain system provided by the present disclosure, with reference to the flowchart of a method for a federation chain system illustrated in fig. 4, the method comprising:
s41, the third node in the first organization node set determines a target billing service from the plurality of billing services included in the organization trusted service in response to receiving the new tile generated by the node in the sorted node set.
Wherein the third node may be any node in the first set of organization nodes, and when the organization trusted service includes a billing service, the third node may determine the billing service as a target billing service. When the organization trusted service comprises a plurality of billing services, the third node may determine a target billing service from the plurality of billing services. For example, in some implementation scenarios, the target billing service may be determined from a plurality of billing services included by the organization trusted service based on routing services included by the organization trusted service. Please refer to the above description of embodiments related to the federation chain system, which is not repeated herein in detail for a method for determining an event processing service through a routing service.
S42, the third node verifies the transaction data in the block through the target billing service. For example, the third node may send a data verification request to the node deployed with the targeted billing service to verify the transaction data in the block by invoking the node.
S43, when the transaction data is successfully verified, the third node adds the block save to the block chain stored in the first organization node set through the data storage service included in the organization trusted service.
In this manner, any node in the first set of organization nodes may add the tile save to the chain of tiles stored by the first set of organization nodes through the data storage service when the transaction data validation is successful. Compared with the mode that each peer node is stored respectively, the storage efficiency can be improved.
The present disclosure also provides a method for a federation chain system, applied to the federation chain system provided by the present disclosure, with reference to the flowchart of a method for a federation chain system illustrated in fig. 5, the method comprising:
s51, the fourth node in the first organization node set responds to the received data inquiry request sent by the fifth node in the organization node set, and determines a target inquiry service from a plurality of inquiry services included in the organization trusted service.
Wherein the fourth node may be any node in the first organization node set, and the data query request may be one or more. When the organization trusted service comprises a query service, the fourth node may determine the query service as a target query service. When the organization trusted service comprises a plurality of query services, the fourth node may determine, for each of the data query requests, a target query service from the plurality of query services. For example, in some implementation scenarios, the target query service may be determined from a plurality of query services included by the organization trusted service based on a routing service included by the organization trusted service. For the method for determining the event processing service through the routing service, please refer to the above description of the embodiment of the federation chain system, which is not repeated herein.
And S52, the fourth node calls the data storage service included in the organization trusted service through the target query service to acquire the data information corresponding to the data query request. For example, the fourth node may send each transaction request to a node deployed with a target query service corresponding to the data query request, so as to call a data storage service through the node to obtain data information corresponding to the data query request.
Thus, in S53, the fourth node may also send the data information to the fifth node, thereby completing the transaction.
By adopting the technical scheme, a plurality of data query services can be deployed in an organization, so that a plurality of data query requests can be processed in parallel, and the processing efficiency of alliance chain transactions is improved.
The present disclosure also provides a computer program product comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing any of the above methods for federation chain systems when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. An alliance chain system comprising an order node set and a plurality of organization node sets, each node in one of the organization node sets belonging to the same organization, the nodes in the order node set being used to generate a block, wherein,
adopting a decentralized mode to execute alliance chain business among all the organization node sets;
a first organization node set of the plurality of organization node sets is deployed with an organization trusted service, the first organization node set being any one of the plurality of organization node sets;
based on the organization trusted service, business logic corresponding to the first organization node set can be executed between nodes in the first organization node set in a centralized mode.
2. The federation chain system of claim 1, wherein the organizational trusted services include an event processing service for processing different federation chain business events, and a routing service deployed on each node in the first set of organizational nodes;
each node in the first organization node set can determine a first event processing service for processing the federation chain business event under the condition of receiving any one federation chain business event based on the routing service, and sends the federation chain business event to the node with the first event processing service, so that the node processes the federation chain business event through the first event processing service.
3. A federation chain system as claimed in claim 1 wherein the organisation trusted services include a routing service and a plurality of event handling services for handling target events;
each node in the first organization node set can respond to the target event and determine a second event processing service with the resource occupancy rate smaller than a first resource occupancy rate threshold value from the plurality of event processing services according to the state information of the plurality of event processing services based on the routing service, and send the target event to a node with the second event processing service, so that the node processes the target event through the second event processing service.
4. The federation chain system of claim 1, wherein the organization trusted service comprises a data storage service and a plurality of billing services;
in the event that a node in the first set of organization nodes receives a new chunk generated by a node in the set of sequencing nodes, a target accounting service can be determined from the plurality of accounting services, the target accounting service being used to verify transaction data in the chunk, and the data storage service being used to add the chunk save to a chain of chunks stored by the first set of organization nodes when the target accounting service successfully verifies the transaction data.
5. A federation chain system as claimed in claim 1 wherein the organisation trusted service comprises one or more endorsement services;
in the case that a node in the first organization node set receives a transaction request, the transaction request can be endorsed based on the one or more endorsement services, so that the node sends an endorsement result of the transaction request to a node corresponding to the transaction request.
6. A federation chain system as claimed in claim 1 wherein the organisation trusted services comprise a data storage service and one or more query services;
when a node in the first organization node set receives a data query request, the data storage service can be invoked to obtain data information corresponding to the data query request through the one or more query services, so that the node sends the data information to the node corresponding to the data query request.
7. A federation chain system as claimed in any one of claims 4 to 6 wherein the organisation trusted services further include a resource scheduling service;
the resource scheduling service is used for acquiring the state information of each service included in the organization trusted service and adjusting the service included in the organization trusted service according to the state information of each service.
8. A method for federation chain system, applied to the federation chain system of claims 1-7, the method comprising:
a first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by a second node in the organization node set;
the first node endorsements the transaction through the target endorsement service to obtain an endorsement result;
and the first node sends the endorsement result to the second node.
9. A method for federation chain system, applied to the federation chain system of claims 1-7, the method comprising:
a third node of the first organization node set, in response to receiving a new block generated by a node of the ordered set of nodes, determines a target billing service from a plurality of billing services included in the organization trusted service;
the third node verifies the transaction data in the block through the target accounting service;
the third node adds the block save to a chain of blocks stored by the first set of organization nodes by a data storage service included by the organization trusted service when the transaction data validation is successful.
10. A method for federation chain system, applied to the federation chain system of claims 1-7, the method comprising:
a fourth node in the first organization node set determines a target query service from a plurality of query services included in the organization trusted service in response to receiving a data query request sent by a fifth node in the organization node set;
the fourth node calls a data storage service included in the organization trusted service through the target query service to acquire data information corresponding to the data query request;
and the fourth node sends the data information to the fifth node.
CN202011613475.XA 2020-12-30 2020-12-30 Federation chain system and method for same Pending CN112712371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011613475.XA CN112712371A (en) 2020-12-30 2020-12-30 Federation chain system and method for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011613475.XA CN112712371A (en) 2020-12-30 2020-12-30 Federation chain system and method for same

Publications (1)

Publication Number Publication Date
CN112712371A true CN112712371A (en) 2021-04-27

Family

ID=75547369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011613475.XA Pending CN112712371A (en) 2020-12-30 2020-12-30 Federation chain system and method for same

Country Status (1)

Country Link
CN (1) CN112712371A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250922A1 (en) * 2009-03-31 2010-09-30 Motorola, Inc. Method and system for propagating trust in an ad hoc wireless communication network
CN109299957A (en) * 2018-10-25 2019-02-01 聂贞云 A kind of danger product container containing based on block chain is traced to the source supervisory systems
CN109858908A (en) * 2019-01-09 2019-06-07 暨南大学 Alliance's chain building method, method of commerce and distributed supply chain system
WO2019114128A1 (en) * 2017-12-13 2019-06-20 深圳壹账通智能科技有限公司 Block chain transaction block processing method, electronic device and readable storage medium
CN110401656A (en) * 2019-07-24 2019-11-01 西安纸贵互联网科技有限公司 Block chain management system
CN111160784A (en) * 2019-12-30 2020-05-15 北京工业大学 Product management method based on block chain
CN111290776A (en) * 2018-12-10 2020-06-16 航天信息股份有限公司 Management device and method for managing block chain nodes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250922A1 (en) * 2009-03-31 2010-09-30 Motorola, Inc. Method and system for propagating trust in an ad hoc wireless communication network
WO2019114128A1 (en) * 2017-12-13 2019-06-20 深圳壹账通智能科技有限公司 Block chain transaction block processing method, electronic device and readable storage medium
CN109299957A (en) * 2018-10-25 2019-02-01 聂贞云 A kind of danger product container containing based on block chain is traced to the source supervisory systems
CN111290776A (en) * 2018-12-10 2020-06-16 航天信息股份有限公司 Management device and method for managing block chain nodes
CN109858908A (en) * 2019-01-09 2019-06-07 暨南大学 Alliance's chain building method, method of commerce and distributed supply chain system
CN110401656A (en) * 2019-07-24 2019-11-01 西安纸贵互联网科技有限公司 Block chain management system
CN111160784A (en) * 2019-12-30 2020-05-15 北京工业大学 Product management method based on block chain

Similar Documents

Publication Publication Date Title
CN112106336B (en) Agent and agent account book on blockchain
US11082291B2 (en) Changing an existing blockchain trust configuration
KR102566892B1 (en) Blockchain consensus method, device and system
CN111461723B (en) Data processing system, method and device based on block chain
CN111061769B (en) Consensus method of block chain system and related equipment
KR102225196B1 (en) Consensus of shared blockchain data storage based on error correction codes
CN111989705A (en) Priority in licensed block chains
CN110263035A (en) Data storage, querying method and device and electronic equipment based on block chain
CN111417930B (en) Prioritizing shared blockchain data storage
KR102363271B1 (en) Data security of shared blockchain data storage based on error correction codes
CN106817432B (en) Method, system and equipment for elastically stretching virtual resources in cloud computing environment
WO2020253634A1 (en) Data processing method, system and device
WO2019237594A1 (en) Session persistence method and apparatus, and computer device and storage medium
CN112075062A (en) Automated commit transaction management in blockchain networks
CN111523890A (en) Data processing method and device based on block chain, storage medium and equipment
EP3598333B1 (en) Electronic device update management
CN111400112A (en) Writing method and device of storage system of distributed cluster and readable storage medium
CN111447069B (en) Low-frequency access data processing method based on block chain
JPWO2018220708A1 (en) Resource allocation system, management device, method and program
CN113422733B (en) Service processing method and device of block chain, computer equipment and storage medium
CN111343102A (en) Flow rate control method, server-side server, client-side server and system
CN109525633B (en) Block chain network, message sending method and message receiving method based on block chain network
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
US20230259930A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN116055403A (en) Message data transmission method, device and server

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