Disclosure of Invention
The embodiments of the present disclosure are directed to at least one of the technical problems in the prior art, and provide a block link point device and a block link network system.
In a first aspect, embodiments of the present disclosure provide a block link point apparatus, including: a basic hardware unit and a blockchain installation unit;
the basic hardware unit is used for providing basic hardware services, and the basic hardware services at least comprise computing services, storage services, network services and interface services;
the block chain installation unit includes:
an activation module to activate the block link point device;
the management module is used for setting a block chain network which needs to be added by the block chain node equipment;
the client module is used for joining the block chain network; downloading an account book copy corresponding to the blockchain network; and downloading, updating, installing and instantiating the intelligent contract corresponding to the block chain network.
In some embodiments, the block link point device further comprises a custom software module;
the self-defining software module is used for installing a self-defining application program based on the block chain network.
In some embodiments, the management module is further configured to set an access port of the application.
In some embodiments, the system further includes a service module, where the service module is configured to issue the application program, so that an external terminal accesses the application program according to a device IP address of the block node device and the access port, where the device IP address is obtained in advance.
In some embodiments, the activation module is specifically configured to activate the blockchain network device according to a pre-obtained device activation code.
In some embodiments, the basic hardware unit includes at least a motherboard, a processor, a storage medium, a network communication module, and an interface module.
In some embodiments, the management module is specifically configured to set an access address of the blockchain network;
the client module is specifically configured to send a blockchain network access request to a blockchain network access platform according to an access address of the blockchain network, where the request includes an identity of the blockchain node device; and when receiving the information which is returned by the access platform of the block chain network and allows the block chain network to be accessed according to the identity, adding the information into the block chain network.
In a second aspect, embodiments of the present disclosure provide a blockchain network system including the blockchain link point device provided in any of the above embodiments.
According to the block chain link point equipment and the block chain network system provided by the embodiment of the disclosure, the installation and deployment of the block chain link point equipment can be separated from a server or a terminal device, so that the block chain link point equipment is taken as an independent device, is convenient to carry and move, and has strong expandability and flexible use.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present disclosure, the block link point device and the block link network system provided in the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a block link point device provided in an embodiment of the present disclosure, and as shown in fig. 1, the block link point device includes abasic hardware unit 1 and a block chain installation unit 2, where thebasic hardware unit 1 is configured to provide basic hardware services, and the basic hardware services at least include a computation service, a storage service, a network service, and an interface service.
The blockchain installation unit 2 includes anactivation module 21, amanagement module 22, and aclient module 23.
Wherein theactivation module 21 is used to activate the block link point device.
Themanagement module 22 is used to set the blockchain network that the blockchain link point device needs to join.
Theclient module 23 is configured to join the blockchain network; downloading an account book copy corresponding to the blockchain network; and downloading, updating, installing and instantiating the intelligent contract corresponding to the block chain network.
In the embodiment of the present disclosure, the blockchain network may be a public chain network, a alliance chain network, or a private chain network.
In the embodiment of the present disclosure, thebasic hardware unit 1 may be implemented in a hardware and/or software based manner, and the blockchain installation unit 2 may be implemented in a hardware and/or software based manner.
In the embodiment of the present disclosure, the block-link point device provided in the embodiment of the present disclosure may pre-configure a device IP address and a device activation code of the block-link point device when the block-link point device is shipped from a factory, where the device IP address is used to access theclient module 23 of the block-link point device, and the device activation code is used to activate the block-link point device. In some embodiments, theactivation module 21 is specifically configured to activate the blockchain network device according to a pre-obtained device activation code. In the embodiment of the present disclosure, after the blockchain link point device is activated, other modules in the blockchain installation unit 2 can normally operate.
In the disclosed embodiment, themanagement module 22 is also used to set the device name.
In some embodiments, thebasic hardware unit 1 comprises at least amotherboard 11, aprocessor 12, astorage medium 13, anetwork communication module 14, and aninterface module 15, wherein theprocessor 12 may be used to provide computing services, thestorage medium 13 may be used to provide storage services, thenetwork communication module 14 may be used to provide network services, and theinterface module 15 may be used to provide interface services. It should be noted that the embodiments of the present disclosure are not limited in particular to the specific implementation forms of themotherboard 11, theprocessor 12, thestorage medium 13, thenetwork communication module 14, and theinterface module 15. In some embodiments, theinterface module 15 may be a USB interface. In some embodiments, thenetwork communication module 14 may be a wireless network card.
In this embodiment of the present disclosure, theclient module 23 is further configured to, after downloading the account copy corresponding to the added blockchain network, store the account copy in thestorage medium 13.
In the embodiment of the present disclosure, themanagement module 22 is specifically configured to set an access address of a blockchain network that needs to be joined. For example, the access address is the IP address of the blockchain network.
Theclient module 23 is specifically configured to send a request for accessing a blockchain network to a corresponding blockchain network access platform according to an access address of a blockchain network to be added, where the request includes an identity of the blockchain node device; and when receiving the information which is returned by the access platform of the blockchain network according to the identity of the blockchain link point equipment and allows the access to the blockchain network, adding the blockchain network. The identity of the block link point device can be preset.
To enable the blockchain node device to provide blockchain services to users, in some embodiments, as shown in fig. 1, the blockchain node device further includes acustom software module 24, thecustom software module 24 being used to install custom applications based on the blockchain network. Wherein the customized application based on the blockchain network can call the updated smart contract downloaded by theclient module 23. Thereby enabling the user to use the associated services of the blockchain network by accessing the application.
In some embodiments, themanagement module 22 is also used to set the access port of the installed application. Therefore, a user can access the application program through the device IP address of the blockchain node device and the access port of the installed application program, and therefore the operation required by the user is performed on the application program.
In some embodiments, the block node device further includes aservice module 25, where theservice module 25 is configured to publish an installed customized application program, so that an external terminal can access the application program according to the previously acquired device IP address of the block node device and the access port. For example, theservice module 25 may publish the installed application through a publishing platform of the application, for example, the installed application may be published through a Visual Studio tool or a Tomcat tool, etc. In some embodiments, theservice module 25 is also used for access scheduling of access requests of theclient module 23 and the installed applications. That is, theservice module 25 can identify whether the user requests access to theclient module 23 or the installed application program, thereby performing access scheduling.
In some embodiments, the customized blockchain-based application is installed to the blockchain node device through thecustomization module 24, and the installed application is published to the outside through theservice module 25, so that the user can access the published application through the device IP address of the blockchain node device and the access port of the installed application, and then can perform the operation required by the user on the application.
In an application scenario, a user may log in theclient module 23 of the block link point device provided in the present disclosure through an intelligent terminal, for example, the intelligent terminal may be a smart phone, a computer, a tablet computer, or the like, and specifically, the intelligent terminal connects with theclient module 23 of the block link point device through a pre-obtained device IP address. For example, the user inputs the device IP address pre-configured for the block-node device on the browser of the smart terminal, and then logs in theclient module 23 of the block-node device.
After logging in theclient module 23 of the block link point device, the intelligent terminal may input a device activation code pre-configured for the block link point device to theactivation module 21, so that theactivation module 21 activates the block link point device according to the device activation code, and after the block link point device is activated, other modules in the block chain installation unit 2 of the block link point device will normally operate.
After the blockchain endpoint device is activated, the device may be set up through themanagement module 22, and the device name and the blockchain network that the device needs to join, for example, a alliance chain network, may be set up. After the block chain network to which the block chain node device needs to be added is set, the block chain node device can be added into the required block chain network through theclient module 23; meanwhile, after joining the blockchain network, the account book copy corresponding to the blockchain network is automatically downloaded through theclient module 23 and stored in thestorage medium 13.
Then, the intelligent contract corresponding to the blockchain network is automatically downloaded, updated, installed and instantiated through theclient module 23, so as to be called by the self-defined application program based on the blockchain network. To this end, the blockchain link point device has completed joining the blockchain network and becomes a member of the blockchain network.
In the above application scenario, a user may connect a USB interface of a blockchain node device through an intelligent terminal (e.g., a computer), and install a customized application developed based on a blockchain network into the customizedsoftware module 24 of the blockchain node device, thereby completing installation of the customized application.
In the application scenario, after the application developed based on the blockchain network is installed in the customizedsoftware module 24 of the blockchain link point device, themanagement module 22 sets an access port of the application, and then the installed application is released through theservice module 25.
In the application scenario, after the application program is released, a user may use an IP address of the device of the blockchain node device and a set access port of the application program through an intelligent terminal (such as a mobile phone, a computer, a tablet computer, and the like) to access the application program, and perform a required operation on the application program.
In the embodiment of the present disclosure, when a user needs to update a blockchain network to which a blockchain node device is added, the blockchain node device needs to be restored to factory settings first, and then the blockchain node device is added to the new blockchain network through the blockchain installation unit 2 of the blockchain node device.
According to the block chain node point equipment provided by the embodiment of the disclosure, by adopting a hardware integration software method, the installation and deployment of the block chain node point equipment can be separated from a server or terminal equipment, so that the block chain node point equipment is taken as an independent device, is convenient to carry and move, and has strong expandability and flexible use.
Accordingly, embodiments of the present disclosure provide a blockchain network system, which includes at least one blockchain node device, and the blockchain node device employs the blockchain node device provided in the above embodiments.
For a detailed description of the block link point device, reference may be made to the description of the foregoing embodiments, and details are not repeated herein.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.