CN115033645A - Electric power data storage method and system based on block chain technology - Google Patents

Electric power data storage method and system based on block chain technology Download PDF

Info

Publication number
CN115033645A
CN115033645A CN202210786646.1A CN202210786646A CN115033645A CN 115033645 A CN115033645 A CN 115033645A CN 202210786646 A CN202210786646 A CN 202210786646A CN 115033645 A CN115033645 A CN 115033645A
Authority
CN
China
Prior art keywords
data
power
node
storage
request
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
CN202210786646.1A
Other languages
Chinese (zh)
Other versions
CN115033645B (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.)
Guizhou Power Grid Co Ltd
Original Assignee
Guizhou Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Power Grid Co Ltd filed Critical Guizhou Power Grid Co Ltd
Priority to CN202210786646.1A priority Critical patent/CN115033645B/en
Publication of CN115033645A publication Critical patent/CN115033645A/en
Application granted granted Critical
Publication of CN115033645B publication Critical patent/CN115033645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Tourism & Hospitality (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a block chain technology-based power data storage method and system. The method comprises the steps that a first storage request of a user is obtained, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; generating a second storage request, sending the second storage request to an endorsement node, and returning an endorsement result to the client by the endorsement node; the client sends the first power encryption data and the endorsement result to the sequencing node, and the sequencing node packages the first power encryption data into block data, updates the block data and broadcasts the block data to the submission node; the submitting node receives the updating block and stores the effective first power encryption data to the database. The traditional cloud storage method based on the block chain is adapted to electric power data storage, and data safety and performance are improved.

Description

Electric power data storage method and system based on block chain technology
Technical Field
The invention relates to the field of data storage, in particular to a power data storage method and system based on a block chain technology.
Background
As the economy develops, the data volume of power data appears to grow explosively. In the prior art, the data is stored on the network server, so that expensive additional equipment such as a host bus adapter and a disk array is required, and additional field and energy consumption are required. The block chain storage based on the prior art is suitable for poor safety and synchronization control of power data. Therefore, a scheme for improving data security and synchronization performance of storage and having better applicability and expandability in a cloud storage scenario is urgently needed.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a storage scheme for improving data security and storage synchronization performance for power data.
The invention provides a power data storage method based on a block chain technology, which comprises the following steps:
s1, acquiring a first storage request of a user, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
s2, generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to the endorsement node, and returning an endorsement result to the client by the endorsement node;
s3, determining whether the endorsement result meets an endorsement strategy, if so, sending the first electric power encrypted data and the endorsement result to a sequencing node by the client, packaging the first electric power encrypted data into block data by the sequencing node, updating the block data, and broadcasting the updated block data to a submission node;
s4, the commit node receives the update block and stores the valid first power encryption data in the database.
Further, triggering the first power data to be encrypted according to the first request to generate first power encrypted data, comprising:
s11, calculating a hash value of first power data, and performing symmetric encryption on the first power data based on a random number K to obtain first power encrypted data; meanwhile, encrypting the random number K to obtain second random number encrypted data;
and S12, transmitting the first power encryption data and the second random number encryption data to a cloud storage.
Further, the block data is stored in a chained mode on the node; performing random memory access of the block data according to a delay synchronization mechanism;
the sorting node packs the first power encryption data into block data, updates the block data, and broadcasts the updated block data to the submitting node, and the method further includes:
s01, receiving an update request, and obtaining a synchronization feature value R between current acknowledgement blocks according to the update request:
Figure 484725DEST_PATH_IMAGE001
wherein, the
Figure 598174DEST_PATH_IMAGE002
Figure 523405DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the network delay between the current node and other connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and S02, determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
Further, selecting a time interval t, and calculating a time period Ts for requesting to update the storage again;
Figure 810030DEST_PATH_IMAGE004
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
Further, the first description information is used for describing attribute information of the first power data; the method comprises the steps of recording time information and sharable authority information of a power distribution network ID corresponding to power data;
generating a second storage request according to the first description information, the access information and the first hash value includes:
writing the first description information, the access information and the first hash value into a second storage request;
and the endorsement node verifies that the signature is the endorsement of the preset user and returns an endorsement result to the client.
A second aspect of the invention provides a power data storage system based on a block chain technique, the system comprising:
the first request module is used for acquiring a first storage request of a user, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
the second request module is used for generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to the endorsement node, and returning an endorsement result to the client by the endorsement node;
the confirmation and transmission module is used for determining whether the endorsement result meets an endorsement strategy, if so, the client sends the first electric power encrypted data and the endorsement result to the sequencing node, and the sequencing node packs the first electric power encrypted data into block data, updates the block data and broadcasts the block data to the submission node;
and the storage module is used for submitting the update block received by the node and storing the effective first power encryption data to the database.
Further, the block data is stored in a chained mode on the node; performing random memory access of the block data according to a delay synchronization mechanism;
the confirmation and transmission module is further configured to:
receiving an update request, and acquiring a synchronization characteristic value R between current confirmation blocks according to the update request:
Figure 871527DEST_PATH_IMAGE005
wherein, the
Figure 968927DEST_PATH_IMAGE002
Figure 381454DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the current node and the current nodeThe network delay between his connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
Further, the acknowledgement and transmission module is further configured to:
selecting a time interval t, and calculating a time period Ts for requesting to update the storage again;
Figure 409453DEST_PATH_IMAGE006
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
A third aspect of the present invention provides a storage medium storing a computer program; the program is loaded and executed by a processor to implement the power data storage method steps based on the block chain technique as described above.
According to the scheme, a first storage request of a user is obtained, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule; generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to an endorsement node, and returning an endorsement result to the client by the endorsement node; determining whether the endorsement result meets an endorsement strategy, if so, sending the first electric power encrypted data and the endorsement result to a sequencing node by the client, packaging the first electric power encrypted data into block data by the sequencing node, updating the block data and broadcasting the block data to a submission node; the submitting node receives the updating block and stores the effective first power encryption data to the database. The traditional cloud storage method based on the block chain is adapted to electric power data storage by improving, data safety and storage synchronization performance are improved, and the cloud storage method has better applicability and expandability in a cloud storage scene.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic flow chart illustrating a method for storing power data based on a block chain technique according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a power data storage system based on a block chain technology according to an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the embodiments of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for storing electric power data based on a block chain technology according to an embodiment of the present invention. As shown in fig. 1, a method for storing power data based on a block chain technique according to an embodiment of the present invention includes:
s1, acquiring a first storage request of a user, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
s2, generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to the endorsement node, and returning an endorsement result to the client by the endorsement node;
s3, determining whether the endorsement result meets an endorsement strategy, if so, sending the first electric power encrypted data and the endorsement result to a sequencing node by the client, packaging the first electric power encrypted data into block data by the sequencing node, updating the block data, and broadcasting the updated block data to a submission node;
s4, the commit node receives the update block and stores the valid first power encrypted data in the database.
Further, triggering the encryption of the first power data to generate first power encrypted data according to the first request, comprising:
s11, calculating a hash value of first power data, and performing symmetric encryption on the first power data based on a random number K to obtain first power encrypted data; meanwhile, encrypting the random number K to obtain second random number encrypted data;
and S12, transmitting the first power encryption data and the second random number encryption data to a cloud storage.
Further, the block data is stored in a chained mode on the node; performing random memory access of the block data according to a delay synchronization mechanism;
the sorting node packs the first power encryption data into block data, updates the block data, and broadcasts the updated block data to the submitting node, and the method further includes:
s01, receiving an update request, and obtaining a synchronization feature value R between current acknowledgement blocks according to the update request:
Figure 653352DEST_PATH_IMAGE007
wherein, the
Figure 843025DEST_PATH_IMAGE002
Figure 555897DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the network delay between the current node and other connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and S02, determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
Further, selecting a time interval t, and calculating a time period Ts for requesting to update the storage again;
Figure 122008DEST_PATH_IMAGE006
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
Further, the first description information is used for describing attribute information of the first power data; the method comprises the steps of recording time information and sharable authority information of a power distribution network ID corresponding to power data;
the generating a second storage request according to the first description information, the access information and the first hash value includes:
writing the first description information, the access information and the first hash value into a second storage request;
and the endorsement node verifies that the signature is the endorsement of the preset user and returns an endorsement result to the client.
Referring to fig. 2, a second aspect of the present embodiment provides a power data storage system based on a block chain technique, the system including:
a first request module 10, configured to obtain a first storage request of a user, where the first storage request includes first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
the second request module 20 is configured to generate a second storage request according to the first description information, the access information, and the first hash value, send the second storage request to the endorsement node, and return an endorsement result to the client by the endorsement node;
the confirming and transmitting module 30 is used for determining whether the endorsement result meets an endorsement policy, if so, the client sends the first electric power encrypted data and the endorsement result to the sequencing node, and the sequencing node packs the first electric power encrypted data into block data, updates the block data and broadcasts the block data to the submitting node;
and the storage module 40 is used for submitting the update block received by the node and storing the valid first power encryption data to the database.
Further, the block data is stored in a chained mode on the node; performing random memory access of the block data according to a delay synchronization mechanism;
the acknowledgement and transmission module 30 is further configured to:
receiving an update request, and acquiring a synchronization characteristic value R between current confirmation blocks according to the update request:
Figure 485993DEST_PATH_IMAGE001
wherein, the
Figure 846567DEST_PATH_IMAGE002
Figure 43806DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the network delay between the current node and other connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
Further, the acknowledgement and transmission module 30 is further configured to:
selecting a time interval t, and calculating a time period Ts for requesting to update the storage again;
Figure 413607DEST_PATH_IMAGE004
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
In addition, this application embodiment also discloses an electronic device, electronic device includes: one or more processors, memory for storing one or more computer programs; wherein the computer program is configured to be executed by the one or more processors, the program comprising instructions for performing the power data storage method steps based on the blockchain technique as described above.
In addition, the embodiment of the application also provides a storage medium, and the storage medium stores a computer program; the program is loaded and executed by a processor to implement the power data storage method steps based on the blockchain technique as described above.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The elements described as separate parts may or may not be physically separate, as one of ordinary skill in the art would appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general sense in the foregoing description for clarity of explanation of the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a grid device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A power data storage method based on a block chain technology is characterized by comprising the following steps:
s1, acquiring a first storage request of a user, wherein the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
s2, generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to the endorsement node, and returning an endorsement result to the client by the endorsement node;
s3, determining whether the endorsement result meets an endorsement strategy, if so, sending the first electric power encrypted data and the endorsement result to a sequencing node by the client, packaging the first electric power encrypted data into block data by the sequencing node, updating the block data, and broadcasting the updated block data to a submission node;
s4, the commit node receives the update block and stores the valid first power encryption data in the database.
2. The power data storage method based on the block chain technology according to claim 1, wherein the step of triggering encryption of the first power data according to the first request to generate first power encrypted data comprises:
s11, calculating a hash value of first power data, and performing symmetric encryption on the first power data based on a random number K to obtain first power encrypted data; meanwhile, encrypting the random number K to obtain second random number encrypted data;
and S12, transmitting the first power encryption data and the second random number encryption data to a cloud storage.
3. The method for storing power data based on block chain technology as claimed in claim 1 or 2, wherein the block data is stored in a chain on the node; performing random memory access of the block data according to a delay synchronization mechanism;
the sorting node packs the first power encryption data into block data, updates the block data, and broadcasts the updated block data to the submitting node, and the method further includes:
s01, receiving an update request, and obtaining a synchronization feature value R between current acknowledgement blocks according to the update request:
Figure DEST_PATH_IMAGE001
wherein, the
Figure 918386DEST_PATH_IMAGE002
Figure DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the network delay between the current node and other connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and S02, determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
4. The method according to claim 3, wherein a time interval t is selected, and a time period Ts for requesting a storage update again is calculated;
Figure 126644DEST_PATH_IMAGE004
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
5. The block chain technology-based power data storage method according to claim 3, wherein the first description information is used to describe attribute information of the first power data; the method comprises the steps of recording time information and sharable authority information of a power distribution network ID corresponding to power data;
the generating a second storage request according to the first description information, the access information and the first hash value includes:
writing the first description information, the access information and the first hash value into a second storage request;
and the endorsement node verifies that the signature is the endorsement of the preset user and returns an endorsement result to the client.
6. A power data storage system based on block chain technology, the system comprising:
the system comprises a first request module, a first storage module and a second request module, wherein the first request module is used for acquiring a first storage request of a user, and the first storage request comprises first power data to be uploaded; triggering encryption of the first power data to generate first power encrypted data according to the first request, and triggering generation of first description information, access information and a first hash value; the access information comprises a preset access rule, and the first hash value is used for acquiring the preset access rule;
the second request module is used for generating a second storage request according to the first description information, the access information and the first hash value, sending the second storage request to the endorsement node, and returning an endorsement result to the client by the endorsement node;
the confirmation and transmission module is used for determining whether the endorsement result meets an endorsement strategy, if so, the client sends the first electric power encrypted data and the endorsement result to the sequencing node, and the sequencing node packs the first electric power encrypted data into block data, updates the block data and broadcasts the block data to the submission node;
and the storage module is used for submitting the update block received by the node and storing the effective first power encryption data to the database.
7. The electrical power data storage system based on block chaining technology of claim 6, wherein said block data is chained on nodes; performing random memory access of the block data according to a delay synchronization mechanism;
the confirmation and transmission module is further configured to:
receiving an update request, and acquiring a synchronization characteristic value R between current confirmation blocks according to the update request:
Figure DEST_PATH_IMAGE005
wherein, the
Figure 941017DEST_PATH_IMAGE002
Figure 825796DEST_PATH_IMAGE003
Representing a compensation parameter; b is the average bandwidth of the current node, and T represents the network delay between the current node and other connected nodes; l represents the packet loss rate, and A is the maximum value of the synchronization characteristic value; n is the request times of the current node in unit time;
and determining the time period for requesting to update the storage again according to the synchronization characteristic value R and the maximum value A of the synchronization characteristic value.
8. The electrical power data storage system based on block chain technology as claimed in claim 7, wherein the confirmation and transmission module is further configured to:
selecting a time interval t, and calculating a time period Ts for requesting to update the storage again;
Figure 92829DEST_PATH_IMAGE006
and storing the block data to be updated into a cache, and deleting the corresponding cache for the updated block data.
9. A storage medium storing a computer program; wherein the program is loaded and executed by a processor to implement the power data storage method steps based on the blockchain technique according to claims 1-5.
CN202210786646.1A 2022-07-06 2022-07-06 Power data storage method and system based on block chain technology Active CN115033645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210786646.1A CN115033645B (en) 2022-07-06 2022-07-06 Power data storage method and system based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210786646.1A CN115033645B (en) 2022-07-06 2022-07-06 Power data storage method and system based on block chain technology

Publications (2)

Publication Number Publication Date
CN115033645A true CN115033645A (en) 2022-09-09
CN115033645B CN115033645B (en) 2023-11-21

Family

ID=83129582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210786646.1A Active CN115033645B (en) 2022-07-06 2022-07-06 Power data storage method and system based on block chain technology

Country Status (1)

Country Link
CN (1) CN115033645B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800598A (en) * 2018-12-29 2019-05-24 中链科技有限公司 Certificate administration method, apparatus, electronic equipment and storage medium based on block chain
CN110162992A (en) * 2019-05-31 2019-08-23 联想(北京)有限公司 Data processing method, data processing equipment and computer system
CN110399424A (en) * 2018-04-23 2019-11-01 百度在线网络技术(北京)有限公司 Block generation method, device, block chain node and storage medium
CN110708170A (en) * 2019-12-13 2020-01-17 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN110912990A (en) * 2019-11-21 2020-03-24 腾讯科技(深圳)有限公司 Method and related equipment for updating consensus period
CN112053153A (en) * 2020-08-27 2020-12-08 中信银行股份有限公司 Endorsement signature data storage method and device, electronic equipment and readable storage medium
CN112835977A (en) * 2021-01-20 2021-05-25 中国科学院信息工程研究所 Database management method and system based on block chain
CN113779607A (en) * 2021-09-16 2021-12-10 北京易华录信息技术股份有限公司 Industrial data asset management method, system and equipment
CN114090682A (en) * 2021-10-27 2022-02-25 润联软件系统(深圳)有限公司 Multi-channel alliance link chaining method, device, equipment and storage medium
CN114500069A (en) * 2022-02-10 2022-05-13 福建福链科技有限公司 Method and system for storing and sharing electronic contract

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399424A (en) * 2018-04-23 2019-11-01 百度在线网络技术(北京)有限公司 Block generation method, device, block chain node and storage medium
CN109800598A (en) * 2018-12-29 2019-05-24 中链科技有限公司 Certificate administration method, apparatus, electronic equipment and storage medium based on block chain
CN110162992A (en) * 2019-05-31 2019-08-23 联想(北京)有限公司 Data processing method, data processing equipment and computer system
CN110912990A (en) * 2019-11-21 2020-03-24 腾讯科技(深圳)有限公司 Method and related equipment for updating consensus period
CN110708170A (en) * 2019-12-13 2020-01-17 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN112053153A (en) * 2020-08-27 2020-12-08 中信银行股份有限公司 Endorsement signature data storage method and device, electronic equipment and readable storage medium
CN112835977A (en) * 2021-01-20 2021-05-25 中国科学院信息工程研究所 Database management method and system based on block chain
CN113779607A (en) * 2021-09-16 2021-12-10 北京易华录信息技术股份有限公司 Industrial data asset management method, system and equipment
CN114090682A (en) * 2021-10-27 2022-02-25 润联软件系统(深圳)有限公司 Multi-channel alliance link chaining method, device, equipment and storage medium
CN114500069A (en) * 2022-02-10 2022-05-13 福建福链科技有限公司 Method and system for storing and sharing electronic contract

Also Published As

Publication number Publication date
CN115033645B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN111066285B (en) SM2 signature based public key recovery method
EP4002181A1 (en) A consensus method and framework for a blockchain system
US20160127131A1 (en) Distributed Validation of Digitally Signed Electronic Documents
CN113711202A (en) Method and apparatus for implementing state attestation and ledger identifiers in a distributed database
CN110945831B (en) Generation of anti-Sybil attack identities
Jiang et al. Lattice‐based multi‐use unidirectional proxy re‐encryption
CN116032667B (en) Online trace query method, system and related equipment supporting efficient update
CN105721156A (en) General Encoding Functions For Modular Exponentiation Encryption Schemes
CN114615642A (en) Vehicle identity authentication method and device in vehicle-to-vehicle communication, vehicle and storage medium
CN116910739A (en) Device data access control method, system, device and medium based on block chain
CN110611568B (en) Dynamic encryption and decryption method, device and equipment based on multiple encryption and decryption algorithms
CN115033645B (en) Power data storage method and system based on block chain technology
CN115834050A (en) Communication method, device, equipment and computer readable storage medium
CN115834694A (en) Data storage method, device, storage chip and computer readable storage medium
KR20220170773A (en) Dynamic merkle tree-based message stream generation apparatus, message streaming method and message streaming network system
CN110611674B (en) Protocol interaction method, system and storage medium between different computer systems
EP3200388B1 (en) User permission check system
CN113508407A (en) Method for operating a distributed database system, distributed database system and industrial automation system
EP4095731A1 (en) Method and system of rescinding access to blockchain data
US11626986B1 (en) Method and system of rescinding access to blockchain data
CN117812092B (en) Predicate-based block compression transmission method and apparatus, device and medium
JP2014007514A (en) Encryption communication system, key center device, client device, encryption method, and program
CN114826614B (en) Distributed storage method and device for authenticatable password library file and electronic equipment
CN113206837B (en) Information transmission method and device, electronic equipment and computer readable medium
EP3800825B1 (en) Method and device for configuring alias credential

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