Nothing Special   »   [go: up one dir, main page]

CN113259487A - Regulation and control data storage and certification sharing method and system - Google Patents

Regulation and control data storage and certification sharing method and system Download PDF

Info

Publication number
CN113259487A
CN113259487A CN202110703872.4A CN202110703872A CN113259487A CN 113259487 A CN113259487 A CN 113259487A CN 202110703872 A CN202110703872 A CN 202110703872A CN 113259487 A CN113259487 A CN 113259487A
Authority
CN
China
Prior art keywords
data
storage
source
structured
blockchain node
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.)
Granted
Application number
CN202110703872.4A
Other languages
Chinese (zh)
Other versions
CN113259487B (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.)
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
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 China Electric Power Research Institute Co Ltd CEPRI filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN202110703872.4A priority Critical patent/CN113259487B/en
Publication of CN113259487A publication Critical patent/CN113259487A/en
Application granted granted Critical
Publication of CN113259487B publication Critical patent/CN113259487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • 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)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种调控数据存证共享方法及系统,所述方法包括以下步骤:多个区块链节点中的数据输入端区块链节点获取请求信息并解析,获得解析结果;解析结果为数据录入请求时,数据输入端区块链节点获取源端数据并解析,获得源端数据解析结果;源端数据解析结果为源端数据为结构化数据时,将数据ID和结构化字符串基于共识算法形成分布式账本存储;源端数据解析结果为源端数据为非结构化数据时,为源端数据生成表示文件指针的内部结构化字符串,将数据ID和内部结构化字符串基于共识算法形成分布式账本存储。本发明能够适用于电网场景中涉及到的数据存证共享,能够满足对调控数据可靠性和交互性的要求。

Figure 202110703872

The invention discloses a method and system for regulating data storage and sharing. The method includes the following steps: a data input end blockchain node in a plurality of blockchain nodes obtains request information and parses it, and obtains a parsing result; the parsing result is: When a data entry request is made, the blockchain node at the data input end obtains and parses the source data, and obtains the source data parsing result; when the source data parsing result is that the source data is structured data, the data ID and structured string are based on the data. The consensus algorithm forms distributed ledger storage; when the source data analysis result is that the source data is unstructured data, an internal structured string representing the file pointer is generated for the source data, and the data ID and internal structured string are based on consensus Algorithms form distributed ledger storage. The invention can be applied to the data storage and certificate sharing involved in the power grid scenario, and can meet the requirements for the reliability and interactivity of the regulation data.

Figure 202110703872

Description

