CN109150981B - Block chain network networking method, device, equipment and computer readable storage medium - Google Patents

Block chain network networking method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109150981B
CN109150981B CN201810838006.4A CN201810838006A CN109150981B CN 109150981 B CN109150981 B CN 109150981B CN 201810838006 A CN201810838006 A CN 201810838006A CN 109150981 B CN109150981 B CN 109150981B
Authority
CN
China
Prior art keywords
networking
terminal
invited
intelligent contract
request
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
CN201810838006.4A
Other languages
Chinese (zh)
Other versions
CN109150981A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810838006.4A priority Critical patent/CN109150981B/en
Publication of CN109150981A publication Critical patent/CN109150981A/en
Application granted granted Critical
Publication of CN109150981B publication Critical patent/CN109150981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • H04L67/1055Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers involving connection limits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a block chain network networking method, a device, equipment and a computer readable storage medium.

Description

Block chain network networking method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a block chain network networking method, a block chain network networking device, a block chain network networking equipment and a computer readable storage medium.
Background
With the continuous development of the internet, a block chain technology is produced, and the block chain technology is an internet database technology and has the characteristics of decentralization, openness and transparency. In particular, the essence of blockchain technology is a decentralized and distributed approach to data storage, transmission and certification, replacing the current internet dependency on a central server with data blocks, such that all data changes or transaction items are recorded on a cloud system. Since there is no distributed peer-to-peer network of central control points and a distributed method of collective operation is used, it can be said that the blockchain is a "public big ledger" on the network. The system has a plurality of nodes, each node can observe the whole ledger and participate in maintenance together, the income is the right of obtaining accounting, a complete database can be copied, and a single node cannot modify the database, so that the safety and reliability of ledger data are ensured.
In the prior art, a blockchain network is usually based on P2P (Peer-to-Peer network), and in the networking process of the blockchain network, a P2P network needs to be established in advance among each node to complete networking, but nodes in a non-P2P network also need to be added into the blockchain network after being added into the P2P network or being connected with one node in the blockchain network, so that the networking process is complex, the networking efficiency of the blockchain network is reduced, and certain safety risk also exists.
Disclosure of Invention
The embodiment of the invention provides a block chain network networking method, a block chain network networking device, block chain network networking equipment and a computer readable storage medium, and aims to improve the block chain network networking efficiency.
In a first aspect, an embodiment of the present invention provides a method for networking a blockchain network, including:
the networking initiating terminal detects the selection operation of a user on at least one networking invited user identifier in the first interface;
the networking initiating terminal generates a networking request according to the selection operation of the user on at least one networking invited user identification in the first interface, the networking request comprises identification information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identification are in one-to-one correspondence;
and the networking initiating terminal sends the networking request to a real-time message server so that the real-time message server builds a blockchain network consisting of the networking initiating terminal and the at least one networking invited terminal according to the networking request.
In a second aspect, an embodiment of the present invention provides a device for block chain network networking, including:
the selection module is used for detecting the selection operation of the user on at least one networking invited user identifier in the first interface;
the processing module is used for generating a networking request according to the selection operation of the user on at least one networking invited user identifier in the first interface, the networking request comprises the identifier information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identifier are in one-to-one correspondence;
and the communication module is used for sending the networking request to a real-time message server so that the real-time message server constructs a blockchain network consisting of the networking initiating terminal and the at least one networking invited terminal according to the networking request.
In a third aspect, an embodiment of the present invention provides a block chain network networking, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
According to the block chain network networking method, device and equipment and the computer readable storage medium provided by the embodiment of the invention, the networking request is sent to the networking invited terminal by the networking initiating terminal through the real-time message server, and the account book establishment and contract establishment are realized by the networking invited terminal and the networking initiating terminal through the message server, so that the block chain network can be efficiently networked, and the block chain network networking method, device and equipment have higher safety.
Drawings
Fig. 1 is a network architecture diagram of a block chain network networking method according to an embodiment of the present invention;
fig. 2 is a signaling diagram of a block chain network networking method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a blockchain network obtained by the method for networking a blockchain network according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for networking a blockchain network according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a first interface of a networking initiating terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a second interface of a networking initiating terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a third interface of a networking initiating terminal according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for networking a blockchain network according to another embodiment of the present invention;
fig. 9 is a flowchart of a method for networking a blockchain network according to another embodiment of the present invention;
fig. 10 is a flowchart of a method for networking a blockchain network according to another embodiment of the present invention;
fig. 11 is a flowchart of a method for networking a blockchain network according to another embodiment of the present invention;
fig. 12 is a schematic diagram of a device for block-chain networking according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a blockchain network networking device according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The block chain network networking method provided by the invention can be applied to the communication system shown in figure 1. As shown in fig. 1, the communication system includes: a real-time message server 10, a terminal device 11, a terminal device 12, a terminal device 13, a terminal device 14. The terminal devices 11, 12, 13, and 14 may be communication devices, such as terminal devices, corresponding to different participants of a building block chain network. Optionally, an Application (APP) is installed on the terminal device. The user participating in networking can control the terminal equipment 11, the terminal equipment 12, the terminal equipment 13 and the terminal equipment 14 to form a blockchain network through the user interface provided by the application program. Specifically, the terminal device 11, the terminal device 12, the terminal device 13, and the terminal device 14 construct a blockchain network through the real-time message server 10, and a detailed description will be given below of a process of constructing a blockchain network in conjunction with a specific embodiment.
Fig. 2 is a signaling diagram of a block chain network networking method according to an embodiment of the present invention. The embodiment provides a block chain network networking method, as shown in fig. 2, the method specifically includes the following steps:
s101, a networking initiating terminal sends a networking request to a real-time message server, wherein the networking request comprises identification information of at least one networking invited terminal.
In this embodiment, the networking initiating terminal may specifically be the terminal device 11 shown in fig. 1, and the networking invited terminal may specifically be the terminal device 12, the terminal device 13, and the terminal device 14 shown in fig. 1. The real-time message server may specifically be the real-time message server 10 as shown in fig. 1.
In this embodiment, the networking initiating terminal is operated by a networking initiating user, the networking initiating user may generate the networking invited users corresponding to the multiple networking invited terminals through negotiation or election, and the networking initiating user installs and starts an Orderer application on the networking initiating terminal to form a consensus node, so that the networking initiating terminal can implement the initiating action of networking and the following steps executed by the networking initiating terminal.
In addition, in this embodiment, the networking initiating terminal and the networking invited terminal need to establish a communication connection with the real-time message server in advance, and specifically, for example, the networking initiating user and the networking invited user may establish a communication connection with the real-time message server after completing operations such as registration, real-name authentication (which may include authentication of an address, an organization, and a domain name), and the like. The real-time message server may adopt Centrifugo, wherein Centrifugo is a Websocket or sockss-based real-time communication platform implemented by Golang (Go language), and of course, other message servers may be adopted in the present invention, which is not described herein again. In addition, the networking initiating terminal and the networking invited terminal in this embodiment may be any device that can join the block chain network, such as a mobile phone, a computer, an intelligent home device, and the like.
In this embodiment, the sending of the networking request from the networking initiating terminal to the real-time message server, as shown in fig. 4, specifically includes:
s1011, the networking initiating terminal detects the selection operation of the user on at least one networking invited user identifier in the first interface.
In this embodiment, the networking initiating user selects at least one networking invited user identifier in a first interface of the networking initiating terminal, where the first interface at least includes one alternative networking invited user identifier, and the networking invited user identifier may specifically include detailed information such as a name, an organization, and an address of the networking invited user. In addition, the first interface can also provide a networking invited user identification query function so as to search and display the corresponding networking invited user identification after the user inputs any one or more of the networking invited user detailed information such as name, organization, address and the like. As shown in fig. 5, the user may select user a and user B as networking invited users by clicking on the user identification 611 on the first interface 610.
S1012, the networking initiating terminal generates a networking request according to the selection operation of the user on at least one networking invited user identifier in the first interface, the networking request comprises the identifier information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identifier are in one-to-one correspondence.
In this embodiment, after the networking initiating user performs the selection operation of the networking invited user identifier on the first interface of the networking initiating terminal, the networking initiating terminal generates a networking request according to the selection operation, and carries the identifier information of the networking invited terminal corresponding to the selected networking invited user identifier, such as the IP address of the networking invited terminal, in the networking request, so that the subsequent networking operation of the networking invited terminal can be realized through the real-time message server according to the identifier information of the networking invited terminal.
More specifically, the networking initiating terminal may generate a second interface according to a selection operation of the user on at least one networking invited user identifier in the first interface, where the second interface includes the at least one networking invited user identifier; then the networking initiating terminal generates a networking request according to the network name input by the user in the second interface and the consensus mode selected by the user in the second interface; the networking request further comprises: the network name and the consensus pattern.
As shown in fig. 6, the user may set a network name and a consensus pattern of the formed blockchain network in the second interface 620 of the networking initiating terminal, where the consensus pattern may be solo or kafka, and accordingly, the network name and the consensus pattern may be carried by the networking request generated by the networking initiating terminal.
And S1013, the networking initiating terminal sends the networking request to a real-time message server.
In this embodiment, the networking initiating terminal sends the networking request to the real-time message server, so that the real-time message server constructs a blockchain network composed of the networking initiating terminal and the at least one networking invited terminal according to the networking request, and a process of constructing the blockchain network will be described in detail later.
Further, after the networking request is sent to the real-time message server by the networking initiating terminal, a third interface may be displayed at the networking initiating terminal, where the third interface includes an icon for adding a new blockchain network. As shown in fig. 7, when the user needs to add a new blockchain network, the user can click the new network icon in the third interface 630 to re-execute the method of the present invention to establish a new blockchain network. In addition, the established blockchain network can be displayed on the third interface.
S102, the real-time message server receives a networking request sent by a networking initiating terminal.
In this embodiment, the real-time message server receives a networking request sent by the networking initiating terminal, and because the networking request includes identification information of the networking invited terminals, the real-time message server may send the networking request to each networking invited terminal to notify each networking invited terminal that subsequent networking operations may be performed, or may not send the networking request to each networking invited terminal, but open the networking permission of each networking invited terminal, that is, when any networking invited terminal actively sends, for example, an account establishment request or an intelligent contract establishment request to the real-time message server, it is determined that the networking invited terminal has the networking permission, and then subsequent account establishment or intelligent contract establishment is allowed.
Further, after the real-time message server receives the networking request sent by the networking initiating terminal, as shown in fig. 8, the method may further include:
s1021, the networking initiating terminal sends an endorsement node application program to the real-time message server;
and S1022, the real-time message server sends the endorsement node application program to the at least one networking invited terminal according to the identification information of the at least one networking invited terminal, so that the at least one networking invited terminal becomes an endorsement node (endorsers) by operating the endorsement node application program.
In this embodiment, the endorsement node application is a peer node package, and is sent to the real-time message server by the networking initiating terminal, and is sent to each networking invited terminal by the real-time message server according to the identification information of the networking invited terminal, or the networking invited terminal requests the real-time message server to download the endorsement node application, and performs installation and start-up, and when the networking invited terminal runs the endorsement node application, the endorsement node is formed.
Furthermore, each networking invited terminal can also apply for a certificate to the networking initiating terminal through the message server, wherein the certificate is a signature for information interaction between the nodes, and the type, name, password and other information of the applied certificate can be selected or filled in when the certificate is applied.
S103, at least one networking invited terminal sends an account book establishing request to the real-time message server.
In this embodiment, the networking invited terminal sends an account book establishment request to the real-time message server, only one networking invited terminal may send the account book establishment request to the real-time message server, and multiple networking invited terminals may also send the account book establishment request to the real-time message server.
S104, the real-time message server receives an account book establishment request sent by at least one networking invited terminal, and the real-time message server sends the account book establishment request to the networking initiating terminal so that the networking initiating terminal establishes at least one account book according to the account book establishment request.
In this embodiment, one networking invited terminal may send the ledger establishment request to the real-time message server, or multiple networking invited terminals may send the ledger establishment request to the real-time message server. Therefore, when the real-time message server receives the account book establishment request sent by the invited terminal(s) in the network, the account book establishment request can be sent to the network initiating terminal; when the real-time message server receives account book establishment requests sent by a plurality of networking invited terminals respectively, the account book establishment requests can be sent to the networking initiating terminal.
And S105, the networking initiating terminal receives the account book establishing request sent by the real-time message server, and generates at least one account book according to the account book establishing request.
In this embodiment, when a networking initiating terminal receives an account book establishing request, an account book corresponding to a networking invited terminal that sends the account book establishing request is directly generated according to the account book establishing request; when the networking initiating terminal receives a plurality of account book establishing requests, an account book corresponding to each networking invited terminal is generated according to each account book establishing request. The process of generating the ledger book may adopt a method in the prior art, and is not described herein again.
S106, the networking initiating terminal sends the at least one account book to the real-time message server.
In this embodiment, after generating the account book requested to be established, the networking initiating terminal sends the generated account book to the real-time message server, so that the real-time message server sends the account book to the corresponding networking invited terminal.
And S107, after receiving the at least one account book from the networking initiating terminal, the real-time message server sends the at least one account book to the at least one networking invited terminal.
In one embodiment, if there is only one account book establishment request sent by one networking invited terminal, the networking initiating terminal generates only one account book, and the real-time message server receives the account book from the networking initiating terminal and then sends the account book to the networking invited terminal. Further, the steps shown in fig. 9 are also performed:
s1071, the real-time message server receives an account book adding request sent by the networking invited terminal, wherein the account book adding request comprises identification information of other networking invited terminals which are determined by the networking invited terminal and are added into the account book;
s1072, the real-time message server sends the account book corresponding to the networking invited terminal to the other networking invited terminals according to the account book adding request.
Since the block chain technology adopts a distributed account book, each networking invited terminal needs to have an account book, and therefore, under the condition that only one networking initiating terminal (for example, the terminal a) sends an account book establishing request and acquires the account book, the terminal a needs to send the account book to networking invited terminals (for example, the terminal B and the terminal C) with which the other terminal a wishes to be networked, so that the terminal a sends an account book adding request to the message server, the account book adding request includes identification information of other networking invited terminals (the terminal B and the terminal C) which are determined by the networking invited terminals and add the account book, and after receiving the account book adding request, the message server sends the account book adding request to the terminal a to the terminal B and the terminal C.
In another embodiment, if there are account book establishment requests sent by multiple networking invited terminals, the networking initiating terminal only generates a corresponding number of account books, and the real-time message server receives each account book from the networking initiating terminal and then sends each account book to the corresponding networking invited terminal.
S108, at least one networking invited terminal sends an intelligent contract establishing request to the real-time message server, wherein the intelligent contract establishing request comprises: and identification information of the account book where the intelligent contract is located.
In this embodiment, after the account book is downloaded and installed at each network invited terminal, an intelligent contract may be established. The intelligent contract establishing method comprises the steps that an intelligent contract establishing request can be sent to a real-time message server by any networking invited terminal, and intelligent contract establishing requests can also be sent to the real-time message server by a plurality of networking invited terminals, wherein the intelligent contract establishing requests need to include identification information of an account book, so that the intelligent contract is finally installed in the corresponding account book. The intelligent contract in this embodiment may be a chain code (chain code), and may also be an intelligent contract in other forms, which is not described herein again.
And S109, the real-time message server sends the intelligent contract establishment request to the networking initiating terminal.
In this embodiment, after receiving an intelligent contract sent by at least one networking invited terminal, the real-time message server sends an intelligent contract establishment request to a networking initiating terminal.
And S110, the networking initiating terminal writes the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located.
In this embodiment, after receiving the intelligent contract establishment request, the networking initiating terminal writes the identification information of the ledger where the intelligent contract is located and the identification information of the networking invited terminal that executes the intelligent contract into the ledger where the intelligent contract is located, so as to implement establishment of the intelligent contract, and the establishment of the intelligent contract also marks completion of block chain network networking.
The networking completed blockchain network is shown in fig. 3, at this time, the terminal device 11, the terminal device 12, the terminal device 13, and the terminal device 14 form a blockchain network, that is, the terminal device 11, the terminal device 12, the terminal device 13, and the terminal device 14 are nodes in the networking completed blockchain network, the real-time message server 10 may or may not be a node in the blockchain network at this time, alternatively, the embodiment takes the case that the real-time message server 10 is not a node in the blockchain network, in this case, after terminal device 11, terminal device 12, terminal device 13, and terminal device 14 form a block chain network, at least one of the terminal device 11, the terminal device 12, the terminal device 13 and the terminal device 14 may also be in communication connection with the real-time message server 10.
Furthermore, the intelligent contract sent by the networking invited terminal may further include a name of the intelligent contract, and the networking initiating terminal may further specifically write the name of the intelligent contract, identification information of an account book where the intelligent contract is located, parameters required for executing the intelligent contract, and identification information of the networking invited terminal where the intelligent contract is executed into the account book where the intelligent contract is located.
In the method for networking the blockchain network provided in this embodiment, the networking initiating terminal sends the networking request to the networking invited terminal through the real-time message server, and the networking invited terminal and the networking initiating terminal realize account book establishment and contract establishment through the message server, so that the blockchain network can be efficiently networked, and higher security is achieved.
On the basis of the above embodiment, after completing networking of a blockchain network, if a new node wants to join the blockchain network, the method can be implemented by the steps shown in fig. 10:
s201, the target terminal sends a network access request to the real-time message server, wherein the network access request is used for requesting to join the block chain network.
In this embodiment, the target terminal also needs to establish a communication connection with the instant messaging server in advance, and may establish a communication connection with the instant messaging server after completing operations such as registration, real-name authentication (which may include authentication of an address, an organization, and a domain name). After the connection with the real-time message server is completed, a network access request is sent to the real-time message server, where the network access request may specifically include an identifier of the blockchain network and information of the target end user, such as a name of the blockchain network.
S202, the real-time message server sends the network access request to the networking initiating terminal.
In this embodiment, after receiving a network access request sent by a target terminal, a real-time message server sends the network access request to a networking initiating terminal.
S203, the networking initiating terminal determines whether to approve the target terminal to join the blockchain network formed by the networking initiating terminal and the at least one networking invited terminal according to the networking request.
In this embodiment, the network deployment initiating terminal may determine whether to approve the target terminal to join the blockchain network according to the network access request.
In an optional embodiment, the information of the target terminal user may be obtained from the network access request, and compared with the predetermined judgment standard, if the predetermined judgment standard is met, the target terminal is allowed to join the blockchain network, and then the target terminal may perform the steps of obtaining and installing the account book and the intelligent contract, and the like, which are not described herein again.
In another optional embodiment, the networking initiating terminal displays a fourth interface according to the network access request sent by the target terminal, where the fourth interface includes a first selection icon allowing the target terminal to access the network and a second selection icon not allowing the target terminal to access the network. The user of the networking initiating terminal can directly allow the target terminal to access the network by clicking the first selection icon or reject the target terminal to access the network by clicking the second selection icon.
In another optional embodiment, the network deployment initiating terminal may send a voting request to each terminal in the block chain network through the real-time message server according to the network access request, and each terminal in the block chain network votes whether to approve network access of the target terminal, and feeds back the voting result to the network deployment initiating terminal through the real-time message server, and the network deployment initiating terminal collects the voting result and determines whether the voting result exceeds a preset threshold (for example, 50%), and if the voting result exceeds the preset threshold, the target terminal is allowed to access the network.
Fig. 11 is a flowchart of a block chain network networking method according to an embodiment of the present invention. The embodiment provides a block chain network networking method, an execution main body of which is a networking initiating terminal, as shown in fig. 11, the method specifically includes the following steps:
s301, a networking initiating terminal detects the selection operation of a user on at least one networking invited user identifier in a first interface;
s302, the networking initiating terminal generates a networking request according to the selection operation of the user on at least one networking invited user identifier in a first interface, wherein the networking request comprises the identifier information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identifier are in one-to-one correspondence;
and S303, the networking initiating terminal sends the networking request to a real-time message server so that the real-time message server constructs a block chain network consisting of the networking initiating terminal and the at least one networking invited terminal according to the networking request.
Further, the generating, by the networking initiating terminal, a networking request according to a selection operation of the user on at least one networking invited user identifier in the first interface includes:
the networking initiating terminal generates a second interface according to the selection operation of the user on at least one networking invited user identifier in the first interface, wherein the second interface comprises the at least one networking invited user identifier;
the networking initiating terminal generates a networking request according to the network name input by the user in the second interface and the consensus mode selected by the user in the second interface;
the networking request further comprises: the network name and the consensus pattern.
Further, after the networking initiating terminal sends the networking request to the real-time message server, the method further includes:
and the networking initiating terminal displays a third interface, wherein the third interface comprises an icon for adding a new block chain network.
Optionally, after the networking initiating terminal sends the networking request to the real-time message server, the method further includes:
the networking initiating terminal receives an account book establishing request sent by the real-time message server, wherein the account book establishing request is generated by at least one networking invited terminal;
the networking initiating terminal generates at least one account book according to the account book establishing request;
and the networking initiating terminal sends the at least one account book to the real-time message server so that the real-time message server sends the at least one account book to the at least one networking invited terminal.
Optionally, after the network group initiating terminal sends the at least one ledger to the real-time message server, the method further includes:
the networking initiating terminal receives an intelligent contract establishing request sent by the real-time message server, wherein the intelligent contract establishing request comprises: identification information of an account book where the intelligent contract is located;
and the networking initiating terminal writes the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located.
Further, the intelligent contract establishment request further includes: the name of the intelligent contract;
the method for writing the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located by the networking initiating terminal comprises the following steps:
and the networking initiating terminal writes the name of the intelligent contract, the identification information of the account book where the intelligent contract is located, the parameters required for executing the intelligent contract and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located.
Further, the method further comprises:
the networking initiating terminal receives a network access request sent by a target terminal through the real-time message server, wherein the network access request is used for requesting to join the block chain network;
and the networking initiating terminal displays a fourth interface according to the network access request sent by the target terminal, wherein the fourth interface comprises a first selection icon allowing the target terminal to access the network and a second selection icon not allowing the target terminal to access the network.
The block chain network networking method provided in this embodiment is a process of initiating a terminal side for networking, and the implementation principle and technical effect are detailed in the above embodiments and will not be described herein again.
In the method for networking the blockchain network provided in this embodiment, the networking initiating terminal sends the networking request to the networking invited terminal through the real-time message server, and the networking invited terminal and the networking initiating terminal realize account book establishment and contract establishment through the message server, so that the blockchain network can be efficiently networked, and higher security is achieved.
Fig. 12 is a schematic structural diagram of a block chain network networking device according to an embodiment of the present invention. The block chain network networking device may specifically be the networking initiating terminal in the above embodiment. The block chain network networking device provided in the embodiment of the present invention may execute the processing procedure provided in the block chain network networking method embodiment shown in fig. 11, and as shown in fig. 12, the block chain network networking device 50 includes: a selection module 51, a processing module 52 and a communication module 53.
The selection module is used for detecting the selection operation of the user on at least one networking invited user identifier in the first interface;
the processing module is used for generating a networking request according to the selection operation of the user on at least one networking invited user identifier in the first interface, the networking request comprises the identifier information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identifier are in one-to-one correspondence;
and the communication module is used for sending the networking request to a real-time message server so that the real-time message server constructs a blockchain network consisting of the networking initiating terminal and the at least one networking invited terminal according to the networking request.
Further, the processing module is configured to:
generating a second interface according to the selection operation of the user on at least one networking invited user identifier in the first interface, wherein the second interface comprises the at least one networking invited user identifier;
generating a networking request according to the network name input by the user in the second interface and the consensus mode selected by the user in the second interface;
the networking request further comprises: the network name and the consensus pattern.
Further, the processing module is further configured to:
displaying a third interface including an icon for adding a new blockchain network.
Further, the communication module is further configured to receive an account book establishment request sent by the real-time message server, where the account book establishment request is generated by at least one networking invited terminal;
the processing module is further used for generating at least one account book according to the account book establishing request;
the communication module is further configured to send the at least one account book to the real-time message server, so that the real-time message server sends the at least one account book to the at least one networking invited terminal.
Further, the communication module is further configured to receive an intelligent contract establishment request sent by the real-time message server, where the intelligent contract establishment request includes: identification information of an account book where the intelligent contract is located;
the processing module is further configured to write the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal that executes the intelligent contract into the account book where the intelligent contract is located.
Further, the intelligent contract establishment request further includes: the name of the intelligent contract;
the processing module is further configured to write the name of the intelligent contract, the identification information of the ledger where the intelligent contract is located, the parameters required for executing the intelligent contract, and the identification information of the networking invited terminal which executes the intelligent contract into the ledger where the intelligent contract is located.
Further, the communication module is further configured to receive, by the real-time message server, a network access request sent by a target terminal, where the network access request is used to request to join the blockchain network;
the processing module is further configured to display a fourth interface according to the network access request sent by the target terminal, where the fourth interface includes a first selection icon allowing the target terminal to access the network and a second selection icon not allowing the target terminal to access the network.
The block chain network networking device provided in the embodiment of the present invention may be specifically configured to execute the method embodiment provided in fig. 11, and the implementation principle and the technical effect are similar, which are not described herein again.
The block chain network networking device provided in this embodiment sends a networking request to a networking invited terminal through a real-time message server by a networking initiating terminal, and the networking invited terminal and the networking initiating terminal realize account book establishment and contract establishment through the message server, so that the block chain network can be efficiently networked, and higher security is achieved.
Fig. 13 is a schematic structural diagram of a blockchain network networking device according to an embodiment of the present invention. The blockchain network networking device provided by the embodiment of the present invention may execute the processing procedure provided by the above-mentioned blockchain network networking method embodiment at the network deployment initiating terminal side, as shown in fig. 8, the blockchain network networking device includes a memory 61, a processor 62, a computer program, and a communication unit; wherein a computer program is stored in the memory 61 and configured to be executed by the processor 62 for the block chain network networking method at the networking initiating terminal side as described in the above embodiments.
The block chain network networking device in the embodiment shown in fig. 13 may be used to implement the technical solution of the above method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the block chain network networking method on the networking initiating terminal side described in the above embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A method for networking a blockchain network, comprising:
the networking initiating terminal detects the selection operation of a user on at least one networking invited user identifier in the first interface;
the networking initiating terminal generates a networking request according to the selection operation of the user on at least one networking invited user identification in the first interface, the networking request comprises identification information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identification are in one-to-one correspondence;
the networking initiating terminal sends the networking request to a real-time message server so that the real-time message server builds a blockchain network consisting of the networking initiating terminal and the at least one networking invited terminal according to the networking request;
the networking initiating terminal receives a network access request sent by a target terminal through the real-time message server, wherein the network access request is used for requesting to join the block chain network;
and the networking initiating terminal displays a second interface according to the network access request sent by the target terminal, wherein the second interface comprises a first selection icon allowing the target terminal to access the network and a second selection icon not allowing the target terminal to access the network.
2. The method according to claim 1, wherein the generating a networking request by the networking initiating terminal according to the user's selection operation of at least one networking invited user identifier in the first interface comprises:
the networking initiating terminal generates a third interface according to the selection operation of the user on at least one networking invited user identifier in the first interface, wherein the third interface comprises the at least one networking invited user identifier;
the networking initiating terminal generates a networking request according to the network name input by the user in the third interface and the consensus mode selected by the user in the third interface;
the networking request further comprises: the network name and the consensus pattern.
3. The method according to claim 1 or 2, wherein after the networking initiation terminal sends the networking request to a real-time message server, the method further comprises:
and the networking initiating terminal displays a fourth interface, wherein the fourth interface comprises an icon for adding a new block chain network.
4. The method according to claim 1 or 2, wherein after the networking initiation terminal sends the networking request to a real-time message server, the method further comprises:
the networking initiating terminal receives an account book establishing request sent by the real-time message server, wherein the account book establishing request is generated by at least one networking invited terminal;
the networking initiating terminal generates at least one account book according to the account book establishing request;
and the networking initiating terminal sends the at least one account book to the real-time message server so that the real-time message server sends the at least one account book to the at least one networking invited terminal.
5. The method of claim 4, wherein after the network initiating terminal sends the at least one ledger to the real-time message server, the method further comprises:
the networking initiating terminal receives an intelligent contract establishing request sent by the real-time message server, wherein the intelligent contract establishing request comprises: identification information of an account book where the intelligent contract is located;
and the networking initiating terminal writes the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located.
6. The method of claim 5, wherein the intelligent contract establishment request further comprises: the name of the intelligent contract;
the method for writing the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located by the networking initiating terminal comprises the following steps:
and the networking initiating terminal writes the name of the intelligent contract, the identification information of the account book where the intelligent contract is located, the parameters required for executing the intelligent contract and the identification information of the networking invited terminal for executing the intelligent contract into the account book where the intelligent contract is located.
7. A blockchain network networking apparatus, comprising:
the selection module is used for detecting the selection operation of the user on at least one networking invited user identifier in the first interface;
the processing module is used for generating a networking request according to the selection operation of the user on at least one networking invited user identifier in the first interface, the networking request comprises the identifier information of at least one networking invited terminal, and the at least one networking invited terminal and the at least one networking invited user identifier are in one-to-one correspondence;
the communication module is used for sending the networking request to a real-time message server so that the real-time message server constructs a blockchain network consisting of a networking initiating terminal and at least one networking invited terminal according to the networking request;
the communication module is further used for receiving a network access request sent by a target terminal through the real-time message server, wherein the network access request is used for requesting to join the block chain network;
the processing module is further configured to display a second interface according to the network access request sent by the target terminal, where the second interface includes a first selection icon allowing the target terminal to access the network and a second selection icon not allowing the target terminal to access the network.
8. The apparatus of claim 7, wherein the processing module is configured to:
generating a third interface according to the selection operation of the user on at least one networking invited user identifier in the first interface, wherein the third interface comprises the at least one networking invited user identifier;
generating a networking request according to the network name input by the user in the third interface and the consensus mode selected by the user in the third interface;
the networking request further comprises: the network name and the consensus pattern.
9. The apparatus of claim 7 or 8, wherein the processing module is further configured to:
displaying a fourth interface including an icon for adding a new blockchain network.
10. The apparatus according to claim 7 or 8,
the communication module is further configured to receive an account book establishment request sent by the real-time message server, where the account book establishment request is generated by at least one networking invited terminal;
the processing module is further used for generating at least one account book according to the account book establishing request;
the communication module is further configured to send the at least one account book to the real-time message server, so that the real-time message server sends the at least one account book to the at least one networking invited terminal.
11. The apparatus of claim 10,
the communication module is further configured to receive an intelligent contract establishment request sent by the real-time message server, where the intelligent contract establishment request includes: identification information of an account book where the intelligent contract is located;
the processing module is further configured to write the identification information of the account book where the intelligent contract is located and the identification information of the networking invited terminal that executes the intelligent contract into the account book where the intelligent contract is located.
12. The apparatus of claim 11, wherein the intelligent contract establishment request further comprises: the name of the intelligent contract;
the processing module is further configured to write the name of the intelligent contract, the identification information of the ledger where the intelligent contract is located, the parameters required for executing the intelligent contract, and the identification information of the networking invited terminal which executes the intelligent contract into the ledger where the intelligent contract is located.
13. A blockchain network networking device, comprising:
a memory;
a processor;
wherein the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the method according to any one of claims 1-6.
14. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-6.
CN201810838006.4A 2018-07-26 2018-07-26 Block chain network networking method, device, equipment and computer readable storage medium Active CN109150981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810838006.4A CN109150981B (en) 2018-07-26 2018-07-26 Block chain network networking method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810838006.4A CN109150981B (en) 2018-07-26 2018-07-26 Block chain network networking method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109150981A CN109150981A (en) 2019-01-04
CN109150981B true CN109150981B (en) 2022-02-25

