CN110535654B - Block chain based parallel system deployment method and device and computer equipment - Google Patents

Block chain based parallel system deployment method and device and computer equipment Download PDF

Info

Publication number
CN110535654B
CN110535654B CN201910665972.5A CN201910665972A CN110535654B CN 110535654 B CN110535654 B CN 110535654B CN 201910665972 A CN201910665972 A CN 201910665972A CN 110535654 B CN110535654 B CN 110535654B
Authority
CN
China
Prior art keywords
terminal
address
approval
block chain
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910665972.5A
Other languages
Chinese (zh)
Other versions
CN110535654A (en
Inventor
潘玲
姜颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910665972.5A priority Critical patent/CN110535654B/en
Priority to PCT/CN2019/117215 priority patent/WO2021012500A1/en
Publication of CN110535654A publication Critical patent/CN110535654A/en
Application granted granted Critical
Publication of CN110535654B publication Critical patent/CN110535654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computing Systems (AREA)
  • Operations Research (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Medical Informatics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a block chain-based parallel system deployment method, a block chain-based parallel system deployment device, a computer device and a storage medium, wherein the method comprises the following steps: receiving a first HASH value sent by a first terminal of a current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as the prestored HASH value, if the flow data of the first terminal meets the preset flow standard, recording the first terminal as a temporary terminal; collecting IP addresses of a plurality of temporary terminals; sending specified data to the application terminal and the approval terminal; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.

Description

Block chain based parallel system deployment method and device and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a block chain-based parallel system deployment method, apparatus, computer device, and storage medium.
Background
In the prior art, an approval system, for example, an email system is used to approve a specific item flow, and an applicant or an auditor both perform application operation or audit operation through processing terminals in the approval system. The confidentiality, the security and the accuracy of data in the approval systems cannot be guaranteed (because a certain process node in the traditional approval system only involves a small number of terminals, the confidentiality, the security and the accuracy of the data can be influenced by interfering the small number of terminals). Particularly, in an approval system with a long approval process and multiple hierarchies, once a data error occurs, a catastrophic result may be caused, and after the data error occurs, the trace of the approval process is not reserved or is easily modified, so that the root cause of the error is difficult to find. In addition, in the prior art, when a block chain is deployed, the adopted method is generally to install block chain software on a terminal, which consumes long time; or the control authority of the terminal is acquired by adopting a remote control method, and then the blockchain software is installed, so that the safety cannot be guaranteed (because the remote control enables the installation of the blockchain not to be initiated by the terminal, the decentralized loss is possibly caused, the original purpose of the blockchain is violated, and the safety is reduced). Moreover, when the approval system is transplanted in the conventional technology, all terminals of the original approval system are generally transplanted, and effective screening cannot be achieved, so that the transplanted approval system has the problem of low efficiency. Therefore, the approval system in the prior art has the defects of confidentiality, safety and accuracy, and does not have a mature technology for efficiently transplanting the approval system to a block chain on the premise of ensuring the safety, or a mature technology for effectively screening terminals.
Disclosure of Invention
The present application mainly aims to provide a block chain-based parallel system deployment method, apparatus, computer device, and storage medium, and aims to improve the deployment efficiency of a parallel system on the premise of ensuring information security and terminal usability.
In order to achieve the above object, the present application provides a parallel system deployment method based on a block chain, which is applied to a block chain deployment center, and includes the following steps:
receiving a first HASH value sent by a first terminal of a current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
acquiring IP addresses of a plurality of temporary terminals of a current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center;
sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the virtual machine mirror image and the block chain node container mirror image;
receiving a registration request of a designated terminal which is installed in the virtual machine mirror image and starts the block chain node container mirror image, wherein the registration request is accompanied with information of an IP address and a communication port of the designated terminal;
judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal;
and sending the prestored IP addresses and communication port information of all the block chain nodes to the appointed terminal, and sending the IP addresses and communication port information of the appointed terminal to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
The application provides a block chain-based parallel system deployment device, which is applied to a block chain deployment center and comprises the following components:
the temporary terminal marking unit is used for receiving a first HASH value sent by a first terminal of the current approval system and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
the system comprises an IP address acquisition unit, a block chain deployment center and a block chain link point container mirror image acquisition unit, wherein the IP address acquisition unit is used for acquiring IP addresses of a plurality of temporary terminals of a current approval system, the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center;
the appointed data sending unit is used for sending appointed data to the application terminal and the approval terminal by using the IP address, and the appointed data at least comprises the virtual machine mirror image and the block chain node container mirror image;
a registration request receiving unit configured to receive a registration request of a designated terminal that has been installed in the virtual machine image and started the block-link node container image, the registration request being accompanied by information of an IP address and a communication port of the designated terminal;
the IP address judging unit is used for judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
the digital certificate sending unit is used for recording the IP address of the specified terminal and the information of a communication port if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal;
and the signal sending unit is used for sending the pre-stored information of the IP addresses and the communication ports of all the block chain nodes to the designated terminal and sending the information of the IP addresses and the communication ports of the designated terminal to all the block chain nodes, so that the designated terminal is deployed in the block chain network parallel to the current approval system.
The present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the above methods when the processor executes the computer program.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the block chain-based parallel system deployment method, the block chain-based parallel system deployment device, the computer equipment and the storage medium, when a received first HASH value is the same as a prestored HASH value, whether the traffic data of the first terminal meets a preset traffic standard is judged, and if the traffic data of the first terminal meets the preset traffic standard, the first terminal is marked as a temporary terminal; collecting IP addresses of a plurality of temporary terminals of the current approval system; sending specified data to the application terminal and the approval terminal by using the IP address; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.
Drawings
Fig. 1 is a schematic flowchart illustrating a block chain-based parallel system deployment method according to an embodiment of the present application;
FIG. 2 is a block diagram illustrating a block chain based parallel system deployment apparatus according to an embodiment of the present disclosure;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a block chain-based parallel system deployment method, applied to a block chain deployment center, including the following steps:
s1, receiving a first HASH value sent by a first terminal of the current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
s2, collecting IP addresses of a plurality of temporary terminals of the current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center;
s3, sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the virtual machine mirror image and the block chain node container mirror image;
s4, receiving a registration request of a designated terminal which is installed in the virtual machine image and starts the block chain node container image, wherein the registration request is accompanied with the information of the IP address and the communication port of the designated terminal;
s5, judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
s6, if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of the communication port, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal;
s7, sending the pre-stored information of the IP addresses and the communication ports of all the block chain nodes to the appointed terminal, and sending the information of the IP addresses and the communication ports of the appointed terminal to all the block chain nodes, thereby completing the deployment of the appointed terminal in the block chain network parallel to the current approval system.
According to the method, the block chain deployment center is utilized to transplant the participating groups of the current approval system to the block chain network which is constructed in advance so as to form a block chain-based parallel system, and therefore confidentiality, safety and accuracy of approval are guaranteed by utilizing the characteristics of difficulty in tampering and the like of the block chain. The block chain deployment center is further utilized for deployment, wherein the deployment center has no administrator right, cannot log in or control other nodes, and can uniformly provide corresponding deployed resources (virtual machine images, block chain node container images and the like), so that the block chain deployment efficiency is increased on the basis of insisting on decentralization. The function h (t) is further used to identify the first terminal and base the first terminal in a normal operating state as a node of the parallel system to be subsequently deployed. Therefore, the method and the device improve the deployment efficiency, ensure the information security and improve the terminal identification accuracy.
As described in step S1, receiving a first HASH value sent by a first terminal of the current approval system, and determining whether the first HASH value is the same as a pre-stored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, recording the first terminal as a temporary terminal. The first HASH value may be obtained by calculating any data capable of representing the identity of the first terminal through a preset HASH algorithm, wherein the block chain deployment center prestores the HASH value representing the identity of the first terminal, and if the first HASH value is the same as the prestored HASH value, it indicates that the authentication of the first terminal is correct. Further, determining whether the traffic data of the first terminal meets a preset traffic standard, and if the traffic data of the first terminal meets the preset traffic standard, recording the first terminal as a temporary terminal, for example, includes: according to the formula:
h (t) ═ min (g (t), m), where
Figure GDA0003049747550000061
E (t) ═ f (t) -f (t), obtaining a function h (t), where f (t) is a flow function of the flow of the first terminal over time, f (t) is a preset standard flow function, e (t) is a function of the difference between the flow function f (t) and the standard flow function f (t),
Figure GDA0003049747550000062
the differential function of the difference function to the time is adopted, min refers to a minimum function, t refers to the time, and m refers to a preset error parameter value larger than 0; acquiring a first time length of the H (t) on a time axis, wherein the first time length is not equal to m, and a second time length is equal to m; according to the formula: calculating the normal flow time ratio, namely the first time length/(the first time length + the second time length); judging whether the normal flow time ratio is greater than a preset ratio threshold value or not; and if the normal traffic time ratio is greater than a preset ratio threshold, recording the first terminal as a temporary terminal.
The function H (t) is used for representing the flow condition of the first terminal as the current approval system, and when the value of the function H (t) is m, the flow is over-large and is in an abnormal state; when the value of the function H (t) is not m, the flow is normal, the flow is in a normal state, the normal flow time ratio is calculated according to the flow, and whether the normal flow time ratio is greater than a preset ratio threshold value is judged; and if the normal traffic time ratio is greater than a preset ratio threshold, recording the first terminal as a temporary terminal. So that the temporary terminal can be used as an alternative terminal of the new parallel approval system.
As described in step S2, IP addresses of a plurality of temporary terminals of the current approval system are collected, where the plurality of temporary terminals at least include an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network configured in advance, and the block chain deployment center prestores a virtual machine image and a block chain node container image. The pre-established blockchain network can be a public chain, a federation chain or a private chain. The deployment center refers to a terminal or a server which is pre-stored with a virtual machine image and a block chain node container image for deploying the block chain nodes. The virtual machine image is used for providing a basic operation environment, such as an environment for operating a blockchain node container image, a programming language operation environment or a basic toolkit. The container mirror image of the block chain node is stored with data such as a public account (for example, an existing approval record of the current approval system is converted into the public account), and the like, and is used for enabling the terminal to have basic conditions for becoming the block chain node (for example, information such as an IP address of other block chain nodes needs to be acquired, and information such as an IP address of the terminal is informed to other block chain nodes, and then the terminal can complete joining the block chain network) after the container mirror image of the block chain node is installed and started. The application terminal refers to a terminal sending an approval application, and the approval terminal refers to a terminal approving the approval application. The block chain network can be built in any mode in the pre-built block chain network, preferably the block chain network with only one node chain node (namely a deployment center), and other block chain nodes are deployed in the block chain network through the method and the system. The parallel system refers to an approval system based on a block chain and parallel to the current approval system, namely the deployed approval system based on the block chain and the current approval system are in parallel relation and can operate without mutual interference.
As described in step S3, the IP address is used to send the specified data to the application terminal and the approval terminal, where the specified data at least includes the virtual machine image and the block link node container image. The application terminal and the approval terminal are participating bodies of a current approval system and are also participating bodies of a parallel system to be deployed, so all or part of the application terminal and the approval terminal should be added into the parallel system. Accordingly, designated data is sent to the application terminal and the approval terminal by using the IP address, and the designated data at least comprises the virtual machine mirror image and the block link point container mirror image. Thus, the application terminal and the approval terminal can use the virtual machine mirror image and the block chain node container mirror image to prepare for adding the block chain (namely, after the block chain node container mirror image is installed and started in the virtual machine mirror image, the preparation for adding the block chain can be completed).
As described in step S4 above, a registration request of a specified terminal that has installed and started the tile link node container image in the virtual machine image is received, the registration request being accompanied by information of an IP address and a communication port of the specified terminal. The designated terminal should join the block chain, and should acquire the IP addresses and communication port information of other block chain nodes, and at the same time, should let other block chain nodes acquire the IP addresses and communication port information of the designated terminal. Therefore, after the designated terminal joins the block chain, the information communication between the designated terminal and other block chain nodes does not need to pass through a deployment center, and the decentralization is realized. The communication port is an arbitrary port, for example, a port providing communication for different services, for example, 999 is a data synchronization port.
As described in step S5, it is determined whether the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal. If the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the designated terminal is respectively indicated to be the application terminal or the approval terminal of the current approval system, namely the designated terminal is used as an application node and an approval node of the parallel system. And if the IP address of the appointed terminal is not the IP address of the application terminal and is not the IP address of the approval terminal at the same time, namely the appointed terminal does not belong to the current approval system, the registration request should be rejected at this moment.
As described in step S6, if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the IP address of the designated terminal and the information of the communication port are recorded, an application digital certificate or an approval digital certificate representing the identity of the designated terminal is generated according to the IP address of the designated terminal, and the application digital certificate or the approval digital certificate is sent to the designated terminal. In the application, the deployment center not only provides resources (virtual machine mirror images and the like) required by block chain node deployment, but also can record the IP address and the information of the communication port of the appointed terminal, provides at least the first time of information exchange between the appointed terminal and the block chain node, and issues an application digital certificate representing the identity of the appointed terminal or approves the digital certificate. Wherein the application digital certificate indicates that the terminal holding the certificate has the authority to initiate an application approval request; the approval digital certificate indicates that the terminal which holds the certificate has the authority to approve the application approval request. Accordingly, the designated terminal executes corresponding operation in the parallel system according to the application digital certificate or the approval digital certificate.
As described in step S7, the pre-stored information of the IP addresses and communication ports of all the blockchain nodes is sent to the designated terminal, and the information of the IP addresses and communication ports of the designated terminal is sent to all the blockchain nodes, so as to complete the deployment of the designated terminal in the blockchain network in parallel with the current approval system. The designated terminal is to be deployed in the blockchain network, and should acquire the IP addresses and communication ports of other blockchain nodes, and let other blockchain nodes acquire the IP addresses and communication ports of the designated terminal. Therefore, the pre-stored information of the IP addresses and the communication ports of all the block chain nodes is sent to the appointed terminal, and the information of the IP addresses and the communication ports of the appointed terminal is sent to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
In one embodiment, the step S2 of collecting IP addresses of a plurality of temporary terminals of the current approval system, where the plurality of temporary terminals at least include an application terminal and an approval terminal, includes:
s201, obtaining a log of the current approval system, analyzing the log to obtain a terminal participating in application execution operation and a terminal executing approval operation of the current approval system, and recording the terminal as an initial application terminal and an initial approval terminal respectively;
s202, counting the error recording times of the initial application terminal and the initial approval terminal, acquiring the initial application terminal of which the error recording times are less than a preset first error quantity threshold value, and acquiring the initial approval terminal of which the error recording times are less than a preset second error quantity threshold value;
s203, recording the initial application terminal with the error recording times less than a preset first error quantity threshold value as an application terminal, and recording the initial approval terminal with the error recording times less than a preset second error quantity threshold value as an approval terminal;
and S204, collecting the IP addresses of the application terminal and the approval terminal.
As described above, the collection of IP addresses of a plurality of temporary terminals of the current approval system is achieved. The current journal of the approval system records the approval record, and the information of the terminal initiating the approval application, the information of the terminal participating in the approval application, the information of the approved or non-approved terminal and the like can be obtained from the approval record. Accordingly, by analyzing the log, the terminals participating in the application execution operation and the approval execution operation of the current approval system can be obtained and are respectively marked as an initial application terminal and an initial approval terminal. Due to the fact that part of terminals cannot be qualified for application or approval responsibility due to the fact that the initial application terminal and the initial approval terminal are counted, the initial application terminal with the error recording times smaller than a preset first error quantity threshold value is obtained, and the initial approval terminal with the error recording times smaller than a preset second error quantity threshold value is obtained; and in a mode that the initial application terminal with the error recording times less than a preset first error quantity threshold value is recorded as an application terminal, and the initial approval terminal with the error recording times less than a preset second error quantity threshold value is recorded as an approval terminal, the terminal with excessive error recording times is excluded from a parallel system to be deployed so as to ensure the running quality of the parallel system. Accordingly, the IP addresses of the application terminal and the approval terminal are collected.
In one embodiment, the step S3 of sending, by using the IP address, specific data to the application terminal and the approval terminal, where the specific data at least includes the virtual machine image and the block link node container image, includes:
s301, acquiring operating system information of the application terminal and the approval terminal;
s302, selecting a correct virtual machine image matched with the operating system information from a plurality of pre-stored virtual machine images;
s303, sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the correct virtual machine mirror image and the block chain node container mirror image.
As described above, sending of the specified data to the application terminal and the approval terminal is achieved, where the specified data at least includes the correct virtual machine image and the block link point container image. The virtual machine images are respectively provided with corresponding virtual machine images according to the type and version of the operating system, for example, for linux operating systems of different versions, such as reddat, centros and ubuntu, three corresponding virtual machine images are respectively adopted, so that specified data of a correct virtual machine image and the block link point container image are sent in a targeted manner, and the problem that the virtual machine image and the block link point container image cannot be used and the block link point deployment fails is avoided.
In one embodiment, after the step S5 of determining whether the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the method includes:
s51, if the IP address of the specified terminal is not the IP address of the application terminal and the IP address of the specified terminal is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not;
and S52, if the IP address of the specified terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the specified terminal.
As described above, the rejection of the registration request is achieved, and the access priority level of the designated terminal is lowered. According to actual needs (for example, when the approval pressure is too high), only the terminal of the current approval system is used as the participating terminal of the parallel system, so that the approval efficiency is reduced. Therefore, if the IP address of the specified terminal is not the IP address of the application terminal and the IP address of the specified terminal is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not; if the IP address of the appointed terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the appointed terminal; if the IP address of the appointed terminal is recorded in a preset newly-added terminal IP address list, recording the IP address of the appointed terminal and the information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the appointed terminal according to the IP address of the appointed terminal, and sending the application digital certificate or the approval digital certificate to the appointed terminal. Therefore, the number of the terminals participating in the parallel system is dynamically adjusted, and the approval efficiency is improved. The access priority level refers to the priority level of the designated terminal for accessing the block chain deployment center, that is, the access requests of other terminals to the block chain deployment center are preferentially accepted, and the access requests of the designated terminal to the block chain deployment center are suspended.
In one embodiment, the step S6 of, if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the designated terminal and information of the communication port, generating an application digital certificate or an approval digital certificate representing the identity of the designated terminal according to the IP address of the designated terminal, and sending the application digital certificate or the approval digital certificate to the designated terminal includes:
s601, if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, and generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal;
s602, analyzing the current approval system, acquiring an approval process of the current approval system, and generating an intelligent contract according to the approval process;
and S603, sending the intelligent contract to the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal.
As described above, the recording of the IP address and the information of the communication port of the designated terminal is realized, an application digital certificate or an approval digital certificate representing the identity of the designated terminal is generated according to the IP address of the designated terminal, and the application digital certificate or the approval digital certificate is sent to the designated terminal. According to the method and the system, the intelligent contract is generated flexibly and in real time according to the approval process of the current approval system, so that the parallel system obtained by limited deployment can realize the same function as the current approval system. Wherein the smart contract is a computer protocol intended to propagate, verify or execute contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. And sending the intelligent contract to the specified terminal, and after the specified terminal is installed and uses the intelligent contract, the terminal can complete an approval process with other terminals installed and using the intelligent contract. The intelligent contract is generated according to the approval process, so that the approval rule in the limited parallel system is the same as that of the current approval system, and the consistency of the parallel block chain system and the original approval system is ensured.
In one embodiment, after step S7 of sending, to the designated terminal, pre-stored information of IP addresses and communication ports of all blockchain nodes, and sending, to all blockchain nodes, information of IP addresses and communication ports of the designated terminal, so as to complete the deployment of the designated terminal in the blockchain network in parallel with the current approval system, the method includes:
s71, receiving a modification request for modifying the IP address or the communication port sent by the appointed terminal;
s72, according to the modification request, modifying the IP address or the communication port of the specified terminal in the registration information of the specified terminal;
and S73, sending the modified information of the IP address or the communication port of the specified terminal to all the blockchain nodes.
As described above, updating the IP address or communication port is achieved by the deployment center. When the IP address or the communication port of the designated terminal is changed, in order to enable other blockchain nodes to find the designated terminal, the modified IP address or communication port information should be sent to other blockchain nodes. Specifically, the deployment center receives a modification request for modifying the IP address or the communication port sent by the designated terminal, modifies the IP address or the communication port of the designated terminal in the registration information of the designated terminal according to the modification request, and sends the modified IP address or communication port information of the designated terminal to all the blockchain nodes. Thus, the updating of the IP address or the communication port is realized by the deployment center. Further, the deployment center may also actively determine whether the IP address or the communication port of the designated terminal is modified, and if the IP address or the communication port of the designated terminal is modified, obtain the modified IP address or the communication port of the designated terminal, modify the IP address or the communication port of the designated terminal in the registration information of the designated terminal, and then send the modified IP address or the communication port information of the designated terminal to all the blockchain nodes.
In one embodiment, the acquiring IP addresses of a plurality of temporary terminals of a current approval system, where the plurality of temporary terminals includes at least an application terminal and an approval terminal, the blockchain deployment center is a blockchain node in a pre-configured blockchain network, and before the step S2 of pre-storing a virtual machine image and a blockchain node container image, includes:
s11, creating a blockchain class by using a specified language, instantiating the blockchain class to obtain a created block, and setting the hash value of the previous block to be 0 in the created block;
s12, generating other blocks by adopting a preset block generation technology based on the created block, wherein the other blocks are recorded with hash values of the previous block;
and S13, taking the preset terminal as a block chain node, thereby building the block chain network.
As described above, building the blockchain network is achieved. The language for creating the blockchain class may be any feasible language, such as JAVA, C + +, Go language, etc., and the Go language is preferred in this embodiment, so as to optimize the blockchain class. The block chain class (class) is a definition of a block chain, and instantiating the block chain class is to determine specific parameters of the block chain, so as to obtain a first block (created block) and use the first block as a basis for generating other blocks. Since the created block is the first block, there is effectively no previous block, so the hash value of the previous block is set to 0 in the created block. The preset terminal is a terminal that receives a preset consensus mechanism of the block chain network, where the preset consensus mechanism may be any consensus mechanism, such as a workload certification mechanism, a rights certification mechanism, a byzantine fault tolerance mechanism, and the like, and the byzantine fault tolerance mechanism is preferred in this embodiment. The method comprises the steps of adopting a preset block generation technology, for example, setting a block head and a block body; the hash value of the previous block in the block header, the hash value and the timestamp of the block in the block; the block body stores therein data prepared in advance so that the block header and the block body constitute one block.
According to the block chain-based parallel system deployment method, when a received first HASH value is the same as a prestored HASH value, whether the traffic data of the first terminal meets a preset traffic standard is judged, and if the traffic data of the first terminal meets the preset traffic standard, the first terminal is marked as a temporary terminal; collecting IP addresses of a plurality of temporary terminals of the current approval system; sending specified data to the application terminal and the approval terminal by using the IP address; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.
Referring to fig. 2, an embodiment of the present application provides a parallel system deployment apparatus based on a blockchain, which is applied to a blockchain deployment center, and includes:
a temporary terminal marking unit 10, configured to receive a first HASH value sent by a first terminal of a current approval system, and determine whether the first HASH value is the same as a pre-stored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
the system comprises an IP address acquisition unit 20, configured to acquire IP addresses of multiple temporary terminals of a current approval system, where the multiple temporary terminals at least include an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network that is configured in advance, and the block chain deployment center prestores a virtual machine image and a block chain link point container image;
a designated data sending unit 30, configured to send designated data to the application terminal and the approval terminal by using the IP address, where the designated data at least includes the virtual machine mirror image and the block chain node container mirror image;
a registration request receiving unit 40 configured to receive a registration request of a specific terminal that has installed and started the block-link node container image in the virtual machine image, the registration request being accompanied by information of an IP address and a communication port of the specific terminal;
an IP address determining unit 50, configured to determine whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
a digital certificate sending unit 60, configured to record the IP address of the specified terminal and information of the communication port if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, generate an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and send the application digital certificate or the approval digital certificate to the specified terminal;
and a sending unit 70, configured to send pre-stored information of the IP addresses and communication ports of all the blockchain nodes to the designated terminal, and send information of the IP addresses and communication ports of the designated terminal to all the blockchain nodes, so as to complete deployment of the designated terminal in the blockchain network parallel to the current approval system.
As described in the above unit 10, the first HASH value sent by the first terminal of the current approval system is received, and it is determined whether the first HASH value is the same as the pre-stored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, recording the first terminal as a temporary terminal. The first HASH value may be obtained by calculating any data capable of representing the identity of the first terminal through a preset HASH algorithm, wherein the block chain deployment center prestores the HASH value representing the identity of the first terminal, and if the first HASH value is the same as the prestored HASH value, it indicates that the authentication of the first terminal is correct. Further, determining whether the traffic data of the first terminal meets a preset traffic standard, and if the traffic data of the first terminal meets the preset traffic standard, recording the first terminal as a temporary terminal, for example, includes: according to the formula:
h (t) ═ min (g (t), m), where
Figure GDA0003049747550000141
E (t) ═ f (t) -f (t), obtaining a function h (t), where f (t) is a flow function of the flow of the first terminal over time, f (t) is a preset standard flow function, e (t) is a function of the difference between the flow function f (t) and the standard flow function f (t),
Figure GDA0003049747550000151
the differential function of the difference function to the time is adopted, min refers to a minimum function, t refers to the time, and m refers to a preset error parameter value larger than 0; acquiring a first time length of the H (t) on a time axis, wherein the first time length is not equal to m, and a second time length is equal to m; according to the formula: the ratio of the normal flow time to the first time length/(the first time length + the second time)Interval length), calculating the normal flow time ratio; judging whether the normal flow time ratio is greater than a preset ratio threshold value or not; and if the normal traffic time ratio is greater than a preset ratio threshold, recording the first terminal as a temporary terminal.
The function H (t) is used for representing the flow condition of the first terminal as the current approval system, and when the value of the function H (t) is m, the flow is over-large and is in an abnormal state; when the value of the function H (t) is not m, the flow is normal, the flow is in a normal state, the normal flow time ratio is calculated according to the flow, and whether the normal flow time ratio is greater than a preset ratio threshold value is judged; and if the normal traffic time ratio is greater than a preset ratio threshold, recording the first terminal as a temporary terminal. So that the temporary terminal can be used as an alternative terminal of the new parallel approval system.
As described in the above unit 20, the IP addresses of a plurality of temporary terminals of the current approval system are collected, where the plurality of temporary terminals at least include an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network configured in advance, and the block chain deployment center prestores a virtual machine image and a block chain node container image. The pre-established blockchain network can be a public chain, a federation chain or a private chain. The deployment center refers to a terminal or a server which is pre-stored with a virtual machine image and a block chain node container image for deploying the block chain nodes. The virtual machine image is used for providing a basic operation environment, such as an environment for operating a blockchain node container image, a programming language operation environment or a basic toolkit. The container mirror image of the block chain node is stored with data such as a public account (for example, an existing approval record of the current approval system is converted into the public account), and the like, and is used for enabling the terminal to have basic conditions for becoming the block chain node (for example, information such as an IP address of other block chain nodes needs to be acquired, and information such as an IP address of the terminal is informed to other block chain nodes, and then the terminal can complete joining the block chain network) after the container mirror image of the block chain node is installed and started. The application terminal refers to a terminal sending an approval application, and the approval terminal refers to a terminal approving the approval application. The block chain network can be built in any mode in the pre-built block chain network, preferably the block chain network with only one node chain node (namely a deployment center), and other block chain nodes are deployed in the block chain network through the method and the system. The parallel system refers to an approval system based on a block chain and parallel to the current approval system, namely the deployed approval system based on the block chain and the current approval system are in parallel relation and can operate without mutual interference.
As described in the foregoing unit 30, the IP address is used to send specified data to the application terminal and the approval terminal, where the specified data at least includes the virtual machine image and the block link node container image. The application terminal and the approval terminal are participating bodies of a current approval system and are also participating bodies of a parallel system to be deployed, so all or part of the application terminal and the approval terminal should be added into the parallel system. Accordingly, designated data is sent to the application terminal and the approval terminal by using the IP address, and the designated data at least comprises the virtual machine mirror image and the block link point container mirror image. Thus, the application terminal and the approval terminal can use the virtual machine mirror image and the block chain node container mirror image to prepare for adding the block chain (namely, after the block chain node container mirror image is installed and started in the virtual machine mirror image, the preparation for adding the block chain can be completed).
As described in the above-mentioned unit 40, a registration request of a specified terminal that has installed and started the block-link node container image in the virtual machine image is received, the registration request being accompanied by information of an IP address and a communication port of the specified terminal. The designated terminal should join the block chain, and should acquire the IP addresses and communication port information of other block chain nodes, and at the same time, should let other block chain nodes acquire the IP addresses and communication port information of the designated terminal. Therefore, after the designated terminal joins the block chain, the information communication between the designated terminal and other block chain nodes does not need to pass through a deployment center, and the decentralization is realized. The communication port is an arbitrary port, for example, a port providing communication for different services, for example, 999 is a data synchronization port.
As described in the foregoing unit 50, it is determined whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal. If the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the designated terminal is respectively indicated to be the application terminal or the approval terminal of the current approval system, namely the designated terminal is used as an application node and an approval node of the parallel system. And if the IP address of the appointed terminal is not the IP address of the application terminal and is not the IP address of the approval terminal at the same time, namely the appointed terminal does not belong to the current approval system, the registration request should be rejected at this moment.
As described in the foregoing unit 60, if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the IP address of the designated terminal and the information of the communication port are recorded, an application digital certificate or an approval digital certificate representing the identity of the designated terminal is generated according to the IP address of the designated terminal, and the application digital certificate or the approval digital certificate is sent to the designated terminal. In the application, the deployment center not only provides resources (virtual machine mirror images and the like) required by block chain node deployment, but also can record the IP address and the information of the communication port of the appointed terminal, provides at least the first time of information exchange between the appointed terminal and the block chain node, and issues an application digital certificate representing the identity of the appointed terminal or approves the digital certificate. Wherein the application digital certificate indicates that the terminal holding the certificate has the authority to initiate an application approval request; the approval digital certificate indicates that the terminal which holds the certificate has the authority to approve the application approval request. Accordingly, the designated terminal executes corresponding operation in the parallel system according to the application digital certificate or the approval digital certificate.
As described in the above unit 70, the pre-stored information of the IP addresses and the communication ports of all the blockchain nodes is sent to the designated terminal, and the information of the IP addresses and the communication ports of the designated terminal is sent to all the blockchain nodes, so as to complete the deployment of the designated terminal in the blockchain network parallel to the current approval system. The designated terminal is to be deployed in the blockchain network, and should acquire the IP addresses and communication ports of other blockchain nodes, and let other blockchain nodes acquire the IP addresses and communication ports of the designated terminal. Therefore, the pre-stored information of the IP addresses and the communication ports of all the block chain nodes is sent to the appointed terminal, and the information of the IP addresses and the communication ports of the appointed terminal is sent to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
In one embodiment, the IP address collecting unit 20 includes:
the log obtaining subunit is used for obtaining the log of the current approval system, analyzing the log to obtain a terminal participating in the application execution operation and a terminal participating in the approval execution operation of the current approval system, and recording the terminal as an initial application terminal and an initial approval terminal respectively;
an error recording frequency counting subunit, configured to count error recording frequencies of the initial application terminal and the initial approval terminal, obtain the initial application terminal with the error recording frequency being less than a preset first error number threshold, and obtain the initial approval terminal with the error recording frequency being less than a preset second error number threshold;
a terminal marking subunit, configured to mark the initial application terminal with the error recording frequency being less than a preset first error number threshold as an application terminal, and mark the initial approval terminal with the error recording frequency being less than a preset second error number threshold as an approval terminal;
and the IP address acquisition subunit is used for acquiring the IP addresses of the application terminal and the approval terminal.
As described above, the collection of IP addresses of a plurality of temporary terminals of the current approval system is achieved. The current journal of the approval system records the approval record, and the information of the terminal initiating the approval application, the information of the terminal participating in the approval application, the information of the approved or non-approved terminal and the like can be obtained from the approval record. Accordingly, by analyzing the log, the terminals participating in the application execution operation and the approval execution operation of the current approval system can be obtained and are respectively marked as an initial application terminal and an initial approval terminal. Due to the fact that part of terminals cannot be qualified for application or approval responsibility due to the fact that the initial application terminal and the initial approval terminal are counted, the initial application terminal with the error recording times smaller than a preset first error quantity threshold value is obtained, and the initial approval terminal with the error recording times smaller than a preset second error quantity threshold value is obtained; and in a mode that the initial application terminal with the error recording times less than a preset first error quantity threshold value is recorded as an application terminal, and the initial approval terminal with the error recording times less than a preset second error quantity threshold value is recorded as an approval terminal, the terminal with excessive error recording times is excluded from a parallel system to be deployed so as to ensure the running quality of the parallel system. Accordingly, the IP addresses of the application terminal and the approval terminal are collected.
In one embodiment, the designated data transmission unit 30 includes:
the operating system information acquisition subunit is used for acquiring the operating system information of the application terminal and the approval terminal;
the correct virtual machine image selecting subunit is used for selecting a correct virtual machine image matched with the operating system information from various pre-stored virtual machine images;
and the appointed data sending subunit is used for sending appointed data to the application terminal and the approval terminal by using the IP address, wherein the appointed data at least comprises the correct virtual machine mirror image and the block link point container mirror image.
As described above, sending of the specified data to the application terminal and the approval terminal is achieved, where the specified data at least includes the correct virtual machine image and the block link point container image. The virtual machine images are respectively provided with corresponding virtual machine images according to the type and version of the operating system, for example, for linux operating systems of different versions, such as reddat, centros and ubuntu, three corresponding virtual machine images are respectively adopted, so that specified data of a correct virtual machine image and the block link point container image are sent in a targeted manner, and the problem that the virtual machine image and the block link point container image cannot be used and the block link point deployment fails is avoided.
In one embodiment, the apparatus comprises:
a newly-added terminal IP address judging unit, configured to judge whether the IP address of the designated terminal is recorded in a preset newly-added terminal IP address list if the IP address of the designated terminal is not the IP address of the application terminal and the IP address of the designated terminal is not the IP address of the approval terminal;
and the rejecting unit is used for rejecting the registration request and reducing the access priority level of the specified terminal if the IP address of the specified terminal is not recorded in a preset newly-added terminal IP address list.
As described above, the rejection of the registration request is achieved, and the access priority level of the designated terminal is lowered. According to actual needs (for example, when the approval pressure is too high), only the terminal of the current approval system is used as the participating terminal of the parallel system, so that the approval efficiency is reduced. Therefore, if the IP address of the specified terminal is not the IP address of the application terminal and the IP address of the specified terminal is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not; if the IP address of the appointed terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the appointed terminal; if the IP address of the appointed terminal is recorded in a preset newly-added terminal IP address list, recording the IP address of the appointed terminal and the information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the appointed terminal according to the IP address of the appointed terminal, and sending the application digital certificate or the approval digital certificate to the appointed terminal. Therefore, the number of the terminals participating in the parallel system is dynamically adjusted, and the approval efficiency is improved. The access priority level refers to the priority level of the designated terminal for accessing the block chain deployment center, that is, the access requests of other terminals to the block chain deployment center are preferentially accepted, and the access requests of the designated terminal to the block chain deployment center are suspended.
In one embodiment, the digital certificate sending unit 60 includes:
the digital certificate generating subunit is configured to record the IP address of the specified terminal and information of the communication port if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, and generate an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal;
the intelligent contract generating subunit is used for analyzing the current approval system, acquiring the approval process of the current approval system, and generating an intelligent contract according to the approval process;
and the intelligent contract sending subunit is used for sending the intelligent contract to the specified terminal and sending the application digital certificate or the approval digital certificate to the specified terminal.
As described above, the recording of the IP address and the information of the communication port of the designated terminal is realized, an application digital certificate or an approval digital certificate representing the identity of the designated terminal is generated according to the IP address of the designated terminal, and the application digital certificate or the approval digital certificate is sent to the designated terminal. According to the method and the system, the intelligent contract is generated flexibly and in real time according to the approval process of the current approval system, so that the parallel system obtained by limited deployment can realize the same function as the current approval system. Wherein the smart contract is a computer protocol intended to propagate, verify or execute contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. And sending the intelligent contract to the specified terminal, and after the specified terminal is installed and uses the intelligent contract, the terminal can complete an approval process with other terminals installed and using the intelligent contract. The intelligent contract is generated according to the approval process, so that the approval rule in the limited parallel system is the same as that of the current approval system, and the consistency of the parallel block chain system and the original approval system is ensured.
In one embodiment, the apparatus comprises:
a modification request receiving unit, configured to receive a modification request for modifying an IP address or a communication port sent by the designated terminal;
a modification unit, configured to modify the IP address or the communication port of the designated terminal in the registration information of the designated terminal according to the modification request;
and the modified information sending unit is used for sending the modified information of the IP address or the communication port of the specified terminal to all the block chain nodes.
As described above, updating the IP address or communication port is achieved by the deployment center. When the IP address or the communication port of the designated terminal is changed, in order to enable other blockchain nodes to find the designated terminal, the modified IP address or communication port information should be sent to other blockchain nodes. Specifically, the deployment center receives a modification request for modifying the IP address or the communication port sent by the designated terminal, modifies the IP address or the communication port of the designated terminal in the registration information of the designated terminal according to the modification request, and sends the modified IP address or communication port information of the designated terminal to all the blockchain nodes. Thus, the updating of the IP address or the communication port is realized by the deployment center. Further, the deployment center may also actively determine whether the IP address or the communication port of the designated terminal is modified, and if the IP address or the communication port of the designated terminal is modified, obtain the modified IP address or the communication port of the designated terminal, modify the IP address or the communication port of the designated terminal in the registration information of the designated terminal, and then send the modified IP address or the communication port information of the designated terminal to all the blockchain nodes.
In one embodiment, the apparatus comprises:
the system comprises a creating block acquisition unit, a creating block chain acquisition unit and a creating block generation unit, wherein the creating block acquisition unit is used for creating a block chain class by using a specified language, acquiring a creating block after the block chain class is instantiated, and setting the hash value of the previous block to be 0 in the creating block;
the other block generation unit is used for generating other blocks by adopting a preset block generation technology based on the created block, wherein the other blocks are recorded with the hash value of the previous block;
and the block chain node setting unit is used for taking a preset terminal as a block chain node so as to build the block chain network.
As described above, building the blockchain network is achieved. The language for creating the blockchain class may be any feasible language, such as JAVA, C + +, Go language, etc., and the Go language is preferred in this embodiment, so as to optimize the blockchain class. The block chain class (class) is a definition of a block chain, and instantiating the block chain class is to determine specific parameters of the block chain, so as to obtain a first block (created block) and use the first block as a basis for generating other blocks. Since the created block is the first block, there is effectively no previous block, so the hash value of the previous block is set to 0 in the created block. The preset terminal is a terminal that receives a preset consensus mechanism of the block chain network, where the preset consensus mechanism may be any consensus mechanism, such as a workload certification mechanism, a rights certification mechanism, a byzantine fault tolerance mechanism, and the like, and the byzantine fault tolerance mechanism is preferred in this embodiment. The method comprises the steps of adopting a preset block generation technology, for example, setting a block head and a block body; the hash value of the previous block in the block header, the hash value and the timestamp of the block in the block; the block body stores therein data prepared in advance so that the block header and the block body constitute one block.
According to the block chain-based parallel system deployment device, when a received first HASH value is the same as a prestored HASH value, whether the flow data of the first terminal meets a preset flow standard is judged, and if the flow data of the first terminal meets the preset flow standard, the first terminal is marked as a temporary terminal; collecting IP addresses of a plurality of temporary terminals of the current approval system; sending specified data to the application terminal and the approval terminal by using the IP address; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.
Referring to fig. 3, an embodiment of the present invention further provides a computer device, where the computer device may be a server, and an internal structure of the computer device may be as shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data used by the block chain-based parallel system deployment method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a block chain based parallel system deployment method.
The processor executes the block chain-based parallel system deployment method, is applied to a block chain deployment center, and comprises the following steps: receiving a first HASH value sent by a first terminal of a current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as the prestored HASH value, according to the formula:
h (t) ═ min (g (t), m), where
Figure GDA0003049747550000221
E(t)=F(t)-f(t) Obtaining a function H (t), wherein F (t) is a flow function of the flow of the first terminal changing along with time, f (t) is a preset standard flow function, E (t) is a difference function of the flow function F (t) and the standard flow function f (t),
Figure GDA0003049747550000222
the differential function of the difference function to the time is adopted, min refers to a minimum function, t refers to the time, and m refers to a preset error parameter value larger than 0; acquiring a first time length of H (t) on a time axis, wherein the first time length is not equal to m, and a second time length is equal to m, and according to a formula: calculating the normal flow time ratio which is the first time length/(the first time length + the second time length), and judging whether the normal flow time ratio is greater than a preset ratio threshold; if the normal traffic time ratio is larger than a preset ratio threshold, recording the first terminal as a temporary terminal; acquiring IP addresses of a plurality of temporary terminals of a current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center; sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the virtual machine mirror image and the block chain node container mirror image; receiving a registration request of a designated terminal which is installed in the virtual machine mirror image and starts the block chain node container mirror image, wherein the registration request is accompanied with information of an IP address and a communication port of the designated terminal; judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal; if the IP address of the appointed terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the appointed terminal and the information of the communication port, generating an application digital certificate or an approval digital certificate representing the identity of the appointed terminal according to the IP address of the appointed terminal, and applying the application digital certificate or the approval digital certificateSending the information to the appointed terminal; and sending the prestored IP addresses and communication port information of all the block chain nodes to the appointed terminal, and sending the IP addresses and communication port information of the appointed terminal to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
In one embodiment, the collecting IP addresses of a plurality of temporary terminals of the current approval system, where the plurality of temporary terminals at least include an application terminal and an approval terminal, includes: acquiring a log of the current approval system, analyzing the log to obtain a terminal participating in the application execution operation and a terminal participating in the approval execution operation of the current approval system, and recording the terminal as an initial application terminal and an initial approval terminal respectively; counting the error recording times of the initial application terminal and the initial approval terminal, acquiring the initial application terminal with the error recording times less than a preset first error quantity threshold value, and acquiring the initial approval terminal with the error recording times less than a preset second error quantity threshold value; recording the initial application terminal with the error recording times less than a preset first error quantity threshold value as an application terminal, and recording the initial approval terminal with the error recording times less than a preset second error quantity threshold value as an approval terminal; and collecting the IP addresses of the application terminal and the approval terminal.
In one embodiment, the step of sending, by using the IP address, specified data to the application terminal and the approval terminal, where the specified data at least includes the virtual machine image and the block link node container image, includes: acquiring operating system information of the application terminal and the approval terminal; selecting a correct virtual machine image matched with the operating system information from a plurality of pre-stored virtual machine images; and sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the correct virtual machine mirror image and the block chain node container mirror image.
In one embodiment, after the step of determining whether the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the method includes: if the IP address of the specified terminal is not the IP address of the application terminal and is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not; and if the IP address of the specified terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the specified terminal.
In one embodiment, the step of recording the IP address of the designated terminal and the information of the communication port if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, generating an application digital certificate or an approval digital certificate representing the identity of the designated terminal according to the IP address of the designated terminal, and sending the application digital certificate or the approval digital certificate to the designated terminal includes: if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, and generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal; analyzing the current approval system, acquiring an approval process of the current approval system, and generating an intelligent contract according to the approval process; and sending the intelligent contract to the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal.
In one embodiment, after the step of sending pre-stored information of IP addresses and communication ports of all blockchain nodes to the designated terminal and sending information of IP addresses and communication ports of the designated terminal to all blockchain nodes, so as to complete the deployment of the designated terminal in the blockchain network in parallel with the current approval system, the method includes: receiving a modification request for modifying the IP address or the communication port sent by the appointed terminal; according to the modification request, modifying the IP address or the communication port of the specified terminal in the registration information of the specified terminal; and sending the modified IP address or communication port information of the specified terminal to all the blockchain nodes.
In one embodiment, the acquiring IP addresses of a plurality of temporary terminals of a current approval system, where the plurality of temporary terminals at least include an application terminal and an approval terminal, the blockchain deployment center is a blockchain node in a pre-configured blockchain network, and the step of pre-storing a virtual machine image and a blockchain node container image in the blockchain deployment center includes: creating a blockchain class by using a specified language, instantiating the blockchain class to obtain a created block, and setting the hash value of the previous block to be 0 in the created block; generating other blocks by adopting a preset block generation technology based on the created block, wherein the other blocks are recorded with hash values of a previous block; and taking a preset terminal as a block chain node, thereby building the block chain network.
It will be understood by those skilled in the art that the structures shown in the drawings are only block diagrams of some of the structures associated with the embodiments of the present application and do not constitute a limitation on the computer apparatus to which the embodiments of the present application may be applied.
According to the computer equipment, when the received first HASH value is the same as the prestored HASH value, whether the flow data of the first terminal meets a preset flow standard is judged, and if the flow data of the first terminal meets the preset flow standard, the first terminal is marked as a temporary terminal; collecting IP addresses of a plurality of temporary terminals of the current approval system; sending specified data to the application terminal and the approval terminal by using the IP address; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a block chain-based parallel system deployment method, applied to a block chain deployment center, and includes the following steps: receiving a first HASH value sent by a first terminal of a current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as the prestored HASH value, according to the formula:
h (t) ═ min (g (t), m), where
Figure GDA0003049747550000251
E (t) ═ f (t) -f (t), obtaining a function h (t), where f (t) is a flow function of the flow of the first terminal over time, f (t) is a preset standard flow function, e (t) is a function of the difference between the flow function f (t) and the standard flow function f (t),
Figure GDA0003049747550000252
the differential function of the difference function to the time is adopted, min refers to a minimum function, t refers to the time, and m refers to a preset error parameter value larger than 0; acquiring a first time length of H (t) on a time axis, wherein the first time length is not equal to m, and a second time length is equal to m, and according to a formula: calculating the normal flow time ratio which is the first time length/(the first time length + the second time length), and judging whether the normal flow time ratio is greater than a preset ratio threshold; if the normal traffic time ratio is larger than a preset ratio threshold, recording the first terminal as a temporary terminal; acquiring IP addresses of a plurality of temporary terminals of a current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center; sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the virtual machine mirror image and the block chain node container mirror image; receiving a block link point container image that has been installed and launched in the virtual machine imageA registration request of a specified terminal, the registration request being accompanied by information of an IP address and a communication port of the specified terminal; judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal; if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal; and sending the prestored IP addresses and communication port information of all the block chain nodes to the appointed terminal, and sending the IP addresses and communication port information of the appointed terminal to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
In one embodiment, the collecting IP addresses of a plurality of temporary terminals of the current approval system, where the plurality of temporary terminals at least include an application terminal and an approval terminal, includes: acquiring a log of the current approval system, analyzing the log to obtain a terminal participating in the application execution operation and a terminal participating in the approval execution operation of the current approval system, and recording the terminal as an initial application terminal and an initial approval terminal respectively; counting the error recording times of the initial application terminal and the initial approval terminal, acquiring the initial application terminal with the error recording times less than a preset first error quantity threshold value, and acquiring the initial approval terminal with the error recording times less than a preset second error quantity threshold value; recording the initial application terminal with the error recording times less than a preset first error quantity threshold value as an application terminal, and recording the initial approval terminal with the error recording times less than a preset second error quantity threshold value as an approval terminal; and collecting the IP addresses of the application terminal and the approval terminal.
In one embodiment, the step of sending, by using the IP address, specified data to the application terminal and the approval terminal, where the specified data at least includes the virtual machine image and the block link node container image, includes: acquiring operating system information of the application terminal and the approval terminal; selecting a correct virtual machine image matched with the operating system information from a plurality of pre-stored virtual machine images; and sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the correct virtual machine mirror image and the block chain node container mirror image.
In one embodiment, after the step of determining whether the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the method includes: if the IP address of the specified terminal is not the IP address of the application terminal and is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not; and if the IP address of the specified terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the specified terminal.
In one embodiment, the step of recording the IP address of the designated terminal and the information of the communication port if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, generating an application digital certificate or an approval digital certificate representing the identity of the designated terminal according to the IP address of the designated terminal, and sending the application digital certificate or the approval digital certificate to the designated terminal includes: if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, and generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal; analyzing the current approval system, acquiring an approval process of the current approval system, and generating an intelligent contract according to the approval process; and sending the intelligent contract to the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal.
In one embodiment, after the step of sending pre-stored information of IP addresses and communication ports of all blockchain nodes to the designated terminal and sending information of IP addresses and communication ports of the designated terminal to all blockchain nodes, so as to complete the deployment of the designated terminal in the blockchain network in parallel with the current approval system, the method includes: receiving a modification request for modifying the IP address or the communication port sent by the appointed terminal; according to the modification request, modifying the IP address or the communication port of the specified terminal in the registration information of the specified terminal; and sending the modified IP address or communication port information of the specified terminal to all the blockchain nodes.
In one embodiment, the acquiring IP addresses of a plurality of temporary terminals of a current approval system, where the plurality of temporary terminals at least include an application terminal and an approval terminal, the blockchain deployment center is a blockchain node in a pre-configured blockchain network, and the step of pre-storing a virtual machine image and a blockchain node container image in the blockchain deployment center includes: creating a blockchain class by using a specified language, instantiating the blockchain class to obtain a created block, and setting the hash value of the previous block to be 0 in the created block; generating other blocks by adopting a preset block generation technology based on the created block, wherein the other blocks are recorded with hash values of a previous block; and taking a preset terminal as a block chain node, thereby building the block chain network.
The computer-readable storage medium of the application judges whether the traffic data of the first terminal meets a preset traffic standard when the received first HASH value is the same as a prestored HASH value, and records the first terminal as a temporary terminal if the traffic data of the first terminal meets the preset traffic standard; collecting IP addresses of a plurality of temporary terminals of the current approval system; sending specified data to the application terminal and the approval terminal by using the IP address; receiving a registration request of a designated terminal; if the specified terminal is the application terminal or the approval terminal, recording the information of the registration request; and sending the information of the IP address and the communication port to the appointed terminal and all the block chain nodes, thereby finishing deployment and improving the confidentiality, the safety and the information accuracy of the approval system.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A block chain-based parallel system deployment method is applied to a block chain deployment center, and is characterized by comprising the following steps:
receiving a first HASH value sent by a first terminal of a current approval system, and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
acquiring IP addresses of a plurality of temporary terminals of a current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center;
sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the virtual machine mirror image and the block chain node container mirror image;
receiving a registration request of a designated terminal which is installed in the virtual machine mirror image and starts the block chain node container mirror image, wherein the registration request is accompanied with information of an IP address and a communication port of the designated terminal;
judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal;
and sending the prestored IP addresses and communication port information of all the block chain nodes to the appointed terminal, and sending the IP addresses and communication port information of the appointed terminal to all the block chain nodes, so that the appointed terminal is deployed in the block chain network parallel to the current approval system.
2. The method for deploying a parallel system based on a blockchain according to claim 1, wherein the step of determining whether the traffic data of the first terminal meets a preset traffic standard, and if the traffic data of the first terminal meets the preset traffic standard, marking the first terminal as a temporary terminal comprises:
according to the formula:
h (t) ═ min (g (t), m), where
Figure FDA0003049747540000021
E (t) ═ f (t) -f (t), obtaining a function h (t), where f (t) is a flow function of the flow of the first terminal over time, f (t) is a preset standard flow function, e (t) is a function of the difference between the flow function f (t) and the standard flow function f (t),
Figure FDA0003049747540000022
the differential function of the difference function to the time is adopted, min refers to a minimum function, t refers to the time, and m refers to a preset error parameter value larger than 0;
acquiring a first time length of the H (t) on a time axis, wherein the first time length is not equal to m, and a second time length is equal to m;
according to the formula: calculating the normal flow time ratio, namely the first time length/(the first time length + the second time length);
judging whether the normal flow time ratio is greater than a preset ratio threshold value or not;
and if the normal traffic time ratio is greater than a preset ratio threshold, recording the first terminal as a temporary terminal.
3. The method for deploying a block chain-based parallel system according to claim 1, wherein the step of collecting IP addresses of a plurality of temporary terminals of a current approval system, wherein the plurality of temporary terminals at least comprise an application terminal and an approval terminal, comprises:
acquiring a log of the current approval system, analyzing the log to obtain a terminal participating in the application execution operation and a terminal participating in the approval execution operation of the current approval system, and recording the terminal as an initial application terminal and an initial approval terminal respectively;
counting the error recording times of the initial application terminal and the initial approval terminal, acquiring the initial application terminal with the error recording times less than a preset first error quantity threshold value, and acquiring the initial approval terminal with the error recording times less than a preset second error quantity threshold value;
recording the initial application terminal with the error recording times less than a preset first error quantity threshold value as an application terminal, and recording the initial approval terminal with the error recording times less than a preset second error quantity threshold value as an approval terminal;
and collecting the IP addresses of the application terminal and the approval terminal.
4. The method for deploying a parallel system based on a blockchain according to claim 1, wherein the step of sending specified data to the application terminal and the approval terminal by using the IP address, the specified data including at least the virtual machine image and the block link node container image comprises:
acquiring operating system information of the application terminal and the approval terminal;
selecting a correct virtual machine image matched with the operating system information from a plurality of pre-stored virtual machine images;
and sending specified data to the application terminal and the approval terminal by using the IP address, wherein the specified data at least comprises the correct virtual machine mirror image and the block chain node container mirror image.
5. The method for deploying a parallel system based on a block chain according to claim 1, wherein the step of determining whether the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal comprises the following steps:
if the IP address of the specified terminal is not the IP address of the application terminal and is not the IP address of the approval terminal, judging whether the IP address of the specified terminal is recorded in a preset newly-added terminal IP address list or not;
and if the IP address of the specified terminal is not recorded in a preset newly-added terminal IP address list, rejecting the registration request and reducing the access priority level of the specified terminal.
6. The method for deploying a parallel system based on a block chain according to claim 1, wherein if the IP address of the designated terminal is the IP address of the application terminal or the IP address of the approval terminal, the step of recording the IP address of the designated terminal and information of a communication port, generating an application digital certificate or an approval digital certificate representing the identity of the designated terminal according to the IP address of the designated terminal, and transmitting the application digital certificate or the approval digital certificate to the designated terminal comprises:
if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, recording the IP address of the specified terminal and the information of a communication port, and generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal;
analyzing the current approval system, acquiring an approval process of the current approval system, and generating an intelligent contract according to the approval process;
and sending the intelligent contract to the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal.
7. The method for deploying a blockchain-based parallel system according to claim 1, wherein the step of sending the pre-stored information of the IP addresses and the communication ports of all blockchain nodes to the designated terminal and sending the information of the IP addresses and the communication ports of the designated terminal to all blockchain nodes so as to complete the deployment of the designated terminal in the blockchain network in parallel with the current approval system comprises the following steps:
receiving a modification request for modifying the IP address or the communication port sent by the appointed terminal;
according to the modification request, modifying the IP address or the communication port of the specified terminal in the registration information of the specified terminal;
and sending the modified IP address or communication port information of the specified terminal to all the blockchain nodes.
8. A block chain-based parallel system deployment device is applied to a block chain deployment center and is characterized by comprising:
the temporary terminal marking unit is used for receiving a first HASH value sent by a first terminal of the current approval system and judging whether the first HASH value is the same as a prestored HASH value; if the first HASH value is the same as a prestored HASH value, judging whether the flow data of the first terminal meets a preset flow standard, and if the flow data of the first terminal meets the preset flow standard, marking the first terminal as a temporary terminal;
the system comprises an IP address acquisition unit, a block chain deployment center and a block chain link point container mirror image acquisition unit, wherein the IP address acquisition unit is used for acquiring IP addresses of a plurality of temporary terminals of a current approval system, the plurality of temporary terminals at least comprise an application terminal and an approval terminal, the block chain deployment center is a block chain node in a block chain network constructed in advance, and a virtual machine mirror image and a block chain link point container mirror image are prestored in the block chain deployment center;
the appointed data sending unit is used for sending appointed data to the application terminal and the approval terminal by using the IP address, and the appointed data at least comprises the virtual machine mirror image and the block chain node container mirror image;
a registration request receiving unit configured to receive a registration request of a designated terminal that has been installed in the virtual machine image and started the block-link node container image, the registration request being accompanied by information of an IP address and a communication port of the designated terminal;
the IP address judging unit is used for judging whether the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal;
the digital certificate sending unit is used for recording the IP address of the specified terminal and the information of a communication port if the IP address of the specified terminal is the IP address of the application terminal or the IP address of the approval terminal, generating an application digital certificate or an approval digital certificate representing the identity of the specified terminal according to the IP address of the specified terminal, and sending the application digital certificate or the approval digital certificate to the specified terminal;
and the signal sending unit is used for sending the pre-stored information of the IP addresses and the communication ports of all the block chain nodes to the designated terminal and sending the information of the IP addresses and the communication ports of the designated terminal to all the block chain nodes, so that the designated terminal is deployed in the block chain network parallel to the current approval system.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910665972.5A 2019-07-23 2019-07-23 Block chain based parallel system deployment method and device and computer equipment Active CN110535654B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910665972.5A CN110535654B (en) 2019-07-23 2019-07-23 Block chain based parallel system deployment method and device and computer equipment
PCT/CN2019/117215 WO2021012500A1 (en) 2019-07-23 2019-11-11 Blockchain-based parallel system deployment method and apparatus, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910665972.5A CN110535654B (en) 2019-07-23 2019-07-23 Block chain based parallel system deployment method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110535654A CN110535654A (en) 2019-12-03
CN110535654B true CN110535654B (en) 2021-09-14

Family

ID=68661848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910665972.5A Active CN110535654B (en) 2019-07-23 2019-07-23 Block chain based parallel system deployment method and device and computer equipment

Country Status (2)

Country Link
CN (1) CN110535654B (en)
WO (1) WO2021012500A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378691A (en) * 2019-06-18 2019-10-25 重庆金融资产交易所有限责任公司 Block chain dispositions method, device and computer equipment based on deployment center
CN111382414A (en) * 2020-02-14 2020-07-07 深圳壹账通智能科技有限公司 Information processing method and platform based on block chain and electronic equipment
CN112491812B (en) 2020-07-08 2022-03-01 支付宝(杭州)信息技术有限公司 Hash updating method and device of block chain all-in-one machine
CN113971289A (en) 2020-07-08 2022-01-25 支付宝(杭州)信息技术有限公司 Trusted starting method and device of block chain all-in-one machine
CN112712452B (en) * 2020-12-02 2024-07-16 杭州趣链科技有限公司 Approval information processing method and device based on blockchain
CN115065506B (en) * 2022-05-25 2024-04-30 深圳壹盆花文创科技有限公司 Management system for identifying authenticity of artwork and authorship based on blockchain
CN116032788B (en) * 2022-12-22 2023-08-11 南凌科技股份有限公司 Method for single-arm deployment of SD-WAN system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543456A (en) * 2018-11-06 2019-03-29 北京新唐思创教育科技有限公司 Block generation method and computer storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10944546B2 (en) * 2017-07-07 2021-03-09 Microsoft Technology Licensing, Llc Blockchain object interface
CN109427012B (en) * 2017-08-22 2021-06-01 汇链丰(北京)科技有限公司 Transaction and verification method based on block chain
US11502828B2 (en) * 2017-11-15 2022-11-15 International Business Machines Corporation Authenticating chaincode to chaincode invocations of a blockchain
CN108769173B (en) * 2018-05-21 2021-11-09 阿里体育有限公司 Block chain implementation method and equipment for running intelligent contracts
CN109194506B (en) * 2018-08-16 2021-10-15 北京京东尚科信息技术有限公司 Block chain network deployment method, platform and computer storage medium
CN108965468B (en) * 2018-08-16 2021-04-30 北京京东尚科信息技术有限公司 Block chain network service platform, chain code installation method thereof and storage medium
CN109783572A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 Block chain multichain creation method, device, equipment and storage medium
CN109800056A (en) * 2019-01-16 2019-05-24 杭州趣链科技有限公司 A kind of block chain dispositions method based on container
CN109858262B (en) * 2019-01-17 2022-06-17 平安科技(深圳)有限公司 Process approval method, device and system based on block chain system and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543456A (en) * 2018-11-06 2019-03-29 北京新唐思创教育科技有限公司 Block generation method and computer storage medium

Also Published As

Publication number Publication date
WO2021012500A1 (en) 2021-01-28
CN110535654A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN110535654B (en) Block chain based parallel system deployment method and device and computer equipment
CN110910138A (en) Block chain data supervision method and device
CN108769230B (en) Transaction data storage method, device, server and storage medium
CN110597918B (en) Account management method, account management device and computer readable storage medium
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
CN107749807B (en) Network function verification method and verification system for NFV
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
CN112527912A (en) Data processing method and device based on block chain network and computer equipment
CN111478986A (en) Method, device and equipment for generating equipment fingerprint and storage medium
US11245709B2 (en) Multi-verifier approach for attestation of nodes in a network
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN110647583B (en) Block chain construction method, device, terminal and medium
CN111737104A (en) Block chain network service platform, test case sharing method thereof and storage medium
CN113098982B (en) Block chain message transmission method and device
CN113067895B (en) Method for building block chain sub-network and block chain system
US20240223390A1 (en) Blockchain system
CN113886495B (en) Method, device, electronic equipment and storage medium for verifying blockchain data
CN113259458B (en) Method and device for starting/closing block link point service
CN111193731A (en) Method and device for generating network shooting range scene description file
CN114363162A (en) Block chain log generation method and device, electronic equipment and storage medium
CN113609231A (en) Method and device for maintaining network architecture information of block chain system
CN111935195B (en) Distributed system management method, device, storage medium and distributed management system
CN112181599A (en) Model training method, device and storage medium
CN113259466B (en) Block chain subnet operation state control method and block chain system
CN113259459B (en) Block chain subnet operation state control method and block chain system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant