CN110308962B - Method, electronic device, and medium for managing block chain network - Google Patents

Method, electronic device, and medium for managing block chain network Download PDF

Info

Publication number
CN110308962B
CN110308962B CN201910600770.2A CN201910600770A CN110308962B CN 110308962 B CN110308962 B CN 110308962B CN 201910600770 A CN201910600770 A CN 201910600770A CN 110308962 B CN110308962 B CN 110308962B
Authority
CN
China
Prior art keywords
node
blockchain network
displaying
graphical representation
network
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
CN201910600770.2A
Other languages
Chinese (zh)
Other versions
CN110308962A (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.)
Ming Chain Science And Technology Shenzhen Co ltd
Original Assignee
Ming Chain Science And Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ming Chain Science And Technology Shenzhen Co ltd filed Critical Ming Chain Science And Technology Shenzhen Co ltd
Priority to CN201910600770.2A priority Critical patent/CN110308962B/en
Publication of CN110308962A publication Critical patent/CN110308962A/en
Application granted granted Critical
Publication of CN110308962B publication Critical patent/CN110308962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The present disclosure relates to a method, electronic device, and medium of managing a blockchain network. The method for managing the block chain network comprises the following steps: displaying a user interface for managing a blockchain network, the user interface including one or more blockchain network view icons and one or more blockchain network edit icons; in response to receiving user input to the one or more blockchain network view icons, displaying a blockchain network in the user interface; and in response to receiving user input to the one or more blockchain network edit icons, editing the one or more blockchain networks and displaying the edited blockchain networks in the user interface.

Description