Family

ID=64798901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810838006.4A Active CN109150981B (en) 2018-07-26 2018-07-26 Block chain network networking method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109150981B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314375B (en) * 2022-07-22 2024-02-06 京东科技信息技术有限公司 Blockchain network cross-domain networking method, equipment, storage medium and program product
CN115834581B (en) * 2022-11-17 2024-04-16 中国联合网络通信集团有限公司 Block chain-based networking method and device, block chain node and storage medium
CN115643557B (en) * 2022-12-26 2023-04-18 深圳市鑫宇鹏电子科技有限公司 Toy equipment team communication method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951557A (en) * 2010-09-20 2011-01-19 中兴通讯股份有限公司 Terminal cooperation-based temporary group management method, system and terminal
CN105657779A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Networking method and system for mobile terminal, and mobile terminal
CN105812229A (en) * 2014-12-30 2016-07-27 中国移动通信集团公司 Terminal communication method, system and related device
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
WO2018076760A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction processing method, system, electronic device, and storage medium
CN108200210A (en) * 2018-02-12 2018-06-22 众安信息技术服务有限公司 The method, apparatus and computer-readable medium of chain management based on block chain
CN108256859A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Financial product transaction common recognition method, node and system based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833081B (en) * 2018-06-22 2021-01-05 中国人民解放军国防科技大学 Block chain-based equipment networking authentication method
CN108965469B (en) * 2018-08-16 2021-07-30 北京京东尚科信息技术有限公司 Dynamic management method, device, equipment and storage medium for members of block chain network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951557A (en) * 2010-09-20 2011-01-19 中兴通讯股份有限公司 Terminal cooperation-based temporary group management method, system and terminal
CN105812229A (en) * 2014-12-30 2016-07-27 中国移动通信集团公司 Terminal communication method, system and related device
CN105657779A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Networking method and system for mobile terminal, and mobile terminal
CN105912618A (en) * 2016-04-07 2016-08-31 浙江万马新能源有限公司 Block chain based charging pile charging transaction communication method and device
WO2018076760A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction processing method, system, electronic device, and storage medium
CN108256859A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Financial product transaction common recognition method, node and system based on block chain
CN108200210A (en) * 2018-02-12 2018-06-22 众安信息技术服务有限公司 The method, apparatus and computer-readable medium of chain management based on block chain

