CN111580841A - Dynamic upgrade service method for union chain - Google Patents

Dynamic upgrade service method for union chain Download PDF

Info

Publication number
CN111580841A
CN111580841A CN202010264763.2A CN202010264763A CN111580841A CN 111580841 A CN111580841 A CN 111580841A CN 202010264763 A CN202010264763 A CN 202010264763A CN 111580841 A CN111580841 A CN 111580841A
Authority
CN
China
Prior art keywords
organization
chain
block
information
upgrade
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.)
Granted
Application number
CN202010264763.2A
Other languages
Chinese (zh)
Other versions
CN111580841B (en
Inventor
臧铖
陈嘉俊
郭东升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yiqiyin Hangzhou Technology Co Ltd
China Zheshang Bank Co Ltd
Original Assignee
China Zheshang Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Zheshang Bank Co Ltd filed Critical China Zheshang Bank Co Ltd
Priority to CN202010264763.2A priority Critical patent/CN111580841B/en
Publication of CN111580841A publication Critical patent/CN111580841A/en
Application granted granted Critical
Publication of CN111580841B publication Critical patent/CN111580841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a dynamic service upgrading method for an alliance chain, which comprises the following steps: the server side provides restful interface service for the user, and the restful interface service comprises adding alliance chain organization members, deleting alliance chain organization members and organizing alliance chain organization members into member authority change service interfaces; the server interacts with the block chain network nodes through the block chain SDK to realize the operation of the block chain network nodes; and the server generates an upgrade file according to the upgrade information of the coalition members, acquires signature information of the coalition members according to an endorsement policy, and finally sends the upgrade file subjected to multi-party signature to a consensus node of the block chain network to upgrade the configuration block, so that the upgrade of the coalition chain is completed. The dynamic upgrading of the alliance chain can be realized by providing simple Restful interface service for the outside, so that the extension and upgrading of the alliance chain are very convenient and fast, and a foundation is laid for establishing alliance chain ecology.

Description

Dynamic upgrade service method for union chain
Technical Field
The invention relates to a block chain technology, in particular to a dynamic upgrade service method for an alliance chain.
Background
The block chain ensures the non-tamper property, credibility, high safety and traceability of information transmission by technical means. In the application of the block chain technology alliance chain, a plurality of organizations generally construct an alliance, and create a corresponding service chain to realize the circulation of digital assets on the chain. However, in the application process, the alliance chain can encounter the problems of change of organization members and change of authority of the organization members. Such as federating member addition, federating member subtraction, federating member rights change. In the past, a new configuration block is generated by regenerating configuration information, and then node services on a alliance chain are stopped, configuration is replaced, and services are restarted. The method is basically manual operation and maintenance, particularly under the scene of a plurality of distributed alliance nodes, the upgrading method can stop service, is complicated in operation and easy to cause operation errors, a plurality of organizations in the alliance need to operate and maintain together by professional personnel, the upgrading cost is very high, and the method is a great obstacle to ecological construction of the block chain.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a dynamic upgrade service method of an alliance chain.
In order to achieve the purpose, the invention has the following technical scheme: a dynamic service upgrading method for an alliance chain comprises the following steps:
the server side provides restful interface service for the user, and the restful interface service comprises adding alliance chain organization members, deleting alliance chain organization members and organizing alliance chain organization members into member authority change service interfaces;
the server interacts with the block chain network nodes through the block chain SDK to realize the operation of the block chain network nodes;
and the server generates an upgrade file according to the upgrade information of the coalition members, acquires signature information of the coalition members according to an endorsement policy, and finally sends the upgrade file subjected to multi-party signature to a consensus node of the block chain network to upgrade the configuration block, so that the upgrade of the coalition chain is completed.
Further, the background server provides restful interface service for the user, and the caller can operate through a command line or a front-end interface.
Further, the creation of the federation chain specifically includes:
opening a network of each member node;
distributing a certificate and a secret key for each organization member of the alliance by a certificate issuing organization;
generating a configuration file according to the read-write permission strategy, the on-chain organization member and the endorsement strategy of each alliance member;
generating a creating block according to the configuration file;
and distributing the creation blocks to each member node, starting the nodes and creating a chain.
Further, organization member information in the chain, authority of each organization member in the chain, certificate of each organization member in the chain and endorsement policy of management of the chain are specified in the configuration block.
Further, the endorsement policy is specified when a chain is created, and when the chain is upgraded, a signature policy of an upgrade content by an adult in the chain is performed, and the endorsement policy includes: signing endorsements by most members in the chain, signing endorsements by any member in the chain, signing endorsements by appointed members in the chain and signing endorsements by all members in the chain.
Further, the configuration block comprises a consensus node configuration, an application configuration, an organization member configuration and the like;
the consensus node configuration comprises read-write permission, a block verification strategy, a consensus type, transaction packaging configuration information, packaging timeout time, maximum chain number and the like;
the application configuration mainly aims at accounting nodes and comprises read-write permission, ACL configuration and the like;
the organization member configuration comprises an organization signature strategy and the like;
the configuration block specifies the authority and signature strategies of each organization, each consensus node, each accounting node and each organization member; an organization may include a plurality of consensus nodes and a plurality of accounting nodes;
and when the node performs reading operation or writing operation, verifying according to the corresponding authority in the configuration block.
Further, the implementation method for increasing the alliance chain organization member service interface comprises the following steps:
when a new organization is needed in a alliance chain, an operation organization and an endorsement strategy are determined through a business contract, and signature information of the endorsement is linked to a block; a client side of an operation organization prepares for newly adding organization information and an endorsement strategy, calls a restful interface and sends the restful interface to a background server side;
the background server side analyzes the newly added organization information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side constructs an upgrade file according to the newly added organization information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve or disapprove the addition;
building a block chain upgrading message for increasing organization according to the signed upgrading file;
sending a block chain transaction message of a newly added organization to a block chain network consensus node;
judging whether the block chain network is upgraded or not by the block chain network node according to the signature strategy and the state information of whether the new organization is allowed to be added or not;
and returning the updating result of the block chain network of the newly added organization.
Further, the implementation method for deleting the federation chain organization into the member service interface comprises the following steps:
when an organization needs to be deleted in a alliance chain, an operation organization and an endorsement strategy are determined through a business contract, and signature information of an endorsement is linked to a block; the client side of the operation organization prepares to delete organization information and an endorsement strategy, calls a restful interface and sends the restful interface to the background server side;
the background server side analyzes the deleted organization information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side constructs an upgrade file according to the deleted organization information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve deletion or disapprove deletion;
constructing a block chain upgrading message for deleting the organization according to the signed upgrading file;
sending a blockchain transaction message for deleting the organization to a blockchain network consensus node;
the block chain network judges whether to upgrade the block chain network according to the endorsement policy and the state information of whether to approve deleting the organization;
and returning the updating result of the block chain network of the deleted organization.
Further, the implementation method for the member authority change service interface organized by the union chain comprises the following steps:
when the organization authority needs to be changed in the alliance chain, the operation organization and the endorsement strategy are determined through the business contract, and the signature information is linked to the block; the method comprises the steps that a client side of an operation organization prepares to organize authority change information and an endorsement strategy, calls a restful interface and sends the restful interface to a background server side;
the background server side analyzes the organization authority change information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side generates an upgrade file according to the organization authority change information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve the change or disapprove the change;
building a block chain upgrading message according to the signed upgrading file;
sending a blockchain transaction message with changed organization authority to a blockchain network consensus node;
the block chain network judges whether to upgrade the block chain network according to the signature strategy and the state information of whether to agree to change the organization authority;
and returning the updating result of the block chain network with the changed organization authority.
The invention has the beneficial effects that: the dynamic upgrading of the alliance chain can be realized by providing simple Restful interface service outwards, so that the extension and upgrading of the alliance chain are very convenient and fast, and a foundation is laid for establishing alliance chain ecology.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a process flow diagram for federation chain creation;
FIG. 2 is an overall architecture diagram of the present invention;
FIG. 3 is a flow diagram of an add federation chain organizer;
FIG. 4 is a flowchart of removing federation chain organization members;
FIG. 5 is a flow chart of changes to the rights of members of a federation chain organization.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described and will be readily apparent to those of ordinary skill in the art without departing from the spirit of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
As shown in fig. 1, the process of establishing a federation chain in the present invention is as follows:
the creation of a federation chain generally starts with the network of each member node, then a CA (certificate issuing authority) distributes a certificate and a secret key for each organization member of the federation, a configuration file is generated according to a read-write permission strategy, on-chain organization members and endorsement strategies of each federation member, and then an founding block is generated according to the configuration file. The creation block is assigned to each member node, and then the node is started, a chain is created, etc.
The creation block is a configuration block, and information such as organization member information in a chain, authority of each organization member in the chain, certificate of each organization member in the chain, endorsement policy of chain management (mainly referring to upgrading operation of the chain) and the like is specified in the configuration block, so that the isolation, safety, member admission and other characteristics of the chain are determined. The endorsement strategy is specified when a chain is created, and when the chain is upgraded, a signature strategy of an in-chain member for the upgraded content is carried out, and the endorsement strategy mainly comprises the following steps: signing endorsements by most members in the chain, signing endorsements by any member in the chain, signing endorsements by appointed members in the chain and signing endorsements by all members in the chain.
As shown in fig. 2, the general architecture of the present invention is as follows:
the restful interface is provided for the user, and the caller can operate through the command line or the front-end interface. And the background server interacts with the block chain network node through the block chain SDK to realize the operation of the block chain network node. The background server side mainly provides service interfaces for adding alliance chain organization members, deleting alliance chain organization members and changing alliance chain organization member authority. The background server side generates an upgrade file according to the upgrade information of the alliance members, then obtains signature information of the alliance members according to an endorsement strategy, and finally sends the upgrade file with the multi-party signature to a consensus node of a block chain network to upgrade the configuration block, so that the purpose of upgrading the alliance chain is achieved.
Wherein, the configuration block mainly includes:
1. the configuration of the consensus node specifically comprises the following steps:
read-write permission: admin, write, read rights;
block verification strategy: ANY, ALL, MAJORITY;
common type, mainly including solo, raft, pbft;
transaction packaging configuration information, such as batch size, etc.;
packing timeout time
Maximum number of chains
The modification authority of the consensus node is generally admin authority, namely reading and writing can be carried out;
the organization information of the consensus node stores all organization information through a map table, and mainly comprises certificate information and a signature strategy.
2. The application configuration mainly aims at the accounting node, and specifically comprises the following steps:
read-write permission: admin, write, read rights;
ACL (access control list) configuration, mainly for some API interfaces, e.g. getlock interface is Read right;
the modification authority of the accounting node is generally admin authority, namely reading and writing.
3. The organization member configuration is as follows:
organizational signature policy
Organizing configuration information, storing all organization information through a map table, wherein the organization information comprises the order node configuration of an organization, and the organization information mainly comprises certificate information and a signature strategy;
creation of chains policy configuration is typically an ANY policy, i.e. ANY member of an organization can create a chain.
The configuration block specifies the authority, signature strategy and the like of each organization, each consensus node, each accounting node and each organization member. Where an organization may contain multiple consensus nodes and multiple accounting nodes. When the node operates, the operation comprises a reading operation, such as reading information on a chain; write operations such as initiating a transaction generation block, writing an account book, and upgrading configuration block operations; these operations need to be verified according to the corresponding permissions in the configuration block. The definition of the configuration block realizes the authority management of the block chain, different authorities can be defined aiming at different organizations, and the safety of the chain is effectively ensured. And differentiation configuration can be carried out according to the service scene, so that the application scene is enriched.
The background server provides the service interfaces for adding alliance chain organization members, deleting alliance chain organization members and changing the authority of the alliance chain organization members, and the specific implementation and the flow of the service interfaces are as follows:
and (one) adding member of the alliance chain organization, and the flow is shown in figure 3.
1. In the alliance chain, organizations need to be newly added, operation organizations and endorsement strategies are determined through business contracts, and the endorsement strategies can be selected from multiple organizations in the alliance to agree with the addition, any organization to agree with the addition, a designated organization to agree with the addition and all organizations to agree with the addition. The signature information of the endorsements is stored in the block in an uplink manner only if the endorsement policy is satisfied. The client side of the operation organization prepares for adding new organization information and an endorsement strategy, and calls a restful interface: and https:// ip: port/addorg, and sending to the background server.
2. And the background server side analyzes the newly added organization information and the endorsement strategy and acquires configuration block information from the block chain network.
3. And the background server side constructs an upgrade file according to the newly added organization information, the endorsement strategy and the configuration block information of the alliance chain.
4. And the background server uses the operation organization to sign the upgrade file.
5. And acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy.
6. Other organizations in the blockchain network sign and return the upgrade file, and can choose to approve the joining or disapprove the joining.
7. And building a blockchain upgrade message for adding organization according to the signed upgrade file.
8. And sending the blockchain transaction message of the newly added organization to the blockchain network consensus node.
9. And judging whether the blockchain network is upgraded or not by the blockchain network node according to the signature strategy and the state information of whether the new organization is allowed to be added or not.
10. And returning the updating result of the block chain network of the newly added organization.
And (II) deleting the member of the alliance chain organization, wherein the flow is shown in figure 4.
1. In a alliance chain, an organization needs to be deleted, an operation organization and an endorsement strategy are determined through a business contract, and the endorsement strategy can select multiple organizations in the alliance to approve deletion, any organization to approve deletion, a designated organization to approve deletion and all organizations to approve deletion. Only if the endorsement policy is satisfied, the deletion is successful, and the signature information of the endorsements is linked and stored in the block. The client side of the operation organization is ready to delete organization information and an endorsement strategy, and a restful interface is called: and https:// ip: port/deleteorg, and sending to the background server.
2. And the background server analyzes the deleted organization information and the endorsement strategy and acquires configuration block information from the block chain network.
3. And the background server side constructs an upgrade file according to the deleted organization information, the endorsement strategy and the configuration block information of the alliance chain.
4. And the background server uses the operation organization to sign the upgrade file.
5. And acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy.
6. And other organizations of the blockchain network sign the upgrade file and return the upgrade file, and can choose to approve deletion or disapprove deletion.
7. And constructing a block chain upgrading message for deleting the organization according to the signed upgrading file.
8. And sending the blockchain transaction message of the deletion organization to the blockchain network consensus node.
9. And the block chain network judges whether to upgrade the block chain network according to the endorsement policy and the state information of whether to approve deleting the organization.
10. And returning the updating result of the block chain network of the deleted organization.
And (III) organizing the alliance chain into member authority change, and the flow is shown in figure 5.
1. In the alliance chain, organization authority needs to be changed, and in the general alliance chain, organizations have read authority, write authority and admin authority. The operation organization and the endorsement strategy are determined through the business contract, and the endorsement strategy can select a plurality of organizations in the alliance to agree with the change authority, any organization agrees with the change authority, the designated organization agrees with the change authority and all organizations agree with the change authority. Only if the endorsement policy is satisfied, the organization authority can be successfully changed, and the signature information is linked and stored in the block. The client side of the operation organization prepares to organize the authority change information and the endorsement strategy, and calls a restful interface: http:// ip: port/changePermission, and sending to the background server.
2. And the background server side analyzes the organization authority change information and the endorsement strategy and acquires configuration block information from the block chain network.
3. And the background server generates an upgrade file according to the organization authority change information, the endorsement strategy and the configuration block information of the alliance chain.
4. And the background server uses the operation organization to sign the upgrade file.
5. And acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy.
6. Other organizations in the blockchain network sign and return the upgrade file, and can choose to approve the change or disapprove the change.
7. And building a block chain upgrading message according to the signed upgrading file.
8. And sending a blockchain transaction message of the organization authority change to a blockchain network consensus node.
9. And the block chain network judges whether to upgrade the block chain network according to the signature strategy and the state information of whether to agree to change the organization authority.
10. And returning the updating result of the block chain network with the changed organization authority.
In addition, in some embodiments of the present application, the primary message, the primary function, and the primary interface are defined as follows, but are not limited thereto:
the main messages are defined as follows:
AddOrgRequest: new organization request message
DeleteOrgRequest: deleting a federation chain organization request message
ChangePermissionRequest: federation chain organization permission change request message
The main functions are defined as follows:
function name Description of functions
AddOrg() Increase tissue
createAddOrgUpdate() Building an Add-on-organizational upgrade File
DeleteOrg() Deleting an organization
createDelOrgUpdate() Building delete organization upgrade files
ChangePermission() Organizing rights changes
createChangePermissionUpdate() Constructing an organization permission change upgrade file
GetConfigBlockByChannel() Obtaining federation chain configuration blocks
configUpdate() Upgrade file construction
Compute() Calculating an upgrade file based on configuration changes
SignUpdate() Signing configuration upgrade files
Sign() Signature function
The main interfaces are defined as follows:
https://ip:port/addorg
https://ip:port/deleteorg
https://ip:port/changePermission
the foregoing is only a preferred embodiment of the present invention, and although the present invention has been disclosed in the preferred embodiments, it is not intended to limit the present invention. Those skilled in the art can make numerous possible variations and modifications to the present teachings, or modify equivalent embodiments to equivalent variations, without departing from the scope of the present teachings, using the methods and techniques disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.

Claims (9)

1. A dynamic service upgrading method for an alliance chain is characterized by comprising the following steps:
the server provides restful interface service for the user, and the restful interface service comprises adding a member of the alliance chain organization, deleting the member of the alliance chain organization and changing the service interface of the authority of the alliance chain organization.
And the server interacts with the block chain network node through the block chain SDK to realize the operation of the block chain network node.
And the server generates an upgrade file according to the upgrade information of the coalition members, acquires signature information of the coalition members according to an endorsement policy, and finally sends the upgrade file subjected to multi-party signature to a consensus node of the block chain network to upgrade the configuration block, so that the upgrade of the coalition chain is completed.
2. The federation chain dynamic upgrade service method of claim 1, wherein the backend server provides restful interface service to the user, and the caller can operate through a command line or a front-end interface.
3. The federation chain dynamic upgrade service method of claim 1, wherein the creation of a federation chain specifically comprises:
opening a network of each member node;
distributing a certificate and a secret key for each organization member of the alliance by a certificate issuing organization;
generating a configuration file according to the read-write permission strategy, the on-chain organization member and the endorsement strategy of each alliance member;
generating a creating block according to the configuration file;
and distributing the creation blocks to each member node, starting the nodes and creating a chain.
4. The federation chain dynamic upgrade service method of claim 1, wherein the configuration block specifies organization member information within the chain, authority of each organization member within the chain, certificates of each organization member within the chain, and endorsement policies for management of the chain.
5. The federation chain dynamic upgrade service method of claim 1, wherein the endorsement policy specifies at the time of chain creation, and when the upgrade operation is performed on the chain, the endorsement policy comprises: signing endorsements by most members in the chain, signing endorsements by any member in the chain, signing endorsements by appointed members in the chain and signing endorsements by all members in the chain.
6. The federation chain dynamic upgrade service method of claim 1, wherein the configuration block comprises consensus node configuration, application configuration, organization member configuration, and the like;
the consensus node configuration comprises read-write permission, a block verification strategy, a consensus type, transaction packaging configuration information, packaging timeout time, maximum chain number and the like;
the application configuration mainly aims at accounting nodes and comprises read-write permission, ACL configuration and the like;
the organization member configuration comprises an organization signature strategy and the like;
the configuration block specifies the authority and signature strategies of each organization, each consensus node, each accounting node and each organization member; an organization may include a plurality of consensus nodes and a plurality of accounting nodes;
and when the node performs reading operation or writing operation, verifying according to the corresponding authority in the configuration block.
7. The dynamic alliance chain upgrade service method as claimed in claim 1, wherein the implementation method for increasing alliance chain organizer service interface comprises:
when a new organization is needed in a alliance chain, an operation organization and an endorsement strategy are determined through a business contract, and signature information of the endorsement is linked to a block; a client side of an operation organization prepares for newly adding organization information and an endorsement strategy, calls a restful interface and sends the restful interface to a background server side;
the background server side analyzes the newly added organization information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side constructs an upgrade file according to the newly added organization information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve or disapprove the addition;
building a block chain upgrading message for increasing organization according to the signed upgrading file;
sending a block chain transaction message of a newly added organization to a block chain network consensus node;
judging whether the block chain network is upgraded or not by the block chain network node according to the signature strategy and the state information of whether the new organization is allowed to be added or not;
and returning the updating result of the block chain network of the newly added organization.
8. The dynamic alliance chain upgrading service method according to claim 1, wherein the implementation method for deleting alliance chain organizer service interfaces comprises:
when an organization needs to be deleted in a alliance chain, an operation organization and an endorsement strategy are determined through a business contract, and signature information of an endorsement is linked to a block; the client side of the operation organization prepares to delete organization information and an endorsement strategy, calls a restful interface and sends the restful interface to the background server side;
the background server side analyzes the deleted organization information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side constructs an upgrade file according to the deleted organization information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve deletion or disapprove deletion;
constructing a block chain upgrading message for deleting the organization according to the signed upgrading file;
sending a blockchain transaction message for deleting the organization to a blockchain network consensus node;
the block chain network judges whether to upgrade the block chain network according to the endorsement policy and the state information of whether to approve deleting the organization;
and returning the updating result of the block chain network of the deleted organization.
9. The dynamic federation chain upgrade service method of claim 1, wherein the implementation method for member authority change service interface of federation chain organization comprises:
when the organization authority needs to be changed in the alliance chain, the operation organization and the endorsement strategy are determined through the business contract, and the signature information is linked to the block; the method comprises the steps that a client side of an operation organization prepares to organize authority change information and an endorsement strategy, calls a restful interface and sends the restful interface to a background server side;
the background server side analyzes the organization authority change information and the endorsement strategy and acquires configuration block information from the block chain network;
the background server side generates an upgrade file according to the organization authority change information, the endorsement strategy and the configuration block information of the alliance chain;
the background server uses an operation organization to sign the upgrade file;
acquiring signature information of the upgrade file from other organizations of the block chain network according to the endorsement policy;
other organizations of the block chain network sign and return the upgrade file, and can choose to approve the change or disapprove the change;
building a block chain upgrading message according to the signed upgrading file;
sending a blockchain transaction message with changed organization authority to a blockchain network consensus node;
the block chain network judges whether to upgrade the block chain network according to the signature strategy and the state information of whether to agree to change the organization authority;
and returning the updating result of the block chain network with the changed organization authority.
CN202010264763.2A 2020-04-07 2020-04-07 Dynamic upgrade service method for union chain Active CN111580841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010264763.2A CN111580841B (en) 2020-04-07 2020-04-07 Dynamic upgrade service method for union chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010264763.2A CN111580841B (en) 2020-04-07 2020-04-07 Dynamic upgrade service method for union chain

Publications (2)

Publication Number Publication Date
CN111580841A true CN111580841A (en) 2020-08-25
CN111580841B CN111580841B (en) 2021-06-29

Family

ID=72114881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010264763.2A Active CN111580841B (en) 2020-04-07 2020-04-07 Dynamic upgrade service method for union chain

Country Status (1)

Country Link
CN (1) CN111580841B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380219A (en) * 2020-11-18 2021-02-19 南威软件股份有限公司 Method for defining block chain cochain data service stipulation and application service stipulation
CN113141271A (en) * 2021-04-20 2021-07-20 国网上海市电力公司 Transformer substation equipment configuration file version management method based on alliance chain
CN114095373A (en) * 2021-10-29 2022-02-25 浙商银行股份有限公司 Knowledge graph-based alliance chain management method, system, equipment and storage medium
CN114640684A (en) * 2022-03-31 2022-06-17 建信金融科技有限责任公司 Organization member extension method, processor and storage medium for federation chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101242A (en) * 2016-06-24 2016-11-09 深圳前海微众银行股份有限公司 The construction method of block chain cloud service platform and device
US20170116693A1 (en) * 2015-10-27 2017-04-27 Verimatrix, Inc. Systems and Methods for Decentralizing Commerce and Rights Management for Digital Assets Using a Blockchain Rights Ledger
CN108416577A (en) * 2018-03-02 2018-08-17 上海汉得信息技术股份有限公司 A kind of block chain service system
CN110008263A (en) * 2019-02-20 2019-07-12 顺丰科技有限公司 Dynamic organization's extended method and system under Hyperledger fabric cluster mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116693A1 (en) * 2015-10-27 2017-04-27 Verimatrix, Inc. Systems and Methods for Decentralizing Commerce and Rights Management for Digital Assets Using a Blockchain Rights Ledger
CN106101242A (en) * 2016-06-24 2016-11-09 深圳前海微众银行股份有限公司 The construction method of block chain cloud service platform and device
CN108416577A (en) * 2018-03-02 2018-08-17 上海汉得信息技术股份有限公司 A kind of block chain service system
CN110008263A (en) * 2019-02-20 2019-07-12 顺丰科技有限公司 Dynamic organization's extended method and system under Hyperledger fabric cluster mode

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380219A (en) * 2020-11-18 2021-02-19 南威软件股份有限公司 Method for defining block chain cochain data service stipulation and application service stipulation
CN113141271A (en) * 2021-04-20 2021-07-20 国网上海市电力公司 Transformer substation equipment configuration file version management method based on alliance chain
CN114095373A (en) * 2021-10-29 2022-02-25 浙商银行股份有限公司 Knowledge graph-based alliance chain management method, system, equipment and storage medium
CN114095373B (en) * 2021-10-29 2024-04-19 浙商银行股份有限公司 Knowledge graph-based alliance chain management method, system, equipment and storage medium
CN114640684A (en) * 2022-03-31 2022-06-17 建信金融科技有限责任公司 Organization member extension method, processor and storage medium for federation chain

Also Published As

Publication number Publication date
CN111580841B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN111580841B (en) Dynamic upgrade service method for union chain
CN109522735B (en) Data permission verification method and device based on intelligent contract
US20240144280A1 (en) Blockchain architecture with record security
US10790976B1 (en) System and method of blockchain wallet recovery
CN106681739B (en) Automatic intelligent contract generation method
CN108418689A (en) A kind of the zero-knowledge proof method and medium of suitable block chain secret protection
CN110855777B (en) Node management method and device based on block chain
US11743027B2 (en) Decentralized methods and systems for storage, access, distribution and exchange of electronic information and documents over the internet using blockchain to protect against cyber attacks and theft
CN113361937B (en) Integrated quality evaluation method for electronic government system
CN109003207B (en) Residence permit information processing method and platform based on block chain
WO2021027532A1 (en) Authority verification method and device for smart contract
CN114978638B (en) Block chain cross-chain supervision method based on shared node
CN112149077B (en) Supply chain billing method, system and computer equipment based on block chain technology
CN115296838A (en) Data sharing method, system and storage medium based on block chain
CN110647581A (en) Electronic contract configuration management system and method based on block chain
CN112307125A (en) Signing method and device for realizing encrypted electronic contract based on block chain intelligent contract
CN111294339A (en) Homogeneous alliance chain cross-chain method and device based on Fabric architecture
Qian et al. A method of exchanging data in smart city by blockchain
CN112668018A (en) Block chain-based government data protocol authorization sharing method and device
Ekici et al. Data cleaning for process mining with smart contract
CN109388923B (en) Program execution method and device
CN113132459A (en) Distributed storage method, system, storage medium, information data processing terminal
CN112950209A (en) Nuclear power experience feedback information management method and system based on block chain
CN113037827A (en) Voting method based on block chain, self-organization management method and computer equipment
CN101655865A (en) Method for providing object information, object platform and application system

Legal Events

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

Effective date of registration: 20220602

Address after: No. 1788, Hongning Road, Xiaoshan District, Hangzhou, Zhejiang 311200

Patentee after: CHINA ZHESHANG BANK Co.,Ltd.

Patentee after: Yiqiyin (Hangzhou) Technology Co., Ltd

Address before: No. 1788, Hongning Road, Xiaoshan District, Hangzhou, Zhejiang 311200

Patentee before: CHINA ZHESHANG BANK Co.,Ltd.

TR01 Transfer of patent right