CN113220793A - 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
CN113220793A
CN113220793A CN202110627008.0A CN202110627008A CN113220793A CN 113220793 A CN113220793 A CN 113220793A CN 202110627008 A CN202110627008 A CN 202110627008A CN 113220793 A CN113220793 A CN 113220793A
Authority
CN
China
Prior art keywords
block chain
user
module
processing module
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.)
Pending
Application number
CN202110627008.0A
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 CN202110627008.0A priority Critical patent/CN113220793A/en
Publication of CN113220793A publication Critical patent/CN113220793A/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

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 providing a block chain rapid customization method for a service scene of rapidly customizing a new block chain by an autonomous mature block chain technology company, so that a non-block chain technician can 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, including:
the method comprises 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;
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;
step three: modifying the modifiable data at the user side of the business processing module, and sending a data modification request to the service side of the business processing module;
step four: responding to a data modification request sent by a user side of the service processing module, obtaining a first block chain source file from a source file of the template selected in the block chain prototype module copying step two by a service side of the service processing module, and adding a patch to the first block chain source file according to the data modification request to obtain a second source file;
step five: the service end of the business processing module calls a compiling script in the second source file to compile the second source file to obtain a customized block chain file;
step six: 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 as described in the first aspect above.
In a third aspect, there is provided a storage medium storing a computer program which, when executed by a processor, implements the method as described in the first aspect 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 customizing method is provided, so that a non-blockchain technician can also quickly customize the new blockchain, and the block chain customizing efficiency is greatly 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.
And 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 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 carries out patching on the block chain prototype code according to the setting parameters submitted by the user, generates a new block chain source code meeting the requirements of the customer, and then carries out compiling to generate a block chain file; specifically, the system comprises a user side and a server side, wherein the user side is used for setting modifiable parameters by a user; and the server is used for patching the block chain prototype code according to the setting parameters submitted by the user to generate a new block chain source code, and compiling the block chain source code to generate a 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 service processing module, obtaining a first block chain source file from a source file of the template selected in the second block chain prototype module copying step by a server side of the service processing module, and adding a patch to the first block chain source file according to the data modification request to obtain a second source file.
Specifically, when the server of the system service processing module receives the request, copying the source code (i.e., the first source file) of the customized template selected in step two, and patching the copied source code according to the parameters set by the user to form the source code of the customized block chain, i.e., the second source file.
Step five: and the server side of the business processing module calls the compiling script in the second source file to compile the second source file to obtain a customized block chain file.
Specifically, the server side calls a compiling script attached to the second source file to compile the second source file to generate the customized blockchain file.
Step six: 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 a block chain rapid customization system, and customization of a new block chain can be completed without professional block chain technicians.
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;
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;
step three: modifying the modifiable data at the user side of the business processing module, and sending a data modification request to the service side of the business processing module;
step four: responding to a data modification request sent by a user side of the service processing module, obtaining a first block chain source file from a source file of the template selected in the block chain prototype module copying step two by a service side of the service processing module, and adding a patch to the first block chain source file according to the data modification request to obtain a second source file;
step five: the service end of the business processing module calls a compiling script in the second source file to compile the second source file to obtain a customized block chain file;
step six: 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.
CN202110627008.0A 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium Pending CN113220793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110627008.0A CN113220793A (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
CN202110627008.0A CN113220793A (en) 2021-06-04 2021-06-04 Block chain rapid customization method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113220793A true CN113220793A (en) 2021-08-06

Family

ID=77082894

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113220793A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform
CN110083661A (en) * 2019-04-30 2019-08-02 翟红鹰 A kind of expansion method of block catenary system, block catenary system, terminal device and storage medium
CN111124617A (en) * 2019-12-24 2020-05-08 腾讯科技(深圳)有限公司 Method and device for creating block chain system, storage medium and electronic device
CN112291117A (en) * 2020-12-24 2021-01-29 江苏荣泽信息科技股份有限公司 Block chain network construction system based on customized OS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710243A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Block chain development approach, device, server and medium based on Visualization Platform
CN110083661A (en) * 2019-04-30 2019-08-02 翟红鹰 A kind of expansion method of block catenary system, block catenary system, terminal device and storage medium
CN111124617A (en) * 2019-12-24 2020-05-08 腾讯科技(深圳)有限公司 Method and device for creating block chain system, storage medium and electronic device
CN112291117A (en) * 2020-12-24 2021-01-29 江苏荣泽信息科技股份有限公司 Block chain network construction system based on customized OS

Similar Documents

Publication Publication Date Title
JP6722792B2 (en) System for verification in blockchain
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
CN107590186B (en) Method for managing and executing data processing policy and policy engine system
US9838370B2 (en) Business attribute driven sizing algorithms
US20170351716A1 (en) Resource allocation for database provisioning
CN112136306B (en) Central control system of multimedia exhibition hall and control method and device thereof
CN105518651A (en) Policy based selection of resources for cloud service
CN104246741A (en) Orchestrating hybrid cloud services
WO2022170760A1 (en) Method and apparatus for cloud platform management, electronic device, and storage medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN115454561A (en) Customized interface display method, device, equipment and storage medium
US20200184045A1 (en) Enforcing primary and secondary authorization controls using change control record identifier and information
CN113011907A (en) Data processing method, device, storage medium and equipment
CN112488707A (en) Service flow supervision method and system
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
JP2023511111A (en) Techniques for Detecting Drift in Deployment Orchestrators
CN113220793A (en) Block chain rapid customization method, equipment and storage medium
CN115409519A (en) Risk prediction model optimization method and device, electronic equipment and medium
CN113282663A (en) Block chain rapid customization method, equipment and storage medium
CN113657943B (en) Virtual asset transfer system, method, electronic equipment and storage medium
CN113672361B (en) Distributed data processing system, method, server, and readable storage medium
CN115801873A (en) Service distribution method, system, electronic device and storage medium
CN116257860A (en) Authority management method and device, storage medium and electronic equipment
CN113495887A (en) Data form processing method, device and system
WO2020155167A1 (en) Application of cross-organizational transactions to blockchain

Legal Events

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

Application publication date: 20210806