Also Published As

Publication number Publication date
CN109150981A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN110601849B (en) Trusted timestamp adding method and device and storage medium
CN108965469B (en) Dynamic management method, device, equipment and storage medium for members of block chain network
CN108234475B (en) Account management method, electronic equipment and computer storage medium
CN109981279B (en) Block chain system, communication method, device, equipment and medium
CN109150981B (en) Block chain network networking method, device, equipment and computer readable storage medium
CN108833521A (en) Message pushing method, device, system, computer equipment and storage medium
CN108022090B (en) Virtual account management method, device, system and readable storage medium
CN109299333B (en) Block chain network account book member management method, device, equipment and storage medium
CN105493446A (en) Communication with on-calls and machines using multiple modalities through single historical tracking
CN113079139B (en) Block chain-based consensus group master node determination method, device and system
CN110351276A (en) Data processing method, equipment and computer readable storage medium
CN109104472B (en) Block chain network networking method, device, equipment and computer readable storage medium
CN112333289A (en) Reverse proxy access method, device, electronic equipment and storage medium
CN115883669A (en) Data distribution method, system, equipment and medium
CN110120908A (en) Group message processing method, device and server
CN109726545A (en) A kind of information display method, equipment, computer readable storage medium and device
CN113506100B (en) Alliance chain data processing method, device, computer equipment and storage medium
CN112231415B (en) Data synchronization method and system of block chain network, electronic device and readable medium
CN109218447A (en) Media file distribution method and file distributing platform
CN105187391B (en) APP and its logging in network access point methods, server and system
CN1649299B (en) Comlex management system and complex conversation management server for applicating programme
CN103138961B (en) server control method, controlled server and central control server
CN111461718A (en) Access method, device and system of block chain node
CN116980412A (en) Block chain-based data processing method, equipment and readable storage medium

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