A node access method, device and computer readable storage medium
The node management application simplifies the process of enterprise devices connecting to the consortium blockchain, solves the problem of cumbersome and complicated access processes in existing technologies, and improves access efficiency.
Patent Information
- Application Number
- CN202210457610.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-04-28
AI Technical Summary
In existing technologies, the process of enterprises or organizations connecting to nodes in a consortium is cumbersome and complex, and the access efficiency decreases as the number of nodes increases.
Through the node management application, enterprise devices can connect to the consortium blockchain with a few operations or commands, simplifying data interaction and local deployment with the consortium blockchain organization, and integrating the node access workflow into the application.
It simplifies the operation of enterprises and consortium blockchain organizations, improves the efficiency of node access to consortium blockchains, and is adaptable to the access of enterprise devices in different consortium blockchains.
Smart Images

Figure CN117014282B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a node access method, apparatus and computer-readable storage medium. Background Technology
[0002] Blockchain is a new application model that integrates computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Depending on its scale and application scenario, blockchains are categorized into public blockchains, private blockchains, and consortium blockchains. A consortium blockchain consists of multiple private blockchains, jointly maintained and managed by multiple enterprises or organizations.
[0003] Typically, when an enterprise or organization needs to join a consortium blockchain as a node, it must first submit an access application to the consortium blockchain organization, receive the node's configuration data via email or other means, and then deploy the configuration data to its own device environment. This process involves several data interactions between the consortium blockchain organization and the enterprise, and the enterprise must adhere to various requirements and specifications when submitting the access application and deploying the configuration data. Therefore, the entire access process is quite cumbersome and complex, and the access efficiency gradually decreases as the number of nodes joining the consortium blockchain increases. Simplifying the node access process and improving access efficiency has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides a node access method, apparatus, and computer-readable storage medium, which can simplify the work of node access to consortium blockchains and improve access efficiency.
[0005] In a first aspect, embodiments of this application provide a node access method, which is applied to a terminal device and includes:
[0006] Displays the node management interface of the node management application;
[0007] In response to a data acquisition command input through the node management interface, the configuration data of the target device is acquired and sent to the target device. The configuration data includes one or more of the following: node configuration file, node access certificate, and node runtime program.
[0008] When a node access operation is received through the node management interface, a node startup command is sent to the target device. The node startup command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a business node of the consortium blockchain network.
[0009] Secondly, embodiments of this application provide yet another node access method, which is applied to a management server and includes:
[0010] Send the access address of the application download page to the terminal device so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application.
[0011] Receive a data download request sent by the terminal device, the data download request being sent by the terminal device when it receives a data acquisition instruction input through the node management interface;
[0012] In response to the data download request, the terminal device is sent one or more of the following: a node access certificate, a node runtime program, and a preset configuration template. This enables the terminal device to generate configuration data for the target device based on the node access certificate, the node runtime program, and one or more of the preset configuration template. The configuration data is used by the target device to access the consortium blockchain network.
[0013] Thirdly, embodiments of this application provide a node access device, which includes:
[0014] The display module is used to display the node management interface of the node management application;
[0015] The acquisition module is used to acquire configuration data of the target device in response to a data acquisition command input through the node management interface. The configuration data includes one or more of the following: node configuration file, node access certificate, and node runtime program.
[0016] The sending module is used to send the configuration data to the target device;
[0017] When the acquisition module is further used to acquire the node access operation input through the node management interface, the sending module is further used to send a node start command to the target device. The node start command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a service node of the consortium blockchain network.
[0018] Fourthly, embodiments of this application provide a management device, which includes:
[0019] The sending module is used to send the access address of the application download page to the terminal device, so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application.
[0020] A receiving module is used to receive a data download request sent by the terminal device, wherein the data download request is sent by the terminal device when it receives a data acquisition instruction input through the node management interface;
[0021] The sending module is further configured to respond to the data download request by sending one or more of the following to the terminal device: a node access certificate, a node runtime program, and a preset configuration template, so that the terminal device generates configuration data for the target device based on one or more of the following: the node access certificate, the node runtime program, and the preset configuration template, and the configuration data is used for the target device to access the consortium blockchain network.
[0022] Fifthly, embodiments of this application provide a terminal device, which includes a processor, a memory, and a network interface. The processor is connected to the memory and the network interface. The network interface is used to provide network communication functions, the memory is used to store program code, and the processor is used to call the program code to implement the methods as described in the first aspect and possible implementations of the first aspect.
[0023] In a sixth aspect, embodiments of this application provide a server, which includes a processor, a memory, and a network interface. The processor is connected to the memory and the network interface. The network interface is used to provide network communication functions, the memory is used to store program code, and the processor is used to call the program code to implement the methods as described in the second aspect and possible implementations of the second aspect.
[0024] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, implement the node access method provided in embodiments of this application.
[0025] Eighthly, embodiments of this application also provide a computer program product, which includes a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, they implement the node access method provided in embodiments of this application.
[0026] This application integrates the workflow involved in node access to a consortium blockchain into a node management application. Enterprise devices can access the consortium blockchain with minimal operations or commands through the node management application, without needing to comply with various requirements and specifications for direct data interaction and local deployment with the consortium blockchain organization. This solution simplifies the operations for both enterprises and consortium blockchain organizations, improving the efficiency of node access. Furthermore, the node management application in this solution can serve as a unified access platform, adaptable to the access work of enterprise devices in different consortium blockchains. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a schematic diagram of the architecture of a communication system provided in an embodiment of this application;
[0029] Figure 2 This is a flowchart illustrating a node access method provided in an embodiment of this application;
[0030] Figure 3 This is a schematic diagram of a configuration file download area provided in this application;
[0031] Figure 4 This is a schematic diagram of a certificate download area provided in an embodiment of this application;
[0032] Figure 5a This is a schematic diagram of a device selection page provided in an embodiment of this application;
[0033] Figure 5b This is a schematic diagram of a data update notification message provided in an embodiment of this application;
[0034] Figure 6 This is a flowchart illustrating another node access method provided in an embodiment of this application;
[0035] Figure 7 This is a schematic diagram of the structure of a node access device provided in an embodiment of this application;
[0036] Figure 8 This is a schematic diagram of the structure of a management device provided in an embodiment of this application;
[0037] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0039] The terms “comprising” and “having”, and any variations thereof, used in the specification, claims, and drawings of this application are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0040] When this application is applied to specific products and technologies, the configuration parameters, application information and other data in the embodiments of this application need to be obtained with the permission or consent of the object before they can be acquired, and the collection, use and processing of this data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0041] This application provides a node access method to enable enterprises or organizations to efficiently access consortium blockchains. This method involves blockchain technology. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer (P2P) transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains one or more transaction information used to verify the validity of the information (anti-counterfeiting) and generate the next block. This application can be applied to consortium blockchains, a chain-like structure within a blockchain where each data block stores business data between one or more enterprises or organizations. The node access method proposed in this application allows enterprises to add their devices to the consortium blockchain and, after joining, access and share their relevant business data according to their permissions. Because this business data is stored using a consortium blockchain, it is tamper-proof and has extremely high authenticity.
[0042] The node access method provided in this application embodiment can also involve cloud technology. Cloud technology refers to a hosting technology that unifies hardware, software, network, and other resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. Depending on the application area, it includes cloud computing, cloud storage, cloud applications, and cloud services. For example, in a specific implementation of this application, one or more configuration data items can be stored using cloud storage, and the devices accessing the consortium blockchain, as well as the devices where the consortium blockchain organization is located, can all be cloud-based devices within the cloud technology framework.
[0043] The architecture of the communication system according to embodiments of this application is described below. Figure 1This is a schematic diagram of the architecture of a communication system provided in an embodiment of this application. Figure 1 As shown, the communication system includes an enterprise side, a consortium blockchain side, and an internet side. The consortium blockchain side includes a server 101 for consortium blockchain management and one or more consensus nodes 102 that have been connected to the consortium blockchain (for example,...). Figure 1 It includes 3 consensus nodes 102), the enterprise side includes terminal equipment 103 for applying for node access and terminal equipment 104 (also referred to as target equipment) to be connected to the consortium chain, and the Internet side is used to carry the node management application. The node management application has a connection relationship with the server 101.
[0044] Specifically, the node management application is pre-uploaded to the Internet by server 101. When an enterprise wants to add a new node (such as terminal device 104) to the consortium chain, terminal device 103 first downloads and runs the node management application from the Internet. Then, based on the running node management application, terminal device 103 obtains relevant configuration data from server 101 (some of the relevant data may also be pre-included in the node management application), and determines the configuration data after obtaining the relevant configuration data. Further, terminal device 103 sends the configuration data to terminal device 104, and through the node start (instruction), enables terminal device 104 to access the consortium chain based on the received configuration data, making it a business node in the consortium chain.
[0045] It should be noted that the server 101 has a communication connection with any consensus node 102. When the terminal device 104 joins the consortium blockchain, the server 101 can send a notification message to any connected consensus node 102, enabling the consensus node 102 to obtain the node information (such as node identifier, key information, etc.) corresponding to the terminal device 104 based on the notification message. Furthermore, after the terminal device 104 joins the consortium blockchain, it can perform business operations (e.g., transaction data download, transaction data upload, etc.) with any consensus node 102 according to the node permissions corresponding to the terminal device 104. Each consensus node 102 in the consortium blockchain establishes a communication connection with each other, so that each consensus node can synchronize transaction data according to the consensus algorithm, and the data stored on all consensus nodes in the consortium blockchain is consistent.
[0046] Optionally, terminal device 103 and terminal device 104 can be the same device. When terminal device 103 and terminal device 104 are the same device, after determining the configuration data, terminal device 103 can directly connect to the consortium blockchain on its own device based on the instructions and configuration data of the starting node, without having to distribute the configuration data.
[0047] It should be noted that the aforementioned server 101 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The aforementioned terminal devices 103 and 104 can be referred to as terminals, user equipment (UE), access terminals, user units, mobile devices, user terminals, wireless communication devices, user agents, or user devices. Terminals include, but are not limited to, handheld devices with wireless communication capabilities (e.g., smartphones, tablets), computing devices (e.g., personal computers, PCs), intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. Each consensus node in the aforementioned consortium blockchain can be a server or a terminal device; this application does not impose any restrictions on this. The aforementioned terminal devices, terminal devices and servers, and servers can be directly or indirectly connected via wired or wireless communication methods; this application does not impose any restrictions on this.
[0048] This application's embodiments can be applied to the consortium blockchain field, integrating the workflow involved in node access into a node management application. Enterprise devices can access the consortium blockchain with minimal operations or commands through the node management application, without needing to comply with various requirements and specifications for direct data interaction and local deployment with the consortium blockchain organization. This application's solution simplifies the operational work for both enterprises and consortium blockchain organizations, improving the efficiency of accessing the consortium blockchain.
[0049] The following will combine Figures 2 to 9 The node access method, apparatus, and computer-readable storage medium provided in the embodiments of this application will be described in detail.
[0050] See Figure 2 This is a flowchart illustrating a node access method provided in an embodiment of this application. The method includes steps S201 to S203, which can be derived from the above... Figure 1 The terminal device 103 shown executes the following instructions; for ease of description, terminal device 103 will be referred to as terminal device. Wherein:
[0051] S201. Display the node management interface of the node management application.
[0052] The node management application is an application platform that provides various management functions for nodes. This application platform can connect to the management server, allowing terminal devices to download data from the management server by running the node management application. For example, the management server here is used to manage nodes in the consortium blockchain and can be one of the aforementioned... Figure 1 Server 101. Furthermore, the node management interface is displayed after the terminal device obtains and runs the node management application.
[0053] Optionally, after the node management application runs on the terminal device, the application needs to first obtain the login or registration information entered by the enterprise, and then display the corresponding node management interface for that enterprise based on the login or registration information. This method can isolate node management work between different enterprises and ensure the security of node management work.
[0054] It should be noted that terminal devices from different companies can obtain the node management application from known application download pages, and perform node access and other tasks after running the node management application. The specific process for terminal devices to obtain the node management application can be found below. Figure 6 The embodiments shown are not described in detail here.
[0055] S202. In response to the data acquisition command entered through the node management interface, acquire the configuration data of the target device and send the configuration data to the target device. The configuration data includes one or more of the following: node configuration file, node access certificate, and node runtime program.
[0056] The target device is the terminal device within the enterprise that needs to be connected. For example, the target device can be one of the aforementioned devices. Figure 1 Terminal device 104 in the communication system. Data acquisition commands are used to obtain configuration data from the target device with a single click. For example, when a "Create Node" control button is displayed in the node management interface, the data acquisition command can be a single click, double click, or touch operation on the "Create Node" control button. After the terminal device receives such an operation, it can obtain the configuration data by acquiring relevant information about the configuration data, or directly obtain the configuration data. The configuration data here includes one or more of the following: node configuration file, node access certificate, and node runtime program. Further, after obtaining the configuration data, the terminal device sends the configuration data to the target device.
[0057] The following sections provide detailed explanations of how to obtain the node configuration file, node access certificate, and node running program from the configuration data.
[0058] ① Node configuration file
[0059] Optionally, the node management interface includes a configuration file download area. The above-mentioned acquisition of configuration data of the target device includes: acquiring configuration parameters input through the configuration file download area, the configuration parameters including the device identifier of the target device; and generating a node configuration file of the target device based on a preset configuration template and configuration parameters.
[0060] The device identifier is the communication identifier of the target device, including but not limited to the target device's Internet Protocol (IP) address and Media Access Control (MAC) address. The preset configuration template is a template file containing fixed parameters, including the node information of the consensus nodes. Once the target device connects to the consortium blockchain, it can communicate with the consensus nodes in the consortium blockchain using the device identifier and the node information.
[0061] Optionally, the configuration parameters may also include the installation directory of the configuration data on the target device, the key information corresponding to the target device (for example, the public key information used for consensus node decryption), etc. The configuration download area may also display fixed parameters in the preset configuration template, and this application does not impose any restrictions on this. When the terminal device obtains the input configuration parameters and the preset configuration template, it can generate the node configuration file of the target device based on the configuration parameters and the fixed parameters in the preset configuration template.
[0062] For example, Figure 3 This is a schematic diagram of a configuration file download area provided in this application. The configuration file download area displays a fixed parameter display area and a configuration parameter input area. The fixed parameter display area shows fixed parameters from a preset configuration template, including a list of consensus nodes already connected to the consortium blockchain. The consensus node list includes, but is not limited to, node identifiers and device identifiers of the consensus nodes. Specifically, Figure 3 The system displays three consensus nodes that have been connected to the consortium blockchain. These nodes are identified as 1, 2, and 3, and their device identifiers are their IP addresses: 192.168.17.5, 192.168.23.54, and 191.68.34.5. The configuration parameter input area displays input controls for multiple access node parameters. Specifically, Figure 3 The system includes input controls for the node's device identifier, installation target, and key information. Each input control can receive corresponding configuration parameters. Once all input controls in the configuration parameter input area have received their corresponding configuration parameters, the node management application can generate a node configuration file based on the configuration parameters and fixed parameters. The generated node configuration file can be saved on the terminal device until the terminal device receives a send command and sends the node configuration file to the installation directory corresponding to the target device.
[0063] It should be noted that the aforementioned preset configuration template may or may not be included in the node management application. When the preset configuration template is included in the node management application, it can be obtained from the node management application; when it is not included in the node management application, it can be downloaded from the management server through the connection between the node management application and the management server.
[0064] ② Node access certificate
[0065] Optionally, the node management interface also includes a certificate download area. The above-mentioned acquisition of the target device's configuration data also includes: acquiring the application information entered through the certificate download area, the application information including the characteristic information of the target object to which the target device belongs; sending a certificate download request to the management server, the certificate download request carrying the application information, the certificate download request being used to instruct the management server to acquire the node access certificate issued by the certificate authority after the application information has been approved; and receiving the node access certificate sent by the management server.
[0066] The target objects are the terminal devices and the enterprise or organization where the target devices are located. The characteristic information of the target objects includes the identity information of the enterprise or organization, including but not limited to the enterprise or organization's registration number, credit records, business scope, etc. Optionally, the characteristic information may also include the equipment capability information of the target devices, etc., which is not limited in this application.
[0067] The Certificate Authority (CA), also known as the Certificate Authority, is the sole authority issuing digital certificates and has a communication connection with the management server. As a trusted third party in e-commerce transactions, the CA is responsible for verifying the legitimacy of public keys in the public key system. Specifically, the CA can issue a digital certificate to each object using a public key. The digital certificate proves that the object listed in the certificate legally possesses the public key listed in the certificate. In this application, the CA can issue a node access certificate to the target device. When the target device communicates with the consensus node, the communication message carries the target device's key information (public key) and the node access certificate. When the consensus node receives the communication message, it can verify the target device's public key information based on the node access certificate. After successful verification, it decrypts the specific content of the communication message based on the key information.
[0068] It's important to note that when a target entity (i.e., an enterprise or organization) deploys multiple devices as nodes in its local environment, all devices share the same node access certificate, while the key information for each device can be the same or different. In other words, node access certificates are differentiated by the entity, not by the node itself.
[0069] Based on this, when the management server receives the application information, it can review one or more of the enterprise's legality and compliance, business capabilities, and equipment capabilities. Upon successful review, it will initiate a certificate download request to the CA (Certificate Authority). Once the CA receives the certificate download request, it will generate a node access certificate based on the request and send it to the management server. The management server will then download the node access certificate to the terminal device running the node management application.
[0070] For example, Figure 4 This is a schematic diagram of a certificate download area provided in an embodiment of this application. The certificate download area displays multiple input controls related to enterprise identity information and a version prompt for the node access certificate. Specifically, the multiple input controls prompt for the enterprise's name, registration number, business scope, etc., and the node access certificate version prompt indicates that the latest version of the currently downloadable digital certificate is version 1. Optionally, the node download area may also include a node access certificate version selection area, which can display multiple versions of currently valid node access certificates, allowing the user to select the appropriate version as needed. When the terminal device receives the node access certificate based on the application information in the certificate download area, the node access certificate can be stored on the terminal device until the terminal device receives a sending instruction and sends the node access certificate to the corresponding installation directory of the target device according to the sending instruction.
[0071] ③ Node running program
[0072] Optionally, obtaining the configuration data of the target device as described above may further include: obtaining the node runtime program from the node management application; or, sending a program download request to the management server; and receiving the node runtime program sent by the management server in response to the program download request.
[0073] The node runtime program provides at least one business function related to the consortium blockchain after it runs. That is, different devices connected to the same consortium blockchain receive the same content from the node runtime program, while devices connected to different consortium blockchains may receive different content. For example, for a consortium blockchain in the securities industry, the node runtime program can provide the uploading or downloading of capital securities and commodity securities.
[0074] In one possible implementation, the node runtime is included within the node management application. That is, when the terminal device downloads the node management application, it also downloads the node management application containing the node runtime. In another possible implementation, the node runtime is not included within the node management application. In this method, the terminal device first needs to send a program download request to the management server based on the node management application to obtain the node runtime. After the terminal device obtains the node runtime, it can be stored on the terminal device until the terminal device receives a sending instruction and sends the node runtime to the corresponding installation directory of the target device according to the sending instruction.
[0075] Optionally, the node management interface may include a control for obtaining the node's running program. When an operation instruction is received from this control, the node's running program can be obtained directly from the node management application or a program download request can be generated to obtain the node's running program.
[0076] Optionally, before sending the node configuration file, node access certificate, and node runtime to the installation directory corresponding to the target device according to the sending instruction, the method further includes: the terminal device displaying a list of optional devices through the node management interface, the list of optional devices including at least one device corresponding to the target object; the terminal device obtaining a device selection instruction input for the list of optional devices; and the terminal device determining the target device from at least one device based on the device selection instruction.
[0077] In this optional method, the terminal device first needs to receive a device selection instruction to select the target device corresponding to the configuration data from the list of optional devices, and then send the configuration data to the target device. Each device in the list of optional devices may or may not have a pre-established communication connection with the terminal device. When no communication connection is established, the terminal device can first establish a communication connection with the target device based on the device identifier (i.e., the communication identifier) entered when obtaining the node configuration file, and then send the configuration data. The communication connection here can be a wired connection or a wireless connection; this application does not impose any restrictions on either.
[0078] For example, Figure 5a This is a schematic diagram of a device selection page provided in an embodiment of this application. For example... Figure 5a As shown, this page displays terminal device A, terminal device B, and terminal device C, along with selection controls corresponding to each device. These selection controls receive device selection commands. When terminal device A is the target device, the selection control corresponding to terminal device A receives selection commands such as single-click, double-click, and touch. The state of the selection control upon receiving a selection command is as follows: Figure 5a As shown in the diagram. Furthermore, the terminal device can send configuration data to terminal device A based on the result of the selection instruction.
[0079] It should be noted that when the list of selectable devices only includes the target device, the terminal device can directly send the node configuration file, node access certificate, and node runtime to the installation directory of the target device without needing to select a device. This application does not impose any restrictions on this.
[0080] S203. When a node access operation is received through the node management interface, a node start command is sent to the target device. The node start command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a business node of the consortium blockchain network.
[0081] After steps S201 to S203, the target device's installation directory contains configuration data (including one or more of node configuration files, node access certificates, and node runtime programs). Generally, the target device can directly access the consortium blockchain network based on this configuration data. However, this method requires manual operation of the target device, which increases the time spent on manual operation across different devices as the number of access nodes increases. Therefore, this application can uniformly receive node access operations through a node management platform and respond to these operations by initiating node startup commands to the target device. These commands instruct the target device to read configuration data from the installation directory and access the consortium blockchain network based on this data. This method allows the target device accessing the consortium blockchain network to perform business operations as a business node and consensus node within the network.
[0082] In one possible implementation, the service node can also be updated. Specifically: the terminal device receives a data update notification message from the management server and displays the data update notification message through the node management interface. The data update notification message is used to indicate that one or more of the node configuration file, node access certificate, and node runtime program have updated data. When the terminal device receives a confirmation operation for the data update notification message, it receives the update data sent by the management server. The terminal device sends the update data to the target device, so that the target device can update one or more of the node configuration file, node access certificate, and node runtime program based on the update data.
[0083] This method can be used when one or more of the node configuration file, node access certificate, and node runtime program have updated data, and the target device updates accordingly. Specifically, updated node configuration file data means that a new version of the preset configuration template used to generate the node configuration file exists. When a new version of the preset configuration template exists, the terminal device, upon receiving the new version of the configuration template, needs to first generate a new configuration file based on the new version of the configuration template and configuration parameters, and then send the configuration file to the target device. For updated node access certificate and node runtime program data, the new versions of the node access certificate and node runtime program can be directly sent to the target device.
[0084] For example, Figure 5b This is a schematic diagram of a data update notification message provided in an embodiment of this application. The page containing this data update notification message is displayed on the node management interface and is used to indicate that a new version of the node access certificate exists. When the terminal device receives an "Agree" operation via the "Agree" control on this page, it can download the new version of the node access certificate from the management server. Conversely, when the terminal device receives an "Ignore" operation via the "Ignore" control on this page, the terminal device ignores the current node access certificate update.
[0085] Optionally, the terminal device can also proactively check whether there are updated data in the node configuration file, node access certificate, and node runtime program, without passively receiving data update prompt messages. In this method, when the terminal device receives a check instruction, it sends an update data query message to the management server, and the management server then sends the updated data to the terminal device based on the update data query message.
[0086] based on Figure 2 The described embodiments of this application integrate the workflow involved in node access to a consortium blockchain into a node management application. Enterprise devices can access the consortium blockchain with minimal operations or commands through the node management application, without needing to comply with various requirements and specifications for direct data interaction and local deployment with the consortium blockchain organization. This solution simplifies the operations for both enterprises and consortium blockchain organizations, improving the efficiency of node access. Furthermore, the node management application in this solution can serve as a standard access platform, adaptable to the access operations of enterprise devices in different consortium blockchains.
[0087] See Figure 6 This is a flowchart illustrating another node access method provided in an embodiment of this application. This method can be applied to... Figure 1 In the communication system shown, for example, the terminal device described below can be... Figure 1 The terminal device 103 in the middle, the target device can be Figure 1 Terminal device 104 in the middle, the management server can be Figure 1 Server 101 in the method. The method includes steps S601 to S609. Wherein:
[0088] S601, The management server sends the access address of the application download page to the terminal device. The application download page includes the application identifier of the node management application.
[0089] The application identifier of the node management application includes, but is not limited to, the basic information such as the name and icon of the node management application. The application identifier of the node management application is used to obtain the node management application (or the installation package of the node management application).
[0090] S602: The terminal device displays the application download page based on the access address.
[0091] Optionally, the terminal device can resolve the access address using any address resolver to display the application download page. This application download page is used to display the application identifier of the aforementioned node management application. For example, the address resolver can be a search engine, etc., but this application does not impose any restrictions on it.
[0092] S603. The terminal device responds to the download operation for the node management application by obtaining the node management application and running the node management application.
[0093] Specifically, the download operation refers to actions such as clicking, double-clicking, or touching the application identifier of the node management application. When a terminal device receives such an operation, it can connect to the device storing the node management application and retrieve it. For example, the node management application can be stored on a public server that has a connection with the terminal device.
[0094] S604. Display the node management interface of the node management application.
[0095] S605. The terminal device responds to the data acquisition command input through the node management interface to acquire the configuration data of the target device. The configuration data includes one or more of the following: node configuration file, node access certificate, and node running program.
[0096] S606, The terminal device sends configuration data to the target device.
[0097] S607. The terminal device obtains the node access operation input through the node management interface.
[0098] S608, The terminal device sends a node start command to the target device.
[0099] S609. The target device accesses the consortium blockchain network based on configuration data, so that the target device can act as a business node of the consortium blockchain network.
[0100] The specific implementation methods of steps S604 to S609 can be found in the descriptions of steps S201 to S203 above, and will not be repeated here.
[0101] based on Figure 6 In the described embodiments, the terminal device in this application can obtain the node management application by receiving the access address of the application download page sent by the management server, so as to connect the target device to the consortium blockchain and make it a business node in the consortium blockchain according to the node management application.
[0102] See Figure 7 This is a schematic diagram of a node access device provided in an embodiment of this application. The node access device 70 includes a display module 701, an acquisition module 702, and a sending module 703. Wherein:
[0103] Display module 701 is used to display the node management interface of the node management application;
[0104] The acquisition module 702 is used to acquire configuration data of the target device in response to a data acquisition command input through the node management interface. The configuration data includes one or more of node configuration files, node access certificates, and node running programs.
[0105] The sending module 703 is used to send the configuration data to the target device;
[0106] When the acquisition module 702 is further configured to acquire the node access operation input through the node management interface, the sending module 703 is further configured to send a node start command to the target device. The node start command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a service node of the consortium blockchain network.
[0107] In one possible implementation, the node management interface includes a configuration file download area, and the node access device further includes a generation module. The acquisition module 702 is specifically used to: acquire configuration parameters input through the configuration file download area, the configuration parameters including the device identifier of the target device; the generation module is used to: generate a node configuration file for the target device based on a preset configuration template and the configuration parameters; the acquisition module 702 is also used to: acquire the preset configuration template from a management server or the node management application.
[0108] In one possible implementation, the node management interface further includes a certificate download area, and the node access device further includes a receiving module. The acquisition module 702 is specifically used to: acquire application information input through the certificate download area, the application information including feature information of the target object to which the target device belongs; the sending module 702 is further used to: send a certificate download request to the management server, the certificate download request carrying the application information, the certificate download request being used to instruct the management server to acquire a node access certificate issued by a certificate authority after the application information has been approved; the receiving module is used to: receive the node access certificate sent by the management server.
[0109] In one possible implementation, the node access device further includes a receiving module, wherein the obtaining module 702 is specifically configured to: obtain a node running program from the node management application; or, the sending module 703 is further configured to: send a program download request to the management server; and the receiving module is further configured to: receive the node running program sent by the management server in response to the program download request.
[0110] In one possible implementation, the node access device further includes a determining module. Before the sending module sends the configuration data to the target device: the display module 701 is further configured to: display a list of optional devices through the node management interface, the list of optional devices including at least one device corresponding to the target object; the obtaining module 702 is further configured to: input a device selection command for the list of optional devices; and the determining module is configured to determine the target device from the at least one device based on the device selection command.
[0111] In one possible implementation, the node access device further includes a running module. Before the display module displays the node management interface of the node management application: the acquisition module 702 is further configured to: acquire the access address of the application download page provided by the management server; the display module 701 is further configured to: display the application download page based on the access address, the application download page including the application identifier of the node management application; the acquisition module 702 is further configured to: acquire the node management application in response to a download operation for the node management application; and the running module is configured to: run the node management application.
[0112] In one possible implementation, the acquisition module 702 is further configured to: acquire a data update notification message from the management server; the display module 701 is further configured to: display the data update notification message through the node management interface; the data update notification message is used to indicate that one or more of the node configuration file, the node access certificate, and the node runtime program have updated data; when the acquisition module 702 is further configured to acquire a confirmation operation for the data update notification message, the receiving module is further configured to: receive the update data sent by the management server; the sending module 703 is further configured to: send the update data to the target device, so that the target device performs update operations on one or more of the node configuration file, the node access certificate, and the node runtime program based on the update data.
[0113] It should be noted that the functions of each functional module of the node access device in this application embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process and beneficial effects can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.
[0114] See Figure 8 This is a schematic diagram of a management device provided in an embodiment of this application. The management device 80 includes a transmitting module 801 and a receiving module 802. Wherein:
[0115] The sending module 801 is used to send the access address of the application download page to the terminal device, so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application.
[0116] The receiving module 802 is used to receive a data download request sent by the terminal device, wherein the data download request is sent by the terminal device when it receives a data acquisition instruction input through the node management interface;
[0117] The sending module 801 is further configured to send one or more of a node access certificate, a node running program, and a preset configuration template to the terminal device in response to the data download request, so that the terminal device generates configuration data of the target device based on one or more of the node access certificate, the node running program, and the preset configuration template, and the configuration data is used for the target device to access the consortium blockchain network.
[0118] In one possible implementation, the management device further includes an acquisition module and an auditing module. The data download request includes a certificate download request, which carries application information. Before the sending module 801 sends one or more of the following to the terminal device in response to the data download request: a node access certificate, a node runtime program, and a preset configuration template, the acquisition module is used to: acquire the feature information of the target object to which the target device belongs, as included in the application information; the auditing module is used to: audit the feature information; the sending module 801 is also used to: send a certificate issuance request to the certificate authority after the audit is passed; the receiving module is also used to: receive the node access certificate sent by the certificate authority, which is generated by the certificate authority based on the certificate issuance request.
[0119] It should be noted that the functions of each functional module of the management device in the embodiments of this application can be specifically implemented according to the methods in the above method embodiments. The specific implementation process and beneficial effects can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.
[0120] See Figure 9This is a schematic diagram of a computer device provided in an embodiment of this application. The computer device includes a processor 901, a storage device 902, and a network interface 903. The processor 901, storage device 902, and network interface 903 can interact with each other. The storage device 902 may include volatile memory, such as random-access memory (RAM); it may also include non-volatile memory, such as flash memory, solid-state drive (SSD), etc.; or it may include a combination of the above types of memory. The processor 901 may be a central processing unit (CPU).
[0121] In one embodiment, the storage device 902 is used to store program instructions, and the processor 901 can invoke the program instructions to perform the following operations:
[0122] Displays the node management interface of the node management application;
[0123] In response to a data acquisition command input through the node management interface, the configuration data of the target device is acquired and sent to the target device. The configuration data includes one or more of the following: node configuration file, node access certificate, and node runtime program.
[0124] When a node access operation is received through the node management interface, a node startup command is sent to the target device. The node startup command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a business node of the consortium blockchain network.
[0125] In one possible implementation, the node management interface includes a configuration file download area, and the processor 901 is specifically used to perform the following operations: obtaining configuration parameters input through the configuration file download area, the configuration parameters including the device identifier of the target device; generating a node configuration file for the target device based on a preset configuration template and the configuration parameters, the preset configuration template being obtained from a management server or the node management application.
[0126] In one possible implementation, the node management interface further includes a certificate download area, and the processor 901 is further configured to perform the following operations: obtain application information input through the certificate download area, the application information including feature information of the target object to which the target device belongs; send a certificate download request to the management server, the certificate download request carrying the application information, the certificate download request being used to instruct the management server to obtain a node access certificate issued by a certificate authority after the application information has been approved; and receive the node access certificate sent by the management server.
[0127] In one possible implementation, the processor 901 is further configured to perform the following operations: obtain a node runtime program from the node management application; or send a program download request to the management server; and receive the node runtime program sent by the management server in response to the program download request.
[0128] In one possible implementation, the processor 901 is further configured to perform the following operations: display a list of optional devices through the node management interface, the list of optional devices including at least one device corresponding to the target object; obtain a device selection instruction input to the list of optional devices; and determine the target device from the at least one device based on the device selection instruction.
[0129] In one possible implementation, the processor 901 is further configured to perform the following operations: obtain the access address of the application download page provided by the management server; display the application download page based on the access address, the application download page including the application identifier of the node management application; and in response to a download operation for the node management application, obtain the node management application and run the node management application.
[0130] In one possible implementation, the processor 901 is further configured to perform the following operations: acquire a data update notification message from a management server and display the data update notification message through the node management interface, wherein the data update notification message is used to indicate that one or more of the node configuration file, the node access certificate, and the node runtime program have updated data; when a confirmation operation for the data update notification message is acquired, receive the updated data sent by the management server; and send the updated data to the target device so that the target device updates one or more of the node configuration file, the node access certificate, and the node runtime program based on the updated data.
[0131] In another embodiment, the storage device 902 is used to store program instructions, which the processor 901 can invoke to perform the following operations:
[0132] Send the access address of the application download page to the terminal device so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application.
[0133] Receive a data download request sent by the terminal device, the data download request being sent by the terminal device when it receives a data acquisition instruction input through the node management interface;
[0134] In response to the data download request, the terminal device is sent one or more of the following: a node access certificate, a node runtime program, and a preset configuration template. This enables the terminal device to generate configuration data for the target device based on the node access certificate, the node runtime program, and one or more of the preset configuration template. The configuration data is used by the target device to access the consortium blockchain network.
[0135] In one possible implementation, the data download request includes a certificate download request, which carries application information. The processor 901 is further configured to perform the following operations: obtain the feature information of the target object to which the target device belongs, which is included in the application information; review the feature information and send a certificate issuance request to the certificate authority after the review is passed; receive the node access certificate sent by the certificate authority, which is generated by the certificate authority based on the certificate issuance request.
[0136] It should be noted that, in specific implementations, the processor 901, storage device 902, and network interface 903 described in the embodiments of this application can execute the embodiments of this application. Figure 2 or Figure 6 The implementation methods described in the relevant embodiments of the provided node access method will not be repeated here.
[0137] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium storing a computer program executed by the aforementioned node access device or management device, and the computer program includes program instructions. When the processor executes the aforementioned program instructions, it can execute the aforementioned... Figure 2 or Figure 6The methods described in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same methods will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application. As an example, program instructions can be deployed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed across multiple locations and interconnected via a communication network. These multiple computer devices distributed across multiple locations and interconnected via a communication network can constitute a blockchain system.
[0138] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned... Figure 2 or Figure 6 The methods described in the corresponding embodiments will not be repeated here.
[0139] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0140] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A node access method, characterized in that, Applied to a terminal device, the method includes: Displays the node management interface of the node management application; In response to a data acquisition command input through the node management interface, the configuration data of the target device is acquired and sent to the target device. The configuration data includes a node configuration file, a node access certificate, and a node runtime program. The node runtime program is used to provide at least one business function related to the consortium blockchain. When a node access operation is received through the node management interface, a node start command is sent to the target device. The node start command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a business node of the consortium blockchain network. The node management interface includes a configuration file download area, and the process of obtaining configuration data for the target device includes: Obtain the configuration parameters input through the configuration file download area, the configuration parameters including the device identifier of the target device; The node configuration file for the target device is generated based on a preset configuration template and the configuration parameters. The preset configuration template is obtained from the management server or the node management application.
2. The method according to claim 1, characterized in that, The node management interface also includes a certificate download area, and the process of obtaining the target device's configuration data further includes: Obtain the application information entered through the certificate download area, the application information including the characteristic information of the target object to which the target device belongs; Send a certificate download request to the management server. The certificate download request carries the application information and is used to instruct the management server to obtain the node access certificate issued by the certificate authority after the application information is approved. Receive the node access certificate sent by the management server.
3. The method according to claim 1 or 2, characterized in that, The process of obtaining the configuration data of the target device also includes: Obtain the node runtime program from the node management application; or, Send a program download request to the management server; The node runs the program sent by the management server in response to the program download request.
4. The method according to claim 1 or 2, characterized in that, Before sending the configuration data to the target device, the method further includes: The node management interface displays a list of optional devices, which includes at least one device corresponding to the target object. Obtain the device selection command input for the list of available devices; The target device is determined from the at least one device based on the device selection instruction.
5. The method according to claim 1 or 2, characterized in that, Before displaying the node management interface of the node management application, the method further includes: Obtain the access address of the application download page provided by the management server; The application download page is displayed based on the access address, and the application download page includes the application identifier of the node management application; In response to a download operation for the node management application, the node management application is obtained and run.
6. The method according to claim 1, characterized in that, The method further includes: The system obtains a data update notification message from the management server and displays the data update notification message through the node management interface. The data update notification message is used to indicate that one or more of the node configuration file, the node access certificate, and the node running program have updated data. When a confirmation operation is received for the data update prompt message, the updated data sent by the management server is received; The update data is sent to the target device so that the target device can update one or more of the node configuration file, the node access certificate, and the node runtime program based on the update data.
7. A node access method, characterized in that, Applied to a management server, the method includes: Send the access address of the application download page to the terminal device so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application. The node management interface includes a configuration file download area, which is used to input configuration parameters. The configuration parameters include the device identifier of the target device. Receive a data download request sent by the terminal device, the data download request being sent by the terminal device when it receives a data acquisition instruction input through the node management interface; In response to the data download request, the terminal device sends a node access certificate, a node runtime program, and a preset configuration template to the terminal device, enabling the terminal device to generate a node configuration file for the target device based on the preset configuration template and configuration parameters input through the configuration file download area; or, in response to the data download request, the terminal device sends a node access certificate and a node runtime program to the terminal device, enabling the terminal device to generate a node configuration file for the target device based on a preset configuration template and configuration parameters input through the configuration file download area, wherein the preset configuration template is obtained from the node management application; after generating the node configuration file for the target device, the terminal device generates configuration data for the target device based on the node access certificate, the node runtime program, and the node configuration file, wherein the configuration data is used for the target device to access the consortium blockchain network, and the node runtime program is used to provide at least one business function related to the consortium blockchain.
8. The method according to claim 7, characterized in that, The data download request includes a certificate download request, which carries application information. Before sending one or more of the following to the terminal device in response to the data download request: a node access certificate, a node runtime program, and a preset configuration template, the method further includes: Obtain the feature information of the target object to which the target device belongs, including the application information; The feature information is reviewed, and a certificate issuance request is sent to the certificate authority after the review is passed. Receive the node access certificate sent by the certificate authority, which is generated by the certificate authority based on the certificate issuance request.
9. A node access device, characterized in that, The device includes: The display module is used to display the node management interface of the node management application; The acquisition module is used to acquire configuration data of the target device in response to a data acquisition command input through the node management interface. The configuration data includes a node configuration file, a node access certificate, and a node running program. The node running program is used to provide at least one business function related to the consortium blockchain. The sending module is used to send the configuration data to the target device; When the acquisition module is further used to acquire the node access operation input through the node management interface, the sending module is further used to send a node start command to the target device. The node start command is used to instruct the target device to access the consortium blockchain network based on the configuration data, so that the target device can act as a business node of the consortium blockchain network. The node management interface includes a configuration file download area. The acquisition module is specifically used to acquire the configuration parameters input through the configuration file download area. The configuration parameters include the device identifier of the target device. The generation module is used to generate a node configuration file for the target device based on a preset configuration template and the configuration parameters. The preset configuration template is obtained from the management server or the node management application.
10. A management device, characterized in that, The device includes: The sending module is used to send the access address of the application download page to the terminal device, so that the terminal device can obtain the node management application based on the access address and display the node management interface of the node management application. The node management interface includes a configuration file download area, which is used to input configuration parameters, including the device identifier of the target device. A receiving module is used to receive a data download request sent by the terminal device, wherein the data download request is sent by the terminal device when it receives a data acquisition instruction input through the node management interface; The sending module is further configured to respond to the data download request by sending a node access certificate, a node runtime program, and a preset configuration template to the terminal device, so that the terminal device generates a node configuration file for the target device based on the preset configuration template and configuration parameters input through the configuration file download area; or, respond to the data download request by sending a node access certificate and a node runtime program to the terminal device, so that the terminal device generates a node configuration file for the target device based on the preset configuration template and configuration parameters input through the configuration file download area, wherein the preset configuration template is obtained from the node management application; after generating the node configuration file for the target device, the terminal device generates configuration data for the target device based on the node access certificate, the node runtime program, and the node configuration file, wherein the configuration data is used for the target device to access the consortium blockchain network, and the node runtime program is used to provide at least one business function related to the consortium blockchain.
11. A terminal device, characterized in that, The terminal device includes a processor, a memory, and a network interface. The processor is connected to the memory and the network interface. The network interface is used to provide network communication functions. The memory is used to store program code. The processor is used to call the program code to implement the method as described in any one of claims 1-6.
12. A server, characterized in that, The server includes a processor, a memory, and a network interface. The processor is connected to the memory and the network interface. The network interface is used to provide network communication functions. The memory is used to store program code. The processor is used to call the program code to implement the method as described in any one of claims 7-8.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, implement the method as claimed in any one of claims 1-6 or 7-8.
14. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions that, when executed by a processor, implement the method as claimed in any one of claims 1-6 or 7-8.
Citation Information
Patent Citations
An alliance chain node management system and method
CN109728954A
Block chain node service deployment method, device and system, calculation equipment and medium
CN111045690A
