CN110222535B - Processing device, method and storage medium for block chain configuration file - Google Patents

Processing device, method and storage medium for block chain configuration file Download PDF

Info

Publication number
CN110222535B
CN110222535B CN201910370494.5A CN201910370494A CN110222535B CN 110222535 B CN110222535 B CN 110222535B CN 201910370494 A CN201910370494 A CN 201910370494A CN 110222535 B CN110222535 B CN 110222535B
Authority
CN
China
Prior art keywords
information
newly added
configuration
organization
nodes
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
CN201910370494.5A
Other languages
Chinese (zh)
Other versions
CN110222535A (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 CN201910370494.5A priority Critical patent/CN110222535B/en
Priority to PCT/CN2019/102205 priority patent/WO2020224100A1/en
Publication of CN110222535A publication Critical patent/CN110222535A/en
Application granted granted Critical
Publication of CN110222535B publication Critical patent/CN110222535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a blockchain technology, and discloses a processing device, a processing method and a storage medium of a blockchain configuration file, wherein the processing method comprises the following steps: when an organization is newly added in a blockchain of the alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed; receiving the written configuration information of the nodes and the chains of the newly added mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration chains so that all the nodes in the configuration chains can synchronously obtain the configuration files of the newly added mechanism through a consensus mechanism. The method and the system can enable the nodes in the multiple chains to acquire the configuration files of the newly-added mechanism in time, and improve timeliness of the multiple-chain interaction.

Description

Processing device, method and storage medium for block chain configuration file
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a processing device, a processing method, and a storage medium for a blockchain configuration file.
Background
Blockchains are generally understood to be a distributed ledger, which is also a distributed database in nature. Multiple chains are introduced in the federated chain scenario, each of which can add new organizations. Many current applications of blockchain multichains require the use of information in configuration files that include information about the new organization, such as address information, node information, etc. When a new organization joins the federation chain, the existing configuration files are not applicable to the new multi-chain structure, and due to the complexity of interaction between the federation chains, nodes in the multi-chain often cannot acquire the configuration files of the new organization in time, and the timeliness of interaction between the nodes of the multi-chain is affected.
Disclosure of Invention
The invention aims to provide a processing device, a processing method and a storage medium for a blockchain configuration file, which aim to enable nodes in a multi-chain to acquire the configuration file of a new mechanism in time and improve timeliness of multi-chain interaction.
In order to achieve the above object, the present invention provides a processing device for a blockchain configuration file, where the processing device for a blockchain configuration file includes a memory and a processor connected to the memory, where a processing system that can run on the processor is stored in the memory, and when the processing system is executed by the processor, the following steps are implemented:
when an organization is newly added in a blockchain of the alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed;
receiving the written configuration information of the nodes and the chains of the newly added mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration chains so that all the nodes in the configuration chains can synchronously obtain the configuration files of the newly added mechanism through a consensus mechanism.
Preferably, the information to be verified includes a digital certificate for digitally signing the newly added organization and identity information of the newly added organization, and the step of verifying validity of the newly added organization based on the information to be verified specifically includes:
verifying the validity of the digital certificate;
if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism;
if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain.
Preferably, the configuration information includes address information of a node of the new mechanism and intelligent contract information included in the node, and when the processing system is executed by the processor, the following steps are further implemented:
acquiring intelligent contract information of a configuration file of the newly added mechanism from the configuration chain, and if a node in the node of the newly added mechanism is not provided with the monitoring intelligent contract, sending an instruction for installing the monitoring intelligent contract to a corresponding node based on the address information so that the node can install the monitoring intelligent contract;
and monitoring system state information and service information of the node corresponding to the address information based on the monitoring intelligent contract.
Preferably, when the processing system is executed by the processor, the following steps are also implemented:
and receiving the system state information and the service information fed back by each node, sending the system state information and the service information to the terminal for display, respectively analyzing the system state information and the service information, and if the system state information and/or the service information are/is analyzed to be abnormal information, carrying out early warning on the abnormal information.
In order to achieve the above object, the present invention further provides a method for processing a blockchain configuration file, where the method for processing a blockchain configuration file includes:
s1, when an organization is newly added in a block chain of a alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed;
s2, receiving the written configuration information of the nodes and the links of the new mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration links so that all the nodes in the configuration links can synchronously obtain the configuration files of the new mechanism through a consensus mechanism.
Preferably, the information to be verified includes a digital certificate for digitally signing the newly added organization and identity information of the newly added organization, and the step of verifying validity of the newly added organization based on the information to be verified specifically includes:
verifying the validity of the digital certificate;
if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism;
if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain.
Preferably, the configuration information includes address information of a node of the new mechanism and intelligent contract information included in the node, and after step S2, the method further includes:
acquiring intelligent contract information of a configuration file of the newly added mechanism from the configuration chain, and if a node in the node of the newly added mechanism is not provided with the monitoring intelligent contract, sending an instruction for installing the monitoring intelligent contract to a corresponding node based on the address information so that the node can install the monitoring intelligent contract;
and monitoring system state information and service information of the node corresponding to the address information based on the monitoring intelligent contract.
Preferably, the processing method of the blockchain configuration file further includes:
and receiving the system state information and the service information fed back by each node, sending the system state information and the service information to the terminal for display, respectively analyzing the system state information and the service information, and if the system state information and/or the service information are/is analyzed to be abnormal information, carrying out early warning on the abnormal information.
Preferably, after the step S2, the method further includes: pushing the configuration file of the new mechanism to the client for the client to store the configuration file of the new mechanism locally.
The present invention also provides a computer readable storage medium having stored thereon a processing system that when executed by a processor implements the steps of the blockchain profile processing method of blockchain profiles described above.
The beneficial effects of the invention are as follows: when an organization is newly added in a blockchain of a alliance chain, the validity of the newly added organization is verified, the organization passing verification is added into a preset configuration chain, then the configuration information of the nodes and the links of the newly added organization is written into the configuration chain, and a configuration file is generated, so that all the nodes in the configuration chain can synchronously obtain the configuration file of the newly added organization through a consensus mechanism.
Drawings
FIG. 1 is a schematic view of an alternative application environment according to various embodiments of the present invention;
FIG. 2 is a block chain configuration file processing device according to an embodiment of the present invention;
FIG. 3 is a block diagram of one embodiment of the processing system of FIG. 2;
FIG. 4 is a flowchart illustrating an exemplary method for processing a blockchain configuration file according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Referring to fig. 1, a schematic view of an application environment of a preferred embodiment of the present invention is shown. In this embodiment, the plurality of nodes form a blockchain and the plurality of blockchains form a coalition chain. When a new mechanism of a block chain is added, at least one node corresponding to the new mechanism needs to be added. In this embodiment, the processing apparatus 1 of the blockchain configuration file may be any device in the coalition chain. In FIG. 1, the federated chain includes blockchain 1 and blockchain 2, with node 5 being added to blockchain 1 as a node of the newly added organization.
The processing device 1 of the blockchain configuration file is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction. The processing device 1 of the blockchain configuration file may be a computer, a single network server, a server group formed by a plurality of network servers, or a cloud based on cloud computing, wherein the cloud computing is one of distributed computing and is a super virtual computer formed by a group of loosely coupled computer sets.
Referring to fig. 2, in the present embodiment, the processing device 1 of the blockchain configuration file may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 that may be communicatively connected to each other through a system bus, where the memory 11 stores a processing system that may run on the processor 12. It should be noted that fig. 2 only shows the processing device 1 having the blockchain configuration file of components 11-13, but it should be understood that not all of the illustrated components are required to be implemented, and that more or fewer components may alternatively be implemented.
Wherein the storage 11 comprises a memory and at least one type of readable storage medium. The memory provides a buffer for the operation of the processing device 1 of the blockchain configuration file; the readable storage medium may be a non-volatile storage medium such as flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the readable storage medium may be an internal storage unit of the processing apparatus 1 of a blockchain profile, such as a hard disk of the processing apparatus 1 of the blockchain profile; in other embodiments, the nonvolatile storage medium may also be an external storage device of the processing apparatus 1 of the blockchain profile, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like provided on the processing apparatus 1 of the blockchain profile. In this embodiment, the readable storage medium of the memory 11 is typically used for storing an operating system and various application software of the processing apparatus 1 installed in the blockchain configuration file, for example, for storing program codes of the processing system 10 in an embodiment of the present invention. Further, the memory 11 may be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip for executing program code or processing data stored in the memory 11, such as for executing the processing system 10, etc.
The network interface 13 may comprise a standard wireless network interface, a wired network interface, which network interface 13 is typically used to establish a communication connection between the processing apparatus 1 of the blockchain profile and other electronic devices. Typically for establishing a communication connection between the processing device 1 of the blockchain profile and other electronic devices.
The processing system 10 is stored in a memory 11 and includes at least one computer readable instruction stored in the memory 11 that is executable by a processor 12 to implement the methods of the embodiments of the present application; and, the at least one computer readable instruction may be divided into different logic modules, depending on the functionality implemented by the parts thereof.
In one embodiment, the processing system 10, when executed by the processor 12, performs the following steps:
when an organization is newly added in a blockchain of the alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed;
receiving the written configuration information of the nodes and the chains of the newly added mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration chains so that all the nodes in the configuration chains can synchronously obtain the configuration files of the newly added mechanism through a consensus mechanism.
Referring now to FIG. 3, a block diagram illustrating a process of the processing system 10 of FIG. 2 is shown. The processing system 10 is divided into a plurality of modules which are stored in the memory 11 and executed by the processor 12 to complete the present invention. The invention may refer to a series of computer program instruction segments capable of performing a specified function.
The processing system 10 may be partitioned into: joining module 101, processing module 102.
The joining module 101 is configured to receive information to be verified of a newly added mechanism when the mechanism is newly added in a blockchain of the federation chain, perform validity verification on the newly added mechanism based on the information to be verified, and join nodes of the newly added mechanism into a predetermined configuration chain constructed by all nodes in the federation chain after the verification is passed;
in the alliance chain scene, a fixed chain is designated as a configuration chain, a newly added organization is added into the configuration chain while the newly added organization is added into the blockchain, all other nodes in the alliance chain are added into the configuration chain, and the configuration chain is specially used for storing all configuration files of the whole alliance chain.
The method comprises the steps of introducing a validity verification mechanism to improve the security of a blockchain, and adding configuration chains to legal institutions only by carrying out validity verification on the newly added institutions when the institutions are added in the alliance chains.
The information to be verified comprises a digital certificate for digitally signing the newly added organization and identity information of the newly added organization, and in an embodiment, the verifying the validity of the newly added organization based on the information to be verified comprises: verifying the validity of the digital certificate; if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism; if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain. If the digital certificate is illegal or the identity information of the owner of the digital certificate is inconsistent with the identity information of the newly added mechanism, judging that the identity of the newly added mechanism is illegal, and not allowing the newly added mechanism to be added into the configuration chain.
The processing module 102 is configured to receive the written configuration information of the nodes and the links of the new mechanism, generate a configuration file from the configuration information, and write the configuration file into the configuration links, so that all nodes in the configuration links can obtain the configuration file of the new mechanism through synchronization of a consensus mechanism.
Wherein, add new organization and node by the system administrator, after adding, the system administrator uses the administrator identity, write the configuration information of the node and chain of this new organization into the configuration chain, including: and receiving configuration information of the nodes and chains of the newly added mechanism written by an administrator, wherein the configuration information comprises which chains the nodes of the newly added mechanism belong to, IP address and port information of the nodes, intelligent contracts included by the nodes and the like.
All nodes on the configuration chain synchronously obtain the configuration file of the newly added mechanism through a consensus mechanism, wherein the consensus mechanism can be POW, POS, DPOS, paxos, raft, PBFT and the like, and the configuration information of the newly added mechanism can be publicly shared through the consensus mechanism.
According to the method, the node in the multi-link can acquire the configuration file of the new mechanism in time, and the timeliness of multi-link interaction is improved.
The specific principle is described with reference to fig. 4 below with respect to a flowchart of the method.
As shown in fig. 4, fig. 4 is a flowchart illustrating an embodiment of a processing method of a blockchain profile according to the present invention, wherein the processor 12 of the blockchain profile processing device 1 implements the following steps when executing the processing system 10 stored in the memory 11:
step S1, when an organization is newly added in a blockchain of a alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed;
in the scenario of the alliance chain, a fixed chain is designated as a configuration chain, a newly added organization joins the blockchain, and meanwhile, a node of the newly added organization is added into the configuration chain, and all other nodes in the alliance chain are added into the configuration chain.
The method comprises the steps of introducing a validity verification mechanism to improve the security of a blockchain, and adding configuration chains to legal institutions only by carrying out validity verification on the newly added institutions when the institutions are added in the alliance chains.
The information to be verified comprises a digital certificate for digitally signing the newly added organization and identity information of the newly added organization, and in an embodiment, the verifying the validity of the newly added organization based on the information to be verified comprises: verifying the validity of the digital certificate; if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism; if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain. If the digital certificate is illegal or the identity information of the owner of the digital certificate is inconsistent with the identity information of the newly added mechanism, judging that the identity of the newly added mechanism is illegal, and not allowing the newly added mechanism to be added into the configuration chain.
Step S2, receiving the written configuration information of the nodes and chains of the newly added mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration chains so that all the nodes in the configuration chains can synchronously obtain the configuration files of the newly added mechanism through a consensus mechanism.
Wherein, add new organization and node by the system administrator, after adding, the system administrator uses the administrator identity, write the configuration information of the node and chain of this new organization into the configuration chain, including: and receiving configuration information of the nodes and chains of the newly added mechanism written by an administrator, wherein the configuration information comprises which chains the nodes of the newly added mechanism belong to, IP addresses and port information (namely address information) of the nodes, intelligent contracts included by the nodes and the like.
All nodes on the configuration chain synchronously obtain the configuration file of the newly added mechanism through a consensus mechanism, wherein the consensus mechanism can be POW, POS, DPOS, paxos, raft, PBFT and the like, and the configuration information of the newly added mechanism can be publicly shared through the consensus mechanism.
Further, each node may also push the configuration file to the blockchain client through a message pushing mechanism, so that the client may store the configuration file locally. In this way, the client can also timely acquire the configuration file of the new mechanism, and can use the configuration file in other application scenes, for example, update an endorsement policy by using the configuration file of the new mechanism.
In the alliance chain scene, the blockchain nodes are relatively fewer, so whether each node operates normally or not needs to be monitored, and the current state of each node can be obtained through monitoring the nodes. In an embodiment, on the basis of the foregoing embodiment, after step S2, the method further includes:
acquiring intelligent contract information of a configuration file of the newly added mechanism from the configuration chain, and if a node in the node of the newly added mechanism is not provided with the monitoring intelligent contract, sending an instruction for installing the monitoring intelligent contract to a corresponding node based on the address information so that the node can install the monitoring intelligent contract;
and monitoring system state information and service information of the node corresponding to the address information based on the monitoring intelligent contract.
Further, monitoring of all nodes in the federation chain may be achieved through configuration files of all nodes in the configuration chain.
Further, the monitoring smart contract may also be a system smart contract, i.e. a smart contract built in the system, which exists and can provide services after the creation of block link points, without requiring additional resources. After the nodes of the newly added mechanism are started, the intelligent contract of the system is automatically installed without sending instructions for installation, so that the operation and maintenance workload is reduced.
The monitoring of the nodes by using the monitoring intelligent contract comprises the monitoring of system state information and service information, and the monitoring comprises the following steps: after the block chain is initialized, a call request is initiated to call the monitoring intelligent contracts of each node respectively to monitor the nodes, and then each node subsequently executes the monitoring intelligent contracts on a regular basis to monitor.
The system state information may include a current running state of the system, cpu information, memory occupation information, blockchain height information, and the like; the business information may include blockchain current transaction count, current transaction asset total, etc., and different businesses may customize the monitoring of different business information.
In one embodiment, the method further comprises: receiving system state information and service information fed back by each node, sending the system state information and the service information to a terminal for display, and respectively analyzing the system state information and the service information; if the system state information and/or the service information are/is analyzed to be abnormal information, the abnormal information is pre-warned.
The abnormal system state information comprises memory shortage alarming, insufficient magnetic disk, block incapable of writing, abnormal intelligent contract execution, block height change speed greater than preset speed and the like, and the abnormal business information comprises abnormal transaction information (for example, transaction speed greater than preset transaction speed), suspected illegal transaction detection and the like, and different standards for judging business abnormality can be customized according to different businesses.
When the system state information and/or the service information is abnormal information, for example, in the case where the remaining capacity of the storage device used for the blockchain data is less than 10%, an early warning is performed.
The monitoring intelligent contracts may be executed periodically, for example, the monitoring intelligent contracts on each blockchain node are called remotely in turn, and the intelligent contract engine on the node executes the monitoring intelligent contracts, which call the query interface. The intelligent contract engine reads cpu information, memory occupation information and the like through a standard system state acquisition interface, and returns the cpu information, the memory occupation information and the like to the monitoring intelligent contract so as to feed back.
Further, the nodes may employ conventional system tools for monitoring when executing the monitoring intelligence contracts. For example, on the Linux operating system, top, htop commands are used to monitor memory and CPU usage, ss commands are used to monitor network bandwidth usage, iostat commands are used to view data storage device usage, and so on.
The system state information and the service information of the blockchain can be respectively converted into a graphical form for display while the system state information and the service information of the blockchain are displayed, so that the system state information and the service information can be displayed more intuitively.
Further, when the storage space of the storage device of the node used for the blockchain data is insufficient, for example, when the remaining capacity is lower than 10%, a capacity expansion process may be performed, that is, the data to be stored is stored on the designated chain, without affecting the data on other chains.
Compared with the prior art, when an organization is newly added in the blockchain of the alliance chain, the validity of the newly added organization is verified, the organization passing verification is added into the preset configuration chain, then the configuration information of the nodes and the chains of the newly added organization is written into the configuration chain, and the configuration file is generated, so that all the nodes in the configuration chain can synchronously obtain the configuration file of the newly added organization through a consensus mechanism.
In addition, the embodiment of the invention also provides a computer readable storage medium, which can be any one or any combination of a plurality of hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory and the like. The computer readable storage medium includes a processing system, and the processing system performs the functions when executed by the processor, as described above with reference to fig. 3 and 4, which are not repeated herein.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A processing device for a blockchain configuration file, wherein the processing device for a blockchain configuration file comprises a memory and a processor connected with the memory, wherein a program of a processing system capable of running on the processor is stored in the memory, and the following steps are realized when the program of the processing system is executed by the processor:
when an organization is newly added in a blockchain of a alliance chain, receiving information to be verified of the newly added organization, verifying legality of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed, wherein the information to be verified comprises a digital certificate for digitally signing the newly added organization and identity information of the newly added organization;
receiving written configuration information of nodes and chains of the newly added mechanism, generating configuration files by the configuration information, writing the configuration files into the configuration chains, and enabling all nodes in the configuration chains to synchronously obtain the configuration files of the newly added mechanism through a consensus mechanism, wherein the configuration information comprises address information of the nodes of the newly added mechanism and intelligent contract information included by the nodes.
2. The blockchain profile processing device of claim 1, wherein the information to be verified includes a digital certificate for digitally signing the new organization and identity information of the new organization, and the step of verifying legitimacy of the new organization based on the information to be verified specifically includes:
verifying the validity of the digital certificate;
if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism;
if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain.
3. The apparatus according to claim 1 or 2, wherein the configuration information includes address information of a node of a newly added mechanism and intelligent contract information included in the node, and the program of the processing system when executed by the processor further implements the steps of:
acquiring intelligent contract information of a configuration file of the newly added mechanism from the configuration chain, and if a node in the node of the newly added mechanism is not provided with the monitoring intelligent contract, sending an instruction for installing the monitoring intelligent contract to a corresponding node based on the address information so that the node can install the monitoring intelligent contract;
and monitoring system state information and service information of the node corresponding to the address information based on the monitoring intelligent contract.
4. The blockchain profile processing device of claim 3, wherein the program of the processing system, when executed by the processor, further performs the steps of:
and receiving the system state information and the service information fed back by each node, sending the system state information and the service information to the terminal for display, respectively analyzing the system state information and the service information, and if the system state information and/or the service information are/is analyzed to be abnormal information, carrying out early warning on the abnormal information.
5. The processing method of the block chain configuration file is characterized by comprising the following steps:
s1, when an organization is newly added in a block chain of a alliance chain, receiving information to be verified of the newly added organization, verifying validity of the newly added organization based on the information to be verified, and adding nodes of the newly added organization into a preset configuration chain constructed by all nodes in the alliance chain after verification is passed, wherein the information to be verified comprises a digital certificate for digitally signing the newly added organization and identity information of the newly added organization;
s2, receiving the written configuration information of the nodes and chains of the new mechanism, generating configuration files from the configuration information, and writing the configuration files into the configuration chains so that all the nodes in the configuration chains can synchronously obtain the configuration files of the new mechanism through a consensus mechanism, wherein the configuration information comprises address information of the nodes of the new mechanism and intelligent contract information included by the nodes.
6. The method for processing a blockchain configuration file according to claim 5, wherein the step of verifying the validity of the added mechanism based on the information to be verified specifically includes:
verifying the validity of the digital certificate;
if the digital certificate is legal, acquiring the identity information of an owner of the digital certificate, and comparing the identity information of the owner with the identity information of the newly added mechanism;
if the identity information of the owner is consistent with the identity information of the newly added mechanism, the identity of the newly added mechanism is judged to be legal, and the newly added mechanism is allowed to be added into the configuration chain.
7. The method according to claim 5 or 6, further comprising, after step S2:
acquiring intelligent contract information of a configuration file of the newly added mechanism from the configuration chain, and if a node in the node of the newly added mechanism is not provided with the monitoring intelligent contract, sending an instruction for installing the monitoring intelligent contract to a corresponding node based on the address information so that the node can install the monitoring intelligent contract;
and monitoring system state information and service information of the node corresponding to the address information based on the monitoring intelligent contract.
8. The method of claim 7, further comprising:
and receiving the system state information and the service information fed back by each node, sending the system state information and the service information to the terminal for display, respectively analyzing the system state information and the service information, and if the system state information and/or the service information are/is analyzed to be abnormal information, carrying out early warning on the abnormal information.
9. The method according to claim 5 or 6, further comprising, after step S2: pushing the configuration file of the new mechanism to the client for the client to store the configuration file of the new mechanism locally.
10. A computer readable storage medium, wherein a program of a processing system is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the blockchain profile processing method of any of claims 5 to 9.
CN201910370494.5A 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file Active CN110222535B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910370494.5A CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file
PCT/CN2019/102205 WO2020224100A1 (en) 2019-05-06 2019-08-23 Blockchain configuration file processing apparatus, system, and method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910370494.5A CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file

Publications (2)

Publication Number Publication Date
CN110222535A CN110222535A (en) 2019-09-10
CN110222535B true CN110222535B (en) 2024-03-12

Family

ID=67820332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910370494.5A Active CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file

Country Status (2)

Country Link
CN (1) CN110222535B (en)
WO (1) WO2020224100A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650193B (en) * 2019-09-20 2021-06-25 腾讯科技(深圳)有限公司 Node management method, cluster management device and storage medium
CN112416396B (en) * 2020-11-20 2023-11-03 泰康保险集团股份有限公司 Application program updating method and system
CN115426256B (en) * 2021-05-31 2024-07-02 中移雄安信息通信科技有限公司 Alliance chain configuration method, device and storage medium
CN113946439B (en) * 2021-09-28 2025-09-30 天翼物联科技有限公司 Cloud host resource supervision method, system and storage medium based on blockchain
CN114499835B (en) * 2021-12-23 2023-06-20 杭州溪塔科技有限公司 Newly added node configuration method and system in alliance chain
CN116542768A (en) * 2022-01-25 2023-08-04 中银金融科技有限公司 Method for processing batch transaction, electronic device, storage medium and program product
CN114928558B (en) * 2022-06-14 2023-12-12 上海万向区块链股份公司 Operation and maintenance method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN108416589A (en) * 2018-03-08 2018-08-17 深圳前海微众银行股份有限公司 Blockchain node connection method, system and computer-readable storage medium
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
CN109474584A (en) * 2018-10-29 2019-03-15 中化能源科技有限公司 A rule-based automatic permission joining method for blockchain network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10636033B2 (en) * 2016-02-22 2020-04-28 Bank Of America Corporation System for routing of process authorizations and settlement to a user in a process data network
CN107360001B (en) * 2017-07-26 2021-12-14 创新先进技术有限公司 A digital certificate management method, device and system
CN110033373A (en) * 2019-03-12 2019-07-19 平安科技(深圳)有限公司 Device, method and the storage medium endorsed in block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
CN108416589A (en) * 2018-03-08 2018-08-17 深圳前海微众银行股份有限公司 Blockchain node connection method, system and computer-readable storage medium
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
CN109474584A (en) * 2018-10-29 2019-03-15 中化能源科技有限公司 A rule-based automatic permission joining method for blockchain network

Also Published As

Publication number Publication date
WO2020224100A1 (en) 2020-11-12
CN110222535A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110597918B (en) Account management method, account management device and computer readable storage medium
WO2021174870A1 (en) Network security risk inspection method and system, computer device, and storage medium
CN111885050B (en) Data storage method and device based on block chain network, related equipment and medium
CN108491301B (en) Electronic device, abnormality early warning method based on redis and storage medium
CN111131221B (en) Interface checking device, method and storage medium
CN112818307B (en) User operation processing method, system, equipment and computer readable storage medium
CN111880919B (en) Data scheduling method, system and computer equipment
CN111324654A (en) Interface calling method, system, computer device and computer readable storage medium
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN113885995A (en) Data processing method and device
CN111708795B (en) Object identification generation method, object identification updating device, computer equipment and medium
CN109905407B (en) Management method, system, device and medium for accessing intranet based on VPN server
CN115168489A (en) Data evidence storage method and device based on block chain
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN116760632B (en) Data processing method, device, equipment and readable storage medium
CN114362960B (en) Resource account data supervision method, device, computer equipment and medium
CN114942797B (en) System configuration method, device, equipment and storage medium based on side car mode
CN112115020B (en) Database connection pool abnormity monitoring method and device and computer equipment
CN111984484A (en) Non-invasive micro-service access method and system
CN113221151A (en) Data processing method and device based on block chain and storage medium
CN112632192A (en) Node maintenance method and device, computer equipment and medium
CN111752600A (en) Code abnormality detection method, device, computer equipment and storage medium
CN116975158B (en) Request processing method, apparatus, computer device and storage medium

Legal Events

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