Regulation and control data storage and certification sharing method and system
Technical Field
The invention belongs to the technical field of power automation, relates to the field of block chains and regulation and control data processing, and particularly relates to a regulation and control data storage and evidence sharing method and system.
Background
At present, the regulation and control data volume is increased in an explosive mode, and the related data types are diversified; in the aspect of data use and maintenance, data maintenance processes are increasingly complex, cross-department and cross-scheduling data interaction is increasingly frequent, and higher requirements are put forward on the reliability and interactivity of the control data. For example, the regulation cloud is an innovative application of information communication technologies such as 'cloud large object moving intelligent chain' and the like in the regulation field, and a regulation cloud platform is combined with a regulation business production organization mode and follows the regulation system 'unified scheduling and hierarchical management' principle to construct a two-stage deployment regulation cloud system of a cross-scheduling mechanism. With the continuous promotion of the construction of the regulation cloud, the regulation cloud becomes one of important data collection centers of the regulation business, the data quantity collected on the regulation cloud is increased in an explosive mode, and the related data types are diversified.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. From the application essence, the block chain is a distributed shared account book and a database, and has the characteristics of decentralization, no tampering, trace leaving in the whole process, traceability, collective maintenance, public transparency and the like. With the great success of the block chain technology in the currency and finance field, experts and scholars in various industries such as internet of things, social management, medicine, transportation and the like gradually begin to research and explore the industrial application value of the block chain. The current general block chain system is mostly designed around money and transaction in the financial field, and the general block chain is directly used as a platform for sharing data certificates, so that the service scene is quite limited, and the reason is as follows: the blockchain refers to the data storage structure at the bottom layer in the digital currency system 'bitcoin' system at first, and later along with the development of digital currency, the blockchain is favored by researchers as a technology for solving the 'trust' problem in data storage, so most mature blockchain systems are more suitable for the financial field and not other fields in terms of data storage types and data storage interfaces.
Disclosure of Invention
The invention aims to provide a method and a system for regulating and controlling data storage and evidence sharing so as to solve one or more technical problems. The invention provides a regulation and control data evidence sharing method based on functional improvement of a block chain, is applicable to data evidence sharing involved in a power grid scene, and can meet the requirements on the reliability and the interactivity of the regulation and control data.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention relates to a regulation and control data storage and evidence sharing method, which comprises the following steps:
acquiring a data entry request by a data input end block chain node;
according to a data entry request, the data input end block chain node acquires source end data and analyzes the data type of the source end data;
writing the source end data of the structured data into a data input end block chain node for local storage according to the data type of the source end data;
converting the storage address of the source end data of the unstructured data into a structured character string according to the data type of the source end data, and writing the structured character string into a data input end block chain node for local storage;
and outputting the data type of the source end data and the source end data based on a preset consensus algorithm among the block chain nodes to perform distributed account book storage.
The further improvement of the present invention is that the step of writing the source end data of the structured data into the data input end block chain node for local storage specifically includes:
and writing the data ID and the structural character string of the source end data of the structural data into a data input end block chain node for local storage.
The further improvement of the present invention lies in that the step of converting the storage address of the source end data of the unstructured data into a structured character string, and writing the structured character string into the data input end block chain node for local storage specifically includes:
and generating an internal structural character string of a source end data pointer representing the unstructured data for the source end data of the unstructured data, and writing the data ID of the source end data of the unstructured data and the internal structural character string into a data input end block chain node for local storage.
The invention further improves the method, after completing the local storage, the method also comprises the following steps:
acquiring a data verification request by a data input end block chain node;
and according to the data verification request, the data input end block chain node acquires the data ID of the source end data and performs local verification to acquire a local verification result.
A further refinement of the invention is that the source data comprises structured data in the format (ID, structured string) and unstructured data in the format (ID, file).
The invention relates to a regulation and control data storage and evidence sharing method, which comprises the following steps:
the data type of the source end data is obtained by the data storage end block chain node, and the data type of the source end data is obtained by analyzing the source end data by the data input end block chain node;
writing source end data of the structured data into a block chain node of a data storage end to perform distributed account book storage;
and converting the storage address of the source end data of the unstructured data into a structured character string, and writing the structured character string into a block chain node of a data storage end to perform distributed account book storage.
The further improvement of the present invention is that the step of writing the source end data of the structured data into the data storage end block chain node for distributed account book storage specifically includes:
and writing the data ID and the structural character string of the source end data of the structural data into the block chain nodes of the data storage end based on a preset consensus algorithm among the block chain nodes for synchronous storage, so as to form distributed account book storage.
The further improvement of the present invention is that the step of converting the storage address of the source end data of the unstructured data into a structured character string, and writing the structured character string into the block chain node of the data storage end to perform distributed ledger storage specifically includes:
and generating an internal structural character string of a source end data pointer representing unstructured data for source end data of the unstructured data, and writing a data ID of the source end data of the unstructured data and the internal structural character string into a block chain node of a data storage end for synchronous storage based on a preset consensus algorithm between the block chain nodes to form distributed account book storage.
The invention is further improved in that after the distributed ledger storage is finished, the method further comprises the following steps:
the data storage end block chain node acquires a local verification result, and the local verification result is obtained by performing local verification on the data input end block chain node;
judging whether the local verification result passes or not; when the local verification result passes, acquiring a data verification request of the local verification, and performing synchronous verification in the block chain node of the data storage terminal based on a consensus algorithm to obtain a verification query result; and when the local verification result is failed, stopping inquiring and outputting the verification failure result.
The invention relates to a regulation and control data storage and evidence sharing method, which comprises the following steps:
acquiring a data entry request by a data input end block chain node; according to a data entry request, the data input end block chain node acquires source end data and analyzes the data type of the source end data; writing the source end data of the structured data into a data input end block chain node for local storage according to the data type of the source end data; converting the storage address of the source end data of the unstructured data into a structured character string according to the data type of the source end data, and writing the structured character string into a data input end block chain node for local storage;
outputting the data type of the source end data and the source end data to the block chain nodes of the data storage end based on a consensus algorithm preset among the block chain nodes; writing source end data of the structured data into a block chain node of a data storage end to perform distributed account book storage; and converting the storage address of the source end data of the unstructured data into a structured character string, and writing the structured character string into a block chain node of a data storage end to perform distributed account book storage.
The invention relates to a regulation and control data storage and certification sharing system, which comprises:
the request acquisition module is used for acquiring a data entry request by the data input end block chain node;
the data analysis module is used for acquiring source end data by the data input end block chain node according to the data entry request and analyzing the data type of the source end data;
the data distribution module is used for writing the source end data of the structured data into a data input end block link node for local storage according to the data type of the source end data; converting the storage address of the source end data of the unstructured data into a structured character string according to the data type of the source end data, and writing the structured character string into a data input end block chain node for local storage; and outputting the data type of the source end data and the source end data based on a preset consensus algorithm among the block chain nodes to perform distributed account book storage.
The invention relates to a regulation and control data storage and certification sharing system, which comprises:
the data type acquisition module is used for acquiring the data type of the source end data by the data storage end block chain node, wherein the data type of the source end data is acquired by analyzing the source end data by the data input end block chain node;
the distributed account book storage control module is used for writing source end data of the structured data into a data storage end block chain node to store the distributed account book; and converting the storage address of the source end data of the unstructured data into a structured character string, and writing the structured character string into a block chain node of a data storage end to perform distributed account book storage.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a data interaction method suitable for regulation and control data evidence storage and sharing based on a block chain distributed account book technology and considering regulation and control data interaction function requirements, and can realize general storage of structured and unstructured data in regulation and control business and realize on-chain evidence storage and sharing of regulation and control data. The invention solves the problems of storage efficiency and credible sharing under the condition of large-batch regulation and control data sharing, and can meet the requirements on the reliability and interactivity of the regulation and control data.
In the invention, in order to avoid resource waste caused by excessive data volume of the distributed account book, a lightweight node and a common node are further designed for supporting different services such as data writing, data verification and the like.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art are briefly introduced below; it is obvious that the drawings in the following description are some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a block diagram of a conventional general blockchain architecture;
fig. 2 is a schematic diagram of a regulation and control cloud data evidence sharing system based on a block chain according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a client in an embodiment of the invention;
FIG. 4 is a diagram of a server in an embodiment of the present invention;
fig. 5 is a schematic diagram of distributed billing management in an embodiment of the invention.
Detailed Description
In order to make the purpose, technical effect and technical solution of the embodiments of the present invention clearer, the following clearly and completely describes the technical solution of the embodiments of the present invention with reference to the drawings in the embodiments of the present invention; it is to be understood that the described embodiments are only some of the embodiments of the present invention. Other embodiments, which can be derived by one of ordinary skill in the art from the disclosed embodiments without inventive faculty, are intended to be within the scope of the invention.
The regulation and control data storage sharing method is based on a block chain architecture, and the block chain architecture comprises a plurality of block chain nodes and a consensus algorithm among the plurality of block chain nodes; the regulation and control data storage and sharing method comprises the following steps: one of the block chain nodes acquires and analyzes the request information to acquire an analysis result; when the analysis result is a data entry request, the block chain link point acquires and analyzes source end data to acquire a source end data analysis result; when the source end data analysis result is that the source end data is structured data, writing a data ID and a structured character string into a distributed account book storage based on the consensus algorithm; and when the source end data analysis result is that the source end data is unstructured data, generating an internal structured character string representing a file pointer for the source end data, and writing a data ID and the internal structured character string into a distributed account book storage based on the consensus algorithm.
The invention provides a data interaction method suitable for regulation and control data evidence storage and sharing based on a block chain distributed account book technology and considering regulation and control data interaction function requirements, and can realize general storage of structured and unstructured data in regulation and control business and realize on-chain evidence storage and sharing of regulation and control data. The invention solves the problems of storage efficiency and credible sharing under the condition of large-batch regulation and control data sharing, and can meet the requirements on the reliability and interactivity of the regulation and control data.
Referring to fig. 1, fig. 1 shows a general blockchain architecture derived from the field of digital currency. The blockchain technology is derived from digital currency 'bitcoin', the block chain technology solves the trust that the traditional currency depends on a third party, and the essential characteristic of the blockchain technology is that a decentralized storage structure (in the field of digital currency, the storage structure is called a distributed account book) is constructed, the storage structure is stored on each node in a network, and the 'tamper-proof and traceable' of the blockchain technology can be ensured.
As shown in fig. 1, in a general blockchain architecture, when an arbitrary data initiator needs to perform an operation on a global ledger, a request is initiated by a client. At this time, the block chain link point connected with the client submits the operation to the whole block chain network, and all nodes on the block chain network run a consensus algorithm to start writing the global account book data once. Once global consensus is completed, each node in the blockchain network is equivalent to witness the accounting process of the current account, and therefore the trust problem in a multi-subject accounting scene is fundamentally solved.
The power grid regulation and control system accumulates a large amount of model data, operation data, management data and other data in the long-term operation. With the strategic development of the energy internet of a company, a regulation cloud platform which is centrally constructed by national regulation becomes an important system for bearing various data such as the model, the operation, the management and the like, and with the further construction of the regulation cloud, the data interaction between the regulation cloud leading node and the regulation cloud cooperating node is tighter, so that the requirements on the safe interaction and the sharing of the internal and external data of the regulation cloud are provided. In view of this, the present invention provides an improved technical solution based on the existing general block chain technology, and can implement on-chain evidence sharing of regulation and control service data.
The embodiment of the invention provides a regulation and control data storage and certification sharing method, which comprises the following steps:
one of the block chain nodes acquires and analyzes the request information to acquire a request information analysis result;
when the request information analysis result is a data entry request, the block chain node acquires and analyzes source end data to acquire a source end data analysis result;
when the source end data analysis result shows that the source end data is structured data, writing the data ID and the structured character string of the source end data into one block chain node for local storage; writing a data ID and a structural character string of source end data into the rest blockchain nodes except the blockchain node in the plurality of blockchain nodes based on a preset consensus algorithm among the plurality of blockchain nodes for synchronous storage to form distributed account book storage;
when the source end data analysis result shows that the source end data is unstructured data, generating an internal structured character string representing a file pointer for the source end data, and writing the data ID of the source end data and the internal structured character string into one block chain node for local storage; and writing the data ID of the source data and the internal structural character string into the residual block chain nodes except the block chain node in the plurality of block chain nodes based on the consensus algorithm for synchronous storage, so as to form distributed account book storage.
Preferably, in the embodiment of the present invention, after obtaining the request information parsing result, the method further includes: and when the request information analysis result is a data verification request, the block link point acquires the data ID of the source data and performs local verification, and after the local verification is passed, synchronous verification is performed in the residual block link nodes except the block link node in the plurality of block link nodes based on the consensus algorithm, so that a verification query result is obtained.
Preferably, in the embodiment of the present invention, when the one block link point acquires source data: when the source data is structured data, the format is (ID, structured character string); when the source data is unstructured data, the format is (ID, file).
The embodiment of the invention provides a regulation and control data storage and certification sharing system, which comprises: a plurality of blockchain nodes; each block chain node is provided with a server;
the server side of one of the block chain nodes is used for acquiring and analyzing the request information to acquire a request information analysis result; when the request information analysis result is a data entry request, the server side of the block link node is also used for acquiring and analyzing source data to be stored and verified to obtain a source data analysis result;
when the source end data analysis result shows that the source end data is structured data, writing a data ID and a structured character string of the source end data into one block chain node for local storage; writing a data ID and a structural character string of source end data into the rest blockchain nodes except the blockchain node in the plurality of blockchain nodes based on a preset consensus algorithm among the plurality of blockchain nodes for synchronous storage to form distributed account book storage;
when the source end data analysis result shows that the source end data is unstructured data, generating an internal structured character string representing a file pointer for the source end data, and writing the data ID of the source end data and the internal structured character string into one block chain node for local storage; and writing the data ID of the source data and the internal structural character string into the residual block chain nodes except the block chain node in the plurality of block chain nodes based on the consensus algorithm for synchronous storage, so as to form distributed account book storage.
Preferably, in the embodiment of the present invention, the server side of the block chain node includes: the system comprises a data receiving module, a data analysis module, an account book storage module and a data evidence storage and verification module;
the data receiving module is used for acquiring request information and source end data to be stored;
the data analysis module is used for inputting the request information acquired by the data receiving module, analyzing the request information, acquiring a request information analysis result and outputting the request information analysis result; the system comprises a data storage module, a request information analysis module, a data verification module and a data verification module, wherein the request information analysis module is used for forwarding a request to the account book storage module when the request information analysis result is a data writing request, and is used for forwarding the request to the data verification module when the request information analysis result is a data verification request;
the account book storage module is used for receiving a data writing request from the data analysis module and locally storing source end data to be stored and verified according to the data writing request; the account book storage module is used for transferring the source end data to be stored and verified to global synchronization according to the consensus algorithm;
the data certificate storage and verification module is used for receiving a data verification request from the data analysis module and performing local verification at a server side according to the data verification request; and the data certificate storage and verification module is used for carrying out global verification according to the consensus algorithm.
Preferably, in the embodiment of the present invention, the server side of the remaining blockchain node excluding the one blockchain node from the plurality of blockchain nodes includes:
the account book storage module is used for transferring the source end data to be stored and verified to be locally stored according to the consensus algorithm;
and the data certificate storage and verification module is used for carrying out local verification according to the consensus algorithm.
The preferred embodiment of the present invention further includes: a first client; the first client is used for inputting source end data and a data ID to the server end; when the source data is structured data, the input format is (ID, structured character string); and when the source data is unstructured data, the input format is (ID, file).
The preferred embodiment of the present invention further includes: a second client; the second client is used for inputting a data ID to the server.
The method of the embodiment of the invention is based on the block chain distributed account book technology, considers the requirement of the regulation and control data interaction function, provides the data interaction method suitable for regulation and control data storage and sharing, can realize the general storage of structured and unstructured data in the regulation and control service, and realizes the on-chain storage and sharing of the regulation and control data. The invention solves the problems of storage efficiency and credible sharing under the condition of large-batch regulation and control data sharing, and can meet the requirements on the reliability and interactivity of the regulation and control data.
Referring to fig. 2, a regulation and control cloud data evidence sharing system based on a block chain according to an embodiment of the present invention includes:
referring to fig. 3, the client is used for submitting a data entry and data verification request to the server, and includes modules: the data input module and the data verification module.
(1) The data entry module is responsible for receiving source end data input. The input source can be various data acquisition or generation modules of a regulation and control business system; the data format receivable by the data entry module includes structured data and unstructured data. Structured data is submitted in the form of (ID, structured string) and unstructured data is submitted in the form of (ID, file), where ID must be unique, no ID is provided, and ID will be generated randomly by the client. The data entry module will interact directly with the server data receiving module.
(2) And the data verification module is responsible for inquiring and verifying the data. The client user provides ID as the input of the data verification module, the data verification module directly interacts with the server data deposit and certificate verification module, and the inquiry result of the data in the account book storage module is returned.
(3) The data entry module is an optional function, part of services in the scheduling services only need the data verification module to realize the storage of service data, the client only deployed with the data verification module is called a light client, and the light client only has the data verification function, so that the storage efficiency can be further improved.
Referring to fig. 4, the server is responsible for receiving the data entry and data verification request of the client and returning the result, and simultaneously interacts with the distributed accounting management module, and stores the data in the accounting book storage module after the distributed accounting management is returned. The server side of the embodiment of the invention comprises 4 modules: the system comprises a data receiving module, a data analyzing module, an account book storage module and a data evidence storage and verification module.
(1) The data receiving module is responsible for receiving the client data entry module request and returning to the client result. After receiving the request, the data receiving module firstly transmits the request to the data analysis module; secondly, after receiving the return of the data analysis module, interacting with an account book management module of the distributed accounting management according to the return result; and finally, after returning, writing the data into the account book storage module and returning a client data entry result. The last step is written into the account book storage module, and different functions of the account book storage module need to be called according to a return result (structured character string or file) of the data analysis module.
(2) The data analysis module is responsible for analyzing the data format and returning an analysis result. According to the data provided by the data receiving module, the data analyzing module distinguishes the structured character string from the file, according to the data and the data type parameters provided by the data receiving module, the data analyzing module generates an internal structured string representing a file pointer from the data additionally in a file format, and returns an analysis result to the data receiving module, and the data analyzing module is a key for supporting and controlling business structured and unstructured data storage.
(3) And the account book storage module is responsible for storing the data and returning a storage result. According to the data provided by the data receiving module, the account book storage module comprises two storage functions of a structured string and a file. If the file is a structured string, (ID, structured string) is written into the distributed ledger storage area, if the file is a file, (ID, internal structured string) is written into the distributed ledger storage area, and the file is written into a file pointer pointing to the place.
(4) And the data storage and verification module is responsible for carrying out existence verification on the data and returning a verification result. After receiving the data ID in the client request content, the data evidence storage and verification module inquires the local account book storage module, interacts with other data evidence storage and verification modules on the wide area network through the account book management module of the distributed accounting management, and receives the result of local inquiry of other data evidence storage and verification modules on the wide area network.
Referring to fig. 5, the distributed accounting management module is responsible for interacting with other servers in the wide area network to implement global storage of data, and includes 2 modules: account book management module and account book storage module.
(1) And the account book management module is responsible for receiving the requests of the server data receiving module and the data deposit and verification module and returning the results. After receiving the request, the account book management module firstly interacts with a data receiving module and a data evidence storing and checking module of other service terminals (non-request source service terminals) of the wide area network; secondly, after receiving the returns of all other servers, the account book management module calls the account book storage module and returns the data result to the source server.
(2) And the account book storage module is responsible for storing the data and returning a storage result. And the ledger storage submodule in the distributed accounting management module only receives the request format of the (ID, structured character string) and writes the (ID, structured character string) data into the distributed ledger storage area.
In the embodiment of the invention, the regulation cloud master node and the cooperative node can be used as the block link node in the embodiment of the invention. The bottom layer is based on hardware, storage, network and other resources provided by a regulation cloud base platform; the communication of the wide area network between the cloud nodes is regulated and controlled through regulating and controlling the local network inside the cloud nodes.
The client can be deployed in a personal computer, a mobile terminal or a web browser-based plug-in as exemplified in the embodiment of the present invention.
In the embodiment of the invention, exemplarily, the server is deployed on one or more servers, but only one server is used as a main server to communicate with all the clients at the same time, and data transmitted by the communication between the clients and the main server is synchronized to the servers where other servers are located by the main server in a real-time synchronization manner.
In an exemplary embodiment of the invention, the distributed accounting management module is deployed on a server and communicates with other distributed accounting management modules on the wide area network through the wide area network. The client communicates with the server through a local area network, and the server communicates with the distributed accounting management module through a wide area network.
In summary, the embodiment of the invention designs a regulation and control data evidence sharing method including a client, a server and distributed accounting management based on a block chain technology, and realizes the credible sharing of two types of data of a regulation and control business system structured and unstructured based on a block chain distributed account book; meanwhile, the problem of storage efficiency in a large-batch service data sharing scene is solved by utilizing a light client technology. The reliability and the safety of the data sharing of the regulation and control service system are improved.
Illustratively, the regulation cloud is an innovative application of information communication technologies such as 'cloud big thing moving intelligent chain' and the like in the regulation field. With the continuous promotion of the construction of the regulation cloud, the regulation cloud becomes one of important data collection centers of the regulation business, the data quantity collected on the regulation cloud is increased in an explosive mode, and the related data types are diversified. In the aspect of data use and maintenance, data maintenance processes are increasingly complex, cross-department and cross-scheduling data interaction is increasingly frequent, and higher requirements are put forward on the reliability and interactivity of cloud data regulation and control. The method is based on the block chain distributed account book technology, can be implemented on the basis of the existing regulation and control cloud infrastructure in architecture, and meets the requirements of regulation and control business data interaction safety and reliability in a business layer. Based on the two points, the method can be efficiently and quickly popularized to the existing national cloud and each provincial level regulation cloud system.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art can make modifications and equivalents to the embodiments of the present invention without departing from the spirit and scope of the present invention, which is set forth in the claims of the present application.

