CN110058878B - Fabric block chain configuration method and system based on intelligent contract - Google Patents

Fabric block chain configuration method and system based on intelligent contract Download PDF

Info

Publication number
CN110058878B
CN110058878B CN201910269395.8A CN201910269395A CN110058878B CN 110058878 B CN110058878 B CN 110058878B CN 201910269395 A CN201910269395 A CN 201910269395A CN 110058878 B CN110058878 B CN 110058878B
Authority
CN
China
Prior art keywords
intelligent contract
configuration
file
block chain
upgrading
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.)
Active
Application number
CN201910269395.8A
Other languages
Chinese (zh)
Other versions
CN110058878A (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.)
Bank of Communications Co Ltd
Original Assignee
Bank of Communications 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 Bank of Communications Co Ltd filed Critical Bank of Communications Co Ltd
Priority to CN201910269395.8A priority Critical patent/CN110058878B/en
Publication of CN110058878A publication Critical patent/CN110058878A/en
Application granted granted Critical
Publication of CN110058878B publication Critical patent/CN110058878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a system for configuring a Fabric Block chain based on an intelligent contract, wherein the method comprises the following steps: adjusting configuration item modification strategies in the creature block file and the channel creation envelope file to designate a management mechanism group of the Fabric block chain; receiving relevant information of a mechanism to be processed of a peripheral system of an input management mechanism group, generating a configuration update file after comparing the information with configuration information of an existing Fabric block chain, and collecting a corresponding digital signature; calling an intelligent contract through a peripheral system to chain the configuration update file and the corresponding digital signature, and simultaneously initiating a cross-mechanism block chain configuration management process of a participant for all mechanisms in a management mechanism group; reading digital signatures of chains of other management organizations in the management organization group; and calling a block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature, and executing configuration updating operation.

Description

Fabric block chain configuration method and system based on intelligent contract
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a Fabric block chain configuration method and system based on an intelligent contract.
Background
The intelligent contract technology born from blockchains is a computer protocol that propagates, verifies, or executes contracts in an informational manner. The intelligent contract technology provides a publicly transparent contract computing protocol, and also includes the technical characteristics of block chain data security, distribution, traceability and non-falsification, and aims to provide security superior to the traditional contract method and reduce other transaction costs related to the contract. As one of the most popular and mature block chain frameworks in the industry at present, fabric has the advantages of good expansibility and physical isolation, and the like, and is suitable for constructing a union chain and providing an inter-enterprise trust data platform.
One of the prior art is: the method is characterized in that the block chain configuration and the intelligent contract management of the open source block chain platform Hyperlegder Fabric (IBM corporation) are all processed offline by using an official basic tool, and the file interaction between organizations needs to be carried out through offline channels such as mails, U disks, network disks and the like. However, this solution has the following disadvantages: 1) The default modification strategy of the Fabric blockchain configuration item is modified only by passing through a half, and the more the number of participating mechanisms is, the more digital signatures are collected, the higher the management cost is; 2) The Fabric blockchain configuration modification file must be signed by using a common node certificate, and the peripheral blockchain application is participated in the node by using the certificate used when the Fabric blockchain application is docked with the Fabric through an official sdk, so that the configuration modification operation cannot be carried out by using the sdk in a peripheral system; 3) The configuration updating is inconvenient, the configuration updating file needs to be generated on line by means of an official tool, the operation is complex and tedious, and the signed configuration file needs to be digitally signed on line between institutions, so that the risk of information leakage is increased; 4) The intelligent contract is difficult to deploy and upgrade, on one hand, the deployment and upgrade of the intelligent contract are completed by a command line tool on line, the operation is inconvenient, and on the other hand, the offline transfer of the intelligent contract installation file can increase the management cost and the information leakage risk; 5) The participating institutions can only view the intelligent contract information of the corresponding participating nodes of the institutions, and the information is invisible to other participating institutions in the chain and lacks of a unified intelligent contract monitoring view.
In addition, by adjusting the default configuration item modification strategy, a few organizations in the participating organizations are allowed to be designated as management organizations, the configuration update file is signed by the second half organization in the management organization group, namely, the configuration update file is legal, and the participating node certificate is used when the configuration update file is signed, so that the configuration modification can be directly carried out by utilizing sdk in a peripheral system. The configuration information and the intelligent contract files which need to be managed are processed and then directly linked up by utilizing the self characteristics of the block chain, meanwhile, the digital signatures of corresponding participating nodes are automatically acquired, the execution condition of the updating operation is fed back, and the transfer efficiency is greatly improved on the premise of ensuring the interaction reliability of the data files among the organizations. Based on the scheme, the cross-organization whole-flow-line processing of block configuration management and intelligent contract management is realized by means of the official sdk and the self-developed cross-organization flow engine, so that the management cost is reduced, and the processing efficiency is improved. However, the above solution has the following drawbacks: 1) When the self-research process engine, the information feedback API and the official sdk are called in a combined mode, due to the relative independence of all parts, consistent transaction control is lacked, and the problem that process related information is inconsistent with data on links such as actual block configuration information and the like can occur under extreme conditions; 2) And the intelligent contract file is limited in size by the block size, the maximum size cannot exceed 99m, and otherwise, the blocking problem can occur.
Due to the self-positioning and other reasons, the Fabric platform has the problem of inconvenient block chain management in actual use, such as inconvenient block configuration management, difficult intelligent contract upgrade and deployment, lack of unified monitoring and the like.
Disclosure of Invention
In order to solve the problems, the invention provides a Fabric block chain configuration management scheme based on an intelligent contract, which provides public and transparent contract computing protocols, distributed, traceable and non-falsifiable technical characteristics by means of an intelligent contract technology, solves the trust problem of block chain management information among organizations, improves the cross-organization circulation efficiency of block chain management, and improves the information security.
One aspect of the present invention provides a method for configuring a Fabric blockchain based on an intelligent contract, where the method includes:
adjusting a configuration item modification strategy in the created block file and the channel creation envelope file to designate a management mechanism group of the Fabric block chain;
the configuration updating initiating mechanism receives the relevant information of the mechanism to be processed which is input into the peripheral system of the management mechanism group, generates a configuration updating file after comparing the information with the configuration information of the existing Fabric block chain, and collects the corresponding digital signature at the same time; wherein, the configuration updating initiating mechanism is a member of a management mechanism group;
the configuration updating initiating mechanism calls an intelligent contract through a peripheral system to uplink the configuration updating file and the corresponding digital signature, and simultaneously initiates a cross-mechanism block chain configuration management process of all mechanisms in the management mechanism group by a participant;
configuring an updating initiating mechanism to read digital signatures of chains of other management mechanisms in a management mechanism group;
and the configuration updating initiating mechanism calls the block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature to execute configuration updating operation.
In one embodiment, all participating institutions on the Fabric blockchain execute the same intelligent contract.
In an embodiment, the method further includes upgrading the intelligent contract, specifically including:
the intelligent contract upgrading initiating mechanism calls the current intelligent contract to pack and chain up the new version intelligent contract files, and simultaneously initiates a cross-mechanism intelligent contract management process of all participating mechanisms in the Fabric block chain as a participant; the intelligent contract upgrading initiating mechanism is a participation mechanism of a Fabric block chain;
all participating mechanisms in the Fabric block chain examine and approve the new version intelligent contract file and the intelligent contract management process;
when each participating mechanism passes the approval, the participating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a node of the participating mechanism;
and after all participating mechanisms in the Fabric Block chain pass the examination and approval, the intelligent contract upgrading initiating mechanism calls an intelligent contract upgrading API through a peripheral system to execute upgrading operation so as to complete unified upgrading.
In one embodiment, when the intelligent contract upgrading initiating mechanism packages and chains the new version intelligent contract files, the new version intelligent contract files are converted into character string files in a base64 form;
when the intelligent contract upgrading initiating mechanism downloads the new version intelligent contract files through the peripheral system and installs the new version intelligent contract files on the corresponding participating mechanisms, the character string files in the base64 form are converted into compressed files for installation.
In an embodiment, the method further comprises: and monitoring the upgrading condition of all participating mechanisms of the intelligent contract in the Fabric blockchain.
On the other hand, the embodiment of the invention also provides a Fabric block chain configuration system based on the intelligent contract, and the system comprises: a preprocessing device and a configuration updating initiating mechanism; wherein,
the preprocessing device is used for adjusting configuration item modification strategies in the founding block file and the channel creation envelope file so as to designate a management mechanism group of the Fabric block chain;
the configuration updating initiating mechanism is used for receiving relevant information of a mechanism to be processed, which is input into a peripheral system of the management mechanism group, generating a configuration updating file after comparing the information with configuration information of the existing Fabric block chain, and collecting a corresponding digital signature; wherein, the configuration updating initiating mechanism is a member of a management mechanism group;
the configuration updating initiating mechanism is also used for uploading the configuration updating file and the corresponding digital signature by calling an intelligent contract through a peripheral system, and simultaneously initiating a cross-mechanism block chain configuration management process of all mechanisms in a participant for a management mechanism group;
the configuration updating initiating mechanism is also used for reading digital signatures of chains of other management mechanisms in the management mechanism group;
the configuration updating initiating mechanism is also used for calling a block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature, and executing configuration updating operation.
In one embodiment, all participating institutions on the Fabric blockchain execute the same intelligent contract.
In an embodiment, the system further includes an intelligent contract upgrading initiating mechanism, configured to upgrade the intelligent contract, where the intelligent contract upgrading initiating mechanism is a participating mechanism of a Fabric blockchain, and specifically includes, when upgrading the intelligent contract:
the intelligent contract upgrading initiating mechanism calls the current intelligent contract to pack and chain up the new version intelligent contract files, and simultaneously initiates a cross-mechanism intelligent contract management process of all participating mechanisms in the Fabric block chain as a participant;
all participating mechanisms in the Fabric Block chain examine and approve the new version intelligent contract file and the intelligent contract management process;
when each participating mechanism passes the approval, the participating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on the participating mechanism node;
and after all participating mechanisms in the Fabric Block chain pass the examination and approval, the intelligent contract upgrading initiating mechanism calls an intelligent contract upgrading API to execute upgrading operation through a peripheral system so as to finish unified upgrading.
In one embodiment, the system further comprises: a first conversion device and a second conversion device;
when the intelligent contract upgrading initiating mechanism packs and chains a new version of intelligent contract file, the first conversion device is used for converting the new version of intelligent contract file into a string file in a base64 form;
when the intelligent contract upgrading initiating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a corresponding participating mechanism, the second conversion device is used for converting the character string file in the base64 form into a compressed file for installation.
In one embodiment, the system further comprises: and the monitoring device is used for monitoring the upgrading conditions of all participating mechanisms of the intelligent contract in the Fabric blockchain.
The embodiment of the invention uses the intelligent contract to realize updating of the block chain configuration file and cross-organization safe circulation of the intelligent contract file, can automatically collect the data signature, automatically take effect to configure and modify according to the cross-organization flow state, execute the intelligent contract upgrading and updating, and can track the configuration modification history of the monitoring block chain and the intelligent contract upgrading history of all the participating nodes by using the unified monitoring view, thereby solving the trust problem of block chain management information among organizations, improving the cross-organization circulation efficiency of block chain management and improving the information safety.
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 described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a Fabric blockchain configuration method based on an intelligent contract according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an intelligent contract upgrading process provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a Fabric blockchain configuration system based on an intelligent contract according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a Fabric blockchain configuration method based on an intelligent contract according to an embodiment of the present invention. As shown in fig. 1, the method mainly comprises the following steps:
and S11, adjusting a configuration item modification strategy in the created block file and the channel creation envelope file to designate a management mechanism group of the Fabric block chain.
A founding block, a genetics block in english, is a first block file of a block chain, in which basic configuration information of the block chain platform is recorded. In the Fabric platform, the created block includes configuration information such as configuration item modification strategy, participation node, consensus node information, block generation time interval, and block file size.
The modification strategy, mod policy in English, is used for specifying a condition that must be met by modifying the Fabric platform configuration item, and only if the condition is met, a certain configuration item is allowed to be modified, and the condition is that a digital signature of a semi-consensus node is collected by default.
Several participating mechanisms in the Fabric blockchain can be designated as a blockchain management mechanism group, and the mechanisms in the group can be added or deleted through a blockchain configuration management flow.
S12, a configuration updating initiating mechanism receives relevant information of a mechanism to be processed, which is input into a peripheral system of a management mechanism group, generates a configuration updating file after comparing the information with configuration information of an existing Fabric block chain, and collects a corresponding digital signature; wherein the configuration update initiating mechanism is a member of a group of management authorities.
When the Fabric blockchain management mechanism inputs the relevant information of the mechanism to be processed, such as name, domain name, root certificate, transaction certificate and the like, into the peripheral system, the flow is submitted, the configuration updating initiating mechanism compares the relevant information with the existing blockchain configuration information after receiving the relevant information, a configuration updating file is generated after comparison, and digital signatures are collected at the same time, and when the digital signatures of more than half of nodes in the management mechanism group are collected, the next step can be carried out.
And S13, the configuration updating initiating mechanism calls an intelligent contract through a peripheral system to uplink the configuration updating file and the corresponding digital signature, and simultaneously initiates a cross-mechanism block chain configuration management process of all mechanisms in the management mechanism group.
Step S14, configuring the update initiating mechanism to read the digital signatures of the chains of other management mechanisms in the management mechanism group.
After the step S13 is used to initiate the configuration management process of the inter-organization block chain, the peripheral system automatically collects and chains the corresponding digital signature of the organization when the other participating organizations pass the configuration management process through the approval of the peripheral system, and the configuration update initiating organization reads the digital signature of the chain.
When the majority of the management mechanisms in the management mechanism group agree to the configuration modification, the block chain peripheral system of any management mechanism can execute the configuration updating operation, and the processing efficiency is improved on the premise of ensuring the safety.
And S15, the configuration updating initiating mechanism calls a block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature to execute configuration updating operation.
After the other management mechanisms complete the approval, the process flows to the configuration updating initiating mechanism, when the initiating mechanism passes the approval, the peripheral system calls the block chain configuration updating API according to the configuration updating file and the collected digital signature, the configuration updating operation is directly executed, and the configuration updating is completed.
In an embodiment, a customized Fabric configuration item modification policy and a customized Fabric configuration tool (for example, a configuration tool may be self-developed for each organization) may be used to modify an initial configuration file, and a management mechanism group with a relatively fixed number of members is specified, so that problems of too long configuration management process, difficulty in data signature collection, unsafe configuration file flow, necessity of executing configuration update operation under a common node line and the like under the condition that alliance participating organizations are numerous can be avoided, efficient, safe and convenient Fabric block chain configuration and intelligent contract management are provided, and management cost of a Fabric platform is effectively reduced.
In one embodiment, to ensure consistency, all participating mechanisms on a Fabric blockchain execute the same intelligent contract.
In one embodiment, the smart contracts are upgradeable. When the intelligent contract needs to be upgraded, the intelligent contract can be upgraded according to the steps shown in fig. 2:
and S21, calling the current intelligent contract by the intelligent contract upgrading initiating mechanism to package and chain up the new version intelligent contract files, and simultaneously initiating a cross-mechanism intelligent contract management process of which the participant is all participating mechanisms in the Fabric block chain.
The intelligent contract upgrading initiating mechanism can be an intelligent contract developing mechanism and is a participating mechanism of the Fabric block chain. Before this step, since the new intelligent contract is not updated, the original intelligent contract needs to be called for uplink during uplink.
And S22, all participating mechanisms in the Fabric block chain examine and approve the new version intelligent contract file and the intelligent contract management process.
And the participating mechanism examines and approves whether the codes in the new version of the intelligent contract file are legal or not and examines and approves whether the intelligent contract management process is legal or not, and when the examination and approval results of the two are both yes, the examination and approval is passed.
And S23, when each participating mechanism passes the approval, downloading a new version of intelligent contract file by the participating mechanism through the peripheral system and installing the new version of intelligent contract file on the participating mechanism node.
And S24, after all participating mechanisms in the Fabric Block chain pass the examination and approval, calling an intelligent contract upgrading API by the intelligent contract upgrading initiating mechanism through a peripheral system to execute upgrading operation so as to finish unified upgrading.
In one embodiment, when the intelligent contract upgrade initiating mechanism packages and chains a new version of intelligent contract file, the new version of intelligent contract file needs to be converted into a string file in a base64 form; when the intelligent contract upgrade initiating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a corresponding participating mechanism, the string file in the base64 form needs to be converted into a compressed file for installation.
In one embodiment, in the process of upgrading the intelligent contract, the upgrading conditions of all participating mechanisms of the intelligent contract in the Fabric block chain are monitored, wherein the upgrading conditions comprise whether the participating mechanisms are installed successfully, whether the upgrading is successful after the installation, and the like.
Generally, when an intelligent contract is upgraded at a code level, a storage function of an intelligent contract code can be built in an initial intelligent contract, that is, a new version intelligent contract file in a compressed file form is converted into a new version intelligent contract character string uplink in a base64 form; the reading function of the intelligent contract code, that is, the new version intelligent contract character string in the form of base64 is converted into a new version intelligent contract file in a compressed file format, can also be built in the initial intelligent contract for convenient installation. In addition, a collection function can be built in the initial intelligent contract to collect the intelligent contract about the installation condition of each block link point. After upgrading is completed, the intelligent contract upgrading conditions of all the participating nodes on the monitoring chain can be tracked in the unified intelligent contract monitoring view, and the history and current version information of the intelligent contract upgrading conditions are checked.
The embodiment of the invention uses the intelligent contract to realize updating of the block chain configuration file and cross-organization safe circulation of the intelligent contract file, can automatically collect the data signature, automatically take effect to configure and modify according to the cross-organization flow state, execute the intelligent contract upgrading and updating, and can track the configuration modification history of the monitoring block chain and the intelligent contract upgrading history of all the participating nodes by using the unified monitoring view, thereby solving the trust problem of block chain management information among organizations, improving the cross-organization circulation efficiency of block chain management and improving the information safety.
Based on the same inventive concept as that of the method for configuring the Fabric blockchain based on the intelligent contract in fig. 1, the embodiment of the present application further provides a system for configuring the Fabric blockchain based on the intelligent contract, as described in the following embodiments. Because the principle of solving the problem of the system is similar to that of the method for configuring the Fabric blockchain based on the intelligent contract in fig. 1, the implementation of the system can refer to the implementation of the method for configuring the Fabric blockchain based on the intelligent contract in fig. 1, and repeated parts are not described again.
In another embodiment, the present invention further provides a Fabric blockchain configuration system based on smart contracts, the structure of which is shown in fig. 3, and the system mainly includes: a preprocessing device 10 and a configuration update initiating mechanism 20.
The preprocessing device 10 is configured to adjust a configuration item modification policy in the creature block file and the channel creation envelope file to specify a management mechanism group of the Fabric block chain. The configuration update initiating mechanism 20 is configured to receive information related to a to-be-processed entity entered into the peripheral system of the administrative group, compare the information with configuration information of an existing Fabric block chain, generate a configuration update file, and collect a corresponding digital signature. Where update authority 20 is configured as a member of the authority group.
The configuration update initiating mechanism 20 is further configured to uplink the configuration update file and the corresponding digital signature by invoking an intelligent contract through a peripheral system, and simultaneously initiate a cross-mechanism blockchain configuration management process of the participant for all mechanisms in the management mechanism group. The configuration update initiating mechanism 20 is also used to read the digital signatures of the chains on the other management mechanisms in the set of management mechanisms. The configuration update initiating mechanism 20 is further configured to invoke a block chain configuration update API by the peripheral system according to the configuration update file, the collected digital signature, and the read digital signature, and execute a configuration update operation.
In one embodiment, all participating mechanisms on the Fabric blockchain execute the same intelligent contract.
In one embodiment, the system further comprises an intelligent contract upgrade initiating mechanism 30 for upgrading the intelligent contract. The intelligent contract upgrading initiating mechanism 30 is a participating mechanism of the Fabric block chain, and specifically includes:
the intelligent contract upgrading initiating mechanism 30 calls the current intelligent contract to package and chain up the new version intelligent contract files, and simultaneously initiates the cross-mechanism intelligent contract management process of all the participating mechanisms in the Fabric block chain as participants. And all participating institutions in the Fabric blockchain approve the new version intelligent contract file and the intelligent contract management process. When each participating institution passes the approval, the participating institution downloads the new version of the intelligent contract document through the peripheral system and installs it on the participating institution node. After all participating mechanisms in the Fabric blockchain pass the approval, the intelligent contract upgrading initiating mechanism 30 calls the intelligent contract upgrading API to execute upgrading operation through the peripheral system, so as to complete unified upgrading.
In one embodiment, the system further comprises: a first conversion device 40 and a second conversion device 50. When the intelligent contract upgrading initiating mechanism 30 packages and chains the new intelligent contract file, the first conversion device 40 is configured to convert the new intelligent contract file into a string file in a base64 form; when the intelligent contract upgrade initiating mechanism 30 downloads a new version of intelligent contract file through a peripheral system and installs it on a corresponding participating mechanism, the second converting means 50 is used to convert the string file in base64 form into a compressed file for installation.
In one embodiment, the system further comprises a monitoring device 60 for monitoring the upgrade of all participating entities in the Fabric blockchain for the smart contract.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A Fabric blockchain configuration method based on intelligent contracts is characterized by comprising the following steps:
adjusting configuration item modification strategies in the creature block file and the channel creation envelope file to designate a management mechanism group of the Fabric block chain;
the configuration updating initiating mechanism receives the relevant information of the mechanism to be processed which is input into the peripheral system of the management mechanism group, generates a configuration updating file after comparing the information with the configuration information of the existing Fabric block chain, and collects the corresponding digital signature at the same time; wherein, the configuration updating initiating mechanism is a member of a management mechanism group;
the configuration updating initiating mechanism calls an intelligent contract through a peripheral system to uplink the configuration updating file and the corresponding digital signature, and simultaneously initiates a cross-mechanism block chain configuration management process of all mechanisms in the participant for the management mechanism group;
configuring an updating initiating mechanism to read digital signatures of chains of other management mechanisms in a management mechanism group;
and the configuration updating initiating mechanism calls the block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature to execute configuration updating operation.
2. A method of intelligent contract-based Fabric blockchain configuration according to claim 1 in which all participating mechanisms on the Fabric blockchain execute the same intelligent contract.
3. The method for configuring Fabric blockchain based on smart contracts according to claim 1, further comprising upgrading the smart contracts, specifically comprising:
the intelligent contract upgrading initiating mechanism calls the current intelligent contract to pack and chain up the new version intelligent contract files, and simultaneously initiates a cross-mechanism intelligent contract management process of all participating mechanisms in the Fabric block chain as a participant; the intelligent contract upgrading initiating mechanism is a participation mechanism of a Fabric Block chain;
all participating mechanisms in the Fabric Block chain examine and approve the new version intelligent contract file and the intelligent contract management process;
when each participating mechanism passes the approval, the participating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a node of the participating mechanism;
and after all participating mechanisms in the Fabric Block chain pass the examination and approval, the intelligent contract upgrading initiating mechanism calls an intelligent contract upgrading API to execute upgrading operation through a peripheral system so as to finish unified upgrading.
4. A method for Fabric blockchain configuration based on smart contracts according to claim 3,
when the intelligent contract upgrading initiating mechanism packs and links up the new version intelligent contract files, converting the new version intelligent contract files into character string files in a base64 form;
when the intelligent contract upgrading initiating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a corresponding participating mechanism, the character string file in the base64 form is converted into a compressed file for installation.
5. The method of intelligent contract-based Fabric blockchain configuration according to claim 3, further comprising: and monitoring the upgrading condition of all participating mechanisms of the intelligent contract in the Fabric blockchain.
6. A smart contract-based Fabric blockchain configuration system, the system comprising: a preprocessing device and a configuration updating initiating mechanism; wherein,
the preprocessing device is used for adjusting configuration item modification strategies in the founding block file and the channel creation envelope file so as to designate a management mechanism group of the Fabric block chain;
the configuration updating initiating mechanism is used for receiving relevant information of a mechanism to be processed of a peripheral system of the input management mechanism group, generating a configuration updating file after comparing the information with configuration information of the existing Fabric block chain, and collecting a corresponding digital signature; wherein, the configuration updating initiating mechanism is a member of a management mechanism group;
the configuration updating initiating mechanism is also used for uploading the configuration updating file and the corresponding digital signature by calling an intelligent contract through a peripheral system, and simultaneously initiating a cross-mechanism block chain configuration management process of all mechanisms in a participant for a management mechanism group;
the configuration updating initiating mechanism is also used for reading digital signatures of chains of other management mechanisms in the management mechanism group;
the configuration updating initiating mechanism is also used for calling the block chain configuration updating API through the peripheral system according to the configuration updating file, the collected digital signature and the read digital signature, and executing configuration updating operation.
7. The smart contract-based Fabric blockchain configuration system of claim 6, wherein all participating institutions on the Fabric blockchain execute the same smart contract.
8. The system for configuring Fabric blockchain based on intelligent contracts according to claim 6, further comprising an intelligent contract upgrade initiating mechanism for upgrading the intelligent contracts, wherein the intelligent contract upgrade initiating mechanism is a participating mechanism of the Fabric blockchain, and specifically comprises, when upgrading the intelligent contracts:
the intelligent contract upgrading initiating mechanism calls the current intelligent contract to pack and chain up the new version intelligent contract files, and simultaneously initiates a cross-mechanism intelligent contract management process of all participating mechanisms in the Fabric block chain as a participant;
all participating mechanisms in the Fabric Block chain examine and approve the new version intelligent contract file and the intelligent contract management process;
when each participating mechanism passes the approval, the participating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on the participating mechanism node;
and after all participating mechanisms in the Fabric Block chain pass the examination and approval, the intelligent contract upgrading initiating mechanism calls an intelligent contract upgrading API to execute upgrading operation through a peripheral system so as to finish unified upgrading.
9. The smart contract-based Fabric blockchain configuration system of claim 8, further comprising: a first conversion device and a second conversion device;
when the intelligent contract upgrading initiating mechanism packages and chains the new intelligent contract files, the first conversion device is used for converting the new intelligent contract files into character string files in a base64 form;
when the intelligent contract upgrading initiating mechanism downloads a new version of intelligent contract file through a peripheral system and installs the new version of intelligent contract file on a corresponding participating mechanism, the second conversion device is used for converting the character string file in the base64 form into a compressed file for installation.
10. The smart contract-based Fabric blockchain configuration system of claim 8, further comprising: and the monitoring device is used for monitoring the upgrading conditions of all participating mechanisms of the intelligent contract in the Fabric blockchain.
CN201910269395.8A 2019-04-04 2019-04-04 Fabric block chain configuration method and system based on intelligent contract Active CN110058878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910269395.8A CN110058878B (en) 2019-04-04 2019-04-04 Fabric block chain configuration method and system based on intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910269395.8A CN110058878B (en) 2019-04-04 2019-04-04 Fabric block chain configuration method and system based on intelligent contract

Publications (2)

Publication Number Publication Date
CN110058878A CN110058878A (en) 2019-07-26
CN110058878B true CN110058878B (en) 2022-12-02

Family

ID=67318222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910269395.8A Active CN110058878B (en) 2019-04-04 2019-04-04 Fabric block chain configuration method and system based on intelligent contract

Country Status (1)

Country Link
CN (1) CN110058878B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598375B (en) * 2019-09-20 2021-03-16 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN111078370B (en) * 2019-10-11 2023-03-28 深圳壹账通智能科技有限公司 Task execution method and device of fabric alliance chain and computer equipment
CN111046055A (en) * 2019-12-11 2020-04-21 杭州趣链科技有限公司 Block chain global configuration changing method, equipment and storage medium
CN110727939B (en) * 2019-12-17 2020-04-28 成都四方伟业软件股份有限公司 Block chain-based data use right authentication method and system
CN111563089B (en) * 2020-04-20 2023-10-27 杭州云象网络技术有限公司 Method and device for automatically updating channel configuration by changing blockchain certificates
CN112367194B (en) * 2020-10-27 2022-03-25 四川长虹电器股份有限公司 Method for updating channel configuration of Fabric intelligent contract
CN113112140B (en) * 2021-04-07 2022-04-19 中国电子科技网络信息安全有限公司 Chain code application intelligent contract ID management method suitable for block chain infrastructure service
CN113300855B (en) * 2021-05-25 2022-05-03 浙江大学 Variable strategy-based alliance link voting management method and system
CN113791835A (en) * 2021-09-24 2021-12-14 上海边界智能科技有限公司 Configuration system based on block chain, intelligent contract and configuration management method
CN116319082A (en) * 2023-05-17 2023-06-23 富算科技(上海)有限公司 Processing method, system, equipment and medium of configuration data based on block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769173A (en) * 2018-05-21 2018-11-06 阿里体育有限公司 The block chain implementation method and equipment of the intelligent contract of operation
CN109246197A (en) * 2018-08-15 2019-01-18 交通银行股份有限公司 Data processing method and device based on intelligent contract

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243193A1 (en) * 2016-02-18 2017-08-24 Skuchain, Inc. Hybrid blockchain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769173A (en) * 2018-05-21 2018-11-06 阿里体育有限公司 The block chain implementation method and equipment of the intelligent contract of operation
CN109246197A (en) * 2018-08-15 2019-01-18 交通银行股份有限公司 Data processing method and device based on intelligent contract

