CN110058878A - 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 PDFInfo
- Publication number
- CN110058878A CN110058878A CN201910269395.8A CN201910269395A CN110058878A CN 110058878 A CN110058878 A CN 110058878A CN 201910269395 A CN201910269395 A CN 201910269395A CN 110058878 A CN110058878 A CN 110058878A
- Authority
- CN
- China
- Prior art keywords
- configuration
- block chain
- intelligent contract
- fabric block
- file
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; 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)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of Fabric block chain configuration method and system based on intelligent contract, this method comprises: the configuration item in adjustment wound generation block file and channel creation envelope file modifies strategy, to specify management organization's group of Fabric block chain;The relevant information of the mechanism to be processed of typing management organization group peripheral system is received, and generates configuration after by the comparison of the configuration information of the information and existing Fabric block chain and updates file, is collected simultaneously respective digital signature;Call intelligent contract that the configuration is updated file and respective digital signature cochain by peripheral system, while initiating participant is across the mechanism block chain configuration management process of all mechanisms in management organization's group;Read the digital signature of other management organization's cochains in management organization's group;Update file according to configuration by peripheral system calls the configuration of block chain to update API with the digital signature being collected into and the digital signature read, executes configuration and updates operation.
Description
Technical field
The invention belongs to block chain technical field more particularly to a kind of Fabric block chain configuration sides based on intelligent contract
Method and system.
Background technique
The intelligent contract technology being born from block chain is a kind of to be propagated, verify or executed in terms of contract in information-based mode
Calculation machine agreement.Intelligent contract technology provides open and clear contract and calculates agreement, further comprises block chain data safety, distribution
Formula, the traceable and technical characteristic that can not distort the purpose is to provide the safety for being better than traditional contracts method, and are reduced and contract
Other relevant transaction costs.One of block chain frame most popular, most mature as current industry, Fabric have extension
Property, physical isolation property it is good the advantages that, be suitble to building alliance's chain, mutual trust data platform between enterprise-level is provided.
The prior art first is that: the Fabric abbreviation of block platform chain Hyperlegder Fabric (IBM Corporation open source)
The master tool that the configuration of block chain and intelligent contract administration all use official to provide handle under line, inter-agency to need to carry out
It must be carried out by channel under the lines such as mail, USB flash disk, Dropbox when file interaction.But 1) this scheme of mesh has the disadvantages that
The default modification strategy of Fabric block chain configuration item is more than half by that could modify, and participates in the mechanism quantity numbers to be collected more
Word signature is more, and management cost rises quickly;2) Fabric block chain configuration modification file must use common recognition node certificate into
Row signature, and it is participation node that peripheral block chain, which applies the certificate used when docking by official sdk with Fabric, therefore nothing
Method carries out configuration modification operation using sdk in peripheral system;3) configuration updates inconvenient, and configuration updates file and needs by official
Tool is lower online to be generated, complicated for operation cumbersome, and due to the configuration file after signature must it is inter-agency by line under circulate
It is digitally signed, leakage of information risk increases;4) intelligent contract deployment and scaling difficulty, on the one hand the deployment of intelligent contract and
Upgrading is completed under being both needed to online by command-line tool, inconvenient, is on the other hand circulated under the line of intelligent contract installation file
It will increase management cost and leakage of information risk;5) the corresponding intelligent contract letter for participating in node of mechanism can only be checked by participating in mechanism
Breath, and this information on chain other participate in be for mechanisms it is sightless, lack unified intelligent contract monitoring view.
Furthermore it is also possible to modify strategy by adjusting default configuration item, permission specified a small number of mechanisms in participating in mechanism are
Management organization, configuration update file by more than half authority signatures in management organization's group, that is, legal, and update file label to configuration
Using node certificate is participated in when name, so as to directly carry out configuration modification using sdk in peripheral system.Utilize block
Chain self-characteristic, direct cochain after the configuration information for needing to be managed and intelligent obligating document are handled, while automatic collection
The corresponding digital signature for participating in node, feedback update operation executive condition, are guaranteeing inter-agency data file interaction confidence level
Under the premise of greatly improve circulation efficiency.Based on above scheme, while across mechanism flow engine is ground by official sdk and certainly,
It realizes and is handled on across the mechanism whole process line of block arrangement management and intelligent contract administration, reduce management cost, improve processing effect
Rate.But above scheme have the disadvantage that 1) combination call from grind flow engine, information feedback API and official sdk when due to
The relative independentability of each section, lacks consistent transaction controlling, is likely to occur process relevant information and reality in extreme circumstances
The inconsistent problem of data on the chains such as block arrangement information;2) it is limited to block size, intelligent obligating document size is limited, maximum
Otherwise size will appear piecemeal problem no more than 99m.
Due to self poisoning etc., there is the management inconvenience of block chain, example in Fabric platform in actual use
If block arrangement manages inconvenience, intelligent contract, which upgrades, to be disposed difficulty and lacks unified monitoring etc..
Summary of the invention
For above-mentioned these problems, the present invention provides a kind of Fabric block chain configuration management side based on intelligent contract
It is special to provide open and clear contract calculating agreement, distribution, technology that is traceable and can not distorting by intelligent contract technology for case
Property, the inter-agency trust problem to block chain management information is solved, across the mechanism circulation efficiency of block chain management is improved, improves information
Safety.
On the one hand the embodiment of the present invention provides a kind of Fabric block chain configuration method based on intelligent contract, the side
Method includes:
Configuration item in adjustment wound generation block file and channel creation envelope file modifies strategy, to specify Fabric block
Management organization's group of chain;
The relevant information of the mechanism to be processed of configuration update initiation authorities typing management organization group peripheral system, and
File is updated by configuration is generated after the comparison of the configuration information of the information and existing Fabric block chain, is collected simultaneously respective digital
Signature;Wherein, the configuration, which updates, initiates mechanism as management organization group membership;
Configuration updates initiation mechanism and calls intelligent contract that the configuration is updated file and respective digital by peripheral system
Signature cochain, while initiating participant is across the mechanism block chain configuration management process of all mechanisms in management organization's group;
Configuration, which updates, initiates the digital signature that mechanism reads other management organization's cochains in management organization's group;
Digital signature and reading that mechanism updates file according to configuration by peripheral system and is collected into are initiated in configuration update
The digital signature arrived calls the configuration of block chain to update API, executes configuration and updates operation.
In one embodiment, all participation mechanisms on the Fabric block chain are carried out identical intelligent contract.
In one embodiment, it the method also includes upgrading to the intelligent contract, specifically includes:
Intelligent contract upgrading initiates mechanism and calls current intelligent contract that new edition intelligence obligating document is packaged cochain, simultaneously
Initiating participant is all across mechanism intelligence contract administration processes for participating in mechanism in Fabric block chain;Wherein, intelligent contract
The participation mechanism that mechanism is Fabric block chain is initiated in upgrading;
All participation mechanisms examine the new edition intelligence obligating document and intelligent contract administration process in Fabric block chain;
When each, which participates in mechanism examination & approval, passes through, which downloads new edition intelligence obligating document by peripheral system
And it attaches it on the participation agency node;
After participations all in Fabric block chain mechanism, which examines, to be passed through, the intelligence contract upgrading is initiated mechanism and is passed through
Peripheral system calls intelligent contract upgrading API to execute updating operation, to complete unified upgrading.
In one embodiment, when the intelligent contract upgrading initiates mechanism for new edition intelligence obligating document packing cochain,
New edition intelligence obligating document is converted into the character string file of base64 form;
When the intelligent contract upgrading initiates mechanism by peripheral system downloading new edition intelligence obligating document and is installed
When on to corresponding participation mechanism, the character string file of base64 form is converted into compressed file and is installed.
In one embodiment, the method also includes monitoring intelligent contract all participation mechanisms in Fabric block chain
Upgrade case.
On the other hand, the embodiment of the invention also provides a kind of, and the Fabric block chain based on intelligent contract configures system,
The system comprises: pretreatment unit, configuration, which update, initiates mechanism;Wherein,
The pretreatment unit is used to adjust the configuration item modification plan in wound generation block file and channel creation envelope file
Slightly, with management organization's group of specified Fabric block chain;
The configuration updates the correlation for initiating the mechanism to be processed that mechanism is used to receive typing management organization group peripheral system
Information, and generate configuration after by the comparison of the configuration information of the information and existing Fabric block chain and update file, it receives simultaneously
Collect respective digital signature;Wherein, the configuration, which updates, initiates mechanism as management organization group membership;
The configuration updates initiation mechanism and is also used to call intelligent contract that the configuration is updated file by peripheral system
And respective digital signature cochain, while initiating participant is across the mechanism block chain configuration management of all mechanisms in management organization's group
Process;
The configuration, which updates, initiates the digital signature that mechanism is also used to read other management organization's cochains in management organization's group;
The configuration updates initiation mechanism and is also used to through peripheral system according to number configuration update file and be collected into
The digital signature signed and read calls the configuration of block chain to update API, executes configuration and updates operation.
In one embodiment, all participation mechanisms on the Fabric block chain are carried out identical intelligent contract.
In one embodiment, upgrade the system also includes intelligent contract and initiate mechanism, for the intelligent contract into
Row upgrading, wherein the participation mechanism that mechanism is Fabric block chain is initiated in intelligent contract upgrading, has when upgrading to intelligent contract
Body includes:
Intelligent contract upgrading initiates mechanism and calls current intelligent contract that new edition intelligence obligating document is packaged cochain, simultaneously
Initiating participant is all across mechanism intelligence contract administration processes for participating in mechanism in Fabric block chain;
All participation mechanisms examine the new edition intelligence obligating document and intelligent contract administration process in Fabric block chain;
When each, which participates in mechanism examination & approval, passes through, which downloads new edition intelligence obligating document by peripheral system
And it attaches it on the participation agency node;
After participations all in Fabric block chain mechanism, which examines, to be passed through, the intelligence contract upgrading is initiated mechanism and is passed through
Peripheral system calls intelligent contract upgrading API to execute updating operation, to complete unified upgrading.
In one embodiment, the system also includes the first conversion equipment and the second conversion equipments;
When the intelligent contract upgrading initiates mechanism for new edition intelligence obligating document packing cochain, first converting means
Set the character string file for new edition intelligence obligating document to be converted into base64 form;
When the intelligent contract upgrading initiates mechanism by peripheral system downloading new edition intelligence obligating document and is installed
When on to corresponding participation mechanism, second conversion equipment is used to the character string file of base64 form being converted into compressed file
It is installed.
In one embodiment, the system also includes monitoring devices, for monitoring intelligent contract in the Fabric block chain
All upgrade cases for participating in mechanism.
The embodiment of the present invention realizes across the mechanism peace of the update of block chain configuration file, intelligent obligating document using intelligent contract
Full circulation, while can be signed with automatic data collection is come into force configuration modification automatically according to across mechanism flow state, executes intelligence and close
About upgrading updates, can be with tracing monitoring block chain configuration modification history and all intelligence for participating in node using unified monitoring view
Energy contract upgrade history, solves the inter-agency trust problem to block chain management information, improves across the mechanism stream of block chain management
Transfer efficient improves information security.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is that the process of the Fabric block chain configuration method provided in an embodiment of the present invention based on intelligent contract is illustrated
Figure;
Fig. 2 is that intelligent contract provided in an embodiment of the present invention upgrades flow diagram;
Fig. 3 is the structural representation that the Fabric block chain provided in an embodiment of the present invention based on intelligent contract configures system
Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is that the process of the Fabric block chain configuration method provided in an embodiment of the present invention based on intelligent contract is illustrated
Figure.As shown in Figure 1, this method mainly comprises the steps that
Step S11, the configuration item in adjustment wound generation block file and channel creation envelope file modifies strategy, with specified
Management organization's group of Fabric block chain.
Generation block is created, it is first block file of block chain, wherein having recorded the area that English, which is genesis block,
The configurations information of block platform chain.In Fabric platform, wound generation block can be tactful comprising configuration item modification, participation node,
Common recognition nodal information, block generate time interval, the configuration informations such as block file size.
Modification strategy, English is mod policy, for specifying Fabric platform configuration item to modify be must satisfy item
Part, only meeting the condition configuration item just allows to be modified, this condition is to be collected into more than half common recognition nodes under default situations
Digital signature.
Several participation mechanisms in Fabric block chain can be appointed as to block chain management organization group, Zu Zhong mechanism can be with
Additions and deletions are carried out by block chain configuration management process.
Step S12, configuration updates the correlation for initiating the mechanism to be processed of authorities typing management organization group peripheral system
Information, and generate configuration after by the comparison of the configuration information of the information and existing Fabric block chain and update file, it receives simultaneously
Collect respective digital signature;Wherein, the configuration, which updates, initiates mechanism as management organization group membership.
When the relevant information of the mechanism to be processed of the typing in peripheral system, Fabric block chain management organization, such as title,
When the information such as domain name, root certificate, certificate of fair, after submitting process, configuration to update the initiation above-mentioned relevant information of authorities, by this
A little information to be processed are compared with existing block chain configuration information, and configuration update file is generated after comparison and is collected simultaneously digital label
Name can carry out next step when being collected into more than in management organization's group being more than the node digital signature of half.
Step S13, configuration update initiate mechanism call intelligent contract by configuration update file by peripheral system and
Respective digital signature cochain, while initiating participant is across the mechanism block chain configuration management stream of all mechanisms in management organization's group
Journey.
Step S14, configuration, which updates, initiates the digital signature that mechanism reads other management organization's cochains in management organization's group.
After initiating across mechanism block chain configuration management process using step S13, other participate in mechanism and pass through peripheral system
Examination & approval collect mechanism respective digital signature and cochain by peripheral system when configuration management process automatically, are updated and are initiated by configuration
The digital signature of mechanism reading cochain.
When configuration modification is agreed to by more than half mechanisms in management organization's group, the block chain peripheral system of any management organization
It executes configuration and updates operation, improve treatment effeciency under the premise that security is guaranteed.
Step S15, the number that configuration update initiates that mechanism updates file according to configuration by peripheral system and is collected into is signed
Name and the digital signature read call the configuration of block chain to update API, execute configuration and update operation.
After other management organizations complete examination & approval, process, which can circulate to configuration to update, initiates mechanism, initiates mechanism examination & approval and passes through
When, peripheral system updates file according to configuration and the digital signature being collected into calls the configuration of block chain to update API, directly executes and matches
Update operation is set, configuration is completed and updates.
In one embodiment, customized Fabric configuration item modification strategy and configuration tool be can use (for example, can be with
Configuration tool is ground certainly for each mechanism) initial configuration file is modified, the relatively-stationary management organization's group of mandatory member's quantity can be kept away
Exempt from configuration management too long in flow, data signature in the case where participation mechanism, alliance is numerous and collects difficult, configuration file circulation not
Safety, configuration update operation the problems such as must executing under nodal line of know together, provide efficient, safely and conveniently Fabric block
Chain configuration and intelligent contract administration, are effectively reduced Fabric platform management cost.
It in one embodiment, is guarantee consistency, all participation mechanisms on Fabric block chain are carried out identical intelligence
It can contract.
In one embodiment, intelligent contract can upgrade.It, can be according to figure when needing to carry out intelligent contract upgrading
Step shown in 2 upgrades intelligent contract:
Step S21, intelligent contract upgrading initiates mechanism and current intelligent contract is called to be packaged new edition intelligence obligating document
Cochain, while initiating participant is all across mechanism intelligence contract administration processes for participating in mechanism in Fabric block chain.
It to be intelligent contract Development institution that mechanism is initiated in intelligent contract upgrading, be the participation mechanism of Fabric block chain.
Before this step, since new edition intelligence contract not yet updates, so needing to call original intelligent contract when cochain
Carry out cochain.
Step S22, all participation mechanisms examine the new edition intelligence obligating document and intelligent contract in Fabric block chain
Management process.
Whether legal participate in the code that mechanism examines in new edition intelligence obligating document, and examine intelligent contract administration process to be
No legal, when the two approval results, which are all, is, examination & approval pass through.
Step S23, when each, which participates in mechanism examination & approval, passes through, which downloads new edition intelligence by peripheral system
Obligating document simultaneously attaches it on the participation agency node.
Step S24, after participations all in Fabric block chain mechanism, which examines, to be passed through, the intelligence contract upgrading is initiated
Mechanism calls intelligent contract to upgrade API and executes updating operation by peripheral system, to complete unified upgrading.
In one embodiment, it when intelligent contract upgrades initiation mechanism and new edition intelligence obligating document is packaged cochain, needs
New edition intelligence obligating document is converted into the character string file of base64 form;Pass through periphery when intelligent contract upgrades initiation mechanism
When system downloads new edition intelligence obligating document and attaches it in corresponding participation mechanism, need the character string of base64 form
File is converted into compressed file and is installed.
In one embodiment, in intelligent contract escalation process, monitoring intelligent contract all ginsengs in Fabric block chain
Whether successfully install with the upgrade case of mechanism, including participation mechanism, whether is upgraded successfully after installation.
Normally, when code level realizes intelligent contract upgrading, can in initial intelligent contract built-in intelligence contract
The preservation function of code intelligently closes the new edition that the new edition intelligence obligating document of compressed file form is converted into base64 form
About character string cochain;Can also in initial intelligent contract built-in intelligence contract code read functions, i.e., base64 form
New edition intelligence contract character string be converted into the new edition intelligence obligating document of compressed file format, in order to install.In addition, may be used also
With collecting function built-in in initial intelligent contract, to collect intelligent contract in each block chain node installation situation.Complete upgrading
Afterwards, in unified intelligent contract monitoring view can with the intelligent contract upgrade cases for participating in nodes all on tracing monitoring chain,
Check its history and current version information.
The embodiment of the present invention realizes across the mechanism peace of the update of block chain configuration file, intelligent obligating document using intelligent contract
Full circulation, while can be signed with automatic data collection is come into force configuration modification automatically according to across mechanism flow state, executes intelligence and close
About upgrading updates, can be with tracing monitoring block chain configuration modification history and all intelligence for participating in node using unified monitoring view
Energy contract upgrade history, solves the inter-agency trust problem to block chain management information, improves across the mechanism stream of block chain management
Transfer efficient improves information security.
Based on shown in Fig. 1 based on invention identical with the Fabric block chain configuration method in Fig. 1 based on intelligent contract
Design, the embodiment of the present application also provides a kind of, and the Fabric block chain based on intelligent contract configures system, such as following example
It is described.Since the principle that the system solves the problems, such as is similar to the Fabric block chain configuration method in Fig. 1 based on intelligent contract, because
The implementation of this system may refer to the implementation of the Fabric block chain configuration method in Fig. 1 based on intelligent contract, repeat place
It repeats no more.
In another embodiment, the present invention also provides a kind of, and the Fabric block chain based on intelligent contract configures system,
Its structure initiates mechanism 20 as shown in figure 3, the system specifically includes that pretreatment unit 10 and configuration update.
Wherein, pretreatment unit 10 is used to adjust the configuration item modification in wound generation block file and channel creation envelope file
Strategy, to specify management organization's group of Fabric block chain.Configuration, which updates, initiates mechanism 20 for receiving typing management organization group
The relevant information of the mechanism to be processed of peripheral system, and compared by the configuration information of the information and existing Fabric block chain
Configuration is generated afterwards and updates file, is collected simultaneously respective digital signature.Wherein, configuration, which updates, initiates mechanism 20 as management organization's composition
Member.
Configuration update initiate mechanism 20 be also used to call intelligent contract by configuration update file by peripheral system and
Respective digital signature cochain, while initiating participant is across the mechanism block chain configuration management stream of all mechanisms in management organization's group
Journey.Configuration, which updates, initiates the digital signature that mechanism 20 is also used to read other management organization's cochains in management organization's group.Configuration is more
The new mechanism 20 that initiates is also used to update file and the digital signature being collected into and the number read according to configuration by peripheral system
Word signature calls the configuration of block chain to update API, executes configuration and updates operation.
In one embodiment, all participation mechanisms on above-mentioned Fabric block chain are carried out identical intelligent contract.
In one embodiment, upgrade the system also includes intelligent contract and initiate mechanism 30, for the intelligent contract
Upgraded.Wherein, the participation mechanism that mechanism 30 is Fabric block chain is initiated in intelligent contract upgrading, upgrades to intelligent contract
When specifically include:
Intelligent contract upgrading initiates mechanism 30 and calls current intelligent contract that new edition intelligence obligating document is packaged cochain, together
When initiating participant be Fabric block chain in it is all participate in mechanisms across mechanism intelligence contract administration processes.Fabric block chain
In all participation mechanisms examine the new edition intelligence obligating documents and intelligent contract administration process.When each participates in mechanism examination & approval
By when, which is downloaded by peripheral system and new edition intelligence obligating document and attaches it to the participation agency node
On.After participations all in Fabric block chain mechanism, which examines, to be passed through, intelligent contract upgrading initiates mechanism 30 and passes through periphery system
System calls intelligent contract upgrading API to execute updating operation, to complete unified upgrading.
In one embodiment, the system also includes the first conversion equipment 40 and the second conversion equipments 50.In intelligent contract
When upgrading initiates mechanism 30 for new edition intelligence obligating document packing cochain, the first conversion equipment 40 is used for new edition intelligence contract text
Part is converted into the character string file of base64 form;Pass through peripheral system downloading new edition intelligence when intelligent contract upgrades initiation mechanism 30
It obligating document and can attach it to corresponding when participating in mechanism, the second conversion equipment 50 is used for the character string of base64 form
File is converted into compressed file and is installed.
In one embodiment, above system further includes a monitoring device 60, for monitoring intelligent contract in Fabric block
All upgrade cases for participating in mechanism in chain.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above embodiments
Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art,
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (10)
1. a kind of Fabric block chain configuration method based on intelligent contract, which is characterized in that the described method includes:
Configuration item in adjustment wound generation block file and channel creation envelope file modifies strategy, to specify Fabric block chain
Management organization's group;
Configuration updates the relevant information for initiating the mechanism to be processed of authorities typing management organization group peripheral system, and by institute
Configuration update file is generated after stating the configuration information comparison of information and existing Fabric block chain, is collected simultaneously respective digital label
Name;Wherein, the configuration, which updates, initiates mechanism as management organization group membership;
Configuration update initiates mechanism and calls intelligent contract that the configuration is updated file and respective digital signature by peripheral system
Cochain, while initiating participant is across the mechanism block chain configuration management process of all mechanisms in management organization's group;
Configuration, which updates, initiates the digital signature that mechanism reads other management organization's cochains in management organization's group;
Configuration, which updates, to be initiated mechanism and by peripheral system updates file and the digital signature that is collected into according to configuration and read
Digital signature calls the configuration of block chain to update API, executes configuration and updates operation.
2. the Fabric block chain configuration method according to claim 1 based on intelligent contract, which is characterized in that described
All participation mechanisms on Fabric block chain are carried out identical intelligent contract.
3. the Fabric block chain configuration method according to claim 1 based on intelligent contract, which is characterized in that the side
Method further includes upgrading to the intelligent contract, is specifically included:
Intelligent contract upgrading initiates mechanism and calls current intelligent contract that new edition intelligence obligating document is packaged cochain, initiates simultaneously
Participant is all across mechanism intelligence contract administration processes for participating in mechanism in Fabric block chain;Wherein, intelligent contract upgrading
Initiate the participation mechanism that mechanism is Fabric block chain;
All participation mechanisms examine the new edition intelligence obligating document and intelligent contract administration process in Fabric block chain;
When each, which participates in mechanism examination & approval, passes through, which downloads new edition intelligence obligating document by peripheral system and will
It is installed on the participation agency node;
After participations all in Fabric block chain mechanism, which examines, to be passed through, the intelligence contract upgrading initiates mechanism and passes through periphery
System calls intelligent contract upgrading API to execute updating operation, to complete unified upgrading.
4. the Fabric block chain configuration method according to claim 3 based on intelligent contract, which is characterized in that
When the intelligent contract upgrading initiates mechanism for new edition intelligence obligating document packing cochain, by new edition intelligence obligating document
It is converted into the character string file of base64 form;
Mechanism is initiated when the intelligent contract upgrading to pass through peripheral system downloading new edition intelligence obligating document and attach it to pair
When should participate in mechanism, the character string file of base64 form is converted into compressed file and is installed.
5. the Fabric block chain configuration method according to claim 3 based on intelligent contract, which is characterized in that the side
Method further include: monitoring intelligent contract all upgrade cases for participating in mechanism in Fabric block chain.
6. a kind of Fabric block chain based on intelligent contract configures system, which is characterized in that the system comprises: pretreatment dress
It sets, configure update initiation mechanism;Wherein,
The pretreatment unit is used to adjust the configuration item modification strategy in wound generation block file and channel creation envelope file, with
Management organization's group of specified Fabric block chain;
The configuration updates the relevant information for initiating the mechanism to be processed that mechanism is used to receive typing management organization group peripheral system,
And generate configuration after by the comparison of the configuration information of the information and existing Fabric block chain and update file, it is collected simultaneously corresponding
Digital signature;Wherein, the configuration, which updates, initiates mechanism as management organization group membership;
The configuration updates initiation mechanism and is also used to call intelligent contract that the configuration is updated file and phase by peripheral system
Digital signature cochain is answered, while initiating participant is across the mechanism block chain configuration management stream of all mechanisms in management organization's group
Journey;
The configuration, which updates, initiates the digital signature that mechanism is also used to read other management organization's cochains in management organization's group;
The configuration updates initiation mechanism and is also used to through peripheral system according to digital signature configuration update file and be collected into
And the digital signature read calls the configuration of block chain to update API, executes configuration and updates operation.
7. the Fabric block chain according to claim 6 based on intelligent contract configures system, which is characterized in that described
All participation mechanisms on Fabric block chain are carried out identical intelligent contract.
8. the Fabric block chain according to claim 6 based on intelligent contract configures system, which is characterized in that the system
System further includes that mechanism is initiated in intelligent contract upgrading, for upgrading to the intelligent contract, wherein intelligent contract upgrading is initiated
Mechanism is the participation mechanism of Fabric block chain, is specifically included when upgrading to intelligent contract:
Intelligent contract upgrading initiates mechanism and calls current intelligent contract that new edition intelligence obligating document is packaged cochain, initiates simultaneously
Participant is all across mechanism intelligence contract administration processes for participating in mechanism in Fabric block chain;
All participation mechanisms examine the new edition intelligence obligating document and intelligent contract administration process in Fabric block chain;
When each, which participates in mechanism examination & approval, passes through, which downloads new edition intelligence obligating document by peripheral system and will
It is installed on the participation agency node;
After participations all in Fabric block chain mechanism, which examines, to be passed through, the intelligence contract upgrading initiates mechanism and passes through periphery
System calls intelligent contract upgrading API to execute updating operation, to complete unified upgrading.
9. the Fabric block chain according to claim 8 based on intelligent contract configures system, which is characterized in that the system
System further include: the first conversion equipment and the second conversion equipment;
When the intelligent contract upgrading initiates mechanism for new edition intelligence obligating document packing cochain, first conversion equipment is used
In the character string file that new edition intelligence obligating document is converted into base64 form;
Mechanism is initiated when the intelligent contract upgrading to pass through peripheral system downloading new edition intelligence obligating document and attach it to pair
When should participate in mechanism, second conversion equipment is used to for the character string file of base64 form to be converted into compressed file to carry out
Installation.
10. the Fabric block chain according to claim 8 based on intelligent contract configures system, which is characterized in that described
System further include: monitoring device, the upgrade cases for monitoring intelligent contract all participation mechanisms in Fabric block chain.
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 true CN110058878A (en) | 2019-07-26 |
CN110058878B 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) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110598375A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
CN110727939A (en) * | 2019-12-17 | 2020-01-24 | 成都四方伟业软件股份有限公司 | Block chain-based data use right authentication method and system |
CN111046055A (en) * | 2019-12-11 | 2020-04-21 | 杭州趣链科技有限公司 | Block chain global configuration changing method, equipment and storage medium |
CN111078370A (en) * | 2019-10-11 | 2020-04-28 | 深圳壹账通智能科技有限公司 | Task execution method and device of fabric alliance chain and computer equipment |
CN111563089A (en) * | 2020-04-20 | 2020-08-21 | 杭州云象网络技术有限公司 | Method and device for automatically updating channel configuration during block chain certificate replacement |
CN112367194A (en) * | 2020-10-27 | 2021-02-12 | 四川长虹电器股份有限公司 | Method for updating channel configuration of Fabric intelligent contract |
CN113112140A (en) * | 2021-04-07 | 2021-07-13 | 中国电子科技网络信息安全有限公司 | Chain code application intelligent contract ID management method suitable for block chain infrastructure service |
CN113791835A (en) * | 2021-09-24 | 2021-12-14 | 上海边界智能科技有限公司 | Configuration system based on block chain, intelligent contract and configuration management method |
US20220393879A1 (en) * | 2021-05-25 | 2022-12-08 | Zhejiang University | Decentralized mechanism for collaboratively governing multi-agent trade ecosystem |
CN116319082A (en) * | 2023-05-17 | 2023-06-23 | 富算科技(上海)有限公司 | Processing method, system, equipment and medium of configuration data based on block chain |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243193A1 (en) * | 2016-02-18 | 2017-08-24 | Skuchain, Inc. | Hybrid blockchain |
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 |
-
2019
- 2019-04-04 CN CN201910269395.8A patent/CN110058878B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243193A1 (en) * | 2016-02-18 | 2017-08-24 | Skuchain, Inc. | Hybrid blockchain |
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 |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110598375A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
CN111078370A (en) * | 2019-10-11 | 2020-04-28 | 深圳壹账通智能科技有限公司 | Task execution method and device of fabric alliance chain and computer equipment |
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 |
CN110727939A (en) * | 2019-12-17 | 2020-01-24 | 成都四方伟业软件股份有限公司 | Block chain-based data use right authentication method and system |
CN111563089A (en) * | 2020-04-20 | 2020-08-21 | 杭州云象网络技术有限公司 | Method and device for automatically updating channel configuration during block chain certificate replacement |
CN111563089B (en) * | 2020-04-20 | 2023-10-27 | 杭州云象网络技术有限公司 | Method and device for automatically updating channel configuration by changing blockchain certificates |
CN112367194A (en) * | 2020-10-27 | 2021-02-12 | 四川长虹电器股份有限公司 | Method for updating channel configuration of Fabric intelligent contract |
CN113112140A (en) * | 2021-04-07 | 2021-07-13 | 中国电子科技网络信息安全有限公司 | Chain code application intelligent contract ID management method suitable for block chain infrastructure service |
US20220393879A1 (en) * | 2021-05-25 | 2022-12-08 | Zhejiang University | Decentralized mechanism for collaboratively governing multi-agent trade ecosystem |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN110058878B (en) | 2022-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110058878A (en) | Fabric block chain configuration method and system based on intelligent contract | |
CN109698752B (en) | Enterprise resource management system based on block chain | |
CN109829296B (en) | Sandbox implementation method of intelligent contract based on alliance chain | |
CN109743199A (en) | Containerization management system based on micro services | |
Artač et al. | Model-driven continuous deployment for quality DevOps | |
CN110543326B (en) | DevOps intelligent operation and maintenance method based on block chain | |
CN110569658B (en) | User information processing method and device based on blockchain network, electronic equipment and storage medium | |
WO2015131603A1 (en) | Differential upgrade method, serving end and terminal | |
CN110032392A (en) | Service administering method and device, storage medium and electronic equipment | |
CN107347017A (en) | The method, apparatus and configuration point device of a kind of device upgrade | |
CN109246197A (en) | Data processing method and device based on intelligent contract | |
CN104239041B (en) | A kind of method and apparatus generating processing scheme and configuration | |
Duipmans et al. | A transformation-based approach to business process management in the cloud | |
CN113330419B (en) | Equipment application installation method, device, equipment and storage medium | |
CN108667857A (en) | A kind of security strategy maintaining method and system, server-side, client | |
CN105678118B (en) | A kind of software version generation method and device containing digital certificate | |
US20230128753A1 (en) | Systems and methods for deploying federated infrastructure as code | |
CN108228197A (en) | A kind of method and apparatus for installing software in the cluster | |
CN113868330A (en) | Deployment method, calling method, device and storage medium of artificial intelligence model | |
CN208903303U (en) | Standard Life cycle information data management system | |
Sato et al. | Operations smart contract to realize decentralized system operations workflow for consortium blockchain | |
CN111510428A (en) | Security resource operation and maintenance platform system and control method | |
CN109298869A (en) | A kind of generation method and relevant apparatus of target channel packet | |
CN107193484A (en) | Method and apparatus for data storage service | |
CN105867894A (en) | Automatic creating method and system of development environment |
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 |