CN113282663A - Block chain rapid customization method, equipment and storage medium - Google Patents

Block chain rapid customization method, equipment and storage medium Download PDF

Info

Publication number
CN113282663A
CN113282663A CN202110627006.1A CN202110627006A CN113282663A CN 113282663 A CN113282663 A CN 113282663A CN 202110627006 A CN202110627006 A CN 202110627006A CN 113282663 A CN113282663 A CN 113282663A
Authority
CN
China
Prior art keywords
block chain
user
file
module
prototype
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
CN202110627006.1A
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.)
Nanjing Benchain Information Technology Co ltd
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Nanjing Benchain Information Technology Co ltd
Hangzhou Fuzamei Technology 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 Nanjing Benchain Information Technology Co ltd, Hangzhou Fuzamei Technology Co Ltd filed Critical Nanjing Benchain Information Technology Co ltd
Priority to CN202110627006.1A priority Critical patent/CN113282663A/en
Publication of CN113282663A publication Critical patent/CN113282663A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the technical field of computers, and particularly relates to a block chain fast customization method, equipment and a storage medium. The invention provides a block chain rapid customization method, which aims at a service scene with an autonomous mature block chain technology company for rapidly customizing a new block chain, and enables non-block chain technicians to rapidly customize the new block chain, thereby greatly improving the block chain customization efficiency.

Description