Method, electronic device, and medium for managing block chain network
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method for managing a blockchain network, an electronic device, and a computer-readable storage medium.
Background
The block chain technology is a novel application mode of computer technologies such as a distributed account book technology, a consensus algorithm, an encryption algorithm and the like. The block chain technology is characterized by decentralization, openness and transparency and no tampering. A network constructed based on the blockchain technique may be referred to as a blockchain network, in which nodes may be included. The nodes may belong to different organizations, and some or all of the nodes may belong to the same organization.
Although blockchain technology is attractive because it has many advantages, especially the advantage of being tamper-proof and solving trust well, it has high requirements for the maintainer's mastery and programmability of blockchain network technology due to its integration of multi-domain technologies including distributed technologies, consensus algorithms, cryptographic algorithms, etc. Moreover, since the distribution range of each node in the blockchain network is wide, the management of the blockchain network is very complicated and not intuitive.
Disclosure of Invention
To this end, according to one aspect of the present disclosure, there is provided a method of managing a blockchain network, comprising: displaying a user interface for managing a blockchain network, the user interface including one or more blockchain network view icons and one or more blockchain network edit icons; in response to receiving user input to the one or more blockchain network view icons, displaying a blockchain network in the user interface; and in response to receiving user input to edit icons for the one or more blockchain networks, editing the one or more blockchain networks and displaying the edited blockchain networks in the user interface.
According to another aspect of the present disclosure, there is provided an electronic device including: a processor and a memory storing a program comprising instructions that, when executed by the processor, cause the processor to perform a method according to the present disclosure.
According to yet another aspect of the disclosure, there is provided a computer readable storage medium storing a program, the program comprising instructions which, when executed by a processor of an electronic device, cause the electronic device to perform a method according to the disclosure.
Further features and advantages of the present disclosure will become apparent from the following description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments and together with the description, serve to explain the exemplary embodiments. The illustrated embodiments are for purposes of example only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
Fig. 1 shows a schematic diagram of an exemplary user interface for creating a blockchain network according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of an exemplary first user interface for managing a blockchain network, according to an exemplary embodiment of the present disclosure;
FIG. 3 shows a schematic diagram of an exemplary second user interface for managing a blockchain network, according to an exemplary embodiment of the present disclosure;
fig. 4 shows a flowchart of an example method for creating a blockchain network, according to an example embodiment of the present disclosure;
fig. 5 shows a flowchart of an example method for managing a blockchain network according to an example embodiment of the present disclosure;
fig. 6 shows a block diagram of an exemplary electronic device that can be applied to exemplary embodiments according to the present disclosure.
Detailed Description
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", "third", "fourth", "fifth", "sixth", "seventh", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, while in some cases they may refer to different instances based on the context of the description.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or a plurality of. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
Schematic diagrams of an exemplary user interface for creating a blockchain network and an exemplary user interface for managing a blockchain network according to exemplary embodiments of the present disclosure will be described in detail below in conjunction with fig. 1 to 3.
Fig. 1 shows a schematic diagram of an exemplary user interface for creating a blockchain network according to an exemplary embodiment of the present disclosure.
Referring to fig. 1, an exemplary user interface 100 for a user to create a blockchain network includes a tools area 110, a design area 120, and a status area 130.
As shown in fig. 1, the tool area 110 includes various types of node creation icons. The tool section includes a node creation icon 111 for creating an organizational node, a node creation icon 112 for creating a sort organizational node, a node creation icon 113 for creating a peer node, a node creation icon 114 for a user to create an authentication node, a node creation icon 115 for creating an SDK node, and a node creation icon 116 for creating a sort node. It should be noted that the node creation icon in the tool area is described above only as an example, the tool area may also include only one node creation icon, the one node creation icon may create a node and then change the type of the node by editing the created node, or may specify the type of the created node at the time of creation.
The main portion of design area 120 shows a topological structure diagram of a Hyperledger-based blockchain network. As shown in fig. 1, the root node of the topology structure graph is a graphical representation of a network node. According to an example, the graphical representations of four organizational nodes and the graphical representation of one sort organizational node are connected by a connecting line with the graphical representation of the network node. In this example, the graphical representations of the four organizational nodes represent the development department, the logistics department, the IT department, and the testing department, respectively. The user can adjust the number and name of organizations as desired. Of course, the user may also not design the network nodes, but rather the graphical representations of the various organizational nodes to be connected to each other by wires. In this example, each organizational node includes a peer node, an authentication node, and an SDK node subordinate thereto, and the ranking organization node includes a ranking node subordinate thereto. In the example shown with reference to fig. 1, the graphical representation of peer node peer1, the graphical representation of authentication node ca1, and the graphical representation of SDK node SDK1 are connected by a connecting line to the graphical representation of an organizational node representing a back office to indicate that these three nodes are subordinate to the back office; the graphical representation of peer node peer2, the graphical representation of authentication node ca2, and the graphical representation of SDK node SDK2 are connected by a wire to the graphical representation of the organizational node representing the IT department to indicate that these three nodes are subordinate to the IT department; the graphical representation of peer node peer3, the graphical representation of authentication node ca3, and the graphical representation of SDK node SDK3 are connected by wires to the graphical representation of the organizational node representing the development department to indicate that these three nodes are subordinate to the development department; the graphical representation of peer node peer4, the graphical representation of certification node ca4, and the graphical representation of SDK node SDK4 are connected by wires to the graphical representation of the organizational nodes representing the testing department to indicate that these three nodes are subordinate to the testing department.
Also shown in the upper left corner of the design area 120 are a plurality of operating buttons 121 and a zoom slider 122. The plurality of operation buttons 121 include a return button for returning to the previous page (which may be, for example, a second user interface for managing the blockchain network described below in conjunction with fig. 3), a refresh button for refreshing the design area, a deployment button for deploying the blockchain network, and a save button. The zoom slider 122 may implement a sliding operation to zoom in or out on the topological structure map in the design area.
The status region 130 is used to show information of the current block link network and/or information of the corresponding node. As shown in fig. 1, the boxes around the network nodes represent the user's currently selected network node, and in the case of the selected network node, information of the current blockchain network is shown in the status area 130. The information of the blockchain network comprises the name of the blockchain network, the service name, the version of the blockchain network, the type of the running environment, the SDK version number, the version of the blockchain network and the like. The status field 130 also includes a description box describing the blockchain network, and the user can edit the contents of the description box. If the selected node is another type of node, the information may include the name of the node, the name of the service, the domain name, the deployment environment, etc.
Fig. 2 illustrates a schematic diagram of an example first user interface for managing a blockchain network, according to an example embodiment of the present disclosure.
Referring to fig. 2, an exemplary first user interface 200 for a user managed blockchain network includes a tools area 210, a monitoring area 220, a status area 230, and a detailed information display area 240.
The tool section 210 of fig. 2 is similar to the tool section 110 of fig. 1 and will not be described again.
The main portion of the monitoring area 220 shows a topological network diagram after the block chain network designed in the design area 120 of fig. 1 is deployed. The various types of nodes and the connections between the nodes shown in the monitoring area 220 are similar to those in the design area 120 of fig. 1, and are not described again here.
The monitoring area 220 includes operational state illustrations of network nodes, peer nodes, authentication nodes, and SDK nodes, with the operational state illustrations highlighted, except that the nodes and the connections between the nodes are the same as in fig. 1. The highlighting includes highlighting of the graphical representation of the network node, highlighting of the graphical representation of the peer node, highlighting of the graphical representation of the authentication node, and highlighting of the graphical representation of the SDK node to indicate that the operational status of the nodes are deployed. As shown in fig. 2, the highlighted means that a circle is also displayed outside the node, which circle is shown in a solid line. Of course, the circle may also be dashed and may be rotated around the graphical representation of the corresponding node. The top of the peer nodes peer1, peer2, peer3, and peer4 shown in the monitoring area 220 each also include a first state diagram, a second state diagram, a third state diagram, and a fourth state diagram arranged in a fan shape, representing channels, intelligent contracts, blockchain information, and transaction information, respectively, associated with the respective peer nodes. As shown in fig. 2, the third status diagram for peer node peer1 is shown with the number "4" above, indicating that the tile height in the chain of tiles is 4; the fourth status diagram for peer node peer1 has the number "6" shown above, indicating that the number of transactions occurring in the blockchain is 6.
Also shown in the upper left corner of the monitoring area 220 are a plurality of operating buttons 221 and a zoom slider bar 222. The plurality of operation buttons 221 include a return button for returning to a previous page (which may be, for example, a second user interface for managing the blockchain network described below with reference to fig. 3), a refresh button for refreshing the monitored area, and an edit button for editing the blockchain network. The zoom slider 122 may implement a sliding operation to zoom in or out on the topology map in the monitoring area.
The status area 230 includes a channel area 231, a first intelligent contract area 232, and a second intelligent contract area 233. Status area 230 shows the channels in the blockchain network, one channel for each blockchain. As shown in fig. 2, a channel with a channel name "complaint" is displayed in the channel area 231, indicating that there is a "complaint" channel in the blockchain network. An intelligent contract is deployed in the channel, and an intelligent contract with an intelligent contract name of "complaint" is displayed in the first intelligent contract zone 232. As an example, the intelligent contract has been initialized, and a textual representation of "initialized" for the intelligent contract named "complaint" is displayed in the second intelligent contract region 233.
The detailed information display area 240 includes a plurality of detailed information display buttons including a port information display switch button 241, a name display switch button 242, and an environment example display switch button 243. As shown in fig. 2, currently, the on-off state of the port information display switch button 241 is off, at this time, the port information is not displayed on the first user interface 200, and clicking the port information display switch button 241 may set the on-off state to on, thereby displaying the port information of the peer node, the authentication node, the SDK node, and the sorting node on the first user interface 200, and clicking the port information switch button again may set the on-off state to off, at this time, the port information of the peer node, the authentication node, the SDK node, and the sorting node may not be displayed on the first user interface 200 any more. The port information may include id names, port numbers, IP addresses, operation states, etc. of the above nodes. The name toggle button may control to display or no longer display the names of the respective nodes, as shown in fig. 2, at this time, the switch state of the name display toggle button 242 is on, and by clicking the name display toggle button 242, the switch state may be off, so that the names of the respective nodes are no longer displayed, thereby making the monitoring area 220 more concise. The environment instance toggle button may control the display or non-display of the name of the environment instance in the vicinity of the graphical representation of the network node, as shown in fig. 2, when the switch state of the environment instance display toggle button 243 is off, and clicking the environment instance display toggle button 243 may set the switch state to on, and display the name of the environment instance in the vicinity of the graphical representation of the network node.
Fig. 3 shows a schematic diagram of an exemplary second user interface for managing a blockchain network according to an exemplary embodiment of the present disclosure.
Referring to fig. 3, an exemplary second user interface 300 for managing a blockchain network includes a chain space region 310, a linked list region 320, and an operations region 330.
Thumbnails (only one is shown in fig. 3) of the topology structure diagram of the multiple blockchain networks may be shown in the chain space area 310, and the chain table area 320 shows information of the various blockchain networks of the multiple blockchain networks in a list form, where each thumbnail in the chain space area 310 represents one of the multiple blockchain networks, each row in the chain table area 320 also represents one of the multiple blockchain networks, and each thumbnail may correspond to the information of each row of blockchain networks. According to one example, when the cursor is moved to a row in the linked list area 320, a thumbnail of the topological network map corresponding to the row may be highlighted in the chain space area 310. According to another example, when the cursor is moved to a thumbnail of the topological network map for a certain blockchain network in the chain space area 310, information for a row of blockchain networks corresponding to the thumbnail may be highlighted in the linked list area 320. The information of each blockchain network of the link table region 320 may include a name of the blockchain network, and a version, a network status, an operation status, and an update time of the blockchain network. The network state may include in-design, deployed, and launched. The operating state may include none, partial operation, and in operation. Also included in the link table area 320 is an edit area 325. Edit section 325 may provide multiple edit buttons for each row of chain table section 320 so that each blockchain network may be independently edited; alternatively, the edit area 325 may also set a uniform edit button for a plurality of blockchain networks in the link table area 320 to edit the selected blockchain network. The edit buttons may include a monitor button, a start button, a stop button, an unload button, a view blog button, and a web client configuration download button. The monitor button may be used to jump to the first user interface for managing the blockchain network described in connection with fig. 2. The start button may be used to start or restart the corresponding blockchain network. The stop button may be used to pause the operation of the corresponding blockchain network. The unload button may be used to unload the corresponding blockchain network and simultaneously unload channels, smart contracts, blockdata, and the like included in the blockchain network. The view blog button may be used to view a blog for the corresponding blockchain network. The network client configuration download button may be used to download a client configuration file of a corresponding blockchain network, thereby configuring a client to be joined to the blockchain network.
The operation region 330 includes a plurality of operation buttons including a create network button, a search button, and a refresh button. The create network button may be used to jump to the user interface of the user created blockchain network as described in connection with fig. 1. The search button may be used to search for a desired blockchain network by network name. The refresh button may refresh the chain space region 310 and the linked list region 320 to display the updated chain space region and linked list region.
Those skilled in the art will appreciate that the exemplary user interface for creating a blockchain network, the exemplary first user interface for managing a blockchain network, and the exemplary second user interface for managing a blockchain network described above with reference to fig. 1-3 are exemplary only and in no way limiting. The style, shape, size, etc. of the elements in all exemplary user interfaces, such as the exemplary user interface, the various functional regions encompassed by the exemplary user interface, the various icons comprised by the exemplary user interface, the various graphical representations comprised by the exemplary user interface, and the status and operational status illustrations are exemplary and do not constitute a limitation of the present disclosure.
A method of creating a blockchain network according to the present disclosure will be described below in conjunction with fig. 1 and 4.
Fig. 4 shows a flowchart of an example method for creating a blockchain network according to an example embodiment of the present disclosure.
As already described above, the method of creating a blockchain network according to the prior art is difficult, time consuming and expensive. To this end, the present disclosure proposes a method of creating a blockchain network that is easy to operate, fast, and does not require specialized developers who are proficient in blockchain technology.
According to an exemplary embodiment illustrated in fig. 4, a method of creating a blockchain network may include the steps of: displaying a user interface for creating a blockchain network, the user interface comprising a blockchain network deployment icon and one or more node creation icons (step 401); in response to receiving a first user input to create an icon for the one or more nodes, displaying a graphical representation of a first node in the user interface (step 402); and in response to receiving user input for a blockchain network deployment icon, deploying a blockchain network, the blockchain network including the first node (step 403). The above-described steps 401 to 403 will be described in detail below.
In step 401, the user interface for creating the blockchain network may be the exemplary user interface for creating the blockchain network described above in connection with fig. 1, according to some embodiments. The user interface may be that of any one or more of the following types of electronic devices: desktop computers, laptop computers, tablet computers, personal digital assistants, smart phones, and the like. According to some embodiments, the user interface may include a plurality of functional areas, such as a tool area, a design area, a status area, and the like.
According to some embodiments, a blockchain network deployment icon and one or more node creation icons may be displayed in a tool area of a user interface. According to some embodiments, a user interface for creating a blockchain network may include a plurality of node creation icons, which may be different from one another, and different node creation icons may correspond to the creation of different types of nodes. According to some embodiments, the user interface for creating the blockchain network may include only one node creation icon, which may correspond to different types of nodes or to the same type of nodes.
In step 402, according to some embodiments, the first user input to create an icon for the one or more nodes may include at least one of the following input modes: copying and pasting the node creation icon in the tool area in the design area, selecting and clicking the node creation icon in the design area, directly dragging the node creation icon in the tool area into the design area, and any type of user input means suitable for creating a node.
It should be noted that the operations of "copy", "paste", "select", "click", "drag", "click", "double click", "long press" and the like, which appear in the present document, may be implemented by the input device, may be implemented directly by the gesture of the user, or may be implemented by the gesture of both the input device and the user. The input device may be any type of input device suitable for user input, such as a keyboard, mouse, tablet, microphone, etc. Sensing of the user's gestures may be accomplished through a touch sensitive surface. According to some embodiments, the touch-sensitive surface is also referred to as a touch screen, a touch-sensitive display, or the like.
According to some embodiments, displaying the graphical representation of the first node in the user interface may be displaying the graphical representation of the first node in the design area, although the disclosure is not limited thereto. According to some embodiments, the first node may be any node in a blockchain network. According to some embodiments, the shape and color of the graphical representation of the first node may be the same as or different from both the shape and color of the corresponding node creation icon, the same shape and different color, or the different shape and the same color. According to some examples, the shape of the graphical representation of the first node may be a circular, triangular, rectangular, or any other shape of graphical representation suitable for representing a node in a blockchain network.
In step 403, according to some embodiments, the user input for the blockchain network deployment icon may include at least one of the following input manners: clicking on the blockchain network deployment icon, double clicking on the blockchain network deployment icon, pressing the blockchain network deployment icon, and any other type of user input appropriate for the blockchain network deployment icon.
According to some embodiments, deploying the blockchain network may be integrally connecting the blockchain network including the first node to the network. According to some embodiments, deploying a blockchain network may also be such that various nodes in the blockchain network may be communicatively connected to each other. According to some embodiments, the network to which the blockchain network is connected may be a Wide Area Network (WAN), a Metropolitan Area Network (MAN), a Local Area Network (LAN), or any other type of network suitable for blockchain network access. According to some embodiments, the blockchain network may comprise at least one first node. According to some examples, the number of first nodes in the blockchain network may be determined according to actual needs. According to some examples, the number of first nodes in the blockchain network may also depend on the consensus algorithm applied; for example, if the consensus algorithm used is a proof of workload (POW), the blockchain network may include at least one first node; the block chain network may comprise at least four first nodes if the consensus algorithm used is the practical byzantine fault tolerant algorithm (PBFT).
According to the method for creating the blockchain network disclosed by the invention, the mode of user input is very simple and is easy to operate. On the one hand, the user can create the blockchain network by using only the icons already provided in the graphical user interface of the method according to the present disclosure, without having to go deep into the principles of the various techniques involved in blockchain technology and without having to write code. On the other hand, the method of creating a blockchain network according to the present disclosure is very intuitive.
Compared with the traditional method that a developer creates the blockchain network by a large amount of codes, the method for creating the blockchain network is more efficient and has lower requirements for the developer. Non-technical personnel can create a blockchain network by using the method disclosed by the invention through simple training, so that the time and labor cost are greatly saved.
According to some embodiments, deploying the blockchain network may include obtaining information of the first node; and creating the first node of the blockchain network in the deployment environment by calling an API of the deployment environment based on the information of the first node and the information of the deployment environment.
According to some embodiments, for security reasons, the user's identity may also be verified before the user logs into the user interface for creating the blockchain network and/or the user interface for managing the blockchain network. And if the user's identity is authenticated, allowing the user to log in a user interface for creating the blockchain network and/or a user interface for managing the blockchain network; otherwise, the user is denied access to these user interfaces. According to some embodiments, users fulfilling authentication may also be classified into different types, and different types of users correspond to different rights. According to some examples, users may be divided into three types, normal users, administrators, and super administrators; the administrator may have the authority to edit the created blockchain network and create the blockchain network in addition to the authority of the ordinary user, and the super administrator may also have the authority to change the style, arrangement, and the like of the user interface for creating the blockchain network and the user interface for managing the blockchain network in addition to the authority of the administrator.
According to some embodiments, the type of blockchain network may be selected.
According to some embodiments, the user interface further comprises a type selection menu of the blockchain network, and the user can select the type of the blockchain network through the type selection menu of the blockchain network in the user interface. The method of selecting a type of blockchain network may include: in response to receiving user input to a menu of type selection for the blockchain networks, displaying in the user interface a first list comprising at least one type of blockchain network; and in response to receiving a user selection of a type of blockchain network in the first list, displaying a textual representation of the selected type of blockchain network in the user interface.
According to some embodiments, the user input and the first list for the type selection menu of the blockchain network may also be different according to different styles of the type selection menu of the blockchain network. According to some examples, the type selection menu of the blockchain network may be a drop-down menu, in which case the user input to the type selection menu of the blockchain network may include clicking a drop-down button of the drop-down menu or long-pressing the drop-down menu itself to expand the menu, and the first list may be a list shown in the expanded menu. According to some examples, the type selection menu for the blockchain network may be a pop-up menu, the user input to the type selection menu for the blockchain network may include clicking, double-clicking, or long-pressing the pop-up menu itself, and the first list may be a pop-up menu or a list shown in a dialog box. Of course, the style of the menu is described above by only some examples, but the present disclosure is not limited thereto and any style of selection menu suitable for selecting a blockchain network may be employed.
According to some embodiments, displaying a textual representation of the type of blockchain network selected may be directly displaying a name and/or abbreviation of the type of blockchain network selected on a user interface. According to some examples, the name and/or abbreviation of the type of blockchain network selected may be displayed at a type selection menu of blockchain networks, or may be displayed at any other location on the user interface suitable for display.
According to some embodiments, the type of the blockchain network may include a Hyperlegger-based blockchain network, but the disclosure is not limited thereto, and the type of the blockchain network may also include any other type of blockchain network suitable for blockchain technology.
According to some embodiments, the type of blockchain network created is an etherhouse, and the first node is a node of the etherhouse. According to some embodiments, the etherhouse-based blockchain network may be a blockchain network based on the federation chain nature of the etherhouse or may be a blockchain network based on the private chain nature of the etherhouse.
In this way, the user can select the type of the blockchain network according to actual needs, thereby further improving the applicability of creating the blockchain network and the operability of the user interface.
It should be noted that although it is described above that the selection of the type of block chain network may be made, the present disclosure is not limited thereto. According to some embodiments, the user does not need to select the type of blockchain network. According to some embodiments, an exemplary method according to the present disclosure may pre-specify a default type of blockchain network, e.g., Hyperledger.
According to some embodiments, a selection of a type of deployment environment may be made prior to deploying a blockchain network.
According to some embodiments, the user interface further includes a type selection menu of the deployment environment, and the user may select the type of the deployment environment through the type selection menu of the deployment environment in the user interface. The method of selecting a type of deployment environment may include: in response to receiving user input to a type selection menu for the deployment environment, displaying a second list in the user interface that includes at least one type of deployment environment; and in response to receiving a user selection of a type of deployment environment in the second list, displaying a textual representation of the selected type of deployment environment in the user interface.
According to some embodiments, the style of the type selection menu according to the deployment environment, the user input for the type selection menu of the deployment environment, and the second list are similar to the style of the type selection menu of the blockchain network, the user input for the type selection menu of the blockchain network, and the first list, which have been described in detail above, and therefore, for the sake of clarity, are not described herein again. Of course, the style of the selection menu, the mode of user input, and the form of the list may be the same or different for the type selection of the deployment environment and the type selection of the blockchain network.
According to some embodiments, the types of deployment environments may include kubernets, Docker composites, and Virtual machines, but the disclosure is not so limited and the types of deployment environments may also include any other type of deployment environment suitable for blockchain technology.
In this way, the user can select the type of deployment environment according to actual needs, thereby further improving the applicability of creating the blockchain network and the operability of the user interface.
It should be noted that although it was described above in connection with exemplary embodiments of the disclosure that the selection of the type of deployment environment may be made prior to deployment of the blockchain network, the disclosure is not so limited. According to some embodiments, a user need not select the type of deployment environment before deploying the blockchain network. According to some embodiments, an exemplary method according to the present disclosure may pre-specify a default type of deployment environment, e.g., kubernets.
According to some embodiments, the selection of the environment instance may be made prior to deployment of the blockchain network. According to some embodiments, the user need not select an instance of the environment. According to some embodiments, an exemplary method according to the present disclosure may pre-specify a default environment instance.
According to some embodiments, a sample application may be selected prior to deploying the blockchain network. According to some embodiments, the sample application may be a pre-set configuration file of the blockchain network.
An exemplary method for creating a blockchain network according to an exemplary embodiment of the present disclosure will be described in detail below, taking a blockchain network based on hyperridge as an example.
According to some embodiments, the exemplary method may comprise: in response to receiving a first user input to create an icon for the one or more nodes, a graphical representation of the first node is displayed in the user interface. Since the type of blockchain network created is HyperLegger, in this case, the first node is an organizational node. The detailed process of creating the first node has already been described above with reference to fig. 4, and is not described herein again. According to some embodiments, the organization node as the first node may be a node representing an organization. According to some embodiments, the organization may be a department in an enterprise, for example, the organization may be a development department W, a testing department X, IT department Y, a logistics department Z, etc. in the enterprise. According to some embodiments, the organization may also be a business, a business entity, other organization, for example, the organization may be a bank a, a school B, a public welfare organization C, and so on. According to some embodiments, the organizational nodes may be physical nodes, e.g., an organizational node may be a physical machine of an entity. According to some embodiments, the organizational node may also be a virtual node, for example, the organizational node may be a docker in the cloud. According to some embodiments, the organizational nodes correspond to neither physical devices of the entity nor virtual cloud products, but rather are purely logical nodes.
The exemplary method may further comprise: in response to receiving a second user input to create an icon for the one or more nodes, a graphical representation of a second node is displayed in the user interface, the second node being a rank organization node. The sort organization node as the second node may be a node representing a sort organization, which may be composed of all sort nodes.
According to some embodiments, the first user input is different from the second user input, but the second user input may comprise the same selection range of various input means as the first user input may comprise, which has been described in detail above. The first user input and the second user input will be described in detail below by way of illustrative examples in two cases.
The first condition is as follows: the user interface includes a plurality of different node creation icons, each of which may correspond to the creation of a type of node.
In case one, according to some examples, the first user input may be directly dragging the node creation icon corresponding to the organizational node into the design area, and the second user input may be directly dragging the node creation icon corresponding to the ranked organizational node into the design area.
Case two: only one node creation icon is included in the user interface.
In case two, according to some examples, the first user input may be directly dragging a node in the tool region to create an icon into the design region and then determining that the first user input corresponds to creating an organizational node by editing (e.g., selecting or character entering) the graphical display of the node, and the second user input may be directly dragging a node in the tool region to create an icon into the design region and then determining that the second user input corresponds to creating a ranked organizational node by editing (e.g., selecting or character entering) the graphical display of the node.
It should be noted that in the above two cases, the input manner of the first user input and the second user input is described to be similar, which is considered from the viewpoint of consistency and convenience of user operation, but the present disclosure is not limited thereto, for example, in case one, the first user input may be directly dragging the node creation icon corresponding to the organization node into the design area, and the second user input may be copying the node creation icon corresponding to the sorted organization node in the tool area and pasting in the design area.
The first user input and the second user input for the node-created icon are described in detail above by way of illustrative examples, and the third user input, the fourth user input, the fifth user input, the sixth user input, and the seventh user input for the node-created icon will also be described below. The principle of the input manner of the third to seventh user inputs is similar to that of the first and second user inputs, and therefore, for the sake of clarity, the description will not be repeated.
In this way, the user can create a HyperLegger type blockchain network more conveniently and quickly.
According to some embodiments, the user interface may further include an organizational novelty icon, and the exemplary method may further include: in response to receiving user input aiming at the newly added icon of the organization, displaying a dialog box for inputting information of the organization on a user interface, wherein the information comprises an organization name, an alias, a service name and the like of the organization; in response to receiving user input directed to the graphical representation of the first node, displaying a menu or list for selecting the newly added organization; in response to receiving a user input of an item in a menu or list, a name or alias or business name of an organization corresponding to the item is displayed.
In this way, the user can lay out the organizations to be joined in the blockchain network in advance, and the organizations can be well distinguished in the user interface.
The exemplary method may further comprise: in response to receiving the first user input, also displaying in the user interface a graphical representation of a peer node and displaying a line connecting the graphical representation of the peer node to the graphical representation of the first node to indicate that the peer node is subordinate to the first node.
In the HyperLegger, a peer node (peer) is mainly responsible for implementing read-write operation on a distributed account book in a block chain network by executing a chain code. All peer nodes are accounting nodes and are responsible for maintaining state data and copies of the ledger. And part of peer nodes execute transactions and endorse the results according to the setting of the endorsement policy, so that the peer nodes are used as endorsement nodes.
It should be noted that a line throughout may be a line segment, curve, arrow, etc. connecting, for example, between a graphical representation of a peer node and a graphical representation of an organizational node. In the user interface, the wiring may or may not be in contact with the graphical representation of the peer node and the graphical representation of the organizational node.
In some embodiments, indicating that a peer node is subordinate to a first node means indicating that a peer node is subordinate to an organizational node. According to one exemplary embodiment, bank A has physical machine C1, and thus physical machine C1 is subordinate to bank A. In the blockchain network of the exemplary embodiment, the bank a as an organization is represented using an organization node Org, the physical machine C1 that the bank a has to join the blockchain network is represented using a peer node peer1, and in response to receiving the first user input, a line between a graphical representation of the peer node peer1 representing the physical machine C1 and a graphical representation of the organization node Org representing the bank a may be displayed in the user interface to indicate that the physical machine C1 belongs to the bank a.
In some implementations, in response to receiving the first user input as described above, the graphical representation of the organizational node, the graphical representation of the peer node, and the line between the graphical representation of the organizational node and the graphical representation of the peer node may be displayed simultaneously. In some embodiments, the three may be displayed in chronological order, for example, the graphical representation of the organizational nodes may be displayed first, followed by the graphical representation of the peer nodes, and finally followed by the lines between the graphical representation of the organizational nodes and the graphical representation of the peer nodes. Of course, the present disclosure is not so limited, and the nodes may be displayed in any order suitable for displaying the nodes and displaying the dependencies between the nodes.
Typically, each organization has at least one peer node. Thus, when a user desires to create a graphical representation of an organizational node by a first user input, a peer node associated with the organizational node and a line indicating that the peer node belongs to the organizational node may be automatically created on the user interface. In this way, the creation of the blockchain network is further simplified, time is saved, and the error probability caused by forgetting to create the peer nodes in the process of creating the blockchain network is reduced.
The exemplary method may further comprise: in response to receiving the second user input, also displaying a graphical representation of a ranking node in the user interface and displaying a line connecting the graphical representation of the ranking node to the graphical representation of the second node to indicate that the ranking node is subordinate to the second node.
In Hyperhedger, the order node (orderer) is mainly responsible for the consensus process in the blockchain network. In the consensus process, the ordering node receives at least one transaction in the blockchain network, orders the transactions, packages the transactions into blocks, distributes the blocks to the peer nodes, waits for verification, and redistributes the verified blocks to the peer nodes after verification is successful.
According to an exemplary embodiment, the sorting organization has a sorting node orderer1, thus sorting node orderer1 is subordinate to the sorting organization. In the blockchain network of the exemplary embodiment, in response to receiving the second user input, a line between the ranking node orderer1 and the ranking organization may be displayed in the user interface to indicate that the ranking node orderer1 belongs to the ranking organization.
Typically, each sort organization has at least one sort node. Thus, when a user desires to create a graphical representation of a rank organization node via a second user input, a rank node associated with the rank organization node and a link indicating that the rank node belongs to the rank organization node may be automatically created on the user interface. In this way, the creation of the blockchain network is further simplified, time is saved, and the error probability caused by forgetting to create the sorting nodes in the process of creating the blockchain network is reduced.
The exemplary method may further comprise: in response to receiving a fifth user input to create an icon for the one or more nodes, displaying a graphical representation of a peer node in the user interface; in response to receiving user input directed to the graphical representation of the peer node and the graphical representation of the first node, displaying a line connecting the graphical representation of the authentication node to the graphical representation of the first node to indicate that the authentication node is subordinate to the first node; in response to receiving a sixth user input to create an icon for the one or more nodes, displaying a graphical representation of the ranked nodes in the user interface; and in response to receiving user input directed to the graphical representation of the ranking node and the graphical representation of the second node, displaying a line connecting the graphical representation of the ranking node to the graphical representation of the second node to indicate that the ranking node is subordinate to the second node.
According to an exemplary embodiment, bank a may have more than one physical machine, e.g., three physical machines C1, C2, C3, the bank a being an organization is represented using organization node Org, the bank a having three physical machines C1, C2, C3 are represented using peer nodes peer1, peer2, peer 3; additionally, a ranking organization may have more than one ranking node, such as three ranking nodes orderer1, orderer2, orderer 3. In the exemplary embodiment, only one peer1 and one sort node order 1 may be automatically created in response to receiving the first user input and the second user input, thus requiring the other two peer2, peer3 and the other two sort nodes order 2, order 3 to be manually created.
According to an exemplary method, in this exemplary embodiment, the user may initiate twice the fifth user input and twice the sixth user input, respectively, to create the other two peer nodes peer2, peer3 and the other two ranking nodes orderer2, orderer 3.
Furthermore, in this exemplary embodiment, the user may also initiate user input for the graphical representation of peer node peer2 and the graphical representation of organizational node Org, respectively, and user input for the graphical representation of peer node peer3 and the graphical representation of organizational node Org, respectively, to display a line between the organizational node Org and peer nodes peer2 and peer3, respectively, indicating that peer nodes peer2 and peer3 both belong to the organizational node Org, in other words, physical machines C2 and C3 both belong to bank a. Further, in this exemplary embodiment, the user may also initiate user input directed to the graphical representation of the sort node order 2 and the graphical representation of the sort organization node and user input directed to the graphical representation of the sort node order 3 and the graphical representation of the sort organization node, respectively, to display a line between the sort organization node and the sort nodes order 2 and order 3, respectively.
In some cases, an organizational node may include more than one peer node to which it is subordinate, and a sequencing organizational node may include more than one sequencing node to which it is subordinate. Thus, when a user desires to manually join more peers and sort nodes, more peers and sort nodes may be created through the fifth user input and the sixth user input. In this way, the flexibility and user-friendliness of blockchain network creation is further improved.
The exemplary method may further comprise: in response to receiving the first user input, also displaying in the user interface a graphical representation of an authentication node and a graphical representation of an SDK node, and displaying a line connecting the graphical representation of the authentication node to the graphical representation of the first node and a line connecting the graphical representation of the SDK node to the graphical representation of the first node to indicate that the authentication node and the SDK node are respectively subordinate to the first node.
In Hyperleger, a Certification (CA) node is responsible for verifying the identity of the node and issuing certificates. The authentication node may assist the organisation node in authenticating the identity of all peer nodes to which it belongs. The SDK node is responsible for verifying the identity of the organization and ensuring the integrity of the SDKs in the network.
In some embodiments, to better improve the internal security of an organization, an authentication node may be created for each organization node subordinate thereto. According to an exemplary embodiment, for an organization with high security requirements, such as bank a, it is necessary to create an authentication node ca belonging thereto, and in response to receiving a first user input, a connection between a graphical representation of the authentication node ca and a graphical representation of an organization node Org representing bank a may be displayed in the user interface.
In some cases, to improve the security inside the organization, each organization has one authentication node. Thus, when a user desires to create a graphical representation of an organizational node via a first user input, an authentication node associated with the organizational node and a link indicating that the authentication node belongs to the organizational node may be automatically created on the user interface.
In this way, the creation of the blockchain network is further simplified, time is saved, and the probability of security problems caused by forgetting to create authentication nodes in the creation of the blockchain network is reduced.
In some embodiments, to improve the security of the entire blockchain network, an SDK node may be created for each of the organizational nodes subordinate thereto. According to an exemplary embodiment, for an organization with higher security requirements, such as bank a, it may be desirable to create an SDK node SDK subordinate thereto, and in response to receiving a first user input, a line may be displayed in the user interface between the graphical representation of SDK node SDK and the graphical representation of the organization node Org representing bank a.
In some cases, to improve network security throughout the blockchain network, each organization has one SDK node. Thus, when a user desires to create a graphical representation of an organizational node via a first user input, an SDK node associated with the organizational node and a wire indicating that the SDK node belongs to the organizational node may be automatically created on the user interface. In this way, the creation of the blockchain network is further simplified, time is saved, and the probability of network security problems caused by forgetting to create the SDK node in the creation of the blockchain network is reduced.
The exemplary method may further comprise: in response to receiving a third user input to create an icon for the one or more nodes, displaying a graphical representation of an authentication node in the user interface; and in response to receiving user input directed to the graphical representation of the authentication node and the graphical representation of the first node, displaying a line connecting the graphical representation of the authentication node to the graphical representation of the first node to indicate that the authentication node is subordinate to the first node; in response to receiving a fourth user input to create an icon for the one or more nodes, displaying a graphical representation of an SDK node in the user interface; and in response to receiving user input directed to the graphical representation of the SDK node and the graphical representation of the first node, displaying a line connecting the graphical representation of the SDK node to the graphical representation of the first node to indicate that the SDK node is subordinate to the first node.
According to some embodiments, the authentication node is optional. For an organization with low security requirements on the internal network or easy manual authentication with only a small number of peer nodes, the authentication nodes may not be automatically created when the organization nodes are created. If the subsequent requirement of the organization for internal network security increases or a large number of peer nodes to be authenticated are joined, the authentication node associated with the organization node may be manually joined by a third user input creating an icon for the one or more nodes, and a connection between the graphical representation of the authentication node and the graphical representation of the first node is displayed by a user input for the graphical representation of the authentication node to indicate membership.
In this manner, when a user desires to manually join an authentication node, the authentication node may be manually created through a third user input, thereby further improving flexibility and user-interface friendliness of blockchain network creation.
According to some embodiments, the SDK node is optional. According to some embodiments, there may be only one SDK node per blockchain network for blockchain networks with certain network security requirements. If an organization wishes to manually join an SDK node, the SDK node associated with the organization node may be manually joined by a fourth user input that creates an icon for the one or more nodes, and a line between the graphical representation of the SDK node and the graphical representation of the first node is displayed by the user input for both to indicate affiliation.
In this manner, when a user desires to manually join an SDK node, the SDK node may be manually created through a fourth user input, thereby further improving flexibility and user-interface friendliness of blockchain network creation.
The exemplary method may further comprise: displaying a graphical representation of network nodes of the blockchain network. Further, the exemplary method may further comprise: in response to receiving the first user input, also displaying a line connecting the graphical representation of the first node to the graphical representation of the network node.
According to some embodiments, a graphical representation of the network nodes displayed on the user interface may be employed to represent the network connections of the entire blockchain network. According to some embodiments, a graphical representation of a network node may be displayed while the user interface is displayed. According to some embodiments, a graphical representation of the network node may also be displayed on the user interface in response to receiving a seventh user input to create an icon for the one or more nodes.
According to some embodiments, the graphical representation of the network node and the graphical representation of each of the organizational nodes may be connected using wires to indicate that the organizational nodes may be communicatively connected to each other.
By displaying the graphic representation of the network node on the user interface, the graphic representation of the network node and the graphic representation of the organization node, the graphic representation of the sequencing organization node, the graphic representation of the peer node, the graphic representation of the authentication node, the graphic representation of the SDK node and the graphic representation of the sequencing node form a tree-shaped topological structure diagram on the user interface. The topology structure graph of the tree has three levels, wherein the graph representation of the network nodes serving as root nodes of the topology structure graph of the tree is taken as a first level, the graph representation of the organization nodes and the graph representation of the sequencing organization nodes are taken as a second level, and the graph representation of the peer nodes, the graph representation of the authentication nodes, the graph representation of the SDK nodes and the graph representation of the sequencing nodes are taken as a third level.
The graphic representation of the network node is used as a root node, so that the whole block chain network can be represented as a tree-shaped topological structure diagram, the appearance is more attractive, the node layers of various types are distinct, the venation is clear, and the user experience of creating a user interface of the block chain network is further improved.
Of course, those skilled in the art will appreciate that the network node may be a virtual logical node, representing wired and/or wireless communication connections that may be present between various organizational nodes. According to some embodiments, the network node may also not be displayed on the user interface. According to some embodiments, a line connecting the graphical representations of the two organizational nodes may be displayed in the user interface to indicate that the two organizational nodes may be communicatively connected to each other in response to a user input directed to receiving the graphical representations of the two organizational nodes.
According to some embodiments, the user interface may further include a node delete icon and a link delete icon, and the exemplary method may further include: in response to receiving user input for the node delete icon and the graphical representation of the node to be deleted, deleting the graphical representation of the node to be deleted and the wires connected to the node to be deleted from the user interface; and deleting the to-be-deleted wire from the user interface in response to receiving user input for the wire deletion icon and the to-be-deleted wire.
According to some embodiments, the node deletion icon and the link deletion icon may be displayed directly on the user interface or may be displayed upon selection of a node and/or link to be deleted.
In this way, the user can conveniently delete the created nodes and/or links, thereby further improving the flexibility and user-interface friendliness of the creation of the blockchain network.
Exemplary steps for deploying a blockchain network according to exemplary embodiments of the present disclosure will be described in detail below.
For convenience of description, in the exemplary step of deploying a blockchain network, assuming that the blockchain type is hyperleeder and the environment type of deployment is kubernets, those skilled in the art should understand that these assumptions do not constitute a limitation to the present disclosure.
According to some embodiments, in an exemplary method according to the present disclosure, the type of the blockchain network may be superhedger, the deployment environment may be kubernets, and the creating the first node of the blockchain network in the deployment environment by calling an API of the deployment environment may include: creating a namespace in a Kubernetes environment; creating a directory structure of a blockchain network in the namespace; creating a certificate for each organizational node in the namespace; allocating ports to the peer nodes, the sort nodes and the SDK nodes in the namespace and generating a yaml file; and creating the pod of the peer node, the pod of the sort node and the pod of the SDK node based on the yaml file.
According to some embodiments, deploying a blockchain may comprise:
receiving a request for deploying a blockchain network, and reading a topological structure diagram of the blockchain network which is designed in a user interface, wherein the topological structure diagram comprises topological structure information of the blockchain network, and the topological structure information comprises information of an organization node, a peer node, an authentication node and an SDK node;
the background network management module instantiates a Kubernets environment processing interface module, and the Kubernets environment processing interface module is connected to a Kubernets environment by calling a Kubernets API;
calling a createNamespace function according to the name of the blockchain network to create a namespace in a Kubernetes environment, and creating a directory structure of the Fabric network through the KuberneteseCommand run function under the namespace;
calling a preset Fabric script in a namespace of a Kubernetes environment through a KuberneteseCommand run function, and creating a related certificate for each organization node according to the name and domain name of the organization node;
calling a NetworkOrderProcess function, a NetworkPeerProcess function and a NetworkSdkProcess function to respectively allocate ports for the sequencing node, the peer node and the SDK node in a namespace of a Kubernets environment, saving the ports and generating respective yaml files; and
and respectively creating the pod of the peer node, the pod of the sequencing node and the pod of the SDK node according to the respectively generated yaml files.
According to some embodiments, the display of the blockchain network may also be updated.
According to some embodiments, an exemplary method according to the present disclosure may further comprise: scanning the block chain network every predetermined time; obtaining a network state of the first node in the blockchain network through an API and updating the network state in a database; reading the updated network state in the database; and displaying the updated blockchain network in the user interface based on the updated network status.
According to some embodiments, a method of updating a deployed blockchain network may include: the background network management module modifies the network state in the information of the block chain network into deployed after deploying the block chain network and informs the network state interception module of intercepting the network state; the network state monitoring module scans the network topology structure at preset time intervals, calls a checkFabricNodeStatus function to each node to acquire the state information of the network node, and updates the state information into the database; and reading the network state from the database through the API, updating the state of each node in the block chain network, and displaying the updated block chain network on a user interface.
A channel may also be created for one or more peer nodes after deployment of the blockchain network is successful.
The exemplary method may further comprise: in response to receiving user input directed to a graphical representation of any one node in the blockchain network, displaying a function selection menu, the function selection menu including a channel creation option; and in response to receiving user input for the channel creation option, displaying a textual representation of the channel in the user interface.
In Hyperhedger, a channel is a logical structure that consists of physically present nodes. A channel contains a distributed ledger, so it can also be understood that a channel forms a block chain. A peer node can be added into a plurality of channels, but the ledger of each channel is isolated, so that data isolation and confidentiality among different channels are realized. Thus, by using multiple channels, multiple ledgers can be generated in one blockchain network.
According to some embodiments, the user input to the graphical representation of any one node may be a double-click, a long-press of the graphical representation of any one node, and if the input device is a mouse, a right-click of the graphical representation of any one node.
According to some embodiments, the user input for the channel creation option may comprise a selection of the channel creation option. According to some embodiments, the user input for the channel creation option may further include user input of a channel name and a channel alias for the created channel, and the user input of the channel name and the channel alias may be displayed on the user interface or in a newly popped up dialog box.
In response to receiving user input for the channel creation option, a method of creating a channel according to an exemplary embodiment of the present disclosure may include: identifying the name, alias and detailed information of a channel to be created, which are input by a user, and submitting a request for creating the channel to a server; the server receives the request data, verifies the validity of the submitted data, and checks the duplicate in the database according to the channel name, if the submitted data is illegal, the server directly returns the illegal error information of the data; the server sends the received legal data to a network management module to establish a channel; the network management module generates a configuration file according to the network structure; the network management module executes a script for creating a channel preparation file in the background according to the channel name; the network management module calls a Rest API of the SDK and transmits parameters such as organization names, channel names and the like to the SDK; after receiving the parameters of the request for establishing the channel, the SDK analyzes the parameters to obtain the address of the consensus node and a related certificate; sending a channel creating request to the consensus node based on parameters such as a channel name and the like; the consensus node creates a target channel and returns a creation result; the SDK receives a return result of the created channel and returns the return result to the upper layer; if the SDK successfully establishes the channel, the channel is stored in a database; and the server returns the result of creating the channel to the client.
According to some embodiments, displaying the textual representation of the channel may be displaying a name of the channel in a user interface.
Channels can be further intuitively created as logical structures by creating a user interface for a blockchain network, and the creation of channels can be associated with arbitrary nodes, which further increases the flexibility and operability of creating a user interface for a blockchain network.
The exemplary method may further comprise: displaying, in proximity to the graphical representation of the peer node, a channel state diagram corresponding to the peer node; and in response to receiving user input directed to the graphical representation of the peer node and the textual representation of the channel, joining the peer node to the channel and highlighting the channel state diagram to indicate that the peer node has joined the channel.
According to some embodiments, at least one status graphic corresponding to the peer node is also displayed in the vicinity of the graphical representation of the peer node, and the at least one status graphic includes a channel status graphic, which may present a variety of different appearances depending on the different states of the corresponding peer node in relation to the channel. Highlighting a channel state representation, according to some embodiments, refers to fading the channel state representation when the corresponding peer node has not joined the channel and highlighting the channel state representation when the corresponding peer node has joined the channel. According to some embodiments, highlighting a channel state representation refers to displaying the channel state representation in a reduced manner when the corresponding peer node has not joined the channel, and in an enlarged manner when the corresponding peer node has joined the channel. Highlighting a channel state representation, according to some embodiments, refers to displaying the channel state representation in a static manner when the corresponding peer node has not joined the channel, and in a dynamic manner when the corresponding peer node has joined the channel. Of course, the present disclosure is not so limited and the channel status graphical representation may also be highlighted in various suitable ways to distinguish whether the corresponding peer node joined the channel.
In this way, a user can add any peer node into any channel through the user interface, and the function and operability of creating the blockchain network are further enriched.
After creating the channel, intelligent contracts may also be deployed for the nodes and the deployed intelligent contracts initialized.
The function selection menu may also include smart contract deployment options, and the example method may further include: also displaying, in proximity to the graphical representation of the peer node, an intelligent contract state diagram corresponding to the peer node; and in response to receiving user input for the intelligent contract deployment option, deploying an intelligent contract and highlighting the intelligent contract status diagram to indicate that the peer node has deployed an intelligent contract.
In Hyperridge, intelligent contracts are used to provide access control to ledgers. Smart contracts do not merely serve as a core mechanism for encapsulating and simplifying information, but may also allow participants to write themselves to handle certain automatically executed transactions.
According to some embodiments, at least one state diagram that has been described above may also include a smart contract state diagram. According to some embodiments, the appearance and highlighting of the smart contract state diagram may be similar to those of the channel state diagram, which have been described in detail above, and will not be described in detail herein.
According to some embodiments, the user input for the intelligent contract deployment option may include a selection of the intelligent contract deployment option. According to some embodiments, the user input for the smart contract deployment option may be displayed directly on the user interface or may be displayed in a newly popped up dialog box. According to some embodiments, the user input for the intelligent contract deployment option may include, but is not limited to, uploading a preset intelligent contract, inputting a name of the intelligent contract, inputting a version number of the intelligent contract, inputting a channel name to which the intelligent contract is to be applied, and inputting a development language of the preset intelligent contract. According to some embodiments, the version number of the intelligent contract, the name of the channel to which the intelligent contract is to be applied and the development language of the preset intelligent contract can be input in a literal mode or a selective mode.
According to some embodiments, after a smart contract is successfully deployed, the name of the smart contract may be displayed near the name of the corresponding channel, e.g., as follows, to indicate that the smart contract was deployed in the corresponding channel.
In this manner, a user can intuitively deploy intelligent contracts and can intuitively set attribute information related to the intelligent contracts to be deployed.
After the smart contracts are deployed, the deployed smart contracts may also be initialized.
The function selection menu further includes a smart contract initialization option, and the exemplary method may further include: in response to receiving user input for the intelligent contract initialization option, an intelligent contract is initialized and a textual representation of the initialized intelligent contract is displayed in the user interface.
According to some embodiments, the user input for the smart contract initialization option may be displayed directly on the user interface or may be displayed in a newly popped up dialog box. According to some embodiments, the user input for the smart contract deployment options may include, but is not limited to, selecting uninitialized smart contracts, adding or editing or deleting parameters needed to initialize smart contracts.
According to some embodiments, a new dialog box may also be launched prior to initializing the smart contract, and a selection from the user to again confirm initializing the smart contract may be received.
According to some embodiments, displaying a textual representation of an initialized smart contract in the user interface includes popping up a prompt box in the middle of the user interface indicating that the smart contract was successfully initialized. The textual representation also includes displaying the initialized textual representation near the name of the corresponding intelligent contract to indicate that the corresponding intelligent contract has been successfully initialized.
In this manner, the user may more intuitively initialize the smart contract.
A method of managing a blockchain network according to the present disclosure will be described below in conjunction with fig. 2, 3 and 5.
Fig. 5 shows a flowchart of an example method for managing a blockchain network according to an example embodiment of the present disclosure.
As already described above, the method of managing a blockchain network according to the prior art is cumbersome and not intuitive. To this end, the present disclosure proposes a method of managing a blockchain network that is easy to operate, intuitive, and does not require maintenance personnel to be proficient in blockchain technology.
According to an exemplary embodiment illustrated in fig. 5, a method of managing a blockchain network may include the steps of: displaying a user interface for managing a blockchain network, the user interface including one or more blockchain network view icons and one or more blockchain network edit icons (step 501); in response to receiving user input to the one or more blockchain network view icons, displaying a blockchain network in the user interface (step 502); and in response to receiving user input to the one or more blockchain network edit icons, editing the one or more blockchain networks and displaying the edited blockchain networks in the user interface (step 503). The above steps 501 to 503 will be described in detail below.
In step 501, the user interface for managing the blockchain network may be the user interface for managing the blockchain network described above in connection with fig. 2 and 3, according to some embodiments. The user interface may be a user interface of any of a number of types of electronic devices: desktop computers, laptop computers, tablet computers, personal digital assistants, smart phones, and the like.
In step 502, according to some embodiments, user input to view icons for the one or more blockchain networks may include cursor placement, clicking, double clicking, long pressing, and any type of user input suitable for viewing blockchain networks. According to some embodiments, cursor placement may include placing a cursor over an icon in the user interface via the input device, and may also include placing a cursor over an icon in the user interface via touch.
In step 503, according to some embodiments, the user input for editing the icon for the one or more blockchain networks may be similar to the user input for viewing the icon for the one or more blockchain networks, and will not be described herein again.
According to the method for managing the block chain network disclosed by the invention, the mode of user input is very simple and is easy to operate. In one aspect, a user need only use icons already provided in a graphical user interface according to the method of the present disclosure to create a management blockchain network without having to delve into the principles of the various techniques involved in blockchain technology and without having to write code to manage blockchain networks. On the other hand, the method of managing a blockchain network according to the present disclosure is very intuitive.
Compared with the traditional method for managing the blockchain network, the method for managing the blockchain network is more intuitive and has lower requirements on maintenance personnel. Non-technical personnel can manage the blockchain network by using the method disclosed by the invention through simple training, so that the time and labor cost are greatly saved.
According to some embodiments, the displaying the blockchain network and the displaying the edited blockchain network may each include displaying a topological structure diagram of the blockchain network.
According to some embodiments, a topology structure diagram refers to a network structure diagram comprised of network node devices and communication media. A blockchain network is a network of one or more nodes of the same or different kind coupled together by one or more communication links. The topology map is particularly suited for display blockchain networks and edited blockchain networks.
By adopting the topology structure chart, the display of the block chain network and the edited block chain network can be more visual, and the management of a user on the block chain network is facilitated.
According to some embodiments, the user interface may include a first user interface, and the displaying the topological structure diagram of the blockchain network may include: displaying, in the first user interface, a graphical representation of a node of the blockchain network; and displaying a connecting line connecting the nodes in the first user interface.
According to some embodiments, one example of a first user interface may be the exemplary first user interface described above in connection with fig. 2 for managing a blockchain network.
According to some embodiments, the first user interface may further include a node creation icon and a blockchain network deployment icon, and the exemplary method may further include: in response to receiving user input to create an icon for the node, displaying a graphical representation of the newly added node in the first user interface; displaying a new connection line connecting the new node and an existing node in response to receiving user input directed to the graphical representation of the new node and the graphical representation of the existing node; and in response to receiving user input aiming at a block chain network deployment icon, deploying the newly added node into the block chain network based on the newly added node and the newly added connecting line connecting the newly added node and the existing node.
According to some embodiments, the new added node may be any type of node. According to some examples, the new added node may be an organizational node and/or a peer node.
According to some embodiments, the existing node may be any type of node. According to some examples, the new node is a peer node, the existing node may be an organizational node, and in response to receiving user input for the peer node and the organizational node, a new connection connecting the peer node and the organizational node may be displayed to indicate that the new peer node is subordinate to the existing organizational node. According to some examples, the newly added node is an organizational node, the existing node may be a network node, and in response to receiving user input for the organizational node and the network node, a newly added connection connecting the organizational node and the network node may be displayed to indicate that the newly added organizational node is communicatively connected to the network.
According to some embodiments, the newly added node may be deployed into a running blockchain network according to a relationship between the newly added node and an existing node.
In this way, for the deployed and running blockchain network, the user can directly add a new node on the first user interface for managing the blockchain network, and then deploy the new node into the blockchain network without stopping the running of the whole blockchain network, which greatly improves the flexibility and operability of the management of the blockchain network.
According to some embodiments, the node may comprise a first node, and the method may further comprise: if the blockchain network is deployed, displaying a first state diagram, a second state diagram, a third state diagram and a fourth state diagram corresponding to the first node near the graphic representation of the first node, wherein the first state diagram is highlighted if the first node has joined a channel, the second state diagram is highlighted if the first node has deployed a smart contract, the third state diagram is highlighted if the channel joined by the first node has generated a blockchain, and the fourth state diagram is highlighted if the channel joined by the first node has generated a transaction.
According to some embodiments, the first node may be, for example, a peer node in a Hyperled-based blockchain network.
According to some embodiments, one or more status diagrams, e.g., one, two, three, four, or more, may be disposed near the first node in order to better manage an already deployed blockchain network. Each state diagram may represent a state associated with the first node. According to some embodiments, the first state representation may represent a state associated with a channel joined by the first node, the second state representation may represent a state associated with a smart contract deployed by the first node, the third state representation may represent a state associated with a blockchain joined by the first node, and the fourth state representation may represent a state associated with a transaction occurring in the blockchain joined by the first node. Of course, the present disclosure is not limited thereto, and the state diagram may also represent a state other than the above-described four states associated with the first node, for example, the state diagram may also represent a state associated with consensus occurring in a block chain that the first node joins.
According to some embodiments, the one or more status illustrations may be arranged above the graphical representation of the first node in a fan shape centered on the graphical representation of the first node, but the disclosure is not limited thereto, and the one or more status illustrations may also be arranged left, above right, to the right, below left, etc. of the graphical representation of the first node in a fan shape centered on the graphical representation of the first node. According to some embodiments, the one or more state diagrams may be arranged in the vicinity of the graphical representation of the first node in any manner suitable for presenting the state of the first node.
In this way, the state associated with the first node can be more intuitively exposed, facilitating user management of the blockchain network.
According to some embodiments, the method of managing a blockchain network may further comprise: displaying tile information corresponding to the first node in response to a user input for the third state diagram; and in response to user input directed to the third state diagram, displaying transaction information corresponding to the first node.
According to some embodiments, the method of managing a blockchain network may further comprise: displaying, in proximity to the highlighted third state diagram, a first count indicating a tile height of a generated tile chain; displaying, in proximity to the highlighted fourth state diagram, a second count indicating a number of transactions that have occurred.
According to some embodiments, the first count may be arranged on an extension of a line connecting a center of the graphical representation of the first node and the third state diagram, and the second count may be arranged on an extension of a line connecting a center of the graphical representation of the first node and the fourth state diagram. Of course, the present disclosure is not limited thereto, and the first count and the second count may be located at any suitable positions for displaying the counts in the vicinity of the third state diagram and the fourth state diagram, respectively, as long as they are not confused with each other.
In this way, the number of transactions occurring in the current blockchain and the height of the current block can be displayed more intuitively, and the management of the blockchain network by the user is facilitated.
According to an exemplary method of managing a blockchain network, the type of the blockchain network may be hyperhedger, the first node may be a peer node, the node may further include a second node that is a peer node or an authentication node or an SDK node or a network node, and if the blockchain network is deployed, an operational state diagram corresponding to the first node may be highlighted near the graphical representation of the first node or an operational state diagram corresponding to the second node may be highlighted near the graphical representation of the second node.
According to some embodiments, in addition to displaying the status representation of the first node, the operational status representations of the first node and the second node may be highlighted. According to some embodiments, the highlighted operational state representation in the vicinity of the first node and/or the second node indicates that the first node and/or the second node has been deployed into the blockchain network by deploying the blockchain network. According to some examples, if the type of the blockchain network is superhedger, the operation state diagram corresponding to the peer node may be highlighted only in the vicinity of the peer node as the first node, or the operation state diagram corresponding to the peer node or the authentication node or the SDK node or the network node may be highlighted in the vicinity of both the peer node or the authentication node or the SDK node or the network node as the second node. According to some examples, the operational status illustration may be a circle, triangle, rectangle, etc., represented in a dashed line or implementation around the graphical representation of the first node and/or the second node, although the disclosure is not limited thereto. According to some examples, highlighting the operational status representation may be dynamically highlighting the operational status representation. For example, if the operational state representation is shown in dashed lines, highlighting the operational state representation may be rotating to show the motion state representation in dashed lines; if the motion state representation is in an implementation, highlighting the motion state representation may be zooming to display the motion state representation in solid lines.
In this way, whether the blockchain network is deployed and which nodes in the blockchain network are deployed can be seen more intuitively, and the user can conveniently manage the blockchain network.
According to some embodiments, the displaying the connection line connecting the nodes may include: if the states of the two nodes connected by the connecting line are normal, displaying the connecting line by using a first color; if the state of any one of the two nodes connected by the connecting line is abnormal, displaying the connecting line by using a second color; wherein the first color is different from the second color. According to some embodiments, the anomaly may include a failure of the node and/or a disconnection of the node from the blockchain network. According to some embodiments, the first color may be green and the second color may be red.
According to some embodiments, the connecting line may be displayed in different colors to indicate whether the states of two nodes connected by the connecting line are abnormal. As described above, for example, an abnormality in one or both of the two nodes connected by the link may be indicated by a red link, and a normality in both of the two nodes connected by the link may be indicated by a green link. The present disclosure is not limited thereto and more than two colors may be used to display the wires. According to some examples, a red connecting line may indicate that both nodes connected by the connecting line are abnormal, an orange connecting line may indicate that one of the nodes connected by the connecting line is abnormal, and a green connecting line may indicate that both nodes connected by the connecting line are normal. According to some examples, a red connecting line may indicate that at least one of the two nodes connected by the connecting line is faulty, an orange connecting line may indicate that at least one of the two nodes connected by the connecting line is disconnected from the blockchain network, and a green connecting line may indicate that both of the two nodes connected by the connecting line are normal.
It should be noted that the different colors of the connecting lines in some cases are shown above by only some examples, and any color may also be employed to display the anomalies of various cases according to exemplary embodiments of the present disclosure.
In such a way, the condition of the node in the current block chain network can be displayed more intuitively, and the management of the block chain network by a user is facilitated.
An exemplary method for managing a blockchain network according to an exemplary embodiment of the present disclosure will be described in detail below, taking a blockchain network based on hyperridge as an example.
According to an exemplary method of managing a blockchain network, the type of the blockchain network may be hyperridge, and the displaying the graphical representation of the nodes of the blockchain network may include: displaying a graphical representation of an organizational node of the blockchain network; displaying a graphical representation of the order organization nodes of the blockchain network; displaying a graphical representation of a peer node of the blockchain network; displaying a graphical representation of a sequencing node of the blockchain network; displaying a graphical representation of an authentication node of the blockchain network; displaying a graphical representation of the SDK nodes of the blockchain network; and displaying a graphical representation of a network node of the blockchain network.
Various nodes included in the Hyperlegger-based blockchain network have been described in detail above in the method of creating a blockchain network, wherein the various nodes include, but are not limited to, network nodes, organizational structure nodes, order organizational nodes, peer nodes, authentication nodes, SDK nodes, and order nodes. Thus, in managing a Hyperledger-type blockchain network, according to some embodiments, a graphical representation of network nodes, organizational nodes, a graphical representation of sorted organizational nodes, a graphical representation of peer nodes, a graphical representation of authentication nodes, a graphical representation of SDK nodes, and a graphical representation of sorted nodes may be displayed.
In such a way, various nodes in the HyperLegger type blockchain network can be displayed more intuitively, and the management of the blockchain network by a user is facilitated.
According to an exemplary method of managing a blockchain network, the displaying a connection connecting the nodes may include: displaying a connection connecting the graphical representation of the peer node, the graphical representation of the authentication node, and the graphical representation of the SDK node with the graphical representation of the organizational node; displaying a connection connecting the graphical representation of the sort node with the graphical representation of the sort organization node; and displaying a connection connecting the graphical representation of the organizational nodes and the graphical representation of the order organizational nodes with the graphical representation of the network node.
The possible relationships between various nodes included in the HyperLegendre-based blockchain network have been described in detail above in the method of creating blockchain networks, wherein the various nodes include, but are not limited to, network nodes, organizational structure nodes, order organizational nodes, peer nodes, authentication nodes, SDK nodes, and order nodes. Therefore, according to some embodiments, when managing a Hyperledger-type blockchain network, the relationships among peer nodes, authentication nodes, SDK nodes, and organization nodes may be displayed, the relationships among ranking nodes and ranking organization nodes may be displayed, and the relationships among organization nodes, ranking organization nodes, and network nodes may be displayed.
In such a way, the relationship existing among various nodes in the Hyperledger type block chain network can be displayed more intuitively, and the management of the block chain network by a user is facilitated.
According to an exemplary method of managing a blockchain network, the user interface may include a second user interface, which may include a first region and a second region; and the exemplary method may further comprise: in the first area, displaying a thumbnail of a topological structure diagram of each of the blockchain networks; and displaying information of each of the blockchain networks in the second region.
According to some embodiments, one example of a second user interface may be the exemplary second user interface for managing blockchain networks described above in connection with fig. 3, which may display one or more blockchain networks. According to some embodiments, referring to FIG. 3, the first region may be a chain space region 310 and the second region may be a linked list region 320. According to some embodiments, the thumbnail of the topology structure diagram is the topology structure diagram after being scaled down. According to some embodiments, the thumbnails of the topology structure graph only show graphical representations of the various nodes and the connections between the nodes, although the disclosure is not so limited.
In this way, a plurality of blockchain networks to be managed can be displayed in one user interface, and the management of the blockchain networks by a user is facilitated. In addition, each blockchain network is displayed in two different areas in the second user interface in two different modes, so that each blockchain network can be visually displayed, information of each blockchain network can be checked, and the management of a plurality of blockchain networks by a user is further facilitated.
According to an exemplary method of managing a blockchain network, the displaying the thumbnail may include dynamically displaying the thumbnail. According to an exemplary method of managing a blockchain network, the dynamically displaying thumbnails may include: in response to receiving a user input highlighting a first one of the blockchain networks, highlighting a thumbnail of a topological structure diagram of the first blockchain network. According to an exemplary method of managing blockchain networks, the highlighting of the user input for a first one of the blockchain networks comprises: placing a user input position indication cursor on a thumbnail of a topological structure diagram of the first blockchain network in the first area; or selecting display of information of a blockchain network corresponding to the first blockchain network in the second area.
According to some embodiments, dynamically displaying the thumbnail may further include displaying the thumbnail as a slow rotation centered on the network node. According to some embodiments, placing the pointing cursor on the thumbnail may be by hovering over the thumbnail with an input device or a cursor pointing to a location with a touch-sensitive surface, but not actively clicking, double-clicking, long-pressing the thumbnail. Further, arranging the thumbnail at the substantial center of the first area may well highlight the first blockchain network selected among the blockchain networks. According to some embodiments, the display of information selecting the blockchain network in the second region corresponding to the first blockchain network may be a click on the display of information of the blockchain network.
In this way, the first blockchain network that the user desires to select can be highlighted, so that the user experience is improved, and the user can conveniently manage the desired blockchain network.
According to an exemplary method of managing a blockchain network, the displaying information of the blockchain network may include displaying the information of the blockchain network using a list, each column of the list corresponding to information of each of the blockchain networks in the information of the blockchain network, each row of the list corresponding to each of the blockchain networks in the blockchain network such that each row of the list corresponds to each thumbnail. Displaying the information of the blockchain network in a list manner is more intuitive and clear for the user. In addition, the information of the blockchain network in each row of the list corresponds to the thumbnail, so that the user can acquire the information of the blockchain network not only from the graphical representation mode, but also from the textual representation mode correspondingly.
The exemplary method may further comprise: in response to user input for any one of the thumbnails, highlighting the selected thumbnail and highlighting a row of the list corresponding to the selected thumbnail; and in response to a user input directed to any one row of the list, highlighting the selected row and highlighting the thumbnail corresponding to the selected row.
According to some embodiments, whether one blockchain network is selected by a thumbnail or one blockchain network is selected by a row of a list, both may be made to be highlighted. In this way, the relation between the topological structure diagram of the desired block chain network and the information of the block chain network can be further intuitively established, and the management of the block chain network by a user is facilitated.
According to an exemplary method of managing a blockchain network, the information of the blockchain network may include a name of the blockchain network and one or more of a version, a network status, an operation status, and an update time of the blockchain network. According to an exemplary method of managing a blockchain network, the network status may include in-design, deployed, and started; the operation state can comprise no operation, partial operation and operation; when the network status is in design, the operational status may be none.
According to an exemplary method of managing blockchain networks, said compiling the one or more blockchain networks may comprise: compiling information for the one or more blockchain networks; and compiling information of nodes, relationships between nodes, and channels and intelligent contracts of the one or more blockchain networks. According to some embodiments, a user may adjust the architecture of the blockchain network and/or the information of the blockchain network according to actual needs through a user interface for managing the blockchain network. In this way, the means of managing the blockchain network can be enriched.
An electronic device according to an aspect of the present disclosure is described below in conjunction with fig. 6.
Fig. 6 shows a block diagram of an exemplary electronic device that can be applied to an exemplary embodiment according to the present disclosure.
One aspect of the disclosure may include an electronic device comprising a processor and a memory storing a program comprising instructions that, when executed by the processor, cause the processor to perform any of the methods previously described.
Referring to fig. 6, according to some embodiments, an electronic device 600 comprises a processor 601 and a memory 602, wherein the processor 601 and the memory 602 are communicatively connected to each other, the memory 602 storing a program comprising instructions that, when executed by the processor, cause the processor to perform any of the methods described above. The electronic device 600 may be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant, a smart phone, a vehicle computer, or any combination thereof.
One aspect of the disclosure can include a computer readable storage medium storing a program comprising instructions that, when executed by a processor of an electronic device, cause the electronic device to perform any of the methods previously described.
According to some embodiments, the computer-readable storage medium may be non-transitory and may be any storage device that enables data storage, and may include, but is not limited to, a magnetic disk drive, an optical storage device, solid-state memory, a floppy disk, a flexible disk, a hard disk, a magnetic tape, or any other magnetic medium, an optical disk or any other optical medium, a ROM (read only memory), a RAM (random access memory), a cache memory, and/or any other memory chip or cartridge, and/or any other medium from which a computer can read data, instructions, and/or code.
Some exemplary aspects of the disclosure are described below.
Aspect 1 a method of managing a blockchain network, comprising:
displaying a user interface for managing a blockchain network, the user interface including one or more blockchain network view icons and one or more blockchain network edit icons;
in response to receiving user input to the one or more blockchain network view icons, displaying a blockchain network in the user interface; and
in response to receiving user input to edit icons for the one or more blockchain networks, the one or more blockchain networks are edited and the edited blockchain network is displayed in the user interface.
Aspect 2 the method of aspect 1, wherein the displaying the blockchain network and the displaying the edited blockchain network each comprise displaying a topological structure diagram of the blockchain network.
Aspect 3. the method of aspect 2, wherein the user interface comprises a first user interface, and
the displaying the topological structure diagram of the block chain network comprises the following steps:
displaying, in the first user interface, a graphical representation of a node of the blockchain network; and
and displaying a connecting line connecting the nodes in the first user interface.
Aspect 4. the method of aspect 3, the node comprising a first node, and
the method further comprises the following steps:
if the blockchain network is deployed, also displaying a first state diagram, a second state diagram, a third state diagram and a fourth state diagram corresponding to the first node in the vicinity of the graphical representation of the first node, wherein,
highlighting the first status representation if the first node has joined a channel,
highlighting the second status representation if the first node has deployed a smart contract,
highlighting the third state representation if the channel joined by the first node has generated a blockchain,
highlighting the fourth status representation if a transaction has occurred for a channel joined by the first node.
Aspect 5 the method of aspect 4, further comprising:
displaying tile information corresponding to the first node in response to a user input for the third state diagram; and
in response to user input directed to the fourth state diagram, displaying transaction information corresponding to the first node.
The method of aspect 4, further comprising:
displaying, in proximity to the highlighted third state diagram, a first count indicative of a tile height of the generated tile chain;
displaying, in proximity to the highlighted fourth state diagram, a second count indicating a number of transactions that have occurred.
Aspect 7 the method of aspect 3, wherein the displaying the connection line connecting the nodes comprises:
if the states of the two nodes connected by the connecting line are normal, displaying the connecting line by using a first color;
if the state of any one of the two nodes connected by the connecting line is abnormal, displaying the connecting line by using a second color;
wherein the first color is different from the second color.
Aspect 8 the method of aspect 7, wherein the anomaly comprises a failure of the node and/or a disconnection of the node from the blockchain network.
Aspect 9. the method of aspect 7, wherein the first color is green and the second color is red.
Aspect 10 the method of any of aspects 3 to 9, wherein the type of blockchain network is Hyperledger and the displaying the graphical representation of the nodes of the blockchain network comprises:
displaying a graphical representation of an organizational node of the blockchain network;
displaying a graphical representation of the order organization nodes of the blockchain network;
displaying a graphical representation of a peer node of the blockchain network;
displaying a graphical representation of a sequencing node of the blockchain network;
displaying a graphical representation of an authentication node of the blockchain network;
displaying a graphical representation of the SDK nodes of the blockchain network; and
displaying a graphical representation of network nodes of the blockchain network.
The method of aspect 10, wherein the displaying the connection line connecting the nodes comprises:
displaying a connection connecting the graphical representation of the peer node, the graphical representation of the authentication node, and the graphical representation of the SDK node with the graphical representation of the organizational node;
displaying a connection connecting the graphical representation of the sort nodes with the graphical representation of the sort organization nodes; and
displaying a connection connecting the graphical representation of the organizational node and the graphical representation of the order organizational node with the graphical representation of the network node.
Aspect 12. the method of aspect 4, wherein the type of blockchain network is Hyperledger, the first node is a peer node, the nodes further comprise a second node that is a peer node or an authentication node or an SDK node or a network node, and
highlighting an operational state representation corresponding to the first node in proximity to the graphical representation of the first node or highlighting an operational state representation corresponding to the second node in proximity to the graphical representation of the second node if the blockchain network is deployed.
The method of aspect 13. the method of aspect 2, wherein the user interface includes a second user interface including a first region and a second region; and the method further comprises:
displaying a thumbnail of a topology structure diagram of each of the blockchain networks in the first area; and
in the second region, information of each of the blockchain networks is displayed.
Aspect 14 the method of aspect 13 wherein the displaying the thumbnail includes dynamically displaying the thumbnail.
The method of aspect 14, wherein the dynamically displaying thumbnails includes:
in response to receiving a user input highlighting a first one of the blockchain networks, highlighting a thumbnail of a topological structure diagram of the first blockchain network.
The method of aspect 15, wherein the user input to highlight a first of the blockchain networks comprises:
placing a user input position indication cursor on a thumbnail of a topological structure diagram of the first block chain network in the first area; or
And selecting display of information of the blockchain network corresponding to the first blockchain network in the second area.
Aspect 17 the method of aspect 13, wherein the displaying information of the blockchain network includes displaying the information of the blockchain network using a list, each column of the list corresponding to information of each of the blockchain networks in the information of the blockchain network, each row of the list corresponding to each of the blockchain networks in the blockchain network, such that each row of the list corresponds to each thumbnail.
Aspect 18 the method of aspect 17, further comprising:
in response to user input for any one of the thumbnails, highlighting the selected thumbnail and highlighting a row of the list corresponding to the selected thumbnail; and
in response to user input directed to any one row of the list, the selected row is highlighted and the thumbnail corresponding to the selected row is highlighted.
Aspect 19 the method of any of aspects 13 to 18, wherein the information of the blockchain network comprises a name of the blockchain network and one or more of a version, a network status, an operational status and an update time of the blockchain network.
Aspect 20. the method of aspect 3, wherein the first user interface further comprises a node creation icon and a blockchain network deployment icon, and the method further comprises:
in response to receiving user input to create an icon for the node, displaying a graphical representation of the newly added node in the first user interface;
displaying a newly added connection line connecting the newly added node and an existing node in the blockchain network in response to receiving user input directed to the graphical representation of the newly added node and the graphical representation of the existing node in the blockchain network;
and in response to receiving user input aiming at a block chain network deployment icon, deploying the newly added node into the block chain network based on the newly added node and the newly added connecting line connecting the newly added node and the existing node.
The method of aspect 1, wherein said compiling the one or more blockchain networks comprises:
editing information of the one or more blockchain networks; and
compiling information of nodes, relationships between nodes, and channels and intelligent contracts of the one or more blockchain networks.
An electronic device, comprising:
a processor; and
a memory storing a program comprising instructions that, when executed by the processor, cause the processor to perform the method of any of aspects 1 to 21.
Aspect 23 a computer readable storage medium storing a program, the program comprising instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the method of any of aspects 1 to 21.
While embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely illustrative embodiments or examples and that the scope of the invention is not to be limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.

