CN109710243B - Block chain development method, device, server and medium based on visual platform - Google Patents

Block chain development method, device, server and medium based on visual platform Download PDF

Info

Publication number
CN109710243B
CN109710243B CN201811643767.0A CN201811643767A CN109710243B CN 109710243 B CN109710243 B CN 109710243B CN 201811643767 A CN201811643767 A CN 201811643767A CN 109710243 B CN109710243 B CN 109710243B
Authority
CN
China
Prior art keywords
developer
menu
block chain
target
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811643767.0A
Other languages
Chinese (zh)
Other versions
CN109710243A (en
Inventor
肖伟
谭待
于雅楠
魏菱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201811643767.0A priority Critical patent/CN109710243B/en
Publication of CN109710243A publication Critical patent/CN109710243A/en
Application granted granted Critical
Publication of CN109710243B publication Critical patent/CN109710243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a block chain development method, a block chain development device, a block chain development server and a block chain development medium based on a visual platform. Wherein, the method comprises the following steps: acquiring block chain parameters input or selected by a developer through a visual interactive interface; and modifying the code module based on the block chain parameters and a pre-stored code template, and storing the modified code module as a file capable of deploying the block chain. By the technical scheme provided by the embodiment of the invention, the requirement on the programming skill of a developer is reduced, and the block chain is more convenient to create and manage.

Description

Block chain development method, device, server and medium based on visual platform
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to a block chain development method, a block chain development device, a block chain development server and a block chain development medium based on a visual platform.
Background
In the prior art, many platforms for providing blockchain services have appeared, and these platforms can provide deployment data of underlying devices of blockchains and blockchain creation for developers, so that the developers can perform blockchain creation and management on development platforms according with their business requirements. What the developer needs to set is the intelligent contract, and the content of the intelligent contract determines the service content that can be provided by the block chain. Usually, a developer platform can provide a code template of the intelligent contract, so that a developer can modify and encode the code template, finally save files forming the intelligent contract, and release the files in the blockchain to complete the creation of the blockchain.
However, a code form is required to create files required by the blockchain, which obviously has higher requirements on programming skills of developers, and can not make the blockchain service more popular, so that the operation difficulty of the developers is higher and the developers are inconvenient.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a server and a medium for developing a block chain based on a visual platform, which reduce the requirements on the programming skills of developers and enable the block chain to be more convenient to create and manage.
In a first aspect, an embodiment of the present invention provides a method for developing a blockchain based on a visualization platform, where the method includes:
acquiring block chain parameters input or selected by a developer through a visual interactive interface;
and modifying the code template based on the block chain parameters and a pre-stored code template, and storing the modified code template as a file capable of deploying the block chain.
In a second aspect, an embodiment of the present invention further provides a device for developing a blockchain based on a visualization platform, where the device includes:
the chain parameter acquisition module is used for acquiring block chain parameters input or selected by a developer through a visual interactive interface;
and the modification storage module is used for modifying the code template based on the block chain parameters and the pre-stored code template and storing the modified code template as a file capable of deploying the block chain.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the visualization platform based blockchain development methods of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the visualization platform based blockchain development method according to any of the first aspects.
According to the method, the device, the server and the medium for developing the block chain based on the visual platform, provided by the embodiment of the invention, the block chain parameters input or selected by a developer are obtained through the visual interactive interface; and then modifying the code template according to the block chain parameters and the code template, and saving the modified code template as a file capable of deploying the block chain. Compared with the prior art, according to the scheme, the blockchain parameters required to be deployed for creating the blockchain are modularized, a developer only needs to select the required blockchain parameters from the visual interactive interface, the visual platform calls the matched code template based on the blockchain parameters and automatically modifies the code template, the code template is stored as a file of the deployable blockchain, the requirement on the programming skill of the developer is lowered, and convenience is provided for the developer to create and manage the blockchain.
Drawings
Fig. 1A is a flowchart of a method for developing a blockchain based on a visualization platform according to a first embodiment of the present invention;
fig. 1B is a schematic diagram of a registration page provided in the first embodiment of the present invention;
FIG. 1C is a schematic diagram of a visual interactive interface provided in the first embodiment of the present invention;
fig. 2A is a flowchart of a method for developing a blockchain based on a visualization platform according to a second embodiment of the present invention;
FIG. 2B is a schematic diagram of a technical menu interface provided in a second embodiment of the present invention;
fig. 3A is a flowchart of a method for developing a blockchain based on a visualization platform according to a third embodiment of the present invention;
fig. 3B is a schematic diagram of a chain management menu interface provided in the third embodiment of the present invention;
fig. 3C is a schematic diagram of a node detail interface provided in the third embodiment of the present invention;
fig. 3D is a schematic diagram of a resource interface for selecting a node according to a third embodiment of the present invention;
fig. 4A is a flowchart of a method for developing a blockchain based on a visualization platform according to a fourth embodiment of the present invention;
fig. 4B and 4C are schematic diagrams of a create blockchain single interface according to a fourth embodiment of the present invention;
fig. 5A is a flowchart of a method for developing a blockchain based on a visualization platform according to a fifth embodiment of the present invention;
fig. 5B is a schematic diagram of an intelligent contract menu interface provided in a fifth embodiment of the invention;
fig. 5C is a schematic diagram of a newly added intelligent contract interface provided in the fifth embodiment of the present invention
Fig. 6 is a structural block diagram of a visualization platform-based blockchain development apparatus provided in a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server provided in the seventh embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a method for developing a blockchain based on a visualization platform according to an embodiment of the present invention, which is applicable to how to implement blockchain development through a visualization platform, so as to provide a convenient scene for a developer to create and manage a blockchain. The method can be executed by a visualization platform-based blockchain development device, which can be implemented in hardware and/or software, and can be configured in a visualization platform, or a server, a client, or a computing device, etc. carrying the visualization platform. Referring to fig. 1, the method specifically includes:
s110, acquiring the block chain parameters input or selected by the developer through a visual interactive interface.
In this embodiment, the visual interactive interface is a channel through which a developer interacts information with the visual platform, the developer can input information to the visual platform through the visual interactive interface and perform operations, and the visual platform can acquire information provided by the developer to perform operations such as analysis and judgment.
The blockchain parameter refers to a parameter to be deployed for running a blockchain, and may include, but is not limited to, an intelligent contract, a consensus mechanism, an incentive mechanism, a network communication rule, a requirement of a blockchain node, a blockchain technology, a deployment manner, a currency issuing mechanism, a reward and penalty mechanism, and the like.
The intelligent contract is a code segment which is written based on a plug-in mechanism and can be called and executed by nodes in a block chain network, the content of the intelligent contract determines the service content which can be provided by the block chain, and a developer can set the intelligent contract according to actual requirements; the consensus mechanism refers to a means for achieving consensus among nodes participating in a block chain, and the consensus mechanism provided by the visualization platform may include, but is not limited to, a workload Proof mechanism (Proof of Work, POW), a rights Proof mechanism (Proof of stamp, POS), an authorized rights Proof mechanism (DPOS), a contribution Proof mechanism (Proof of efficiency, POE), a Practical Byzantine Fault Tolerance mechanism (PBFT), a Simplified Byzantine Fault Tolerance mechanism (SBFT), or an authorized Byzantine Fault Tolerance mechanism (DBFT). The network communication rule may include a network type of the block chain and a manner of information interaction between the block chain nodes, such as broadcasting, unicasting, and the like. The requirement of the blockchain node refers to the condition that the node equipment participating in the blockchain network needs to meet, and includes but is not limited to hardware equipment, economic strength, stability and the like.
In order to protect a developer who performs blockchain development based on a visual platform and the security of node devices already participating in the development platform, optionally, before obtaining blockchain parameters input or selected by the developer through a visual interactive interface, the identity (such as a blockchain account) of the developer may also be verified, that is, whether the developer is a successfully registered blockchain account is judged; if the developer is detected to be a new user, an invitation code input interface can be provided for the developer, after the developer inputs a correct invitation code, the developer can enter a registration page as shown in fig. 1B, and the block chain account can be successfully created after registration is completed according to the operation flow. And if the developer is detected to be successfully logged in according to the block chain account name and the password, determining that the identity verification of the developer is passed.
Specifically, after a developer successfully logs in a visual platform according to a blockchain account name and a password, blockchain parameters can be input or selected through a visual interactive interface; the visualization platform can acquire the blockchain parameters input or selected by the developer through the visualization interactive interface, and then execute subsequent operations according to the blockchain parameters.
For example, acquiring the parameters of the blockchain input or selected by the developer through the visual interactive interface may include:
A. taking a menu selected by a developer from a menu bar of a visual interactive interface as a target menu;
in this embodiment, the menu bar of the visual interactive interface includes a technical menu, a chain management menu, a create block chain menu, an intelligent contract menu, an overview menu, an order recording menu, a Fabric introduction, a technical document menu, and the like. The overview menu is selected by default, as shown in the visual interactive interface diagram of FIG. 1C. Optionally, the visual interactive interface may further include a custom menu for a developer to set a corresponding menu according to actual requirements. The target menu refers to one of the above menus.
Specifically, a developer selects a certain menu from a menu bar of the visual interactive interface in a clicking or touching manner and the like according to the actual requirements of the developer; the visualization platform can determine the menu selected by the developer according to the operations of clicking or touching and the like on the menu bar of the visualization interactive interface by the developer, and the menu is taken as a target menu.
B. And acquiring the parameters of the block chain input or selected by the developer through each parameter item included in the target menu.
In this embodiment, the parameter item refers to an option of a blockchain parameter provided in the target menu and selectable or input by the developer.
Specifically, after entering the interface corresponding to the target menu, the developer may input or select the block chain parameters from the parameter items included in the target menu; and the visualization platform can further acquire the parameters of the block chain input or selected by the developer through each parameter item in the target menu. For example, the target menu is an overview menu as shown in fig. 1C, and the developer may click the recharge option, enter the recharge page, and input the recharge amount; the visualization platform can acquire the recharging amount input by the developer from the recharging options in the overview menu.
Optionally, the parameter items included in different menus are different, and the corresponding blockchain parameters are different, so that the blockchain parameters acquired by the visualization platform are different, and the following embodiments will be described in detail.
Specifically, after a developer successfully logs in a visual platform according to a block chain account name and a password, a required menu can be selected from a menu bar of a visual interactive interface, and after entering an interface corresponding to the menu, each parameter item included in the menu is input or a block chain parameter is selected; the visualization platform can take the menu selected by the developer from the menu bar of the visualization interactive interface as the target menu, acquire the block chain parameters input or selected by the developer through each parameter item in the target menu, and then execute the subsequent operation according to the block chain parameters.
And S120, modifying the code template based on the block chain parameters and the pre-stored code template, and storing the modified code template as a file capable of deploying the block chain.
In this embodiment, the code module refers to a preset and stored functional module; optionally, different parameters of the blockchain correspond to different code templates.
Specifically, after obtaining the blockchain parameter, the visualization platform may call a code template matched with the blockchain parameter according to the blockchain parameter, for example, if the blockchain parameter is an intelligent contract, a pre-stored intelligent contract template may be called; and modifying the code template according to the block chain parameters, namely assigning values to the parameters in the code module, and generating and storing the values as files capable of deploying the block chain.
According to the technical scheme provided by the embodiment of the invention, the block chain parameters input or selected by a developer are obtained through a visual interactive interface; and then modifying the code template according to the block chain parameters and the code template, and saving the modified code template as a file capable of deploying the block chain. Compared with the prior art, according to the scheme, the blockchain parameters required to be deployed for creating the blockchain are modularized, a developer only needs to select the required blockchain parameters from the visual interactive interface, the visual platform calls the matched code template based on the blockchain parameters and automatically modifies the code template, the code template is stored as a file of the deployable blockchain, the requirement on the programming skill of the developer is lowered, and convenience is provided for the developer to create and manage the blockchain.
Example two
Fig. 2A is a flowchart of a method for developing a blockchain based on a visualization platform according to a second embodiment of the present invention, and this embodiment further explains parameters of a blockchain input or selected by a developer through a visualization interactive interface on the basis of the second embodiment, and provides a scheme for acquiring parameters of a blockchain when a target menu is a technical menu. Referring to fig. 2A, the method specifically includes:
and S210, taking a menu selected by the developer from a menu bar of the visual interactive interface as a target menu.
S220, if the target menu is the technical menu, the target blockchain technology used by the developer through each blockchain technology candidate in the technical menu is obtained.
In this embodiment, the blockchain technique is one of the blockchain parameters, which is the basis for creating the blockchain. The technology menu includes blockchain technology options, i.e., blockchain technology candidates, that can be selected by the developer. Optionally, the blockchain technique candidates include, but are not limited to, Xpuer, XuperM, and Fabric options. The target blockchain technique is one of the alternative blockchain techniques.
The different blockchain technologies may support different blockchain parameters, such as consensus mechanisms, intelligent contract types, and network communication rules, and the supported blockchains may have different characteristics.
For example, the blockchain technology candidates shown in FIG. 2B that can be selected by the developer include XPuper, XuperM, and Fabric options. The Xpu can support multiple consensus mechanisms such as TDPOS/POW/RAFT/PBFT/SINGLE, can support intelligent contracts of multiple language types such as Solidity/WebAssembly/Go, and can support high-concurrency DAG networks.
The Fabric can support various consensus mechanisms such as Solo/Kafka/PBFT and the like, can support intelligent contracts of various language types such as Go/Java and the like, and has perfect CA authority control on a block chain supported by the Fabric.
Specifically, if the developer clicks or touches the technical menu in the menu bar of the visual interactive interface, the visual platform takes the technical menu as the target menu, and controls the page to jump to the interface corresponding to the technical menu as shown in fig. 2B; a developer selects a target block chain technology from each block chain technology candidate item in a technical menu according to actual requirements; the visualization platform may obtain candidate candidates of each blockchain technique in the technical menu, select a target blockchain technique to be used, and then execute subsequent execution and save the target blockchain technique as a deployable blockchain file, i.e., step S230.
And S230, modifying the code template based on the target block chain technology and a pre-stored code template, and storing the modified code template as a file of the deployable block chain.
According to the technical scheme provided by the embodiment of the invention, the technical menu selected by a developer from the menu bar of the visual interactive interface is obtained through the visual interactive interface, and the target block chain technology selected by the developer through each block chain technology candidate item in the technical menu is used; and then modifying the code template according to the target block chain technology and the code template corresponding to the target block chain technology, and storing the modified code template as a file capable of deploying the block chain, thereby providing a new idea for a developer to rapidly deploy the block chain technology.
EXAMPLE III
Fig. 3A is a flowchart of a method for developing a blockchain based on a visualization platform according to a third embodiment of the present invention, and this embodiment further explains parameters of a blockchain input or selected by a developer through a visualization interactive interface on the basis of the third embodiment, and provides a scheme for acquiring parameters of a blockchain when a target menu is a chain management menu. Referring to fig. 3A, the method specifically includes:
and S310, taking the menu selected by the developer from the menu bar of the visual interactive interface as a target menu.
And S320, if the target menu is a chain management menu, taking a block chain product owned by the developer as a product candidate in the chain management menu.
In this embodiment, the chain management menu includes the blockchain products that have been created by the developer. The product candidate is one of the blockchain products owned by the developer. For example, fig. 3B is a schematic diagram of an interface corresponding to a chain management menu of a developer having two blockchain products, under each blockchain product, the current state of the blockchain is shown, such as using blockchain technology, block height, and version of smart contracts. The developer can enter a page corresponding to the chain management menu by clicking or touching, manage the owned block chain product, such as purchasing a trusted node, deleting a certain node in the existing nodes, and clicking the node details to view the detailed information of the existing nodes, such as fig. 3C.
Specifically, when the visualization platform detects that a developer clicks or touches a chain management menu, the page is controlled to jump to an interface corresponding to the chain management menu, and a block chain product owned by the current developer is used as a product candidate in the chain management menu.
S330, acquiring a target block chain product selected by the developer from the product candidates, and acquiring a target node selected by the developer for addition.
In this embodiment, the target blockchain product is one of the product candidates. The developer can select any one of the owned blockchain products for management, such as selecting the first blockchain product for management, and the management operation is to purchase a trust node. After the developer clicks the option of purchasing the trust node, the visualization platform enables the control page to enter a node selection resource interface shown in the figure 3D; the developer can determine the grade and the number of the nodes purchased at this time according to the cost required for purchasing the nodes of different grades, the balance of the account of the developer and the like.
The visualization platform can acquire a target block chain product selected by a developer from the product candidates, and the developer selects an added target node.
S340, controlling the deployment of the blockchain parameters of the target blockchain product in the target node.
Specifically, after acquiring the target node selected and added by the developer, the visualization platform may send the blockchain parameter of the target blockchain product to the target node, so that the target node deploys the blockchain parameter of the target blockchain product to participate in the target blockchain product.
And S350, modifying the code template based on the block chain parameters and the pre-stored code template, and storing the modified code template as a file capable of deploying the block chain.
According to the technical scheme provided by the embodiment of the invention, through a visual interactive interface, a developer can manage owned block chain products, such as adding trust nodes; the visualization platform obtains a target block chain product selected by a developer and selects an added target node, and controls the target node to deploy the block chain parameters of the target block chain product. According to the scheme, through the visual platform, the block chain product management is more convenient for developers to manage, and a new mode is provided for the developers to manage the block chain.
Example four
Fig. 4A is a flowchart of a method for developing a blockchain based on a visualization platform according to a fourth embodiment of the present invention, and this embodiment further explains and explains parameters of a blockchain that are input or selected by a developer through a visualization interactive interface on the basis of the foregoing embodiment, and provides a scheme for acquiring parameters of a blockchain when a target menu is a menu for creating a blockchain. Referring to fig. 4A, the method specifically includes:
and S410, taking the menu selected by the developer from the menu bar of the visual interactive interface as a target menu.
S420, if the target menu is the create block chain menu, obtaining the target network type selected by the developer from the network type candidates in the create block chain menu.
In this embodiment, the network types may include, but are not limited to, joining a super federation chain, creating a federation chain, and creating a private network, etc. The target network type is a network type selected by the developer from the network type candidates.
Specifically, when the visualization platform detects that the developer clicks or touches the created blockchain menu, the page is controlled to jump to an interface corresponding to the created blockchain menu, as shown in fig. 4B, where the created blockchain menu includes network type candidate items, deployment mode options, node configuration options, and the like. Different options correspond to different content. For the network type candidate items, because the resources which can be contributed by different network types and the obtained services are different, a developer can select one network type from the network type candidate items displayed on the visual interactive interface according to actual requirements; the visualization platform can acquire the network type selected by the developer from the network type candidate item in the creation block chain menu, and takes the network type as the target network type.
S430, acquiring the target deployment mode selected by the developer from the deployment mode options in the creation block chain menu.
In this embodiment, the deployment mode refers to a mode of deploying nodes in a blockchain, or what type of nodes are deployed; specifically, the node deployment mode in the target block chain created this time may be, for example, a trust node deployment mode, a hundred-degree cloud deployment mode, a combined deployment mode, or the like.
With continued reference to fig. 4B, the deployment style includes a trusted node deployment option and a hundredth cloud deployment. The developer can select either of the two options, or both (i.e., combined deployment); the visualization platform can acquire the deployment mode selected by the developer from the deployment mode options in the creation block chain menu, and takes the deployment mode as a target deployment mode.
S440, acquiring a target node configuration type selected by the developer from the node configuration options in the creating block chain menu.
In this embodiment, the node configuration types include a primary configuration, a middle-level configuration, and a luxury configuration (or a high-level configuration), and the hardware configurations of the nodes at different levels are different and the costs are different. The developer can select the grade and the number of the nodes according to the cost required for purchasing the nodes with different grades, the balance of the account of the developer and the like. In addition, in the combined deployment mode, the node levels in different deployment modes may be different or the same.
With continued reference to fig. 4B, for example, the deployment selected by the developer in the deployment options is a combined deployment (i.e., including a trusted node deployment and a hundredth cloud deployment); and setting the node grade in the trust node deployment mode to be the same as the node grade in the Baidu cloud deployment mode, and setting the node grade as primary configuration. The developer can respectively select nodes from the trust node deployment mode and the Baidu cloud deployment mode, and after the developer selects the nodes, the visualization platform can obtain the target node configuration types selected by the developer from the node configuration options in the creation block chain menu.
In addition, the visualization platform can automatically count the cost required for purchasing the nodes; if the account balance of the developer is less than the required expense of the purchase, the visualization platform prompts the developer that the account balance is insufficient, the developer is asked to submit the account again after recharging or that the account balance is insufficient, and then the developer is asked to select other nodes. If the account balance of the developer is larger than or equal to the required expense of the purchase, the visualization platform can display information of 'purchase success' or 'payment success'.
S450, acquiring target block chain parameters input by the developer through the parameter input items in the block chain creation menu.
In this embodiment, the created block chain menu may further include parameter input items, where the parameter input items include various parameter input sub-items, specifically, a chain name, a chain logo, a consensus mechanism, an upper limit of a block size, a block-out interval, a base number, an initiative, a category selection, a chain profile, and the like. Each parameter entry corresponds to a blockchain parameter.
The target block chain parameters may include at least one of a chain name, a chain logo, a consensus mechanism, an upper block size limit, an out-of-block interval, a number of bases, an absenteeism incentive, a selection category, and a chain profile. The chain name can comprise an English name and a Chinese name; the chain logo is used for representing the characteristic of the target block chain, namely the chain logo, the chain logo can be a personalized photo, the format of the photo can be JPG or PNG, and the size of the photo cannot exceed a preset byte number, such as 2M. Consensus mechanisms include POW, POS, DPOS, TDPOS, POE, PBFT, SBFT, DBFT, and RAFT options. The base number is the number of base incentive elements (e.g., currencies). The selection categories can comprise primary categories, secondary categories and the like; for example, the primary category may be a game category, and the secondary category may be a game of strategy or an action game, etc. The miner incentive means that each time a node where the miner is located serves as a block generation node, an obtained incentive element is currency.
Referring to fig. 4C, the developer may input at least one blockchain parameter in the parameter entry in the create blockchain menu, and the visualization platform may obtain at least one target blockchain parameter input by the developer through the parameter entry in the create blockchain menu.
And S460, modifying the code template based on the block chain parameters and the pre-stored code template, and storing the modified code template as a file capable of deploying the block chain.
In this embodiment, the blockchain parameter includes a target network type, a target deployment manner, a target node configuration type, and a target blockchain parameter.
It should be noted that, in the present embodiment, a preferred example is provided, and step S450 is executed after step 440. In the case where the target menu is the create block chain menu, step S450 may also be performed after step S410, and then step S460 is performed; the schemes formed by the steps S410, S450 and S460 are parallel to the schemes formed by the steps S410 to S440 and S460, and have no priority.
According to the technical scheme provided by the embodiment of the invention, a block chain creating menu selected by a developer from a menu bar of a visual interactive interface is obtained through the visual interactive interface, and block chain parameters selected and input by the developer through different options and parameter input items in the block chain creating menu are obtained; and then modifying the code template according to the block chain parameters and the code template corresponding to the block chain parameters, and storing the modified code template as a file capable of deploying the block chain, thereby providing a new idea for a developer to quickly create the block chain. In addition, compared with the prior art, according to the scheme, the blockchain parameters required to be deployed for creating the blockchain are modularized, a developer only needs to select the required blockchain parameters from the visual interactive interface, the visual platform calls the matched code template based on the blockchain parameters and automatically modifies the code template, the code template is stored as a file of the deployable blockchain, the requirement on the programming skill of the developer is lowered, and convenience is provided for the developer to create the blockchain.
EXAMPLE five
Fig. 5A is a flowchart of a method for developing a blockchain based on a visualization platform according to a fifth embodiment of the present invention, and this embodiment further explains and explains a blockchain parameter that is input or selected by a developer through a visualization interactive interface on the basis of the foregoing embodiment, and provides a scheme for acquiring a blockchain parameter when a target menu is an intelligent contract menu. Referring to fig. 5A, the method specifically includes:
and S510, taking a menu selected by the developer from a menu bar of the visual interactive interface as a target menu.
And S520, if the target menu is the intelligent contract menu and the newly added operation of the developer is detected, acquiring the newly added intelligent contract parameters of the developer.
The intelligent contract parameters may include at least one of program code (or contract code), chain name, contract name, consensus policy (or endorsement policy), version number, and description information of the intelligent contract. The program code of the intelligent contract can be written by any one of languages supported by the blockchain technology used by the blockchain product.
Specifically, when the visualization platform detects that the developer clicks or touches the intelligent contract menu, the control page jumps to the interface corresponding to the intelligent contract menu, as shown in fig. 5B; and when detecting the newly added operation of the developer, the control page jumps to a newly added intelligent contract interface as shown in fig. 5C, and obtains the intelligent contract parameters input or selected by the developer on the newly added intelligent contract page.
In this embodiment, after the submission operation of the developer is detected, a newly-added intelligent contract may be further added under my intelligent contract item in the intelligent contract interface.
In order to increase the flexibility of the developer in deploying the intelligent contracts, as shown in fig. 5B, the interface corresponding to the intelligent contract menu may further include an editing control, and the developer may modify, delete, update the versions of the deployed intelligent contracts, and the like according to the actual situations.
For example, acquiring the blockchain parameters input or selected by the developer through the parameter items included in the target menu may further include: taking an intelligent contract owned by a developer as a candidate item in an intelligent contract menu; taking the intelligent contract selected by the developer from the candidate items as a target intelligent contract; and acquiring target intelligent contract parameters input by a developer through the editing control.
In this embodiment, when a developer needs to modify a deployed intelligent contract, the developer may enter an editing page of the intelligent contract through an editing control, and modify at least one of the parameters of the intelligent contract on the editing page. The intelligent contract parameters in the edit page are the same as the intelligent contract parameters in the newly added intelligent contract page in type.
The visualization platform may take intelligent contracts owned by developers as candidates in an intelligent contract menu, for example, take six intelligent contracts shown in fig. 5A as candidates; and then taking the intelligent contract selected by the developer from the candidate items as a target intelligent contract, and acquiring the target intelligent contract parameters input by the developer through the editing control. For example, the developer changes the version number of the intelligent contract 1 to be v1.3.1 through the editing control of the intelligent contract 1, the visualization can take the intelligent contract 1 as a target intelligent contract, and the obtained target intelligent contract parameter is v 1.3.1.
And S530, modifying the code template based on the intelligent contract parameters and the pre-stored code template, and saving the modified code template as a file of the deployable block chain.
According to the technical scheme provided by the embodiment of the invention, the intelligent contract menu selected by a developer from the menu bar of the visual interactive interface and the intelligent contract parameters newly added by the developer through the newly added operation are obtained through the visual interactive interface; and then modifying the code template according to the intelligent contract parameters and the code template corresponding to the intelligent contract parameters, and storing the modified code template as a file of a deployable block chain, thereby providing a new idea for developers to rapidly deploy intelligent contracts. Compared with the prior art, according to the scheme, the intelligent contract required to be deployed for creating the block chain is modularized, a developer only needs to select the required intelligent contract parameters from the visual interactive interface, the visual platform calls the matched code template based on the intelligent contract parameters and automatically modifies the code template to store the code template as the file of the deployable block chain, the requirement on the programming skill of the developer is lowered, and convenience is provided for the developer to create and deploy the intelligent contract. Meanwhile, the scheme also sets an editing control, so that a developer can flexibly change the deployed intelligent contract.
EXAMPLE six
Fig. 6 is a structural block diagram of a visualization platform-based blockchain development device according to a sixth embodiment of the present invention, which is capable of executing the visualization platform-based blockchain development method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus may include:
a chain parameter obtaining module 610, configured to obtain, through a visual interactive interface, a blockchain parameter input or selected by a developer;
and a modification saving module 620, configured to modify the code template based on the blockchain parameter and a pre-stored code template, and save the modified code template as a file of the deployable blockchain.
According to the technical scheme provided by the embodiment of the invention, the block chain parameters input or selected by a developer are obtained through a visual interactive interface; and then modifying the code template according to the block chain parameters and the code template, and saving the modified code template as a file capable of deploying the block chain. Compared with the prior art, according to the scheme, the blockchain parameters required to be deployed for creating the blockchain are modularized, a developer only needs to select the required blockchain parameters from the visual interactive interface, the visual platform calls the matched code template based on the blockchain parameters and automatically modifies the code template, the code template is stored as a file of the deployable blockchain, the requirement on the programming skill of the developer is lowered, and convenience is provided for the developer to create and manage the blockchain.
Illustratively, the chain parameter obtaining module 610 may include:
the target menu determining unit is used for taking a menu selected by a developer from a menu bar of the visual interactive interface as a target menu;
and the chain parameter acquisition unit is used for acquiring the block chain parameters input or selected by the developer through each parameter item included in the target menu.
Illustratively, the chain parameter obtaining unit may be configured to:
and if the target menu is the technical menu, acquiring the target block chain technology candidate selected by the developer through each block chain technology candidate in the technical menu.
Illustratively, the chain parameter obtaining unit may be further configured to:
if the target menu is a chain management menu, taking a block chain product owned by a developer as a product candidate in the chain management menu;
acquiring a target block chain product selected by a developer from the product candidate items, and acquiring a target node selected and added by the developer;
block chain parameters of deploying a target block chain product in a target node are controlled.
Illustratively, the chain parameter obtaining unit may be further configured to:
if the target menu is a created block chain menu, acquiring a target network type selected by a developer from network type candidate items in the created block chain menu;
acquiring a target deployment mode selected by a developer from deployment mode options in a creation block chain menu; and the number of the first and second groups,
and acquiring the target node configuration type selected by the developer from the node configuration options in the created block chain menu.
Illustratively, the chain parameter obtaining unit may be further configured to:
acquiring target block chain parameters input by a developer through parameter input items in a block chain creation menu;
the target blockchain parameters include at least one of a chain name, a chain logo, a consensus mechanism, an upper block size limit, an out-of-block interval, a number of bases, an absenteeism incentive, a selection category, and a chain profile.
Illustratively, the chain parameter obtaining unit may be further configured to:
if the target menu is an intelligent contract menu and the newly added operation of the developer is detected, acquiring newly added intelligent contract parameters of the developer;
the intelligent contract parameters comprise at least one of program codes, chain names, contract names, consensus strategies, version numbers and description information of the intelligent contracts.
Illustratively, the chain parameter obtaining unit may be further configured to:
taking an intelligent contract owned by a developer as a candidate item in an intelligent contract menu;
taking the intelligent contract selected by the developer from the candidate items as a target intelligent contract;
and acquiring target intelligent contract parameters input by a developer through the editing control.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a server according to a seventh embodiment of the present invention, and fig. 7 shows a block diagram of an exemplary server suitable for implementing the embodiment of the present invention. The server shown in fig. 7 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in FIG. 7, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes programs stored in the system memory 28 to execute various functional applications and data processing, for example, to implement the visualization platform-based block chain development method provided by the embodiment of the present invention.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program, when executed by a processor, is configured to perform a method for developing a blockchain based on a visualization platform, where the method includes:
acquiring block chain parameters input or selected by a developer through a visual interactive interface;
and modifying the code template based on the block chain parameters and the pre-stored code template, and storing the modified code template as a file capable of deploying the block chain.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. The block chain development method based on the visual platform is characterized by comprising the following steps:
taking a menu selected by a developer from a menu bar of a visual interactive interface as a target menu;
acquiring block chain parameters input or selected by a developer through each parameter item included in the target menu;
modifying the code template based on the block chain parameters and a pre-stored code template, and storing the modified code template as a file capable of deploying a block chain; the block chain parameter refers to a parameter required to be deployed for running a block chain;
acquiring the block chain parameters selected by the developer through each parameter item included in the target menu, wherein the acquiring comprises the following steps:
if the target menu is a chain management menu, taking a block chain product owned by a developer as a product candidate in the chain management menu;
acquiring a target block chain product selected by a developer from the product candidate items, and acquiring a target node selected and added by the developer;
controlling deployment of blockchain parameters of the target blockchain product in the target node.
2. The method of claim 1, wherein obtaining the blockchain parameters selected by the developer through the parameter items included in the target menu comprises:
and if the target menu is a technical menu, acquiring each block chain technology candidate item in the technical menu and selecting the used target block chain technology by a developer.
3. The method of claim 1, wherein obtaining the blockchain parameters selected by the developer through the parameter items included in the target menu comprises:
if the target menu is a created block chain menu, acquiring a target network type selected by a developer from network type candidate items in the created block chain menu;
acquiring a target deployment mode selected by a developer from the deployment mode options in the block chain creation menu; and the number of the first and second groups,
and acquiring the target node configuration type selected by the developer from the node configuration options in the block chain creating menu.
4. The method of claim 3, wherein obtaining the blockchain parameters input by the developer through the parameter items included in the target menu comprises:
acquiring target block chain parameters input by a developer through parameter input items in the creation block chain menu;
the target blockchain parameter includes at least one of a chain name, a chain logo, a consensus mechanism, an upper block size limit, an out-of-block interval, a number of bases, an absenteeism incentive, a selection category, and a chain profile.
5. The method of claim 1, wherein obtaining the blockchain parameters input or selected by the developer through the parameter items included in the target menu comprises:
if the target menu is an intelligent contract menu and the newly added operation of the developer is detected, acquiring newly added intelligent contract parameters of the developer;
wherein the intelligent contract parameters comprise at least one of program code, chain name, contract name, consensus policy, version number and description information of the intelligent contract.
6. The method of claim 5, wherein obtaining blockchain parameters entered or selected by a developer through each parameter item included in the target menu further comprises:
taking an intelligent contract owned by a developer as a candidate item in the intelligent contract menu;
taking the intelligent contract selected by the developer from the candidate items as a target intelligent contract;
and acquiring target intelligent contract parameters input by a developer through the editing control.
7. Visualization platform-based blockchain development device, comprising:
the chain parameter acquisition module is used for acquiring block chain parameters input or selected by a developer through a visual interactive interface;
the modification storage module is used for modifying the code template based on the block chain parameters and a pre-stored code template and storing the modified code template as a file capable of deploying a block chain; the block chain parameter refers to a parameter required to be deployed for running a block chain;
wherein, the chain parameter acquisition module comprises:
the target menu determining unit is used for taking a menu selected by a developer from a menu bar of the visual interactive interface as a target menu;
a chain parameter acquiring unit, configured to acquire a block chain parameter input or selected by a developer through each parameter item included in the target menu;
the chain parameter acquisition unit is further used for taking a block chain product owned by a developer as a product candidate in the chain management menu if the target menu is the chain management menu; acquiring a target block chain product selected by a developer from the product candidate items, and acquiring a target node selected and added by the developer; block chain parameters of deploying a target block chain product in a target node are controlled.
8. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the visualization platform based blockchain development method of any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the visualization platform based blockchain development method according to any one of claims 1 to 6.
CN201811643767.0A 2018-12-29 2018-12-29 Block chain development method, device, server and medium based on visual platform Active CN109710243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811643767.0A CN109710243B (en) 2018-12-29 2018-12-29 Block chain development method, device, server and medium based on visual platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811643767.0A CN109710243B (en) 2018-12-29 2018-12-29 Block chain development method, device, server and medium based on visual platform

Publications (2)

Publication Number Publication Date
CN109710243A CN109710243A (en) 2019-05-03
CN109710243B true CN109710243B (en) 2022-05-17

Family

ID=66260338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811643767.0A Active CN109710243B (en) 2018-12-29 2018-12-29 Block chain development method, device, server and medium based on visual platform

Country Status (1)

Country Link
CN (1) CN109710243B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104472B (en) * 2018-07-26 2021-06-29 北京京东尚科信息技术有限公司 Block chain network networking method, device, equipment and computer readable storage medium
CN111915304A (en) * 2019-05-08 2020-11-10 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of digital elements and storage medium
CN110308962B (en) * 2019-07-04 2022-08-23 明链科技(深圳)有限公司 Method, electronic device, and medium for managing block chain network
CN110308903B (en) * 2019-07-04 2023-07-25 明链科技(深圳)有限公司 Method for creating blockchain network, electronic equipment and medium
CN112187503A (en) * 2019-08-29 2021-01-05 盈盛智创科技(广州)有限公司 Block chain service network configuration method, device, equipment and storage medium
CN110888630B (en) * 2019-11-08 2023-05-26 杭州趣链科技有限公司 Distributed programmable service research and development system based on block chain
CN111459504B (en) * 2020-03-30 2023-07-04 百度国际科技(深圳)有限公司 Intelligent contract processing method, device, equipment and storage medium
CN113114488A (en) * 2021-03-29 2021-07-13 明链科技(深圳)有限公司 Platform support mode for managing existing block chain network
CN113220793A (en) * 2021-06-04 2021-08-06 杭州复杂美科技有限公司 Block chain rapid customization method, equipment and storage medium
CN113282663A (en) * 2021-06-04 2021-08-20 杭州复杂美科技有限公司 Block chain rapid customization method, equipment and storage medium
CN113253995B (en) * 2021-06-11 2021-11-09 北京百度网讯科技有限公司 Method, device, equipment and storage medium for developing block chain system
CN116502272B (en) * 2023-06-21 2023-09-08 北京探索者软件股份有限公司 Method and device for saving CAD metafile of computer aided design

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN106354492A (en) * 2016-08-23 2017-01-25 深圳Tcl智能家庭科技有限公司 Automatic code generation method and system capable of rapidly adjusting transaction process connection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10438170B2 (en) * 2017-01-05 2019-10-08 International Business Machines Corporation Blockchain for program code credit and programmer contribution in a collective

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN106354492A (en) * 2016-08-23 2017-01-25 深圳Tcl智能家庭科技有限公司 Automatic code generation method and system capable of rapidly adjusting transaction process connection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于区块链的应用系统开发方法研究;蔡维德;《软件学报》;20171231;第1474-1487页 *

Also Published As

Publication number Publication date
CN109710243A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109710243B (en) Block chain development method, device, server and medium based on visual platform
CN108292231B (en) Method and system for generating applications from data
US9891890B2 (en) Generation of an application from template
US9390375B2 (en) Reuse of on-demand enterprise system customization knowledge utilizing collective experience
CN100492316C (en) System and method for test automation
CN102054021B (en) Use WEB portal application method for customizing and the system of profile
CA2937017C (en) Integrated design application
CN108970117B (en) Game resource package issuing method, terminal device and medium
TWI805882B (en) Event Management System
US9201702B2 (en) Integrated cloud data center management
CN102567839A (en) Hybrid task board and critical path based project application
US20150082271A1 (en) System and method for providing an editor for use with a business process design environment
US11741411B2 (en) System and method for software development including column-based process editor
US20200310844A1 (en) Robotic process automation system with device user impersonation
CN102541544B (en) The processing method of Tree control, Apparatus and system
CN114594934A (en) Visual page generation method, device, equipment and medium
US7472355B2 (en) Computer-implemented method for managing commands for a terminal session
CN116521509A (en) Intelligent contract testing method, device, equipment, storage medium and product
Abdul-Aziz et al. A methodology for the development of web-based information systems: web development team perspective
KR20220003864A (en) System and method for design task of architectural decoration
KR20210069215A (en) The user interface method for optimalizing bigdata analysis
Ingram Bogusz et al. Open or just Fragmented? Mobilization through Open Source Action Repertoires in the Blockchain Social Movement
CN114721931B (en) Data processing method, device, equipment and storage medium
Hanakawa et al. Towards Integrating Software Development and Multimedia Content Creation
Zaman Building an Android E-Commerce Application “Dailyshop”

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