Block chain rapid customization method, equipment and storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a block chain fast customization method, equipment and a storage medium.
Background
The blockchain is a novel decentralized protocol, digital currency transactions or other data can be safely stored, information cannot be forged or falsified, and transaction confirmation on the blockchain is completed by all nodes on the blockchain together. Due to the adoption of a consensus algorithm, an encryption algorithm and other mechanisms, the block chain can effectively manage data such as copyright data, contract data, game props and the like. An intelligent contract is a piece of automatically executable program deployed on a blockchain, and the intelligent contract in a broad sense includes programming languages, compilers, virtual machines, events, state machines, fault tolerance mechanisms, and the like. The intelligent contract combined with the block chain can effectively carry out services such as right confirmation, transaction, right control and the like on the data assets.
In the current mainstream blockchain project, different blockchain networks are generally required to be deployed according to different purposes, so as to take advantage of using blockchain technology in a specific scenario. In this situation, although the bottom layer technologies used are the same, part of parameters of the blockchain need to be modified according to different requirements, and for these modifications, a plurality of blockchain technicians are generally required to modify and recompile the source codes, which is time-consuming and labor-consuming, which increases a large amount of repetitive workload of the technicians and is inefficient, and therefore, a method for customizing the blockchain is needed to enable non-blockchain technicians, such as service personnel or users, to quickly customize a set of blockchain system according to requirements.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method, an apparatus, and a storage medium for fast customizing a block chain, which enables a non-block chain technician to fast customize a block chain system.
In order to achieve the purpose, the invention adopts the following technical scheme.
In a first aspect, a method for fast customizing a blockchain is provided, which includes the following steps:
roles in the block chain rapid customization method include: a user and a rapid customization system;
the rapid customization system comprises:
the user module is used for carrying out user management and authorization;
the block chain prototype module is used for managing codes of block chain prototypes;
the service processing module comprises a user side and a service side, wherein the user side is used for setting modifiable parameters by a user; the server is used for performing patch on the block chain prototype code according to the setting parameters submitted by the user to generate a new block chain source code, and compiling to generate a block chain file according to the new block chain source code;
the new block chain management module is used for managing the block chain file generated by the service processing module;
reconstructing the code of the blockchain prototype managed by the blockchain prototype module in a combination form of an operation file and a configuration file, wherein the configuration file comprises code of modifiable parameters extracted from the code of the blockchain prototype;
the method comprises the following steps:
the method comprises the following steps: checking the login condition of the user, verifying whether the login user is an authorized user by the user module, and customizing the block chain if the login user is the authorized user;
step two: selecting a customized template from the block chain prototype provided by the block chain prototype module by a user;
step three: the user modifies the modifiable data at the user side of the service processing module, and the user side of the service processing module sends a data modification request to the service side of the service processing module;
step four: responding to a data modification request sent by a user side of the business processing module, acquiring an operation file and a configuration file of a block chain prototype selected as a customized template by a user from the block chain prototype module by a server side of the business processing module, modifying the configuration file according to the data modification request to obtain an updated configuration file, and forming the updated configuration file and the acquired operation file into a customized block chain file;
step five: and the server side of the business processing module returns the download address of the customized blockchain file to the user through the new blockchain management module.
In a second aspect, a computer device is provided, comprising one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of the first aspects as described above.
In a third aspect, there is provided a storage medium storing a computer program which, when executed by a processor, performs the method of any one of the first aspects described above.
The invention has the beneficial effects that:
aiming at a service scene with an autonomous mature blockchain technology company for quickly customizing a new blockchain, a blockchain quick customization method is provided, so that a non-blockchain technician can also quickly customize the new blockchain, the block chain customization efficiency is greatly improved, meanwhile, a combination of an operation file and a configuration file is adopted, codes and parameters which cannot be modified are solidified and packaged, the configuration file is independently set for the modifiable parameters, only the configuration file needs to be updated after a customized template is selected, patching and compiling are not needed for source codes of the customized template, and the efficiency is further improved.
Drawings
FIG. 1 is a flowchart of a method of example 1 of the present invention;
fig. 2 is a schematic structural diagram of a computer device according to embodiment 2 of the present invention.
Detailed Description
The invention is described in further detail below with reference to specific embodiments and the attached drawing figures. Those skilled in the art will be able to implement the invention based on these teachings. Moreover, the embodiments of the present invention described in the following description are generally only some embodiments of the present invention, and not all embodiments. Therefore, all other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "thickness", "upper", "lower", "horizontal", "top", "bottom", "inner", "outer", "circumferential", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used merely for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., and "several" means one or more unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; may be mechanically coupled, may be electrically coupled or may be in communication with each other; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Unless otherwise specified, the raw materials used in the examples of the present invention are all commercially available or available to those skilled in the art; unless otherwise specified, the methods used in the examples of the present invention are all those known to those skilled in the art.
Example 1
The embodiment provides a method for fast customizing a block chain, as shown in fig. 1, which includes the following steps:
first, the roles in the scheme block chain fast customization method of the embodiment include: a user and a rapid customization system; the scheme of the embodiment is completed based on a block chain rapid customization system, and the system software is a B/S framework and is divided into the following modules: the system comprises a user module, a block chain prototype module, a service processing module and a new block chain management module.
The user module is used for user management and authorization, and only authorized users can access the system.
The block chain prototype module is used for managing codes of the block chain prototype and defaults to adopt the latest stable version codes; the blockchain prototype module reconstructs the code of the blockchain prototype managed by the blockchain prototype module in a combination form of an operation file and a configuration file, wherein the configuration file comprises the code of modifiable parameters extracted from the code of the blockchain prototype, and the generated new blockchain file also adopts a combination form of the operation file and the configuration file.
The service processing module is used for arranging the customizable parameters in the source file of the blockchain prototype by a blockchain technician and displaying the customizable parameters to a user in a friendly form (with default values, description and recommendation), and the user can smoothly complete parameter setting according to the flow prompt of the system; the server side modifies the configuration file of the block chain prototype selected as the customized template according to the setting parameters submitted by the user to obtain an updated configuration file, and then combines the updated configuration file with the operation file of the block chain prototype selected as the customized template to obtain a customized block chain file; specifically, the block chain prototype selected as the customized template includes a user side and a service side, and the user side is used for setting modifiable parameters by a user; and the server side acquires the operation file and the configuration file of the block chain prototype selected as the customized template by the user from the block chain prototype module, modifies the configuration file according to the data modification request, and then combines the updated configuration file and the acquired operation file into a customized block chain file.
The new block chain management module is used for managing the block chain file generated by the service processing module; the new blockchain file generated by the service processing module is managed by the new blockchain management module, and a user can download the new blockchain file through the new blockchain management module and send the new blockchain file to a client or send a download link of the new blockchain to the client.
The specific customization process of this embodiment is:
the method comprises the following steps: and the user logs in, the user module verifies whether the logged-in user is an authorized user, and if so, the block chain is customized.
Specifically, the user logs in the blockchain customization system, and a user module of the blockchain customization system verifies whether the logged-in user is an authorized user, if so, the blockchain customization is performed, and if not, the user is rejected.
Step two: and selecting a customized template from the block chain prototype provided by the block chain prototype module.
Specifically, the selectable prototypes are displayed similar to the successful cases for the user to select, and the user selects one of the provided cases as the customized template of the block chain required by the user.
Step three: and modifying the modifiable data at the user side of the service processing module, and sending a data modification request to the service side of the service processing module.
Specifically, the blockchain technician sorts out customizable parameters in the source file of the blockchain prototype, and presents the customizable parameters to the user in a friendly form (with default values, descriptions, and recommendations), so that the user can smoothly complete parameter setting according to the flow prompt of the system.
Step four: responding to a data modification request sent by a user side of the business processing module, a server side of the business processing module acquires an operation file and a configuration file of a block chain prototype selected as a customized template by a user from the block chain prototype module, modifies the configuration file according to the data modification request, acquires an updated configuration file, and combines the updated configuration file and the acquired operation file into a customized block chain file.
Specifically, when the server of the system service processing module receives the request, the server acquires the operation file and the configuration file of the customized template selected in the step two, modifies the configuration file according to the parameters set by the user to obtain an updated configuration file, and then matches the updated configuration file with the previously acquired operation file to form a new block chain file, namely, a customized block chain file.
Step five: and the server side of the business processing module returns the download address of the customized blockchain file to the user through the new blockchain management module.
Specifically, the new blockchain file generated by the service processing module is managed by the new blockchain management module, and the user can download the new blockchain file through the new blockchain management module and send the new blockchain file to the client, or send the download link of the new blockchain to the client.
The technical scheme provided by the embodiment has the advantages that the process of block chain customization is normalized, a user operates according to the process of the block chain rapid customization system, and customization of a new block chain can be completed without professional block chain technicians. Meanwhile, the combination of the operation file and the configuration file is adopted, the codes and the parameters which cannot be modified are solidified and packaged, the configuration file is independently set for the modified parameters, only the configuration file needs to be updated after the customized template is selected, and the source codes of the customized template do not need to be patched and then compiled, so that the efficiency is further increased.
Example 2
A computer device, the device comprising: one or more processors; memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform the method of embodiment 1.
A storage medium storing a computer program which, when executed by a processor, implements the method as described in embodiment 1 above.
Fig. 2 is a schematic structural diagram of an apparatus provided in this embodiment.
As shown in fig. 2, as another aspect, the present application also provides a computer apparatus 500 including one or more Central Processing Units (CPUs) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the apparatus 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication via a network such as the internet, and the processing driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments disclosed in the present application, the method described in the above embodiment 1 may be implemented as a computer software program. For example, embodiments disclosed herein include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method described in any of the embodiments above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described herein.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (3)