Claims (21)

1. A method of managing a blockchain network, comprising:
displaying a user interface for managing a blockchain network, the user interface including one or more blockchain network view icons and one or more blockchain network edit icons;
in response to receiving user input to the one or more blockchain network view icons, displaying a blockchain network in the user interface, wherein the displaying a blockchain network includes displaying a graphical representation of dependencies between a plurality of nodes in the blockchain network; and
in response to receiving user input to edit icons for the one or more blockchain networks, editing the blockchain network, and displaying the edited blockchain network in the user interface, wherein the displaying the edited blockchain network includes displaying a graphical representation of dependencies between a plurality of nodes in the edited blockchain network,
wherein the displaying the blockchain network and the displaying the edited blockchain network each comprise displaying a topological structure diagram of the blockchain network, and wherein the user interface comprises a second user interface comprising a first region and a second region; and the method further comprises:
displaying a thumbnail of a topology structure diagram of each of the blockchain networks in the first area; and
in the second region, information of each of the blockchain networks is displayed.
2. The method of claim 1, wherein the user interface comprises a first user interface, and
the displaying the topological structure diagram of the block chain network comprises the following steps:
displaying, in the first user interface, a graphical representation of a node of the blockchain network; and
and displaying a connecting line for connecting the nodes in the first user interface.
3. The method of claim 2, the node comprising a first node, and
the method further comprises the following steps:
if the blockchain network is deployed, also displaying a first state diagram, a second state diagram, a third state diagram and a fourth state diagram corresponding to the first node in the vicinity of the graphical representation of the first node, wherein,
highlighting the first status representation if the first node has joined a channel,
highlighting the second status representation if the first node has deployed a smart contract,
highlighting the third state diagram if the channel joined by the first node has generated a blockchain,
highlighting the fourth status representation if a transaction has occurred for a channel joined by the first node.
4. The method of claim 3, further comprising:
displaying tile information corresponding to the first node in response to a user input for the third state diagram; and
displaying transaction information corresponding to the first node in response to user input directed to the fourth state diagram.
5. The method of claim 3, further comprising:
displaying, in proximity to the highlighted third state diagram, a first count indicating a tile height of a generated tile chain;
displaying, in proximity to the highlighted fourth state diagram, a second count indicating a number of transactions that have occurred.
6. The method of claim 2, wherein the displaying the links connecting the nodes comprises:
if the states of the two nodes connected by the connecting line are normal, displaying the connecting line by using a first color;
if the state of any one of the two nodes connected by the connecting line is abnormal, displaying the connecting line by using a second color;
wherein the first color is different from the second color.
7. The method of claim 6, wherein the anomaly comprises a failure of the node and/or a disconnection of the node from the blockchain network.
8. The method of claim 6, wherein the first color is green and the second color is red.
9. The method of any of claims 2 to 8, wherein the type of blockchain network is Hyperledger and the displaying the graphical representation of the nodes of the blockchain network comprises:
displaying a graphical representation of an organizational node of the blockchain network;
displaying a graphical representation of the sorted organization nodes of the blockchain network;
displaying a graphical representation of a peer node of the blockchain network;
displaying a graphical representation of a sequencing node of the blockchain network;
displaying a graphical representation of an authentication node of the blockchain network;
displaying a graphical representation of the SDK nodes of the blockchain network; and
displaying a graphical representation of network nodes of the blockchain network.
10. The method of claim 9, wherein the displaying a connection connecting the nodes comprises:
displaying a connection connecting the graphical representation of the peer node, the graphical representation of the authentication node, and the graphical representation of the SDK node with the graphical representation of the organizational node;
displaying a connection connecting the graphical representation of the sort node with the graphical representation of the sort organization node; and
displaying a connection connecting the graphical representation of the organizational node with the graphical representation of the network node.
11. The method of claim 3, wherein the type of blockchain network is HyperLegger, the first node is a peer node, the nodes further comprise a second node that is a peer node or an authentication node or an SDK node or a network node, and
if the blockchain network is deployed, highlighting the operational status graphical representation corresponding to the first node and the second node in the vicinity of the graphical representation of the first node and the graphical representation of the second node.
12. The method of claim 1, wherein the displaying the thumbnail comprises dynamically displaying the thumbnail.
13. The method of claim 12, wherein the dynamically displaying thumbnails comprises:
in response to receiving a user input highlighting a first one of the blockchain networks, highlighting a thumbnail of a topological structure diagram of the first blockchain network.
14. The method of claim 13, wherein the highlighting the user input for a first of the blockchain networks comprises:
placing a user input position indication cursor on a thumbnail of a topological structure diagram of the first block chain network in the first area; or
And selecting display of information of the blockchain network corresponding to the first blockchain network in the second area.
15. The method of claim 1, wherein the displaying information of blockchain networks comprises displaying the information of blockchain networks using a list, each column of the list corresponding to information of each of the blockchain networks of information of blockchain networks, each row of the list corresponding to each of the blockchain networks, such that each row of the list corresponds to each thumbnail image.
16. The method of claim 15, further comprising:
in response to user input for any one of the thumbnails, highlighting the selected thumbnail and highlighting a row of the list corresponding to the selected thumbnail; and
in response to user input directed to any one row of the list, the selected row is highlighted and the thumbnail corresponding to the selected row is highlighted.
17. The method of claim 1, wherein the information of the blockchain network includes a name of the blockchain network and one or more of a version, a network status, an operational status, and an update time of the blockchain network.
18. The method of claim 2, wherein the first user interface further comprises a node creation icon and a blockchain network deployment icon, and the method further comprises:
in response to receiving user input to create an icon for the node, displaying a graphical representation of the newly added node in the first user interface;
in response to receiving user input directed to the graphical representation of the newly added node and the graphical representation of an existing node in the blockchain network, displaying a newly added connection line connecting the newly added node and the existing node;
and in response to receiving user input aiming at a block chain network deployment icon, deploying the newly added node into the block chain network based on the newly added node and the newly added connecting line connecting the newly added node and the existing node.
19. The method of claim 1, wherein the compiling the blockchain network comprises:
editing the information of the block chain network; and
and editing the nodes of the block chain network, the relationship among the nodes, the channel and the information of the intelligent contract.
20. An electronic device, comprising:
a processor; and
a memory storing a program comprising instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1 to 19.
21. A computer readable storage medium storing a program, the program comprising instructions that when executed by a processor of an electronic device cause the electronic device to perform the method of any of claims 1-19.
CN201910600770.2A 2019-07-04 2019-07-04 Method, electronic device, and medium for managing block chain network Active CN110308962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910600770.2A CN110308962B (en) 2019-07-04 2019-07-04 Method, electronic device, and medium for managing block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910600770.2A CN110308962B (en) 2019-07-04 2019-07-04 Method, electronic device, and medium for managing block chain network