Claims (12)

1.一种调控数据存证共享方法,其特征在于,包括以下步骤:1. a method for sharing control data, is characterized in that, comprises the following steps: 数据输入端区块链节点获取数据录入请求;The data input end blockchain node obtains the data entry request; 数据输入端区块链节点根据数据录入请求获取源端数据以及源端数据的数据类型;根据所述源端数据的数据类型,将结构化数据类型的源端数据写入数据输入端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化为结构化字符串,并将所述结构化字符串写入数据输入端区块链节点;The data input end blockchain node obtains the source end data and the data type of the source end data according to the data entry request; according to the data type of the source end data, the source end data of the structured data type is written into the data input end blockchain node; and convert the storage address of the source data of the unstructured data type into a structured string, and write the structured string into the data input end blockchain node; 数据输入端区块链节点基于区块链节点之间预设的共识算法将源端数据的数据类型、源端数据以及存储地址转化的结构化字符串输出给数据存储端区块链节点。The blockchain node at the data input end outputs the data type of the source data, the source data and the structured string converted from the storage address to the blockchain node at the data storage end based on the preset consensus algorithm between the blockchain nodes. 2.根据权利要求1所述的一种调控数据存证共享方法,其特征在于,所述将结构化数据类型的源端数据写入数据输入端区块链节点的步骤具体包括:2. A method for controlling data storage and sharing according to claim 1, wherein the step of writing the source end data of the structured data type into the data input end blockchain node specifically comprises: 将结构化数据的源端数据的数据ID和结构化字符串写入数据输入端区块链节点进行本地存储。Write the data ID and structured string of the source data of the structured data to the blockchain node of the data input for local storage. 3.根据权利要求1所述的一种调控数据存证共享方法,其特征在于,所述将非结构化数据类型的源端数据的存储地址转化为结构化字符串,并将所述结构化字符串写入数据输入端区块链节点的步骤具体包括:3. a kind of control data storage certificate sharing method according to claim 1, is characterized in that, described converting the storage address of the source end data of unstructured data type into structured character string, and described structured The steps of writing the string to the blockchain node at the data input end include: 为非结构化数据的源端数据生成表示非结构化数据的源端数据指针的内部结构化字符串,将非结构化数据的源端数据的数据ID和所述内部结构化字符串写入数据输入端区块链节点进行本地存储。Generate an internal structured string representing the source data pointer of the unstructured data for the source data of the unstructured data, and write the data ID of the source data of the unstructured data and the internal structured string into the data Input-side blockchain node for local storage. 4.根据权利要求2或3所述的一种调控数据存证共享方法,其特征在于,完成本地存储之后,还包括:4. a kind of control data storage certificate sharing method according to claim 2 or 3, is characterized in that, after completing local storage, also comprises: 数据输入端区块链节点获取数据验证请求;The data input end blockchain node obtains the data verification request; 根据数据验证请求,所述数据输入端区块链节点获取源端数据的数据ID并进行本地验证,获得本地验证结果。According to the data verification request, the data input end blockchain node obtains the data ID of the source data and performs local verification to obtain the local verification result. 5.根据权利要求1所述的一种调控数据存证共享方法,其特征在于,所述源端数据包括格式为(ID,结构化字符串)的结构化数据和格式为(ID,文件)的非结构化数据。5 . A method for sharing control data and certificates according to claim 1 , wherein the source data includes structured data in the format (ID, structured string) and the format is (ID, file) 5 . of unstructured data. 6.一种调控数据存证共享方法,其特征在于,包括以下步骤:6. A method for controlling data storage and sharing, comprising the following steps: 数据存储端区块链节点获取源端数据、源端数据的数据类型以及存储地址转化的结构化字符串;The blockchain node of the data storage side obtains the source data, the data type of the source data, and the structured string converted from the storage address; 将结构化数据类型的源端数据写入数据存储端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化的结构化字符串写入数据存储端区块链节点。Write the source data of the structured data type to the blockchain node of the data storage side; and write the structured string converted from the storage address of the source data of the unstructured data type to the blockchain node of the data storage side. 7.根据权利要求6所述的一种调控数据存证共享方法,其特征在于,所述将结构化数据类型的源端数据写入数据存储端区块链节点的步骤具体包括:7. A method for controlling data storage and sharing according to claim 6, wherein the step of writing the source end data of the structured data type into the data storage end blockchain node specifically comprises: 将结构化数据的源端数据的数据ID和结构化字符串基于区块链节点之间预设的共识算法写入数据存储端区块链节点进行同步存储,形成分布式账本存储。The data ID and structured string of the source data of the structured data are written into the blockchain nodes of the data storage end based on the preset consensus algorithm between the blockchain nodes for synchronous storage, forming a distributed ledger storage. 8.根据权利要求6所述的一种调控数据存证共享方法,其特征在于,所述将非结构化数据类型的源端数据的存储地址转化的结构化字符串写入数据存储端区块链节点的步骤具体包括:8. a kind of control data storage certificate sharing method according to claim 6, is characterized in that, the described structured character string that the storage address conversion of the source end data of unstructured data type is written into data storage end block The steps of the chain node include: 为非结构化数据的源端数据生成表示非结构化数据的源端数据指针的内部结构化字符串,将非结构化数据的源端数据的数据ID和所述内部结构化字符串基于区块链节点之间预设的共识算法写入数据存储端区块链节点进行同步存储,形成分布式账本存储。Generate an internal structured string representing the source data pointer of the unstructured data for the source data of the unstructured data, and base the data ID of the source data of the unstructured data and the internal structured string on the block The preset consensus algorithm between chain nodes is written into the data storage side blockchain node for synchronous storage, forming a distributed ledger storage. 9.根据权利要求7或8所述的一种调控数据存证共享方法,其特征在于,形成分布式账本存储之后,还包括:9. A method for controlling data storage and sharing according to claim 7 or 8, characterized in that, after the distributed ledger storage is formed, the method further comprises: 数据存储端区块链节点获取本地验证结果,所述本地验证结果是由数据输入端区块链节点进行本地验证获得的;The data storage side blockchain node obtains the local verification result, and the local verification result is obtained by the local verification performed by the data input side blockchain node; 判断本地验证结果是否通过;本地验证结果通过时,获取本地验证的数据验证请求,基于共识算法在数据存储端区块链节点中进行同步验证,获得验证查询结果;本地验证结果不通过时,停止查询并输出验证不通过结果。Determine whether the local verification result is passed; when the local verification result is passed, obtain the data verification request of the local verification, perform synchronous verification in the data storage side blockchain node based on the consensus algorithm, and obtain the verification query result; when the local verification result fails, stop Query and output the verification failure result. 10.一种调控数据存证共享方法,其特征在于,包括以下步骤:10. A method for controlling data storage certificate sharing, characterized in that, comprising the following steps: 数据输入端区块链节点获取数据录入请求;数据输入端区块链节点根据数据录入请求获取源端数据以及源端数据的数据类型;根据所述源端数据的数据类型,将结构化数据类型的源端数据写入数据输入端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化为结构化字符串,并将所述结构化字符串写入数据输入端区块链节点;The data input end blockchain node obtains the data entry request; the data input end blockchain node obtains the source end data and the data type of the source end data according to the data entry request; according to the data type of the source end data, the structured data type The source data is written into the data input block chain node; and the storage address of the source data of the unstructured data type is converted into a structured string, and the structured string is written into the data input block chain node; 数据存储端区块链节点基于区块链节点之间预设的共识算法获取源端数据的数据类型、源端数据以及存储地址转化的结构化字符串;将结构化数据类型的源端数据写入数据存储端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化的结构化字符串写入数据存储端区块链节点。The blockchain node of the data storage side obtains the data type of the source data, the source data and the structured string converted from the storage address based on the preset consensus algorithm between the blockchain nodes; writes the source data of the structured data type into the data storage side blockchain node; and write the structured string converted from the storage address of the source data of the unstructured data type into the data storage side blockchain node. 11.一种调控数据存证共享系统,其特征在于,包括:11. A system for controlling data storage and sharing, characterized in that it comprises: 请求获取模块,用于数据输入端区块链节点获取数据录入请求;The request acquisition module is used for the data input block chain node to obtain the data entry request; 数据及类型获取模块,用于数据输入端区块链节点根据数据录入请求获取源端数据以及源端数据的数据类型;The data and type acquisition module is used for the data input block chain node to obtain the source data and the data type of the source data according to the data entry request; 数据分配模块,用于根据所述源端数据的数据类型,将结构化数据类型的源端数据写入数据输入端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化为结构化字符串,并将所述结构化字符串写入数据输入端区块链节点;用于数据输入端区块链节点基于区块链节点之间预设的共识算法将源端数据的数据类型、源端数据以及存储地址转化的结构化字符串输出给数据存储端区块链节点。A data distribution module for writing the source data of the structured data type into the data input end blockchain node according to the data type of the source data; and converting the storage address of the source data of the unstructured data type into It is a structured string, and the structured string is written into the data input end blockchain node; it is used for the data input end blockchain node to convert the source data based on the consensus algorithm preset between the blockchain nodes. The data type, source data, and the structured string converted from the storage address are output to the blockchain node on the data storage side. 12.一种调控数据存证共享系统,其特征在于,包括:12. A system for controlling data storage and sharing, characterized in that it comprises: 数据获取模块,用于数据存储端区块链节点获取源端数据、源端数据的数据类型以及存储地址转化的结构化字符串;The data acquisition module is used for the data storage side blockchain node to acquire the source side data, the data type of the source side data and the structured string converted from the storage address; 分布式账本存储控制模块,用于将结构化数据类型的源端数据写入数据存储端区块链节点;以及将非结构化数据类型的源端数据的存储地址转化的结构化字符串写入数据存储端区块链节点。The distributed ledger storage control module is used to write the source data of the structured data type into the blockchain node of the data storage side; and write the structured string converted from the storage address of the source data of the unstructured data type into the structured string Data storage side blockchain node.
CN202110703872.4A 2021-06-24 2021-06-24 A method and system for regulating data storage certificate sharing Active CN113259487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110703872.4A CN113259487B (en) 2021-06-24 2021-06-24 A method and system for regulating data storage certificate sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110703872.4A CN113259487B (en) 2021-06-24 2021-06-24 A method and system for regulating data storage certificate sharing