1. A method for fast customizing a block chain is characterized by comprising the following steps:
roles in the block chain rapid customization method include: a user and a rapid customization system;
the rapid customization system comprises:
the user module is used for carrying out user management and authorization;
the block chain prototype module is used for managing codes of block chain prototypes;
the service processing module comprises a user side and a service side, wherein the user side is used for setting modifiable parameters by a user; the server is used for performing patch on the block chain prototype code according to the setting parameters submitted by the user to generate a new block chain source code, and compiling to generate a block chain file according to the new block chain source code;
the new block chain management module is used for managing the block chain file generated by the service processing module;
reconstructing the code of the blockchain prototype managed by the blockchain prototype module in a combination form of an operation file and a configuration file, wherein the configuration file comprises code of modifiable parameters extracted from the code of the blockchain prototype;
the method comprises the following steps:
the method comprises the following steps: checking the login condition of the user, verifying whether the login user is an authorized user by the user module, and customizing the block chain if the login user is the authorized user;
step two: selecting a customized template from the block chain prototype provided by the block chain prototype module by a user;
step three: the user modifies the modifiable data at the user side of the service processing module, and the user side of the service processing module sends a data modification request to the service side of the service processing module;
step four: responding to a data modification request sent by a user side of the business processing module, acquiring an operation file and a configuration file of a block chain prototype selected as a customized template by a user from the block chain prototype module by a server side of the business processing module, modifying the configuration file according to the data modification request to obtain an updated configuration file, and forming the updated configuration file and the acquired operation file into a customized block chain file;
step five: and the server side of the business processing module returns the download address of the customized blockchain file to the user through the new blockchain management module.
2. A computer device, characterized by one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in claim 1.
3. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method of claim 1.
CN202110627006.1A 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium Pending CN113282663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110627006.1A CN113282663A (en) 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110627006.1A CN113282663A (en) 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113282663A true CN113282663A (en) 2021-08-20