Publications (2)

Publication Number Publication Date
CN110308962A CN110308962A (en) 2019-10-08
CN110308962B true CN110308962B (en) 2022-08-23

Family

ID=68078871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910600770.2A Active CN110308962B (en) 2019-07-04 2019-07-04 Method, electronic device, and medium for managing block chain network

Country Status (1)

Country Link
CN (1) CN110308962B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852596A (en) * 2019-11-06 2020-02-28 无锡功恒精密机械制造有限公司 Process design method and design module
CN111245624B (en) * 2020-01-14 2023-02-28 杭州趣链科技有限公司 Multi-type block chain deployment management system and method
CN110933189A (en) * 2020-02-10 2020-03-27 北京启迪区块链科技发展有限公司 Fabric-based block chain network deployment method, device, equipment and medium
CN111355780B (en) * 2020-02-18 2022-09-13 杭州云象网络技术有限公司 Internet of things monitoring management method and system based on block chain
CN111754658B (en) * 2020-07-03 2023-04-07 中国工商银行股份有限公司 Training management method and device and electronic equipment
CN112004055A (en) * 2020-07-31 2020-11-27 西安万像电子科技有限公司 Image management method, system and computer readable storage medium
US11113241B1 (en) 2020-08-22 2021-09-07 Tyson York Winarski Computer application for blockchaining files through a graphical user interface
CN113114488A (en) * 2021-03-29 2021-07-13 明链科技(深圳)有限公司 Platform support mode for managing existing block chain network

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834735A (en) * 2009-03-11 2010-09-15 北京启明星辰信息技术股份有限公司 Display method and display device of large-scale network node topological structure
CN108769258A (en) * 2018-06-29 2018-11-06 上海点融信息科技有限责任公司 Method and apparatus for block chain network to be hosted in block chain application platform
CN108933804A (en) * 2017-05-26 2018-12-04 中移物联网有限公司 A kind of peer-to-peer network construction method and device
CN109165304A (en) * 2018-07-03 2019-01-08 泰链(厦门)科技有限公司 Building method, medium and the system of block chain
CN109302311A (en) * 2018-09-04 2019-02-01 北京邮电大学 Realize block chain network, cognitive method and the electronic equipment of network situation awareness
CN109496406A (en) * 2018-07-27 2019-03-19 袁振南 Node administration method, device and storage medium based on block catenary system
CN109542421A (en) * 2018-11-12 2019-03-29 夸克链科技(深圳)有限公司 A kind of modular tile chain intelligence contract
CN109558130A (en) * 2018-10-25 2019-04-02 深圳市圆世科技有限责任公司 A kind of block chain framework of user interface
CN109710271A (en) * 2019-01-16 2019-05-03 杭州趣链科技有限公司 Key deployment, link setup and operation management system based on block chain
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain
CN109753530A (en) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 A kind of data processing method and its device, medium, terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5910803A (en) * 1996-08-14 1999-06-08 Novell, Inc. Network atlas mapping tool
US11030860B2 (en) * 2014-08-06 2021-06-08 Lottery Now, Inc. Systems for multiple legal game providers with digital ledger
US20190102757A1 (en) * 2017-09-29 2019-04-04 Paul Liu Method of constructing scalable blockchain by using KanBan to update off-chain transactions states
CN108984784B (en) * 2018-07-26 2020-04-14 百度在线网络技术(北京)有限公司 Application implementation method, device, equipment and storage medium based on block chain network
CN109194506B (en) * 2018-08-16 2021-10-15 北京京东尚科信息技术有限公司 Block chain network deployment method, platform and computer storage medium
CN109375915A (en) * 2018-10-26 2019-02-22 陕西医链区块链集团有限公司 A kind of block chain visual programming system and method
CN109710243B (en) * 2018-12-29 2022-05-17 百度在线网络技术(北京)有限公司 Block chain development method, device, server and medium based on visual platform
EP3559819B1 (en) * 2018-12-29 2022-03-09 Advanced New Technologies Co., Ltd. Visual blockchain browser

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834735A (en) * 2009-03-11 2010-09-15 北京启明星辰信息技术股份有限公司 Display method and display device of large-scale network node topological structure
CN108933804A (en) * 2017-05-26 2018-12-04 中移物联网有限公司 A kind of peer-to-peer network construction method and device
CN108769258A (en) * 2018-06-29 2018-11-06 上海点融信息科技有限责任公司 Method and apparatus for block chain network to be hosted in block chain application platform
CN109165304A (en) * 2018-07-03 2019-01-08 泰链(厦门)科技有限公司 Building method, medium and the system of block chain
CN109496406A (en) * 2018-07-27 2019-03-19 袁振南 Node administration method, device and storage medium based on block catenary system
CN109302311A (en) * 2018-09-04 2019-02-01 北京邮电大学 Realize block chain network, cognitive method and the electronic equipment of network situation awareness
CN109558130A (en) * 2018-10-25 2019-04-02 深圳市圆世科技有限责任公司 A kind of block chain framework of user interface
CN109542421A (en) * 2018-11-12 2019-03-29 夸克链科技(深圳)有限公司 A kind of modular tile chain intelligence contract
CN109753530A (en) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 A kind of data processing method and its device, medium, terminal
CN109710271A (en) * 2019-01-16 2019-05-03 杭州趣链科技有限公司 Key deployment, link setup and operation management system based on block chain
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Pavol Helebrandt ; Matej Bellus.Blockchain Adoption for Monitoring and Management of Enterprise Networks.《2018 IEEE 9th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON)》.2018, *

