CN114399389A - Block chain-based power generation data management method and smart grid system - Google Patents

Block chain-based power generation data management method and smart grid system Download PDF

Info

Publication number
CN114399389A
CN114399389A CN202210077183.1A CN202210077183A CN114399389A CN 114399389 A CN114399389 A CN 114399389A CN 202210077183 A CN202210077183 A CN 202210077183A CN 114399389 A CN114399389 A CN 114399389A
Authority
CN
China
Prior art keywords
power generation
decentralized identity
block chain
internet
private key
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.)
Pending
Application number
CN202210077183.1A
Other languages
Chinese (zh)
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.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Hangzhou Rivtower Technology 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 Hangzhou Rivtower Technology Co Ltd filed Critical Hangzhou Rivtower Technology Co Ltd
Priority to CN202210077183.1A priority Critical patent/CN114399389A/en
Publication of CN114399389A publication Critical patent/CN114399389A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • G06F16/2379Updates performed during online database operations; commit processing
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Accounting & Taxation (AREA)
  • Bioethics (AREA)
  • Marketing (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Water Supply & Treatment (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A block chain-based power generation data management method and a smart grid system are disclosed, wherein the method is applied to the smart grid system; the intelligent power grid system comprises power generation equipment based on the Internet of things and a block chain in butt joint with the Internet of things; the method comprises the following steps: creating a decentralized identity for the power generation equipment, wherein the file of the decentralized identity is managed by the block chain, and the decentralized identity is bound with an internet of things chip in the corresponding power generation equipment; the power generation equipment uses the decentralized identity to sign the power generation data of the power generation equipment through an internet of things chip of the power generation equipment; and sending the signed generated energy data to the block chain for evidence storage. By applying the scheme, the reliability and the safety of the power generation data can be improved, and the implementation cost of the scheme is reduced.

Description

Block chain-based power generation data management method and smart grid system
Technical Field
The specification relates to the technical field of block chains, in particular to a block chain-based power generation data management method and an intelligent power grid system.
Background
In the industrial intelligent process, low-carbon economy is considered as one of feasible paths of sustainable development, and when the low-carbon economy is implemented, the carbon emission quota can be used as a carbon asset and redistributed through a carbon asset trading market so as to encourage enterprises in various industries to exchange additional profits for energy conservation and emission reduction; the traditional thermal power generation generally considers that extra carbon emission is caused, and the electric power generated by new energy industries represented by hydropower, wind power and photovoltaic power generation does not cause extra carbon emission; therefore, the rapid and accurate statistics of the power generation amount is a precondition for accurately calculating the carbon emission amount.
In the related technology, although the generators in the power plant can be networked through the internet of things technology, the generation data of the generators can be uniformly read for management, and the efficiency and accuracy of the generated energy statistics are improved, the scheme still has the problems that the data are falsified and related departments are difficult to manage in a penetrating manner.
Disclosure of Invention
In view of this, the present specification discloses a block chain-based power generation data management method and a smart grid system.
According to a first aspect of embodiments of the present specification, a block chain-based power generation data management method is disclosed, which is applied to a smart grid system; the intelligent power grid system comprises power generation equipment based on the Internet of things and a block chain in butt joint with the Internet of things; the method comprises the following steps:
creating a decentralized identity for the power generation equipment, wherein the file of the decentralized identity is managed by the block chain, and the decentralized identity is bound with an internet of things chip in the corresponding power generation equipment;
the power generation equipment uses the decentralized identity to sign the power generation data of the power generation equipment through an internet of things chip of the power generation equipment;
and sending the signed generated energy data to the block chain for evidence storage.
Optionally, the creating a decentralized identity for the power generation device includes:
according to power generation facility's characteristic information generates public private key pair, and will pass through the decentralization identity application request of the private key signature in public private key pair and public key in public private key pair send to the district chain, so that the district chain is in the check the decentralization identity that the signature of decentralization identity application request passes through under, newly-built with the decentralization identity that the public key corresponds.
Optionally, a trusted execution environment is loaded in the internet of things chip; generating a public and private key pair according to the characteristic information of the power generation equipment comprises the following steps:
generating a public and private key pair in a trusted execution environment carried in the chip of the internet of things by the chip of the internet of things in the power generation equipment according to the characteristic information of the power generation equipment, and exposing a calling interface of a private key in the public and private key pair and a public key in the public and private key pair to the outside of the trusted execution environment;
binding the decentralized identity with an internet of things chip in the corresponding power generation equipment, including:
and the Internet of things chip in the power generation equipment receives the identifier of the decentralized identity returned by the block chain and binds the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
Optionally, the sending the signed generated energy data to the block chain for verification includes:
sending the signed generated energy data to the block chain so that the block chain stores the signed generated energy data in a distributed account book, and adding a signed generated energy data storage address to an index of identification retrieval based on a decentralized identity;
the method further comprises the following steps:
and searching a card storage address corresponding to each decentralized identity to be counted in the index, calling corresponding generated energy data from the distributed account book of the block chain according to the searched card storage address, and carrying out classification counting on the called generated energy data according to the decentralized identity.
Optionally, the method further includes:
constructing an intelligent contract calling transaction carrying the counted generated energy data classified according to the decentralized identity;
and sending the intelligent contract calling transaction to the block chain to call carbon asset conversion intelligent contracts deployed in the block chain in advance, and converting the counted generated energy data classified according to the decentralized identity into the number of the carbon assets corresponding to the decentralized identity to be counted respectively.
According to a second aspect of embodiments herein, there is disclosed a smart grid system comprising:
the power generation equipment based on the Internet of things is loaded with an Internet of things chip bound with a decentralized identity, and is used for signing own generated energy data by using the decentralized identity through the Internet of things chip and issuing the signed generated energy data to the block chain;
and the block chain is in butt joint with the Internet of things and is used for creating and managing the decentralized identity of the power generation equipment and receiving and verifying the signed generated energy data.
Optionally, the power generation device is further configured to: generating a public and private key pair according to the characteristic information of the power generation equipment, and sending a decentralized identity application request signed by a private key in the public and private key pair and a public key in the public and private key pair to the block chain;
the blockchain is further to: verifying the signature of the decentralized identity application request; and under the condition that the verification is passed, establishing a decentralized identity corresponding to the public key.
Optionally, a trusted execution environment is loaded in the internet of things chip;
the power generation apparatus is further configured to: generating a public and private key pair according to the characteristic information of the power generation equipment in a trusted execution environment loaded in the Internet of things chip through a loaded Internet of things chip, and exposing a calling interface of a private key in the public and private key pair and a public key in the public and private key pair to the outside of the trusted execution environment;
the power generation apparatus is further configured to: and receiving the identifier of the decentralized identity returned by the block chain through a carried Internet of things chip, and binding the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
Optionally, the block chain is further configured to:
storing the signed generated energy data in a distributed account book, and adding the signed generated energy data to an index of identification retrieval based on decentralized identity;
the system also comprises a statistical server used for searching the card storage addresses corresponding to the decentralized identity marks to be counted in the index, calling corresponding generated energy data from the distributed account book of the block chain according to the searched card storage addresses, and performing classified statistics on the called generated energy data according to the decentralized identity marks.
Optionally, the block chain is further configured to:
receiving an intelligent contract call transaction carrying the counted generated energy data classified according to the decentralized identity;
and responding to the intelligent contract calling transaction, calling a carbon asset conversion intelligent contract which is pre-deployed in the block chain, and converting the counted generated energy data which is obtained according to the decentralized identity identification classification into the number of the carbon assets which are respectively corresponding to the decentralized identity identifications to be counted.
According to a third aspect of embodiments herein, a computer device is disclosed, comprising at least a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any of the embodiments of the first aspect when executing the program.
According to a fourth aspect of embodiments herein, a computer-readable storage medium is disclosed, having stored thereon a computer program which, when executed by a processor, implements the method of any of the embodiments of the first aspect described above.
In the above technical solution, on one hand, the block chain has the properties of decentralized operation, openness and transparency, and is difficult to tamper, so that it is verified that the generated energy data in the block chain is difficult to tamper, and the safety of the generated energy data and the reliability of management can be guaranteed.
On the other hand, each power generation device has the decentralized identity on the blockchain, so that the corresponding decentralized identity is used as the signature of the power generation data, the integrity of the power generation data can be guaranteed, and the blockchain can conveniently identify the power generation device corresponding to the power generation data.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this specification and together with the description, serve to explain the principles.
FIG. 1 is a flow chart illustrating a block chain based power generation data management method shown in the present specification;
fig. 2 is a schematic structural diagram of an internet of things chip with an embedded trusted execution environment shown in this specification;
FIG. 3 is a flowchart illustrating an example of a process for deploying and invoking an intelligent contract;
fig. 4 is a diagram illustrating an example of the structure of a smart grid according to the present disclosure;
fig. 5 is a diagram showing an example of the structure of a computer apparatus for block chain-based power generation data management, according to the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure. It is to be understood that the described embodiments are only a few, and not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from one or more embodiments of the disclosure without making any creative effort shall fall within the scope of the disclosure.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of systems and methods consistent with aspects of the present description.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the industrial intelligent process, low-carbon economy is considered as one of feasible paths of sustainable development, and when the low-carbon economy is implemented, the carbon emission quota can be used as a carbon asset and redistributed through a carbon asset trading market so as to encourage enterprises in various industries to exchange additional profits for energy conservation and emission reduction; the traditional thermal power generation generally considers that extra carbon emission is caused, and the electric power generated by new energy industries represented by hydropower, wind power and photovoltaic power generation does not cause extra carbon emission; therefore, the rapid and accurate statistics of the power generation amount is a precondition for accurately calculating the carbon emission amount.
In the related technology, although the generators in the power plant can be networked through the internet of things technology, the generation data of the generators can be uniformly read for management, and the efficiency and accuracy of the generated energy statistics are improved, the scheme still has the problems that the data are falsified and related departments are difficult to manage in a penetrating manner.
Based on this, this specification proposes one kind and uses the thing networking to carry out the networking with power generation facility, docks to the block chain in to deposit the technical scheme that proves through the generated energy data of block chain to the power generation facility of networking.
When the intelligent power generation system is realized, the power generation equipment carrying the Internet of things chip and the block chain can be regarded as part of the intelligent power grid, and the power generation equipment can claim decentralized identities in the block chain, so that the power generation equipment signs the generated energy data through the carried Internet of things chip by using the corresponding decentralized identities and then sends the signed generated energy data to the block chain for storage.
In the above technical solution, on one hand, the block chain has the properties of decentralized operation, public transparency and difficult tampering, so that it is verified that the generated energy data in the block chain is difficult to tamper, and the safety of the generated energy data and the reliability of management can be guaranteed.
On the other hand, each power generation device has the decentralized identity on the blockchain, so that the corresponding decentralized identity is used as a signature of the power generation data, the integrity of the power generation data can be guaranteed, and the blockchain can conveniently identify the power generation device corresponding to the power generation data;
in addition, because the related operation of the block chain in the technical scheme is completed by using the chip of the internet of things, the original chip of the internet of things in the industrial internet can be obviously reused, and the landing cost of the scheme is reduced.
The present specification is described below with reference to specific embodiments and specific application scenarios.
Referring to fig. 1, fig. 1 is a flowchart illustrating a block chain-based power generation data management method according to an embodiment of the present disclosure, where the method may be applied to a smart grid system; the intelligent power grid system comprises power generation equipment based on the Internet of things and a block chain in butt joint with the Internet of things; the method may comprise the steps of:
s101, establishing a decentralized identity for the power generation equipment, managing files of the decentralized identity by the block chain, and binding the decentralized identity with an Internet of things chip in the corresponding power generation equipment;
s102, the power generation equipment uses the decentralized identity to sign own generated energy data through an internet of things chip of the power generation equipment;
and S103, sending the signed generated energy data to the block chain for evidence storage.
The block chain can comprise any form of block chain. The block chain technology, also called as distributed account book technology, is a technology in which a plurality of computing devices participate in accounting together and maintain a complete distributed database together; in general, blockchains have the characteristics of decentralization, public transparency, participation in database records by each computing device, and rapid data synchronization between computing devices. Blockchains are generally divided into three types: public chain (Public Blockchain), Private chain (Private Blockchain) and alliance chain (Consortium Blockchain). Furthermore, there may be a combination of the above types, such as private chain + federation chain, federation chain + public chain, and so on. In general, various types of blockchain properties may differ, and thus may be used to meet different technical requirements; for example, if the highest degree of decentralization is desired, a public chain may be selected; federation chains, etc., may be selected if desired to compromise decentralization and performance. In implementation, if the blockchain is in a form of a alliance chain, the blockchain nodes constituting the blockchain can be provided by various types of entities such as relevant management departments, power plants, cloud service providers and the like, so as to ensure that the block chain billing right is relatively fair and reasonable; for another example, if the block chain is in the form of a programmable block chain, a general intelligent contract can be used to construct related functions, and higher programming flexibility is achieved; it can be seen that various types of blockchains are advantageous, and those skilled in the art can select the type of blockchain according to specific requirements without limiting the specific type of blockchain in the present specification.
It can be understood that the above block chain may interact with the outside through a block chain as a Service (BaaS) platform. Generally, BaaS platforms can provide flexible and customizable blockchain services to client-side computing devices connected to BaaS platforms by providing pre-written applications for activities that occur on the blockchain (such as subscription and notification, user authentication, database management, and remote updates). For example, in one example, if a server for data presentation needs to perform data communication with a blockchain, the BaaS platform may provide a service application such as MQ (Message Queue); the server connected with the BaaS platform and used for data publicity can subscribe an intelligent contract deployed on a certain block chain in a block chain system connected with the BaaS platform and trigger a contract event generated on the block chain after execution; and the BaaS platform can monitor the event generated on the block chain after the intelligent contract is triggered to execute, and then based on the software related to MQ service, the contract event is added to the message queue in the form of notification message, so that the service end which subscribes to the message queue and is used for data presentation can obtain the notification related to the contract event.
The smart grid can be a network form combining a computer network and a power network; it is generally believed that the intellectualization of a smart grid, i.e., a power grid, can be a novel power grid that is established on the basis of an integrated, high-speed two-way communication network and achieves the goals of reliability, safety, economy, efficiency, environmental friendliness, and safety in use of the power grid through the application of sensing and measuring techniques, devices, control methods, and decision support system techniques, and its main properties include self-healing, energizing and protecting users, resisting attacks, providing power quality that meets the needs of users, allowing access to various different forms of power generation, starting the power market, and optimizing efficient operation of assets, etc.
The Internet of Things (Internet of Things, IoT for short) can acquire any object or process needing monitoring, connection and interaction in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, acquire various required information such as sound, light, heat, electricity, mechanics, chemistry, biology and position of the object or process, realize ubiquitous connection of the object and the person through various possible network accesses, and realize intelligent sensing, identification and management of the object and the process. Generally, the internet of things is considered as an information carrier based on the internet, a traditional telecommunication network and the like, and common physical objects which can be independently addressed can form an interconnected network.
In the art, Decentralized IDentity (DID) is generally understood as an IDentity authentication mechanism that may contain identification and document, with global uniqueness, high availability resolvability and encryption verifiability. A decentralized identity may be said to be associated with a blockchain if the decentralized identity depends on a blockchain implementation. In implementation, a typical decentralized identity may be represented by the following character string:
did:example:123123123123abcabcabc
wherein, the did part is a system identification for indicating that the character string is a decentralized identity; the example part is a DID method identifier used for indicating the method on the block chain on which DID specifically depends; the 123123123123abcabc part is an identifier specified in the DID method, typically corresponding to a pair of public and private keys held by the individual whose identity corresponds to. The decentralized identity document may include an identity public key corresponding to the DID, a corresponding encryption algorithm, and other information, and may be used to verify the decentralized identity. For example, assuming that a user, zhang san sends a piece of information, which carries a signature of a decentralized identity and a DID identifier, other users can check the validity of the decentralized identity signature only by finding the decentralized identity public key of zhang san from the block chain according to the DID identifier, and if the check is passed, the sender of the information can be proved to be a person who holds the private key of zhang san of the user, that is, zhang san self.
It will of course be appreciated that there is no essential difference from person to thing in terms of blockchain, and that decentralized identities can be assigned to either natural persons or devices or organizations; in this specification, a decentralized identity may be assigned to a power plant and bound to an internet of things chip in the corresponding power plant.
In this specification, a decentralized identity may be first created for the power generation device, a file of the decentralized identity is managed by the blockchain, and the decentralized identity is bound to an internet of things chip in the corresponding power generation device; specifically, the behavior of creating the decentralized identity can be initiated by an internet of things chip of the power generation equipment using the decentralized identity, and can also be initiated by a management server side in batch; for example, assuming that the power plant a has a strong embedded development capability, a program for initiating the creation of a decentralized identity may be developed for the internet of things chip of each power generation device, and each internet of things chip may complete a related task by itself; and if the embedded development capability of the power plant B is weaker, special volume production personnel can apply for decentralized identities in batches, and the identities are respectively bound to the Internet of things chips and then the Internet of things chips are issued to the power generation equipment.
Generally, if the behavior of creating the decentralized identity is initiated by an internet of things chip of the power generation equipment using the decentralized identity, a private key in a public and private key pair is not exposed in the whole process, so that the security is higher, but the requirements on the program design, the performance and the like of the internet of things chip are higher; if the behavior of creating the decentralized identity is initiated in batch by the management server, the workload of creating the decentralized identity can be saved, and the requirements on the performance of the internet of things chip and software development are low.
Therefore, the executing subject of the foregoing decentralized identity establishment procedure is not limited in this specification, and those skilled in the art can make trade-off decisions according to specific business scenarios and requirements.
In one embodiment, the above process of creating a decentralized identity may be implemented according to characteristic information of the power generation equipment. Specifically, the creating a decentralized identity for the power generation device includes: and generating a public and private key pair according to the characteristic information of the power generation equipment, and sending a decentralized identity application request signed by a private key in the public and private key pair and a public key in the public and private key pair to the block chain, so that the block chain creates a decentralized identity corresponding to the public key under the condition of verifying that the signature of the decentralized identity application request passes. For example, the serial number of the power generation equipment may be used as a parameter when generating a public-private key pair after mathematical transformation such as hashing, and the like.
Through the scheme, the public key for generating the decentralized identity can be associated with the characteristic information of the power generation equipment, so that the decentralized identity can be generated in batch by using a uniform algorithm, the convenience of management is improved, and the corresponding power generation equipment can be traced backwards according to the decentralized identity.
In one embodiment shown, a private key in the public and private key pair may be managed by a trusted execution environment in the chip of the internet of things; specifically, the internet of things chip is loaded with a trusted execution environment; the generating of the public and private key pair according to the characteristic information of the power generation equipment may include: generating a public and private key pair in a trusted execution environment carried in the chip of the internet of things by the chip of the internet of things in the power generation equipment according to the characteristic information of the power generation equipment, and exposing a calling interface of a private key in the public and private key pair and a public key in the public and private key pair to the outside of the trusted execution environment; the process of binding the decentralized identity with the internet of things chip in the corresponding power generation device may specifically include: and the Internet of things chip in the power generation equipment receives the identifier of the decentralized identity returned by the block chain and binds the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
Referring to fig. 2, fig. 2 is a diagram illustrating an example of a structure of an internet of things chip with an embedded trusted execution environment; the chip of the internet of things can comprise a main control module, a network module and the trusted execution environment, the private key can be stored in the trusted execution environment, and a private key calling interface used for calling the private key is opened to the outside. For executable codes outside the trusted execution environment, although the private key can be called through the private key calling interface to complete operations such as signature, the private key itself is not directly exposed to the outside.
Therefore, by applying the scheme, the security of the private key can be improved, and the credibility of the signature given by the private key is further improved.
In this specification, the power generation equipment may use the decentralized identity to sign its own power generation amount data through its own internet of things chip; the signature can be a signature containing data integrity verification information, or a signature purely used for verifying a source and not containing the integrity verification information; if the signature needs to include data integrity verification information, a person skilled in the art can generate summary information of the power generation amount data by using a summary algorithm, and then encrypt the summary information by using the private key to obtain a signature capable of being used for verifying the integrity of the power generation amount data.
It is understood that, of course, what abstract algorithm is specifically adopted in the above process, such as SHA-256, MD5, SM-3, etc., and the present specification is not necessarily limited in detail.
In this specification, finally, the signed power generation amount data may be transmitted to the block chain for verification. Specifically, a transaction including the signed power generation amount data may be constructed and sent to a blockchain, so that the blockchain verifies the signed power generation amount data carried in the transaction in a distributed ledger of the blockchain; it is understood that, in order to save the storage space on the chain, the signed power generation amount data may be stored in a down-chain database interfacing with the blockchain, and a summary of the signed power generation amount data and a storage address in the down-chain database may be stored in a distributed book of the blockchain. The method specifically adopts a direct evidence storage mode or an indirect evidence storage mode, the specification is not limited in detail, and a person skilled in the art can determine and implement the method according to specific requirements.
It can be understood that the content of the block chain stored with the certificate may include the name, model, number and other characteristic information of the corresponding power generation equipment in addition to the signed power generation data, so as to facilitate later management and monitoring.
In one embodiment, the signed power generation data may be classified and counted according to the corresponding decentralized identity. Specifically, when the electricity generation amount data is signed, the signed electricity generation amount data may be sent to the block chain, so that the block chain stores the signed electricity generation amount data in the distributed account book, and an address of the signed electricity generation amount data is added to an index of identification retrieval based on a decentralized identity; then, the corresponding card storage address corresponding to each decentralized identity to be counted can be searched in the index, corresponding power generation amount data is retrieved from the distributed account book of the block chain according to the searched card storage address, and the retrieved power generation amount data is classified and counted according to the decentralized identity.
By applying the scheme, indexes can be established, and targeted query and management can be conveniently carried out on the generated energy data of the stored card according to the decentralized identity, so that the more complex management service requirements can be met.
In one embodiment, the certified power generation amount can be converted into carbon assets through an intelligent contract; referring to FIG. 3, FIG. 3 is a schematic diagram illustrating the creation of an intelligent contract and invocation of an intelligent contract as described herein; as shown in fig. 3, in the blockchain supporting the intelligent contract, to create an intelligent contract, the intelligent contract may be written, changed into bytecode, deployed to the blockchain, and the like; when the intelligent contract is called, a transaction pointing to the intelligent contract address can be initiated, the virtual machines of all the nodes can respectively execute the transaction, and the intelligent contract codes are operated in the virtual machines of all the nodes in the block chain network in a distributed mode.
When the above conversion is implemented, the above scheme may further include the following steps: firstly, constructing an intelligent contract calling transaction which carries the counted generated energy data which is obtained and classified according to the decentralized identity; and then sending the intelligent contract calling transaction to the block chain to call a carbon asset conversion intelligent contract which is pre-deployed in the block chain, and converting the counted generated energy data which is obtained according to the decentralized identity identification classification into the number of the carbon assets which are respectively corresponding to the decentralized identity identifications to be counted.
It can be understood that the conversion relation between the power generation capacity and the carbon assets can be designed according to specific business requirements, and the scheme described in the specification focuses more on the realizability of logic, and does not focus on the content of the conversion relation.
The above contents are all embodiments of the present specification for the block chain-based power generation data management method. By applying the scheme of the embodiment, on one hand, the generated energy data stored in the block chain is difficult to tamper, and the safety of the generated energy data and the reliability of management can be guaranteed; on the other hand, the corresponding decentralized identity is used as the signature of the generated energy data, so that the integrity of the generated energy data can be guaranteed, and the block chain can conveniently identify the power generation equipment corresponding to the generated energy data; in addition, the existing Internet of things chip in the industrial Internet can be reused, and the landing cost of the scheme is reduced.
The present specification also provides embodiments of a corresponding smart grid system; referring to fig. 4, fig. 4 is a diagram illustrating a structure example of a smart grid system according to the present disclosure; the system may include:
the power generation equipment 401 based on the internet of things is loaded with an internet of things chip bound with a decentralized identity, and is used for signing own generated energy data by using the decentralized identity through the internet of things chip and issuing the signed generated energy data to the block chain;
and the block chain 402 is in butt joint with the Internet of things and is used for creating and managing the decentralized identity of the power generation equipment and receiving and verifying the signed power generation amount data.
It is understood that, although only one power generation device 401 based on the internet of things is shown in fig. 4, the number of the power generation devices 401 based on the internet of things may be multiple in practical application; and the internet of things chips in the plurality of power generation devices 401 can all be regarded as part of the internet of things mentioned in the present specification.
In an embodiment, the power generation device 401 may further be configured to: generating a public and private key pair according to the characteristic information of the power generation equipment 401, and sending a decentralized identity application request signed by a private key in the public and private key pair and a public key in the public and private key pair to the block chain 402; the block chain 402 described above may further be used to: verifying the signature of the decentralized identity application request; and under the condition that the verification is passed, establishing a decentralized identity corresponding to the public key.
In a specific embodiment, a trusted execution environment is loaded in the chip of the internet of things; the power generation device 401 described above may further be configured to: through the carried internet of things chip, in a trusted execution environment carried in the internet of things chip, a public and private key pair is generated according to the characteristic information of the power generation equipment 401, and a calling interface of a private key in the public and private key pair and a public key in the public and private key pair are exposed to the outside of the trusted execution environment; the power generation device 401 described above may also be used to: and receiving the identifier of the decentralized identity returned by the block chain 402 through a mounted internet of things chip, and binding the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
In an embodiment, the block chain 402 may be further configured to: storing the signed generated energy data in a distributed account book, and adding the signed generated energy data to an index of identification retrieval based on decentralized identity; the system may further include a statistics server, which may be configured to search, in the index, a card storage address corresponding to each decentralized identity to be counted, retrieve, according to the found card storage address, corresponding power generation amount data from the distributed ledger of the block chain 402, and perform classification statistics on the retrieved power generation amount data according to the decentralized identity.
In an embodiment, the block chain 402 may further be configured to: receiving an intelligent contract calling transaction carrying the counted generated energy data classified according to the decentralized identity; and responding to the intelligent contract calling transaction, calling a carbon asset conversion intelligent contract which is pre-deployed in the block chain 402, and converting the counted generated energy data which is obtained according to the decentralized identity classification into the number of carbon assets which are respectively corresponding to the decentralized identity to be counted.
Embodiments of the present specification further provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the aforementioned block chain-based power generation data management method.
Fig. 5 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the aforementioned block chain-based power generation data management method.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (12)

1. A block chain-based power generation data management method is applied to an intelligent power grid system; the intelligent power grid system comprises power generation equipment based on the Internet of things and a block chain in butt joint with the Internet of things; the method comprises the following steps:
creating a decentralized identity for the power generation equipment, wherein the file of the decentralized identity is managed by the block chain, and the decentralized identity is bound with an internet of things chip in the corresponding power generation equipment;
the power generation equipment uses the decentralized identity to sign the power generation data of the power generation equipment through an internet of things chip of the power generation equipment;
and sending the signed generated energy data to the block chain for evidence storage.
2. The method of claim 1, the creating a decentralized identity for the power generation device, comprising:
according to power generation facility's characteristic information generates public private key pair, and will pass through the decentralization identity application request of the private key signature in public private key pair and public key in public private key pair send to the district chain, so that the district chain is in the check the decentralization identity that the signature of decentralization identity application request passes through under, newly-built with the decentralization identity that the public key corresponds.
3. The method according to claim 2, wherein a trusted execution environment is loaded in the internet of things chip; generating a public and private key pair according to the characteristic information of the power generation equipment comprises the following steps:
generating a public and private key pair in a trusted execution environment carried in the chip of the internet of things by the chip of the internet of things in the power generation equipment according to the characteristic information of the power generation equipment, and exposing a calling interface of a private key in the public and private key pair and a public key in the public and private key pair to the outside of the trusted execution environment;
binding the decentralized identity with an internet of things chip in the corresponding power generation equipment, including:
and the Internet of things chip in the power generation equipment receives the identifier of the decentralized identity returned by the block chain and binds the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
4. The method of claim 1, wherein sending the signed power generation data to the blockchain for credentialing comprises:
sending the signed generated energy data to the block chain so that the block chain stores the signed generated energy data in a distributed account book, and adding a signed generated energy data storage address to an index of identification retrieval based on a decentralized identity;
the method further comprises the following steps:
and searching a card storage address corresponding to each decentralized identity to be counted in the index, calling corresponding generated energy data from the distributed account book of the block chain according to the searched card storage address, and carrying out classification counting on the called generated energy data according to the decentralized identity.
5. The method of claim 4, further comprising:
constructing an intelligent contract calling transaction carrying the counted generated energy data classified according to the decentralized identity;
and sending the intelligent contract calling transaction to the block chain to call carbon asset conversion intelligent contracts deployed in the block chain in advance, and converting the counted generated energy data classified according to the decentralized identity into the number of the carbon assets corresponding to the decentralized identity to be counted respectively.
6. A smart grid system, comprising:
the power generation equipment based on the Internet of things is loaded with an Internet of things chip bound with a decentralized identity, and is used for signing own generated energy data by using the decentralized identity through the Internet of things chip and issuing the signed generated energy data to the block chain;
and the block chain is in butt joint with the Internet of things and is used for creating and managing the decentralized identity of the power generation equipment and receiving and verifying the signed generated energy data.
7. The system of claim 1, wherein the first and second sensors are disposed in a common housing,
the power generation apparatus is further configured to: generating a public and private key pair according to the characteristic information of the power generation equipment, and sending a decentralized identity application request signed by a private key in the public and private key pair and a public key in the public and private key pair to the block chain;
the blockchain is further to: verifying the signature of the decentralized identity application request; and under the condition that the verification is passed, establishing a decentralized identity corresponding to the public key.
8. The system of claim 7, the internet of things chip having a trusted execution environment mounted therein;
the power generation apparatus is further configured to: generating a public and private key pair according to the characteristic information of the power generation equipment in a trusted execution environment loaded in the Internet of things chip through a loaded Internet of things chip, and exposing a calling interface of a private key in the public and private key pair and a public key in the public and private key pair to the outside of the trusted execution environment;
the power generation apparatus is further configured to: and receiving the identifier of the decentralized identity returned by the block chain through a carried Internet of things chip, and binding the identifier of the decentralized identity with a calling interface of a private key in the public and private key pair.
9. The system of claim 6, the blockchain further to:
storing the signed generated energy data in a distributed account book, and adding the signed generated energy data to an index of identification retrieval based on decentralized identity;
the system also comprises a statistical server used for searching the card storage addresses corresponding to the decentralized identity marks to be counted in the index, calling corresponding generated energy data from the distributed account book of the block chain according to the searched card storage addresses, and performing classified statistics on the called generated energy data according to the decentralized identity marks.
10. The system of claim 9, the blockchain further to:
receiving an intelligent contract call transaction carrying the counted generated energy data classified according to the decentralized identity;
and responding to the intelligent contract calling transaction, calling a carbon asset conversion intelligent contract which is pre-deployed in the block chain, and converting the counted generated energy data which is obtained according to the decentralized identity identification classification into the number of the carbon assets which are respectively corresponding to the decentralized identity identifications to be counted.
11. A computer device comprising at least a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 5 when executing the program.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
CN202210077183.1A 2022-01-24 2022-01-24 Block chain-based power generation data management method and smart grid system Pending CN114399389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210077183.1A CN114399389A (en) 2022-01-24 2022-01-24 Block chain-based power generation data management method and smart grid system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210077183.1A CN114399389A (en) 2022-01-24 2022-01-24 Block chain-based power generation data management method and smart grid system

Publications (1)

Publication Number Publication Date
CN114399389A true CN114399389A (en) 2022-04-26

Family

ID=81232063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210077183.1A Pending CN114399389A (en) 2022-01-24 2022-01-24 Block chain-based power generation data management method and smart grid system

Country Status (1)

Country Link
CN (1) CN114399389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116186018A (en) * 2023-04-25 2023-05-30 国网冀北电力有限公司 Power data identification and analysis method based on safety control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116186018A (en) * 2023-04-25 2023-05-30 国网冀北电力有限公司 Power data identification and analysis method based on safety control

Similar Documents

Publication Publication Date Title
CN110383791B (en) Map application crowdsourcing based on blockchain
CN110349056A (en) Transaction processing system and method based on block chain
TW202016853A (en) Data storage and acquisition method and device based on block chain
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
CN110020854B (en) Data evidence storage method and system based on multiple block chain networks
CN111026789A (en) Block chain-based electronic bill query method and device and electronic equipment
CN110020945B (en) Data reading method and system based on multiple block chain networks
CN112200569B (en) Digital seal using method and device based on block chain and electronic equipment
CN110033282A (en) Complaining method and device
Alizadeh et al. Efficient decentralized data storage based on public blockchain and IPFS
CN110472974A (en) Assets transfer method, apparatus and system based on block chain intelligence contract
CN111488372A (en) Data processing method, device and storage medium
CN113221165B (en) User element authentication method and device based on block chain
CN114971827A (en) Account checking method and device based on block chain, electronic equipment and storage medium
CN111737764B (en) Method and device for generating description information
CN114219342A (en) Carbon asset management method and device based on non-homogeneous evidence
CN110244573A (en) Storage system and intelligent appliance based on intelligent appliance
CN109544131A (en) A kind of game merchandise control method and device
CN112035350A (en) Test method and device for block chain system and computer equipment
CN111582935A (en) Block chain-based integral mutual identification method and system
CN114399389A (en) Block chain-based power generation data management method and smart grid system
CN114266680A (en) Block chain-based electronic contract signing method, device and system
CN110458541B (en) Object replacement method and device based on block chain
CN110727735B (en) Method, device and equipment for cooperatively completing task event based on block chain technology
CN111008251A (en) Data processing method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 2339, 2nd Floor, No. 92, Huancheng North Road, Gongshu District, Hangzhou City, Zhejiang Province 310005

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310007 room 2001 and 2010, 20 / F, tower a, Huaxing Times Square, No. 478, Wensan Road, Xihu District, Hangzhou, Zhejiang

Applicant before: Hangzhou Xita Technology Co.,Ltd.

CB02 Change of applicant information