A Parallel Traceability Method and System for Power Grid Engineering Cost Data Based on Blockchain Technology
By establishing a data sharing system and smart contracts for power grid engineering cost based on blockchain technology, the problems of low efficiency, low accuracy, and poor security in power grid engineering cost data management have been solved, and efficient and secure data traceability has been achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE GRID SHANXI ELECTRIC POWER CO ECONOMIC & TECH RES INST
- Filing Date
- 2022-07-28
- Publication Date
- 2026-06-30
AI Technical Summary
Existing methods for managing power grid engineering cost data are inefficient, have long data traceability times, low accuracy, are susceptible to human tampering, and cannot guarantee data authenticity.
Establish a data sharing system for power grid engineering cost based on blockchain technology, formulate parallel traceability path algorithms and smart contracts, achieve data openness, transparency and immutability through decentralized data management and multi-party participation, and use smart contracts for data traceability.
It has improved the traceability efficiency and accuracy of power grid engineering cost data, ensured the security and authenticity of data, and achieved efficient data management through multi-party collaboration.
Smart Images

Figure CN115455491B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power grid engineering cost data management technology. Specifically, this application relates to a parallel traceability method and system for power grid engineering cost data based on blockchain technology. Background Technology
[0002] Power grid construction projects are characterized by long cycles and are affected by natural environmental factors. Therefore, relevant data often change during the construction process. In-depth exploration is needed to explore how to trace power grid project cost data from massive amounts of data, mine and utilize key data in project cost, and optimize project cost in the future.
[0003] Existing methods for managing power grid engineering cost data often rely on manual management of paper-based engineering documents. This method is inefficient, has long data traceability times, low accuracy, and is susceptible to human tampering, making it impossible to guarantee data authenticity.
[0004] Therefore, how to achieve efficient, accurate, and safe traceability of power grid engineering cost data remains to be solved. Summary of the Invention
[0005] This application provides a method and system for parallel traceability of power grid engineering cost data based on blockchain technology, aiming to solve the problems of low data traceability efficiency, inaccuracy, and insecurity in related technologies. The technical solution is as follows:
[0006] According to one aspect of the embodiments of this application, a method for parallel tracing of power grid engineering cost data is provided. The method includes: establishing a power grid engineering cost data sharing system based on blockchain technology; formulating a power grid engineering cost data parallel tracing path algorithm and a power grid engineering cost data tracing smart contract based on the sharing system; establishing a power grid engineering cost data parallel tracing path based on blockchain technology; executing the power grid engineering cost data tracing smart contract; and performing parallel tracing of the required data.
[0007] According to one aspect of the embodiments of this application, a parallel traceability system for power grid engineering cost data is provided. The system includes: a system construction module for establishing a power grid engineering cost data sharing system based on blockchain technology; an algorithm formulation module for formulating a parallel traceability path algorithm for power grid engineering cost data based on blockchain technology and a smart contract for power grid engineering cost data traceability corresponding to the traceability path algorithm, based on the sharing system; a traceability direction determination module for determining forward, reverse, and intermediate traceability directions, which can start from all directions in the blockchain; a path determination module for establishing a parallel traceability path for power grid engineering cost data based on blockchain technology; dynamic adjustment of the path for optimizing and adjusting the next traceability path based on the intermediate results of traceability from all parties; and a traceability execution module for executing the smart contract for power grid engineering cost data traceability, completing the data traceability process, and optimizing the traceability path and results.
[0008] According to one aspect of the embodiments of this application, an electronic device includes: at least one processor, at least one memory, and at least one communication bus, wherein a computer program is stored in the memory, and the processor reads the computer program in the memory through the communication bus; when the computer program is executed by the processor, it implements the parallel data tracing method for power grid engineering cost data as described above.
[0009] According to one aspect of the embodiments of this application, a storage medium stores a computer program thereon, which, when executed by a processor, implements the parallel traceability method for power grid engineering cost data as described above.
[0010] According to one aspect of the embodiments of this application, a computer program product includes a computer program stored in a storage medium. A processor of a computer device reads the computer program from the storage medium and executes the computer program, causing the computer device to implement the parallel traceability method for power grid engineering cost data as described above when executing the program.
[0011] The beneficial effects of the technical solution provided in this application are:
[0012] In the above technical solution, a power grid engineering cost data sharing system based on blockchain technology is established. Based on the data sharing system, a parallel traceability path algorithm and a smart contract for power grid engineering cost data traceability based on blockchain technology are formulated. This enables the public transparency of power grid engineering cost data through the sharing system, establishes a parallel traceability path for power grid engineering cost data based on blockchain technology, and performs parallel traceability of the required data by executing the smart contract for power grid engineering cost data traceability. This effectively solves the problems of low efficiency, low accuracy, susceptibility to human tampering, and inability to guarantee the authenticity of data in traditional power grid engineering cost data traceability methods. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.
[0014] Figure 1 This is a schematic diagram based on the implementation environment involved in this application;
[0015] Figure 2 This is a flowchart illustrating a data tracing method according to an exemplary embodiment;
[0016] Figure 3 yes Figure 2 A flowchart of step 310 in one embodiment corresponds to the following example;
[0017] Figure 4 This is a schematic diagram illustrating a data tracing method according to an exemplary embodiment;
[0018] Figure 5 yes Figure 2 A structural block diagram of the smart contract involved in the corresponding embodiment;
[0019] Figure 6 yes Figure 2 A flowchart of step 330 in one embodiment corresponds to the following example;
[0020] Figure 7 yes Figure 2 A flowchart of step 350 in one embodiment corresponds to the following example;
[0021] Figure 8 This is a schematic diagram illustrating the determination of the shortest path according to an exemplary embodiment;
[0022] Figure 9 yes Figure 2 A schematic diagram of step 350 in one embodiment is shown in the corresponding example.
[0023] Figure 10 This is a flowchart of a data tracing method based on an application scenario;
[0024] Figure 11 This is a structural block diagram of a data traceability device according to an exemplary embodiment;
[0025] Figure 12 This is a hardware structure diagram of an electronic device according to an exemplary embodiment;
[0026] Figure 13 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0027] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0028] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0029] The following is an introduction and explanation of several terms used in this application:
[0030] P2P stands for Peer to Peer, which means peer-to-peer network.
[0031] As mentioned earlier, current methods for managing power grid engineering cost data are inefficient, have long data traceability times, and low accuracy. For example, when managing paper-based engineering data manually, data retrieval is very difficult and the accuracy rate is low, resulting in inefficient and inaccurate traceability of power grid engineering cost data.
[0032] Furthermore, the manual management of paper-based engineering data makes the data susceptible to tampering, and the authenticity of the data cannot be guaranteed.
[0033] As can be seen from the above, the relevant methods suffer from problems such as low efficiency, low accuracy and insecurity in tracing power grid engineering cost data.
[0034] Therefore, the power grid engineering cost data traceability method provided in this application can effectively improve the efficiency, accuracy and security of power grid engineering cost data traceability.
[0035] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0036] Figure 1This diagram illustrates the implementation environment of a parallel traceability method for power grid engineering cost data based on blockchain technology. The implementation environment includes a user terminal 110, a blockchain device 130, a gateway 150, a server 170, and a router 190.
[0037] Specifically, user terminal 110, which can also be considered as user terminal or terminal, can deploy (or install) the client associated with blockchain device 130. This user terminal 110 can be an electronic device such as a smartphone, tablet, laptop, desktop computer, smart control panel, or other device with display and control functions, without limitation.
[0038] The client, associated with the blockchain device 130, is essentially where the user registers an account and configures the blockchain device 130. This configuration includes adding node data to the blockchain device 130, so that when the client runs on the user terminal 110, it can provide the user with functions such as data display and data control of the blockchain device 130. This client can be in the form of an application or a webpage. Correspondingly, the interface for displaying data on the client can be in the form of a program window or a webpage, without any limitation here.
[0039] Blockchain device 130 is deployed in gateway 150 and communicates with gateway 150 through its own configured communication module, thereby being controlled by gateway 150. This application embodiment does not limit the type of blockchain device deployed in gateway 150. In one application scenario, blockchain device 130 is deployed in gateway 150 by accessing it through a local area network (LAN). The process of blockchain device 130 accessing gateway 150 through a LAN includes: gateway 150 first establishing a LAN, and blockchain device 130 joining the LAN established by gateway 150 by connecting to it. This LAN includes, but is not limited to, ZIGBEE or Bluetooth. Blockchain device 130 can be a blockchain device for power grid engineering cost data.
[0040] The interaction between user terminal 110 and blockchain device 130 can be achieved through a local area network (LAN) or a wide area network (WAN). In one application scenario, user terminal 110 establishes a wired or wireless communication connection with gateway 150 via router 190, such as Wi-Fi, allowing user terminal 110 and gateway 150 to be deployed on the same LAN, thus enabling user terminal 110 to interact with blockchain device 130 via the LAN path. In another application scenario, user terminal 110 establishes a wired or wireless communication connection with gateway 150 via server 170, such as 2G, 3G, 4G, 5G, or Wi-Fi, allowing user terminal 110 and gateway 150 to be deployed on the same WAN, thus enabling user terminal 110 to interact with blockchain device 130 via the WAN path.
[0041] The server 170 can be a single server, a server cluster consisting of multiple servers, or a cloud platform, cloud computing center, etc., composed of multiple servers, to better provide backend services to a massive number of user terminals 110. For example, backend services include data traceability services.
[0042] Taking blockchain device 130 as an example, which is responsible for providing a power grid engineering cost data sharing system, a power grid engineering cost data sharing system based on blockchain technology is established, a parallel traceability path and path algorithm for power grid engineering cost data based on blockchain technology are established, a smart contract for power grid engineering cost data traceability is formulated, the contract is stored on the blockchain platform, and when a node needs to trace data, the traceability request is sent to gateway 150.
[0043] For gateway 150, it will receive the node's traceability request and send a data request to all network nodes (i.e., user terminal 110).
[0044] At this point, user terminal 110 can receive the data request sent by gateway 150, and then call the corresponding smart contract to cooperate with the traceability initiating node to execute the same parallel traceability method for power grid engineering cost data, query whether the required traceability data exists in its own database, and if the required traceability data is found, it is sent to the traceability initiating node through gateway 150.
[0045] Of course, in other embodiments, as the blockchain device interacts with the server 170, the blockchain device can send data information to the server 170 and use the server 170 to provide data traceability services, thereby sending the required traceability data to the user terminal 110.
[0046] Please see Figure 2 This application provides a method for parallel tracing of power grid engineering cost data based on blockchain technology. This method is applicable to electronic devices, which can be... Figure 1 The server 170 in the implementation environment shown can also be a blockchain device for power grid engineering cost data.
[0047] In the following method embodiments, for ease of description, the execution subject of each step of the method is an electronic device, but this does not constitute a specific limitation.
[0048] like Figure 2 As shown, the method may include the following steps:
[0049] Step 310: Establish a data sharing system for power grid engineering cost based on blockchain technology.
[0050] The power grid engineering cost data sharing system utilizes blockchain technology to create a peer-to-peer blockchain network where all parties involved in the project are represented as nodes. These nodes connect via a peer-to-peer (P2P) network, and the data is shared through distributed storage. The sharing mechanism works as follows: each entity owns a corresponding node in the blockchain, and these nodes use smart contracts to upload and query data within the network.
[0051] Among them, the power grid engineering cost data sharing system is any power grid engineering cost data sharing system that can provide data sharing functions. For example, the sharing system can be a power grid engineering cost data system, or a railway power grid engineering cost data system, a subway power grid engineering cost data system, and so on.
[0052] In one possible implementation, such as Figure 3 As shown, step 310, establishing a data sharing system for power grid engineering costs based on blockchain technology, may include the following steps:
[0053] Step 311: Determine the data distribution network in the chain structure.
[0054] Specifically, the distributed data network in the blockchain structure utilizes a P2P network formed by the blockchain of power grid engineering cost data to achieve database sharing among nodes. Each node connects its database to the blockchain network. Unlike the centralized data management methods in existing technologies, each node queries and accesses data from other nodes' databases through the P2P network, thereby achieving shared management of engineering cost data with multi-party participation.
[0055] Step 313: Set up decentralized data management method and node data sharing permissions.
[0056] Specifically, taking the power grid engineering cost blockchain as an example, setting up a decentralized data management method and node data sharing permissions includes identifying the project participants, such as the owner, power grid company, design unit, surveying unit, construction unit, supervision unit, equipment supplier, etc. Then, corresponding nodes are set up in the blockchain network, and the node database is connected to the blockchain. At the same time, the data sharing permissions of each party in the blockchain are determined according to the scope of responsibility and data needs of each party in the project construction. This includes determining the power grid engineering cost data sharing type of various participants and the data access permissions between various node database nodes.
[0057] Step 315: Analyze and construct parallel traceability paths for engineering cost data.
[0058] Specifically, this includes analyzing the topology of data channels between nodes in the blockchain of power grid engineering cost data, determining the data connection relationship between each node, and constructing a digital channel for parallel traceability of power grid engineering cost data in the chain structure based on data query and traceability needs.
[0059] Through the above process, this embodiment utilizes blockchain to form a P2P network of project participants in the form of nodes. By leveraging the decentralized, transparent, and tamper-proof characteristics of blockchain, data exchange between the main project nodes is achieved, and the authenticity and reliability of the data uploaded to the chain are guaranteed. Through the decentralized database of each blockchain node and the smart contract function in the blockchain, parallel data traceability under the participation of multiple parties is achieved, thereby realizing efficient and accurate data traceability of power grid project cost data and ensuring clear data responsibility.
[0060] Step 330: Based on the sharing system, formulate a parallel traceability path algorithm for power grid engineering cost data and a smart contract for traceability of power grid engineering cost data based on blockchain technology.
[0061] Among them, such as Figure 4 As shown, the algorithm for parallel traceability path of power grid engineering cost data and the smart contract for traceability of power grid engineering cost data based on blockchain technology can be formulated. This can include formulating a dynamic permission allocation method for parallel traceability of data, which is executed by the dynamic permission allocation smart contract in the smart contract; formulating a method for calculating the shortest traceability path between nodes, which is executed by the node traceability path establishment smart contract in the smart contract; and formulating a node traceability path optimization method, which is executed by the node traceability path optimization smart contract in the smart contract.
[0062] Therefore, it is understandable that, as Figure 5 As shown, smart contracts include smart contracts for dynamic permission allocation for data traceability, smart contracts for establishing data traceability paths, and smart contracts for optimizing data traceability.
[0063] Specifically, in one possible implementation, taking a blockchain for power grid engineering cost estimation as an example, each main node needs to obtain permissions from the system administrator before tracing data. The administrator dynamically allocates tracing permissions based on the node's request content, such as the type of data to be traced and the node's tracing permissions. After data tracing is completed, data such as the reason for data tracing, the initiator of data tracing, the type of data traced, the data tracing time, and the data tracing effect are recorded, archived, and written into the blockchain. At the same time, smart contracts are used to analyze the tracing process, and based on the results, the tracing path and tracing algorithm are further optimized, and the optimized results are applied to the next data tracing.
[0064] As can be seen from the above, by using the power grid engineering cost data traceability path, traceability method and traceability algorithm based on blockchain technology, the target data can be traced quickly. By using the parallel multi-node traceability method, the traceability efficiency can be increased, and multi-dimensional and multi-level data traceability can be realized.
[0065] Specifically, such as Figure 6 As shown, in one possible implementation, the method for calculating the shortest tracing path between nodes may include the following steps:
[0066] Step 331: Record the distance from the initial node to all adjacent nodes, where adjacent nodes are nodes directly connected to the initial node.
[0067] Step 332: Select the node with the smallest distance from the initial node as the current node, record the distance from the current node to all adjacent nodes, and set all processed nodes as marked nodes.
[0068] Step 333: Update the distance between the initial node and the marked node based on the recorded distances between nodes.
[0069] Repeat steps 332 and 333 until all nodes are marked.
[0070] In the above process, multiple participants can perform tracing in parallel. During tracing, each participant interacts with the intermediate tracing results, dynamically adjusts the tracing path, and adaptively optimizes the next tracing path, thereby improving tracing efficiency. This process ensures data transmission via the shortest path, effectively improving data tracing efficiency.
[0071] Similarly, in one possible implementation, the node tracing path optimization method may include the following steps:
[0072] The first step is to store the traceability records of each node and archive the traceability information.
[0073] The second step involves optimizing the topology structure algorithm generated by the blockchain contract. During multi-party tracing, the tracing path and results are adaptively optimized based on the intermediate results and after interaction, thereby improving data tracing efficiency.
[0074] Similarly, in one possible implementation, the data traceability permission allocation method may include: when each subject node performs traceability, it needs to obtain traceability permission, and dynamically allocate the traceability permission according to the traceability requirements to ensure data security.
[0075] Step 350: Establish a parallel traceability path for power grid engineering cost data based on blockchain technology.
[0076] Specifically, such as Figure 7 As shown, in one possible implementation, determining the parallel traceability path for power grid engineering cost data may include the following steps:
[0077] Step 351: The initial node sends a data tracing request, and multiple initial nodes perform parallel tracing.
[0078] like Figure 8 As shown, the initial node is the data tracing initiation node. For example, the owner is the data tracing initiation node, and the target data is the design change data that caused the overall project cost change.
[0079] Step 353: After receiving the data tracing request, the intermediate node adjacent to the initial node queries whether its own node is the target node. The initial node interacts with the intermediate results of the path tracing process, dynamically adjusts the tracing path, and adaptively optimizes the tracing path.
[0080] The target node is the node that stores the target data.
[0081] Step 355: If the self node is not the target node, the request is sent to the adjacent next-level intermediate node, and the path length of each node is calculated.
[0082] Step 357: If the self node is the target node, after receiving the data tracing request, the tracing data is retrieved to prepare for sending to the initial node, and the parallel tracing algorithm is executed to calculate the data path length between each node in the shared system and select the shortest path to transmit the data to the initial node.
[0083] Specifically, such as Figure 9As shown, when multiple initial nodes need to trace the same target data, parallel tracing can improve efficiency. For example, initial nodes 1, 2, and 3 can start tracing data simultaneously. During the tracing process, the initial nodes can exchange data. For instance, if initial node 1 has already traced intermediate nodes 1 and 2, then initial nodes 2 and 3 can skip the intermediate nodes that have already been traced and optimize the tracing path in real time. It is understandable that the efficiency of data tracing can be effectively improved through this parallel tracing method.
[0084] The direction of tracing can also be chosen in multiple ways, such as forward tracing, reverse tracing, tracing from the middle, etc. There are no specific limitations here.
[0085] Step 370: Execute the smart contract for tracing power grid engineering cost data to perform parallel tracing of the target data.
[0086] Through the above process, it can be understood that the embodiments of this application differ from existing technologies. Instead of a centralized data tracing process initiated by the initiating node alone, a decentralized data management approach is used to achieve simultaneous tracing by all parties through cooperation. Taking the power grid cost data blockchain as an example, all parties can perform data tracing, enhancing data credibility. Furthermore, when tracing data, each party only needs to provide proof of tracing authority and data tags, such as data type and data time, without needing other intermediate processes such as approval procedures, thus achieving fast and convenient data tracing.
[0087] Furthermore, based on the open, transparent, immutable, decentralized management, and incentive mechanism of the blockchain network, this application embodiment records the traceability history, such as traceability process data and circumstances, in the blockchain, and uses smart contract functions to realize the effect evaluation and subsequent optimization after traceability, thereby comprehensively improving the efficiency of data traceability.
[0088] Figure 10 This is a flowchart illustrating the specific implementation of a parallel traceability method for power grid engineering cost data based on blockchain technology in an application scenario. In this application scenario, the power grid engineering cost data traceability system is a parallel traceability method for power grid engineering cost data.
[0089] Taking the parallel traceability method for power grid project cost data as an example, the process of tracing power grid project cost data is explained as follows:
[0090] Step 801: The client node initiates a traceability request for the address and cost data.
[0091] Step 802: Execute the permission allocation smart contract to assign traceability permissions to the client node.
[0092] Step 803: Determine the tracing path and tracing algorithm, use smart contracts to trace data, and send the data to the client node via the shortest path.
[0093] Step 804: Record and archive the traceability, and then optimize the smart contract.
[0094] Through the above process, this application embodiment uses blockchain to record information at each stage of engineering cost, and uses blockchain technology to build an open and transparent power grid engineering cost data sharing system, thereby realizing multi-party collaboration and mutual supervision. The decentralized and tamper-proof characteristics of blockchain technology effectively improve the traceability efficiency and security of power grid engineering cost data.
[0095] The following are embodiments of the apparatus described in this application, which can be used to perform the data tracing involved in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the data tracing method involved in this application.
[0096] Please see Figure 11 This application provides a parallel traceability system 1100 for power grid engineering cost data based on blockchain technology, including but not limited to:
[0097] System construction module 1110 is used to establish a data sharing system for power grid engineering cost based on blockchain technology;
[0098] The algorithm formulation module 1130 is used to formulate a parallel traceability path algorithm for engineering data based on blockchain technology and a smart contract for traceability of power grid engineering cost data corresponding to the traceability path algorithm, based on a shared system.
[0099] The path determination module 1150 is used to establish a parallel traceability path for power grid engineering cost data based on blockchain technology.
[0100] The traceability execution module 1170 is used to execute the smart contract for traceability of power grid engineering cost data, complete the data traceability process, and optimize the traceability path and results.
[0101] It should be noted that the data traceability device provided in the above embodiments is only illustrated by the division of the above functional modules when performing data traceability. In actual applications, the above functions can be assigned to different functional modules as needed. That is, the internal structure of the data traceability device will be divided into different functional modules to complete all or part of the functions described above.
[0102] Furthermore, the data traceability device and data traceability method embodiments provided in the above embodiments belong to the same concept, and the specific way in which each module performs operations has been described in detail in the method embodiments, and will not be repeated here.
[0103] Figure 12 A schematic diagram of the structure of an electronic device 2000 is shown according to an exemplary embodiment. This electronic device is suitable for... Figure 1 The server-side configuration 170 in the implementation environment is shown.
[0104] It should be noted that this electronic device is merely an example adapted to this application and should not be construed as providing any limitation on the scope of use of this application. The hardware structure of the electronic device 2000 can vary considerably due to differences in configuration or performance, such as... Figure 12 As shown, the electronic device 2000 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU) 270.
[0105] Specifically, power supply 210 is used to provide operating voltage for various hardware devices on electronic device 2000.
[0106] Interface 230 includes at least one wired or wireless network interface for interacting with external devices. For example, to perform... Figure 1 The diagram illustrates the interaction between the smart device 130 and the server 170 in the implementation environment.
[0107] Of course, in other examples adapted in this application, interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input / output interface 235, and at least one USB interface 237, etc., which is not intended to be a specific limitation.
[0108] The memory 250 serves as a carrier for resource storage and can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored on it include the operating system 251, application programs 253, and data 255, etc., and the storage method can be temporary storage or permanent storage.
[0109] The operating system 251 is used to manage and control the various hardware devices and application programs 253 on the electronic device 2000, so as to enable the central processing unit 270 to perform calculations and processing on the massive data 255 in the memory 250. It can be Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, etc.
[0110] Application 253 is a computer program that performs at least one specific task based on operating system 251, and may include at least one module ( Figure 11 (Not shown), each module may contain a computer program for the electronic device 2000. For example, the data tracing device may be considered as an application program 253 deployed on the electronic device 2000.
[0111] Data 255 can be photos, pictures, etc. stored on a disk, or reflected signals, location data, etc., stored in memory 250.
[0112] The central processing unit 270 may include one or more processors and is configured to communicate with the memory 250 via at least one communication bus to read computer programs stored in the memory 250, thereby performing operations and processing on massive amounts of data 255 stored in the memory 250. For example, a data tracing method may be implemented by the central processing unit 270 reading a series of computer programs stored in the memory 250.
[0113] Furthermore, this application can also be implemented through hardware circuits or a combination of hardware circuits and software. Therefore, the implementation of this application is not limited to any specific hardware circuit, software, or combination thereof.
[0114] Please see Figure 13 This application provides an electronic device 4000, which may include: a smart device configured with a blockchain module, a server, etc.
[0115] exist Figure 13 The electronic device 4000 includes at least one processor 4001, at least one communication bus 4002, and at least one memory 4003.
[0116] The processor 4001 and memory 4003 are connected, for example, via a communication bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.
[0117] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0118] The communication bus 4002 may include a path for transmitting information between the aforementioned components. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 13 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0119] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0120] The memory 4003 stores a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002.
[0121] When the computer program is executed by the processor 4001, it implements the data tracing methods in the above embodiments.
[0122] Furthermore, this application provides a storage medium storing a computer program, which, when executed by a processor, implements the data tracing methods described in the above embodiments.
[0123] This application provides a computer program product comprising a computer program stored in a storage medium. A processor of a computer device reads the computer program from the storage medium and executes the computer program, causing the computer device to perform the data traceability methods described in the above embodiments.
[0124] Compared with related technologies, this application can solve the problems of low traceability efficiency, low accuracy of data query, and low data security of power grid engineering cost data. It records information of each stage of engineering cost through a power grid engineering cost data sharing system, and uses blockchain technology to build an open and transparent power grid engineering cost data sharing platform, thereby realizing multi-party collaboration and mutual supervision. The decentralized and tamper-proof nature of blockchain technology effectively improves the traceability efficiency and security of power grid engineering cost data.
[0125] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0126] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A parallel tracing method for power grid engineering cost data based on blockchain technology, characterized in that, The parallel traceability method for power grid engineering cost data includes: Establish a data sharing system for power grid engineering cost based on blockchain technology; Based on the aforementioned power grid engineering cost data sharing system, a parallel traceability path algorithm and a smart contract for power grid engineering cost data traceability based on blockchain technology are formulated. The smart contract for power grid engineering cost data traceability corresponds to the parallel traceability path algorithm. The parallel traceability path algorithm includes a method for calculating the shortest traceability path between nodes and a method for optimizing the traceability path between nodes. The method for calculating the shortest traceability path between nodes involves multiple participants performing traceability in parallel. During the traceability process, each participant interacts with the intermediate traceability results and dynamically adjusts the traceability path. The smart contract for power grid engineering cost data traceability includes a smart contract for dynamic permission allocation for data traceability, a smart contract for determining the data traceability path, and a smart contract for optimizing the data traceability. Establish a parallel traceability path for dynamic optimization of power grid engineering cost data based on blockchain technology; The smart contract for tracing the power grid project cost data is executed to complete the data tracing process and optimize the tracing path and results.
2. The method of claim 1, wherein, The establishment of a data sharing system for power grid engineering costs based on blockchain technology includes: Determine the data distribution network in the chain structure; Configure decentralized data management methods and node data sharing permissions; Analyze and construct parallel traceability paths for engineering cost data.
3. The method of claim 1, wherein, The blockchain-based power grid engineering cost data parallel traceability path algorithm also includes a data parallel traceability dynamic permission allocation method.
4. The method as described in claim 1, characterized in that, The method for calculating the shortest tracing path between nodes includes: Step 331: Record the distance from the initiating node to all adjacent nodes, where the adjacent nodes are nodes directly connected to the initiating node; Step 332: Select the node with the smallest distance from the initiating node as the current node, record the distance from the current node to all adjacent nodes, and set all processed nodes as marked nodes. Step 333: Update the distance between the initiating node and the marked node based on the recorded distances between nodes; Step 334: Repeat steps 332 and 333 until all nodes are marked. In this process, multiple parties conduct tracing in parallel. During the tracing process, each party interacts with the intermediate tracing results, dynamically adjusts the tracing path, and adaptively optimizes the next tracing path.
5. The method as described in claim 1, characterized in that, The node tracing path optimization method includes: Store traceability records for each node and archive the traceability information; The execution node traceability path optimization smart contract generates a topology optimization algorithm. During multi-party traceability, the traceability path and results are adaptively optimized after interaction based on the intermediate results.
6. The method as described in claim 1, characterized in that, The establishment of a dynamic optimization parallel traceability path for power grid engineering cost data based on blockchain technology includes: An initial node issues a data tracing request; the initial node is the data tracing initiating node, and multiple initial nodes perform parallel tracing. Upon receiving a data tracing request, a node adjacent to the initial node queries whether its own node is the target node. The target node is the node that stores the target data. The initial node interacts with the intermediate results of the path tracing process, dynamically adjusts the tracing path, and adaptively optimizes the tracing path. If the self node is not the target node, the request is sent to the adjacent next-level node, and the path length of each node is calculated. If the self node is the target node, then upon receiving the data tracing request, the parallel tracing algorithm is executed to select the shortest path to transmit the target data to the initial node.
7. A parallel traceability system for power grid engineering cost data based on blockchain technology, characterized in that, The system includes: The system construction module establishes a data sharing system for power grid engineering cost based on blockchain technology. The algorithm formulation module, based on the power grid engineering cost data sharing system, formulates a parallel tracing path algorithm and a smart contract for power grid engineering cost data tracing based on blockchain technology. The smart contract corresponds to the parallel tracing path algorithm. The parallel tracing path algorithm includes a method for calculating the shortest tracing path between nodes and a method for optimizing the node tracing path. The method for calculating the shortest tracing path between nodes involves multiple participants performing tracing in parallel. During the tracing process, each participant interacts with the intermediate tracing results and dynamically adjusts the tracing path. The smart contract for power grid engineering cost data tracing includes a smart contract for dynamic permission allocation, a smart contract for determining the tracing path, and a smart contract for optimizing the tracing path. The path determination module establishes a parallel traceability path for power grid engineering cost data based on blockchain technology. The traceability execution module executes the smart contract for tracing the power grid engineering cost data, completes the data traceability process, and optimizes the traceability path and results.
8. An electronic device, characterized in that, include: At least one processor, at least one memory, and a computer program stored in the memory and executable on the processor; wherein, When the computer program is executed by the processor, it implements the parallel traceability method for power grid engineering cost data as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that, The readable storage medium stores a computer program, which, when executed by a processor, implements the parallel traceability method for power grid engineering cost data as described in any one of claims 1 to 6.