Also Published As

Publication number Publication date
CN110308962A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110308962B (en) Method, electronic device, and medium for managing block chain network
US8566732B2 (en) Synchronization of widgets and dashboards
US7454437B1 (en) Methods and apparatus for naming resources
US10001913B2 (en) Shared workspaces with selective content item synchronization
US9882961B2 (en) System and method for abstraction of objects for cross virtual universe deployment
US10685328B2 (en) Dynamic nodes for managing organization structure
CN110308903B (en) Method for creating blockchain network, electronic equipment and medium
JP6198964B2 (en) File level commenting
CN110442336A (en) A kind of web development methods and device, storage medium and electronic equipment
US20050131959A1 (en) Superset file browser
US20070094597A1 (en) Dynamic graphical user interface for a desktop environment
US20070097883A1 (en) Generation of a network topology hierarchy
KR101934998B1 (en) Method and system for providing user interface to a plurality of applications
US7376898B1 (en) Methods and apparatus for managing resources
CN109478152B (en) Cloud content state framework
CN104081395A (en) User interface for accessing documents from a computing device
US11368538B2 (en) Platform-agnostic drag-and-drop operations
US20150186432A1 (en) Migrating content items
US20160085388A1 (en) Desktop Environment Differentiation in Virtual Desktops
US20210111962A1 (en) Topographical search
US8285822B2 (en) Policy configuration and simulation
US10963430B2 (en) Shared workspaces with selective content item synchronization
US7774445B1 (en) System and method for managing zoning in a storage area network by comparing zone sets and identifying differences between zone sets
CN106648280B (en) Task management interaction method and device
Greene Getting Started with Microsoft System Center Operations Manager

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