Also Published As

Publication number Publication date
CN110058878A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN110058878B (en) Fabric block chain configuration method and system based on intelligent contract
CN103559591B (en) Software management system based on trust computing and management method
CN110413304B (en) Intelligent contract hot upgrading method and device based on block chain network
CN108920250B (en) Application program containerization method and device
CN110597911A (en) Certificate processing method and device for block chain network, electronic equipment and storage medium
CN109491682B (en) Method for automatically upgrading permission-controllable block chain system based on intelligent contract
CN110599177A (en) Transaction verification method and related equipment
CN110543326A (en) DevOps intelligent operation and maintenance method based on block chain
CN112862490B (en) Output consensus method under asynchronous network
US8965746B2 (en) System and method for validating an electrical network model
WO2021139778A1 (en) System scheduling workflow generation method, system, apparatus, and computer readable storage medium
CN112288423A (en) Aggregation payment method and system of distributed framework
CN109889377A (en) The method and apparatus of VNF are disposed in NFV system based on Openstack
WO2018032653A1 (en) Function implementing method and apparatus for java card application
CN110908730A (en) Cloud platform configuration file management method and management system
CN110955469A (en) Method and device for online transaction by X86 platform distributed batch call
WO2023185058A1 (en) Method and system for deploying chain code in consortium blockchain
US20130166311A1 (en) System and Method for Provisioning and Deploying a Virtual Appliance to Implement Enterprise Solutions
CN111445239A (en) Signature verification method based on block chain
CN103377405A (en) Methods and systems for deploying and correcting service oriented architecture deploying environment model
CN117522581A (en) Distributed resource transaction platform based on blockchain
WO2016197953A1 (en) Method and device for deploying multi-mode base station
CN108536429A (en) A kind of method, apparatus, storage medium and the electronic equipment of exploitation software
WO2023185055A1 (en) Method and system for deploying chaincode in alliance chain
Sato et al. Operations smart contract to realize decentralized system operations workflow for consortium blockchain

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