Family

ID=77283476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110627006.1A Pending CN113282663A (en) 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113282663A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572826A (en) * 2018-04-18 2018-09-25 中山大学 A method of based on script automatically dispose Hadoop and Spark cluster
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform
CN111124617A (en) * 2019-12-24 2020-05-08 腾讯科技(深圳)有限公司 Method and device for creating block chain system, storage medium and electronic device
CN112256388A (en) * 2020-10-15 2021-01-22 深圳壹账通智能科技有限公司 Container-based blockchain network deployment method, device, equipment and storage medium
CN112291117A (en) * 2020-12-24 2021-01-29 江苏荣泽信息科技股份有限公司 Block chain network construction system based on customized OS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572826A (en) * 2018-04-18 2018-09-25 中山大学 A method of based on script automatically dispose Hadoop and Spark cluster
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform
CN111124617A (en) * 2019-12-24 2020-05-08 腾讯科技(深圳)有限公司 Method and device for creating block chain system, storage medium and electronic device
CN112256388A (en) * 2020-10-15 2021-01-22 深圳壹账通智能科技有限公司 Container-based blockchain network deployment method, device, equipment and storage medium
CN112291117A (en) * 2020-12-24 2021-01-29 江苏荣泽信息科技股份有限公司 Block chain network construction system based on customized OS

Similar Documents

Publication Publication Date Title
US9600476B2 (en) Acquiring information dynamically regarding a hardware component in the cloud computing system while on the floor of the data center
US20160294800A1 (en) Aggregated computing infrastructure analyzer
CN112136306B (en) Central control system of multimedia exhibition hall and control method and device thereof
CN110601896B (en) Data processing method and equipment based on block chain nodes
CN106843976B (en) Method and apparatus for generating image file
CN110673938B (en) Task processing method, system, server and storage medium
US9621673B2 (en) Customer initiated tenant operations in a multitenant cloud environment
US11477207B2 (en) Configurable feature level controls for data
CN106897858A (en) A kind of workflow processing method and system
CN113011907A (en) Data processing method, device, storage medium and equipment
WO2022245291A2 (en) Method and apparatus for managing resources, computer device and storage medium
CN110472758A (en) Medical treatment reserving method, device, equipment and readable storage medium storing program for executing
CN112488707A (en) Service flow supervision method and system
CN113282663A (en) Block chain rapid customization method, equipment and storage medium
CN113220793A (en) Block chain rapid customization method, equipment and storage medium
CN115409519A (en) Risk prediction model optimization method and device, electronic equipment and medium
CN115048224A (en) Computing power reuse management method and device based on multiple cloud service providers
CN110362309A (en) Front end project development method, apparatus, equipment and computer readable storage medium
CN110032385A (en) Component update method, device and electronic equipment
CN113672361B (en) Distributed data processing system, method, server, and readable storage medium
US20150040116A1 (en) Method And System For Software Delivery Service
CN109345122A (en) The management method and device of application process in cloud computing system
CN116257860A (en) Authority management method and device, storage medium and electronic equipment
CN107066314A (en) Software reconfiguration method based on Open Framework
CN111880864A (en) Model calling method, system, computer equipment and storage medium based on HTTP

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: 20210820

WD01 Invention patent application deemed withdrawn after publication