CN112910681A - Control method for HyperLegger Fabric block chain platform - Google Patents

Control method for HyperLegger Fabric block chain platform Download PDF

Info

Publication number
CN112910681A
CN112910681A CN202110021004.8A CN202110021004A CN112910681A CN 112910681 A CN112910681 A CN 112910681A CN 202110021004 A CN202110021004 A CN 202110021004A CN 112910681 A CN112910681 A CN 112910681A
Authority
CN
China
Prior art keywords
fabric
config
data
configuration
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110021004.8A
Other languages
Chinese (zh)
Inventor
张能锋
胡鹏伟
罗辛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vanguard Smart Life Technology Shenzhen Co ltd
Original Assignee
Vanguard Smart Life Technology Shenzhen 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 Vanguard Smart Life Technology Shenzhen Co ltd filed Critical Vanguard Smart Life Technology Shenzhen Co ltd
Priority to CN202110021004.8A priority Critical patent/CN112910681A/en
Publication of CN112910681A publication Critical patent/CN112910681A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a configuration control method for a block chain Hyperridge fabric, and relates to the field of block chain operation and maintenance. Aiming at the defects in the prior art, the invention provides a method for acquiring and modifying fabric configuration based on fabric, which can greatly improve the efficiency of block chaining and maintenance and the accuracy and convenience of configuration modification.

Description

Control method for HyperLegger Fabric block chain platform
Technical Field
The invention relates to a hyper-bridge fabric block chain allocation/control method
Background
With the increasing popularity of blockchains (alliance chains), many enterprises use blockchain technology to reshape transaction records during transactions and even to relocate transaction systems on the blockchain. And establishing a credible transaction environment by virtue of the characteristics of the block chain. Among many blockchain platforms, superridge fabric (hereinafter referred to as fabric) is an open source alliance blockchain underlying platform dominated by a plurality of international large-scale software companies such as IBM. There are two most basic components in the fabric, peer and orderer, where peer is responsible for running intelligent contracts, storing and querying blockchain data. orderer is responsible for consensus. All functions of a blockchain network are controlled by configs stored on the blockchain, including but not limited to admission control, permission checking, consensus patterns, etc. The current fabric is also in fast iteration. And fabric1.4 has become a long-term support for use as a production environment. However, the definition of the config of fabric is complicated, and it is time-consuming and error-prone to modify the config. The fabric provides a tool configxlator for converting configuration information in protobuf format of the fabric into data in json format (and vice versa). The user may manually modify this json data and then use the tool to reverse convert into protobuf format configuration data. And calculates the modified difference using configxlator, and finally submits to orderer using user signature so that the configuration can take effect. This is not efficient for the blockchain operation and maintenance personnel to modify the blockchain operational configuration, and the process of modifying the configuration is also highly error prone. The current blockchain configuration cannot be obtained quickly and efficiently. Great inconvenience is brought to block chaining operation and maintenance.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for acquiring and modifying fabric configuration based on fabric sdk, which can greatly improve the efficiency of block chaining and maintenance and the convenience of the accuracy of configuration modification.
The data structure of the Fabric's configuration is defined using protobuf
Figure BDA0002886059270000011
Figure BDA0002886059270000021
A ConfigGroup is similar to a node of a multi-way tree, and each node may contain attributes (values) of the node, and the node may also have children. All configurations of the fabric are recorded on top of this tree structured data structure. We focus on the definition of the ConfigValue in the inner part
Figure BDA0002886059270000022
The value of ConfigValue is mainly where value is recorded in this field, but the type of value is bytes, i.e. the definition of value is not fixed, and different values have different formats. All subsequent us need to formulate one data structure for each value.
We now turn to sdk of fabric, which we use here fabric java sdk as an example. The fabric sdk provides a means by which fabric networks and nodes can be accessed. Through the fabric sdk, we can submit the transaction of the intelligent contract call, query, to the fabric network. The current fabric config may also be obtained or modified via fabric sdk.
Drawings
FIG. 1 Overall method flow diagram
Detailed Description
1. We obtain the corresponding fabric config after submitting the config fetch instruction to orderer via the fabric sdk. The config data is in protobuf format. At this time, we can decode the config data by configxlator proto _ decode to change it into json format data.
We currently already have the fabric config data in json format. The data is roughly as follows:
Figure BDA0002886059270000023
Figure BDA0002886059270000031
2. after the json format data is obtained, a specific value can be found through a specific path in a json node traversal mode. For example, we can locate the configuration of anchor peers of Org1MSP in fabric network by json path _ group. After finding this configuration, we can modify this value to the value we specify as needed. For example, port of the first anchor peer is modified to 10751. In order to operate all the fabric's config values easily, we will define a data structure for all the fabric's specific format, including but not limited to fabric identifier, fabric crypto config, fabric nodes, fabric msp config, anchor peers, etc. Thus, we can get and modify each specific config value quickly.
3. According to the requirement of the fabric, each time the configuration is modified, the corresponding version of the configuration needs to be updated, and then, here, the version of the anchor peer can be automatically added by one to meet the requirement of the fabric.
When the configuration modification is successful, we convert it back into protobuf format. And causes configxlator to calculate the modified difference.
4. The configuration modification difference data is signed by the user and then sent to the orderer via the fabric sdk, and then the new configuration item is validated.
According to the technical scheme, the implementation of the invention provides a method for acquiring, modifying and submitting the config value of fabric in a fully-automatic manner. The possibility of making mistakes in the modification of the fabric config configuration can be greatly reduced, which causes problems in the operation of the fabric network. Meanwhile, an effective tool for improving the efficiency is provided for operation and maintenance.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (2)

1. A control method for a HyperLegger Fabric block chain platform comprises the following steps:
s1, submitting a config acquisition instruction to an orderer through fabric sdk to obtain a corresponding fabric config, and decoding the config data through a configxlator proto _ decode to change the config data into data in a json format;
s2, finding a specific value through a specific path by utilizing a json node traversal mode, and defining a data structure for the specific format of all the config values, wherein the data structure comprises but is not limited to FabricouIdentifier, FabricCryptoConfig, FabricNoous, FabricMSPConfig, AnchorPeer and the like, so that each specific config value can be quickly obtained and quickly modified;
s3, performing self-increment on version of anchor peer, reversely converting the version into protobuf format, and enabling a configxlator to calculate modified difference;
and S4, after the configuration modification difference data is signed by a user, sending the configuration modification difference data to an orderer through fabric sdk to enable a new configuration item to take effect.
2. The method as claimed in claim 1, wherein a method for obtaining, modifying and submitting the configuration value of Fabric is provided, which can be fully automated.
CN202110021004.8A 2021-01-06 2021-01-06 Control method for HyperLegger Fabric block chain platform Pending CN112910681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110021004.8A CN112910681A (en) 2021-01-06 2021-01-06 Control method for HyperLegger Fabric block chain platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110021004.8A CN112910681A (en) 2021-01-06 2021-01-06 Control method for HyperLegger Fabric block chain platform

Publications (1)

Publication Number Publication Date
CN112910681A true CN112910681A (en) 2021-06-04

Family

ID=76112347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110021004.8A Pending CN112910681A (en) 2021-01-06 2021-01-06 Control method for HyperLegger Fabric block chain platform

Country Status (1)

Country Link
CN (1) CN112910681A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634810A (en) * 2018-12-10 2019-04-16 广东亿迅科技有限公司 Block chain business platform and operation method based on Fabric
CN111182075A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Fabric block chain network alliance networking method
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634810A (en) * 2018-12-10 2019-04-16 广东亿迅科技有限公司 Block chain business platform and operation method based on Fabric
CN111182075A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Fabric block chain network alliance networking method
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BANBAN: "Hyperledger Fabric (五) — Fabric更新配置", 《GITHUB,HTTPS://BANBANPEPPA.GITHUB.IO/2018/11/06/HYPERLEDGER/FABRIC-CONFIG-UPDATE/》 *
MARK_MMXIX: "Fabric2.0通道实践-更新通道配置(修改区块交易数量)", 《CSDN,HTTPS://BLOG.CSDN.NET/QQ_28540443/ARTICLE/DETAILS/104506559》 *

Similar Documents

Publication Publication Date Title
CN104885078B (en) For the method for the Two-phrase query optimization in MPP data-base cluster
US10031922B2 (en) Systems and methods for query evaluation over distributed linked data stores
US9525643B2 (en) Using templates to configure cloud resources
AU2019213302A1 (en) Filtering data lineage diagrams
CA2975530C (en) Filtering data lineage diagrams
CN104123374A (en) Method and device for aggregate query in distributed databases
CN103646303A (en) A flexible management information system used for customizing processes and forms in a ship enterprise
CN105183911A (en) Data source binary tree based source tracing method for abnormal data of power system
CN110032547A (en) File stores improved method under a kind of distributed environment
CN108681493A (en) Data exception detection method, device, server and storage medium
US20190347341A1 (en) Method and system for schema transformation
CN106503217B (en) Data interaction device and method based on business driving
CN110473101A (en) Mock trading message processing method and device
CN109948950A (en) A kind of enterprises office administration operation support integrated platform and operation method
CN105723365B (en) Method for optimum indexing, main database node and subscriber database node
CN112910681A (en) Control method for HyperLegger Fabric block chain platform
US20090276404A1 (en) Method and system for efficient data structure for reporting on indeterminately deep hierarchies
Yong Design and practice of software architecture in agile development
CN101516086B (en) Service matching method for mobile communication
CN104574188A (en) Transaction service system and transaction processing method
CN113268473B (en) Self-adaptive data acquisition system and method for multiple time sequence databases
US20200356570A1 (en) Interactive user interface having transform operators for schema transformation
CN103593401A (en) Code conversion method and device
CN114266554B (en) Intelligent dynamic database management system
Wei [Retracted] Application of Wireless Sensor Network Computer Technology in Financial Management System

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210604

WD01 Invention patent application deemed withdrawn after publication