Publications (2)

Publication Number Publication Date
CN113259487A true CN113259487A (en) 2021-08-13
CN113259487B CN113259487B (en) 2021-09-28

Family

ID=77189503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110703872.4A Active CN113259487B (en) 2021-06-24 2021-06-24 A method and system for regulating data storage certificate sharing

Country Status (1)

Country Link
CN (1) CN113259487B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259622A (en) * 2018-02-07 2018-07-06 福建南威软件有限公司 A kind of trans-regional sharing method of electronics license data
CN110912937A (en) * 2019-12-23 2020-03-24 杭州中科先进技术研究院有限公司 Block chain-based digital certificate storage platform and certificate storage method
WO2020135094A1 (en) * 2018-12-29 2020-07-02 华为技术有限公司 Block data archiving method and related device
CN111416704A (en) * 2020-03-17 2020-07-14 中国建设银行股份有限公司 Data processing method, device and system based on block chain
WO2020150185A1 (en) * 2019-01-14 2020-07-23 Thaw David Bernard A general purpose blockchain
CN111444262A (en) * 2020-02-13 2020-07-24 江苏荣泽信息科技股份有限公司 Electric power data sharing system based on block chain
CN111552676A (en) * 2020-04-26 2020-08-18 北京众享比特科技有限公司 Block chain based evidence storing method, device, equipment and medium
US20210004385A1 (en) * 2019-07-05 2021-01-07 Gangadharan Vijayalakshmi System and method for analysis of one or more unstructured data
CN112671840A (en) * 2020-12-11 2021-04-16 同济大学 Cross-department data sharing system and method based on block chain technology

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259622A (en) * 2018-02-07 2018-07-06 福建南威软件有限公司 A kind of trans-regional sharing method of electronics license data
WO2020135094A1 (en) * 2018-12-29 2020-07-02 华为技术有限公司 Block data archiving method and related device
WO2020150185A1 (en) * 2019-01-14 2020-07-23 Thaw David Bernard A general purpose blockchain
US20210004385A1 (en) * 2019-07-05 2021-01-07 Gangadharan Vijayalakshmi System and method for analysis of one or more unstructured data
CN110912937A (en) * 2019-12-23 2020-03-24 杭州中科先进技术研究院有限公司 Block chain-based digital certificate storage platform and certificate storage method
CN111444262A (en) * 2020-02-13 2020-07-24 江苏荣泽信息科技股份有限公司 Electric power data sharing system based on block chain
CN111416704A (en) * 2020-03-17 2020-07-14 中国建设银行股份有限公司 Data processing method, device and system based on block chain
CN111552676A (en) * 2020-04-26 2020-08-18 北京众享比特科技有限公司 Block chain based evidence storing method, device, equipment and medium
CN112671840A (en) * 2020-12-11 2021-04-16 同济大学 Cross-department data sharing system and method based on block chain technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张徐亮等: "基于区块链的电力大数据安全保障体系", 《华电技术》 *

Also Published As

Publication number Publication date
CN113259487B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN111400326B (en) Smart city data management system and method thereof
Lin et al. A novel architecture combining oracle with decentralized learning for iiot
CN111611315B (en) Financial big data-oriented multi-fork tree structure block chain integrated optimization storage method
CN112417037B (en) Block chain construction method for distributed identity authentication in industrial field
CN112733174B (en) Authentication management method and system of block chain system and electronic equipment
CN113821564B (en) Heterogeneous Parallel Blockchain and Its On-Chain Data and Off-Chain Contract Collaboration Method
CN108932588B (en) Hydropower station group optimal scheduling system with separated front end and rear end and method
CN112231741B (en) Data processing method, device, medium and electronic equipment based on block chain system
CN110162559B (en) Block chain processing method based on universal JSON synchronous and asynchronous data API (application program interface) interface call
CN112287031B (en) Data synchronization method and device of block chain system, readable medium and electronic equipment
WO2010148966A1 (en) Method and apparatus for implementing data synchronization in network management
CN110381167A (en) Block chain node based on cloud actively discovers system and method
CN111800434A (en) Multi-channel asset docking platform and working method thereof
CN112270550A (en) New energy electric power source tracing method and system based on block chain
CN112053271B (en) Public service platform data evidence management method and system based on block chain
CN115439249A (en) Cross-block-chain business service implementation method, device and system
CN112231414B (en) Data synchronization method and device of block chain system, readable medium and electronic equipment
Lin et al. A blockchain-based semantic exchange framework for web 3.0 toward participatory economy
CN102255969B (en) A Security Model of Web Services Based on Representational State Transition
CN112926981A (en) Transaction information processing method, device and medium for block chain and electronic equipment
CN103235813A (en) Ufida financial core system and activity based costing system data synchronization method
WO2019224593A1 (en) Method and system for generating block chain
CN113259487B (en) A method and system for regulating data storage certificate sharing
CN113254169B (en) Operation method, device, equipment and storage medium of block chain system
CN113011960A (en) Block chain-based data access method, device, medium and electronic equipment

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