Block chain-based energy power data sharing method and apparatus, and electronic device
By confirming and updating the ownership information of energy and power data in the blockchain data sharing system, the problem of low data ownership acquisition efficiency is solved, and the efficiency of data ownership acquisition and review is improved. It is suitable for sharing scenarios of energy and power data .
Patent Information
- Application Number
- CN202411268801.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-01-14
AI Technical Summary
In the process of blockchain-based energy and power data sharing, the efficiency of obtaining data ownership is low, resulting in difficulties in confirming and reviewing data ownership.
By confirming the ownership of the energy and power data set at the data supply side, generating corresponding ownership information, adding it to the digital fingerprint information, uploading it to the blockchain data sharing system, confirming and updating data ownership.
It improves the efficiency and accuracy of data ownership acquisition, ensures that the data supply side can effectively confirm and update its ownership information during the blockchain data sharing process, which is suitable for sharing scenarios of energy and electricity data.
Smart Images

Figure CN119311768A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy and power technology, and in particular to a method, device, electronic device and storage medium for sharing energy and power data based on blockchain. Background Art
[0002] Blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable, and is widely used in data sharing. For example, in the field of energy and power, energy and power data can be shared based on blockchain. However, in the related technology, in the process of data sharing based on blockchain, there is a problem of low efficiency in obtaining data ownership. Summary of the invention
[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first purpose of this application is to propose a method for sharing energy and power data based on blockchain.
[0005] The second purpose of this application is to propose another method for sharing energy and power data based on blockchain.
[0006] The third purpose of this application is to propose another method for sharing energy and power data based on blockchain.
[0007] The fourth objective of this application is to propose a blockchain-based energy and power data sharing device.
[0008] The fifth purpose of this application is to propose another device for sharing energy and power data based on blockchain.
[0009] The sixth objective of this application is to propose another device for sharing energy and power data based on blockchain.
[0010] The seventh objective of the present application is to provide an electronic device.
[0011] The eighth objective of the present application is to provide a computer-readable storage medium.
[0012] A ninth objective of the present application is to provide a computer program product.
[0013] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a blockchain-based energy and power data sharing method, which is applicable to a data supplier, and the method includes: confirming that the data supplier has ownership of a first energy and power data set; generating first ownership information of the first energy and power data set, wherein the first ownership information is the ownership information confirmed by the data supplier; adding the first ownership information to the digital fingerprint information of the first energy and power data set; and uploading the digital fingerprint information to a blockchain-based data sharing system.
[0014] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes another method for sharing energy and power data based on blockchain, which is applicable to a data sharing system based on blockchain, and the method includes: obtaining digital fingerprint information of a first energy and power data set uploaded by a data supply end, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end; receiving the audit result for the first ownership information sent by the data review end; if the audit result indicates that the first ownership information has passed the audit, updating the first ownership information in the digital fingerprint information to the second ownership information to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data review end.
[0015] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes another method for sharing energy and power data based on blockchain, which is applicable to the data review end. The method includes: obtaining digital fingerprint information of a first energy and power data set uploaded by a data supply end from a blockchain-based data sharing system, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end; reviewing the first ownership information to obtain the review result of the first ownership information; and sending the review result to the data sharing system.
[0016] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a blockchain-based energy and power data sharing device, which is suitable for a data supplier, and the device includes: a confirmation module, used to confirm that the data supplier has the ownership of a first energy and power data set; a generation module, used to generate first ownership information of the first energy and power data set, wherein the first ownership information is the ownership information confirmed by the data supplier; an adding module, used to add the first ownership information to the digital fingerprint information of the first energy and power data set; and an uploading module, used to upload the digital fingerprint information to a blockchain-based data sharing system.
[0017] To achieve the above-mentioned purpose, the fifth aspect embodiment of the present application proposes another blockchain-based energy and power data sharing device, which is suitable for a blockchain-based data sharing system, and the device includes: a first acquisition module, used to obtain digital fingerprint information of a first energy and power data set uploaded by a data supply end, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end; a second acquisition module, used to receive the audit result of the first ownership information sent by the data review end; an update module, used to update the first ownership information in the digital fingerprint information to the second ownership information if the audit result indicates that the first ownership information has passed the audit, so as to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data review end.
[0018] To achieve the above-mentioned purpose, the sixth aspect embodiment of the present application proposes another blockchain-based energy and power data sharing device, which is suitable for a data review end, and the device includes: an acquisition module, which is used to obtain the digital fingerprint information of the first energy and power data set uploaded by the data supply end from the blockchain-based data sharing system, wherein the digital fingerprint information includes the first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end; an audit module, which is used to audit the first ownership information and obtain the audit result of the first ownership information; and a sending module, which is used to send the audit result to the data sharing system.
[0019] To achieve the above-mentioned purpose, the seventh aspect embodiment of the present application proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the methods described in the first to third aspect embodiments above.
[0020] To achieve the above-mentioned purpose, the eighth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the methods described in the first to third aspect embodiments above.
[0021] To achieve the above-mentioned objectives, a ninth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the methods described in the first to third aspects above.
[0022] The blockchain-based energy and power data sharing method, device, electronic device and storage medium provided in the present application can ensure that the data supplier has ownership of the first energy and power data set, generate first ownership information of the data set, add the first ownership information to the digital fingerprint information of the data set, and upload the digital fingerprint information to the blockchain-based data sharing system. That is, in the blockchain-based data sharing process, the data supplier can confirm the data ownership, which improves the efficiency of obtaining data ownership and is suitable for the blockchain-based energy and power data sharing scenario.
[0023] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0025] Figure 1 A flowchart of a method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of another method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of another method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0028] Figure 4 A flowchart of another method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0029] Figure 5 A flowchart of another method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0030] Figure 6 A flowchart of another method for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0031] Figure 7 A schematic diagram of the structure of a device for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0032] Figure 8 A schematic diagram of the structure of another device for sharing energy and power data based on blockchain provided in an embodiment of the present application;
[0033] Fig. 9 A schematic diagram of the structure of another blockchain-based energy and power data sharing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0035] The following describes the energy and power data sharing method, device, electronic device and storage medium based on blockchain in an embodiment of the present application with reference to the accompanying drawings.
[0036] Figure 1 A flowchart of a method for sharing energy and power data based on blockchain provided in an embodiment of the present application.
[0037] Blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable, and is widely used in data sharing. For example, in the field of energy and power, energy and power data can be shared based on blockchain. However, in the related technology, in the process of data sharing based on blockchain, there is a problem of low efficiency in obtaining data ownership.
[0038] To address this problem, the embodiment of the present application provides a method for sharing energy and power data based on blockchain. The data supplier can confirm that it has the ownership of the first energy and power data set, and generate the first ownership information of the data set, add the first ownership information to the digital fingerprint information of the data set, and upload the digital fingerprint information to the data sharing system based on blockchain. That is, in the process of data sharing based on blockchain, the data supplier can confirm the data ownership, which improves the efficiency of obtaining data ownership and is suitable for sharing scenarios of energy and power data based on blockchain. Figure 1 As shown, the method comprises the following steps:
[0039] S101, confirming that the data supplier has the ownership of the first energy and power data set.
[0040] S102, generating first ownership information of a first energy and power data set, wherein the first ownership information is ownership information confirmed by a data supplier.
[0041] It should be noted that Figures 1 to 4The execution subject of the energy and power data sharing method based on blockchain shown is the data supply end. The terms such as data supply end, data provider end, data source, etc. are interchangeable. There is no excessive limitation on the data supply end. For example, it can include government management agencies, supply enterprises, data analysis agencies, power grid or pipeline enterprises, construction enterprises, equipment enterprises, operation and maintenance enterprises, planning departments, meteorological agencies, etc. in the field of energy and power.
[0042] It should be noted that the first energy and power data set includes multiple energy and power data, and there are no excessive restrictions on the energy and power data. For example, it may include power generation, power consumption, installed capacity, power consumption structure, power import and export volume, power equipment utilization rate, power trading data, power reserves and scheduling data, etc.
[0043] For example, the first energy and power data set may include the original energy and power data set at the data supplier, the data set processed from the original energy and power data set, etc. The specific method of data processing is not limited too much, for example, it may include data cleaning, data conversion, feature engineering, data aggregation, data sharding, quality inspection, etc.
[0044] It can be understood that there is a corresponding relationship between the data supply end and the first energy and power data set, and different data supply ends may correspond to different first energy and power data sets.
[0045] It should be noted that after confirming that the data supplier has the ownership of the first energy and power data set, the first ownership information in step S102 is used to indicate that the data supplier has the ownership of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supplier. There are no excessive restrictions on the first ownership information, for example, it can include a numerical value. For example, the first ownership information can be 1, which is used to indicate that the data supplier has the ownership of the first energy and power data set.
[0046] For example, data supplier A can confirm that data supplier A has the ownership of the first energy and power data set 1, and generate the first ownership information of the first energy and power data set 1, for example, the first ownership information of the first energy and power data set 1 is 1. The first ownership information of the first energy and power data set 1 is used to indicate that data supplier A has the ownership of the first energy and power data set 1, and the first ownership information of the first energy and power data set 1 is the ownership information confirmed by data supplier A.
[0047] For example, the data supplier B can confirm that the data supplier B has the ownership of the first energy and power data set 2, and generate the first ownership information of the first energy and power data set 2, for example, the first ownership information of the first energy and power data set 2 is 1. The first ownership information of the first energy and power data set 2 is used to indicate that the data supplier B has the ownership of the first energy and power data set 2, and the first ownership information of the first energy and power data set 2 is the ownership information confirmed by the data supplier B.
[0048] In one embodiment, confirming that the data supplier has ownership of the first energy and power data set includes if the first energy and power data set is located in the storage space of the data supplier, and / or if the first energy and power data set is obtained by data processing by the data supplier, confirming that the data supplier has ownership of the first energy and power data set.
[0049] S103, adding the first ownership information to the digital fingerprint information of the first energy and power data set.
[0050] It is understandable that there is a corresponding relationship between the first energy and power data set and the digital fingerprint information, and the digital fingerprint information of different first energy and power data sets may be different. In addition to the first ownership information, the digital fingerprint information may also include other information, for example, it may also include the first hash value of the first energy and power data set, the public key of the data supplier, the data interface, the data storage address, etc.
[0051] In one embodiment, before uploading the digital fingerprint information to the blockchain-based data sharing system, it also includes extracting a first keyword set from the first energy and power data set, adding the first ownership information to the first keyword set, encrypting the first keyword set to obtain an encrypted keyword set, and adding the encrypted keyword set to the digital fingerprint information. Thus, the first ownership information can be added to the first keyword set, the first keyword set can be encrypted to obtain an encrypted keyword set, and the encrypted keyword set can be added to the digital fingerprint information to achieve the generation of digital fingerprint information.
[0052] It should be noted that the encryption of the first keyword set can be implemented by using any data encryption method in the relevant technology, and no further limitation is given here. For example, the first keyword set is encrypted to obtain an encrypted keyword set, including encrypting the first keyword set based on the public key of the data supplier to obtain an encrypted keyword set. For example, the data supplier can generate a data supplier based on the Paillier variant homomorphic encryption algorithm. The public key and private key N is a set of natural numbers.
[0053] For example, the First Energy Power Dataset D j ={d j1 , dj2 , d j3 ,…,d jt}, j∈N, t∈N, d j1 to d jt All are energy and power data, data supply side Available from the First Energy Electricity Dataset D j Extract the first keyword set F m ={f m1 , f m2 , f m3 ,…,f mn}, m∈N, n∈N, f m1 to f mn All are First Energy Power Dataset D j Keywords.
[0054] Data supply side Confirmable data provider With the first energy power data set D j The ownership of the first energy power data set D j The first ownership information a i , first ownership information a i =1, first ownership information a i =1 is used to indicate the data supply end With the first energy power data set D j The ownership of the first ownership information a i =1 is the data supply end Confirmed ownership information.
[0055] Data supply side The first ownership information a i Add to first keyword set F m , so that the first keyword set is changed from F m Updated to For the first keyword set Encrypt to get the encrypted keyword set The first ownership information a i , Encrypted Keyword Set Added to First Energy Electricity Dataset D j Digital fingerprint information DF m .
[0056] In one embodiment, before uploading the digital fingerprint information to the blockchain-based data sharing system, it also includes obtaining the first hash value of the first energy and power data set and adding the first hash value to the digital fingerprint information. Thus, the first hash value of the first energy and power data set can be obtained, and the first hash value can be added to the digital fingerprint information to realize the generation of digital fingerprint information, which is convenient for later verification of whether the first energy and power data set has been tampered with.
[0057] For example, the data demand side can receive the second energy and power data set shared by the data supply side, perform a hash operation on the second energy and power data set to obtain a second hash value of the second energy and power data set, and obtain a third hash value in the digital fingerprint information of the second energy and power data set from the data sharing system. If the second hash value is consistent with the third hash value, it is identified that the second energy and power data set has not been tampered with; or, if the second hash value is inconsistent with the third hash value, it is identified that the second energy and power data set has been tampered with.
[0058] It should be noted that the relevant content of the second energy power data set can be found in the following embodiments and will not be repeated here.
[0059] For example, data providers Get the First Energy Power Dataset D j The first hash value The first hash value Add to digital fingerprint information DF m .
[0060] Digital fingerprint information
[0061] in, To encrypt the dataset The data interface To encrypt the dataset The address where data is stored on the blockchain.
[0062] S104, uploading the digital fingerprint information to a blockchain-based data sharing system.
[0063] It should be noted that there are no excessive limitations on the data sharing system, for example, it may include a distributed data sharing system.
[0064] In one embodiment, after uploading the digital fingerprint information to the blockchain-based data sharing system, it also includes receiving the first indication information sent by the data sharing system, wherein the first indication information is used to indicate that there is a problem with the first ownership information, and adjusting the ownership certification information, wherein the ownership certification information is used to prove the ownership of the first energy and power data set on the data supply side, and uploading the adjusted ownership certification information to the data sharing system. Thus, when there is a problem with the first ownership information, the ownership certification information can be adjusted, and the adjusted ownership certification information can be uploaded to the data sharing system, so that the first ownership information can be re-audited based on the adjusted ownership certification information, and multiple audits of the first ownership information can be achieved, thereby improving the accuracy of data ownership audits.
[0065] It should be noted that there are no excessive restrictions on ownership certification information, for example, it may include enterprise registration information, address information, data list, data ownership commitment, etc. Adjustment of ownership certification information may include supplementation, modification, replacement, etc. of ownership certification information.
[0066] In some examples, before receiving the first indication information sent by the data sharing system, the process also includes uploading the ownership certification information to the data sharing system.
[0067] In summary, according to the method for sharing energy and power data based on blockchain in the embodiment of the present application, it is confirmed that the data supply end has the ownership of the first energy and power data set, and the first ownership information of the first energy and power data set is generated, wherein the first ownership information is the ownership information confirmed by the data supply end, and the first ownership information is added to the digital fingerprint information of the first energy and power data set, and the digital fingerprint information is uploaded to the data sharing system based on blockchain. Thus, the data supply end can confirm that it has the ownership of the first energy and power data set, and generate the first ownership information of the data set, add the first ownership information to the digital fingerprint information of the data set, and upload the digital fingerprint information to the data sharing system based on blockchain, that is, in the process of data sharing based on blockchain, the data supply end can confirm the data ownership, which improves the efficiency of obtaining data ownership, and is suitable for sharing scenarios of energy and power data based on blockchain.
[0068] As another possible implementation, the method further includes confirming that the data supply end does not have the ownership of the first energy and power data set, and generating first ownership information of the first energy and power data set, wherein the first ownership information is ownership information confirmed by the data supply end. It should be noted that in this embodiment, the first ownership information is used to indicate that the data supply end does not have the ownership of the first energy and power data set. For example, the first ownership information may be 0, and 0 is used to indicate that the data supply end does not have the ownership of the first energy and power data set.
[0069] The embodiment of the present application provides another method for sharing energy and power data based on blockchain.
[0070] like Figure 2 As shown, the method may include the following steps:
[0071] S201, receiving a data sharing request sent by a data demander.
[0072] It should be noted that terms such as data demand end, data receiving end, data consumer, and data destination are interchangeable. For example, they may include government management agencies in the field of energy and electricity, supply companies, power grids or pipeline companies, load users, data analysis agencies, application research and development units, operating units, scientific research institutes, planning departments, etc.
[0073] It should be noted that there are not too many restrictions on the communication method between the data supply end and the data demand end. For example, the data supply end and the data demand end can communicate through their respective blockchain nodes. For example, the data supply end and the data demand end can communicate in a P2P (Peer-to-Peer) communication method.
[0074] S202, confirming that the data demander has the query authority for the data published on the blockchain by the data supplier.
[0075] It should be noted that there are not too many restrictions on the data published on the blockchain by the data supplier. For example, it can include digital fingerprint information.
[0076] In one embodiment, the data sharing request may carry the identity of the data demander, and the data supplier may confirm whether the data demander has the query authority for the data published on the blockchain by the data supplier based on the identity of the data demander.
[0077] In some examples, the data supplier may authenticate the query authority of the data demander based on the identity of the data demander. If the query authority of the data demander is authenticated, it is confirmed that the data demander has the query authority to the data published on the blockchain by the data supplier.
[0078] S203, sending second indication information to the data demand side, wherein the second indication information is used to indicate that the data demand side has query authority for the data published on the blockchain by the data supply side.
[0079] S204, receiving a supply and demand matching result sent by the data demand side, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
[0080] It is understandable that the data in the first energy and power data set may be data required by the data demand side, or may not be data required by the data demand side. For example, part or all of the data in the first energy and power data set is data required by the data demand side, or all of the data in the first energy and power data set is not data required by the data demand side.
[0081] In an embodiment of the present application, the data demand side may send a data sharing request to the data supply side, receive a second indication message sent by the data supply side, query the data published in the blockchain by the data supply side, obtain a supply and demand matching result based on the data published in the blockchain by the data supply side, and send the supply and demand matching result to the data supply side, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
[0082] The following describes the specific process of how the data demand side obtains the supply and demand matching results.
[0083] In one embodiment, the data provider The data published in the blockchain includes digital fingerprint information, which includes a set of encrypted keywords. Data demand side Can be used to describe the data demand side The second keyword set R of data requirements s ={f s1 , f s2 , f s3 ,…,f st}, s∈N, t∈N, f s1 to f st Both are used to describe the data demand side The keywords of the data requirements are based on the second keyword set R s and encrypted keyword set The supply and demand matching result is obtained, wherein the supply and demand matching result is used to indicate the first energy power data set D j Whether the data in is the data demand side Required data.
[0084] In some examples, supply and demand matching results are obtained based on the second keyword set and the encrypted keyword set, including performing correlation analysis on the second keyword set and the encrypted keyword set to obtain a first correlation parameter, and obtaining the supply and demand matching results based on the first correlation parameter.
[0085] It should be noted that the first correlation parameter is used to characterize the correlation (also called correlation) between the keywords in the second keyword set and the keywords in the encrypted keyword set, and / or, to characterize the correlation between the entire second keyword set and the entire encrypted keyword set. The correlation may include the degree of correlation, positive correlation, negative correlation, no correlation, etc. There are no excessive restrictions on the correlation parameters, for example, they may include the F value of linear regression, correlation coefficient, nonlinear correlation coefficient, complex correlation coefficient, etc. The relevant content of the correlation parameter can be obtained by using any correlation analysis method in the relevant technology, and no excessive restrictions are made here.
[0086] In some examples, supply and demand matching results are obtained based on a first correlation parameter, including determining target data in a first energy and power data set associated with the target keyword if the correlation parameter between the target keyword in the encrypted keyword set and the keyword in the second keyword set is greater than a set threshold, and determining that the target data is the data required by the data demand side.
[0087] For example, the target keyword is extracted from the target data in the first energy and power data set. It can be understood that there is an association relationship between the keyword in the encrypted keyword and the data in the first energy and power data set.
[0088] In summary, according to the blockchain-based energy and power data sharing method of the embodiment of the present application, a data sharing request sent by the data demand side is received, and it is confirmed that the data demand side has the query authority for the data published on the blockchain by the data supply side, and a second indication message is sent to the data demand side, wherein the second indication message is used to indicate that the data demand side has the query authority for the data published on the blockchain by the data supply side, and the supply and demand matching result sent by the data demand side is received, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side. Thus, the data supply side can receive the data sharing request sent by the data demand side, confirm that the data demand side has the query authority, and send the second indication message to the data demand side to inform the data demand side that it has the query authority, so that the data demand side can query the data published on the blockchain by the data supply side for supply and demand matching, and receive the supply and demand matching result sent by the data demand side, so as to achieve the acquisition of the supply and demand matching result.
[0089] The embodiment of the present application provides another method for sharing energy and power data based on blockchain.
[0090] like Figure 3 As shown, the method may include the following steps:
[0091] S301, extracting a first keyword set from a first energy and power data set.
[0092] For the relevant contents of step S301, please refer to the above embodiment, which will not be repeated here.
[0093] S302: Obtain, from the data sharing system, a second keyword set uploaded by the data demander for describing the data demand of the data demander.
[0094] It should be noted that the relevant contents of the second keyword set can be found in the above embodiments and will not be described in detail here.
[0095] In an embodiment of the present application, the data demand side may upload the second keyword set to the data sharing system.
[0096] S303, obtaining a supply-demand matching result based on the first keyword set and the second keyword set, wherein the supply-demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
[0097] It should be noted that the relevant contents of step S303 can refer to the relevant contents of obtaining the supply and demand matching results based on the first keyword set and the second keyword set in the above embodiment, which will not be repeated here.
[0098] In summary, according to the energy and power data sharing method based on blockchain in the embodiment of the present application, a first keyword set is extracted from the first energy and power data set, and a second keyword set uploaded by the data demand side to describe the data demand of the data demand side is obtained from the data sharing system. Based on the first keyword set and the second keyword set, a supply and demand matching result is obtained, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side. Thus, the data supply side can extract the first keyword set from the first energy and power data set, obtain the second keyword set uploaded by the data demand side from the data sharing system, and perform supply and demand matching by comprehensively considering the first keyword set and the second keyword set.
[0099] Based on any of the above embodiments, the method further includes receiving a supply and demand matching result sent by the data sharing system, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side. Thus, the data supply side can receive the supply and demand matching result sent by the data sharing system, and can obtain the supply and demand matching result.
[0100] It should be noted that the relevant content of the supply and demand matching results obtained by the data sharing system can be found in the following embodiments and will not be repeated here.
[0101] The embodiment of the present application provides another method for sharing energy and power data based on blockchain.
[0102] like Figure 4 As shown, the method may include the following steps:
[0103] S401, obtaining a second energy and power data set to be shared with a data demand end.
[0104] It should be noted that there are no excessive restrictions on the second energy and power data set. For example, it can be the first energy and power data set, a subset of the first energy and power data set, etc.
[0105] In one embodiment, obtaining a second energy and power data set to be shared with a data demand side includes obtaining a supply and demand matching result, wherein the supply and demand matching result is used to indicate that the first data in the first energy and power data set is not data required by the data demand side, and is used to indicate that the second data in the first energy and power data set is data required by the data demand side, and the first energy and power data set is split into a first subset and a second subset, wherein the first subset includes only the first data, and the second subset includes only the second data, and the second subset is used as the second energy and power data set. Thus, considering the supply and demand matching result, the first energy and power data set can be automatically split into a first subset that does not need to be shared and a second subset that needs to be shared, and the second subset is used as the second energy and power data set.
[0106] In some examples, the method further includes encrypting the first subset based on the private key of the data supplier to obtain an encrypted subset. Thus, the first subset can be encrypted based on the private key of the data supplier to obtain an encrypted subset, so that even if the encrypted subset is mistakenly shared with the data demander, the data demander cannot decrypt the encrypted subset because it does not have the private key of the data supplier, that is, it cannot obtain the first subset, thereby avoiding data leakage.
[0107] S402: Determine a transmission method of the second energy and power data set based on the privacy level of the second energy and power data set.
[0108] In the embodiment of the present application, the second energy and power data set has a privacy level, and different second energy and power data sets may have different privacy levels. In some examples, the privacy level of the second energy and power data set may include the first to third levels, and the privacy levels of the first to third levels increase in sequence. For example, the first level is used to characterize data that does not need to be encrypted, the second level is used to characterize non-privacy data, and the third level is used to characterize privacy data.
[0109] In one embodiment, based on the privacy level of the second energy and power data set, determining the transmission mode of the second energy and power data set includes obtaining a mapping relationship between candidate privacy levels and candidate transmission modes, and obtaining a candidate transmission mode having a mapping relationship with the privacy level of the second energy and power data set as the transmission mode of the second energy and power data set. It is understandable that different candidate privacy levels may be mapped to different candidate transmission modes.
[0110] S403: Sharing the second energy and power data set to the data demand end according to the transmission method of the second energy and power data set.
[0111] In the embodiment of the present application, according to the transmission mode of the second energy power data set, the second energy power data set is shared to the data demand end, including the following possible implementation modes:
[0112] Method 1: Based on the public key of the data demand side, the second energy and power data set is encrypted to obtain a first encrypted data set, and the first encrypted data set is shared to the data demand side.
[0113] In one implementation, if the privacy level of the second energy and power data set is the first level, the transmission mode of the second energy and power data set may be determined to be mode 1. For example, the first level is used to represent data that does not require encryption.
[0114] In an embodiment of the present application, the data supply end can encrypt the second energy and power data set based on the public key of the data demand end to obtain a first encrypted data set, and share the first encrypted data set to the data demand end, which is suitable for data sharing scenarios with a lower privacy level, such as data sharing scenarios that do not require encrypted transmission.
[0115] In an embodiment of the present application, the data demand side may decrypt the first encrypted data set based on the private key of the data demand side to obtain the second energy and power data set.
[0116] For example, based on the Paillier variant homomorphic encryption algorithm, the data demand side can be generated The public key and private key
[0117] Method 2: Based on the first public key of the data demand side, the second energy and power data set is encrypted to obtain a second encrypted data set. Based on the second public key of the data demand side, the second encrypted data set is encrypted to obtain a third encrypted data set, and the third encrypted data set is shared to the data demand side.
[0118] In one implementation, if the privacy level of the second energy and power data set is the second level, the transmission mode of the second energy and power data set may be determined to be mode 2. For example, the second level is used to represent non-privacy data.
[0119] In an embodiment of the present application, the data supply end may re-encrypt the second encrypted data set based on the first public key and the second public key of the data demand end to obtain a third encrypted data set, and share the third encrypted data set to the data demand end, which is suitable for data sharing scenarios with a moderate privacy level, such as data sharing scenarios for non-privacy data.
[0120] It should be noted that the first public key and the second public key may be the same or different, and there is no excessive limitation here. For example, the first public key and the second public key are obtained using different asymmetric encryption algorithms. For example, the data demand end can be generated based on the RSA algorithm. The first public key and the first private key can be used to generate the data demand end based on the Paillier variant homomorphic encryption algorithm. The second public key and the second private key It should be noted that RSA is an asymmetric encryption algorithm.
[0121] In an embodiment of the present application, the data demand end can decrypt the third encrypted data set based on the second private key of the data demand end to obtain the second encrypted data set, and decrypt the second encrypted data set based on the first private key of the data demand end to obtain the second energy and power data set.
[0122] Method 3: Based on the public key of the data supply end, the second energy and power data set is encrypted to obtain a fourth encrypted data set; based on the public key of the data demand end, the fourth encrypted data set is encrypted to obtain a fifth encrypted data set; and the fifth encrypted data set is shared to the data demand end.
[0123] In one implementation, if the privacy level of the second energy and power data set is the third level, the transmission mode of the second energy and power data set may be determined to be mode 3. For example, the third level is used to characterize privacy data.
[0124] In an embodiment of the present application, the data supply end can encrypt the second energy and power data set based on the public key of the data supply end and the public key of the data demand end to obtain a fifth encrypted data set, and share the fifth encrypted data set to the data demand end, which is suitable for data sharing scenarios with a higher privacy level, such as data sharing scenarios of privacy data.
[0125] In an embodiment of the present application, the data demand side can decrypt the fifth encrypted data set based on the private key of the data demand side to obtain the fourth encrypted data set. Since the data demand side does not have the private key of the data supply side, it cannot decrypt the fourth encrypted data set, that is, it cannot obtain the second energy and power data set, which can avoid data leakage and is particularly suitable for data sharing scenarios of privacy data.
[0126] It is understandable that the data demand side can process the fourth encrypted data set to meet the data demand side's data demand.
[0127] In summary, according to the energy and power data sharing method based on blockchain in the embodiment of the present application, the second energy and power data set to be shared with the data demand side is obtained, and the transmission method of the second energy and power data set is determined based on the privacy level of the second energy and power data set. According to the transmission method of the second energy and power data set, the second energy and power data set is shared with the data demand side. As a result, the data supply side can consider the privacy level of the second energy and power data set and determine the transmission method of the data set to share the data set with the data demand side, which improves the flexibility of the transmission method and helps to improve the security of data transmission.
[0128] The embodiment of the present application provides another method for sharing energy and power data based on blockchain.
[0129] like Figure 5 As shown, the method may include the following steps:
[0130] S501, obtaining digital fingerprint information of a first energy and power data set uploaded by a data supplier, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier.
[0131] S502, obtaining the audit result of the first ownership information sent by the data audit terminal.
[0132] It should be noted that Figure 5 The execution subject of the energy and power data sharing method based on blockchain is a data sharing system based on blockchain. The relevant content of the audit result obtained by the data audit terminal can be referred to the following embodiment, which will not be repeated here. The number of data audit terminals is at least one.
[0133] It should be noted that there are not too many restrictions on the audit results. For example, it may include whether the first ownership information has passed the audit or failed the audit.
[0134] In one implementation, before obtaining the audit result for the first ownership information sent by the data audit terminal, the method further includes sending the digital fingerprint information to the data audit terminal.
[0135] S503, if the audit result indicates that the first ownership information has passed the audit, the first ownership information in the digital fingerprint information is updated to the second ownership information to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit end.
[0136] For the relevant contents of steps S501-S503, please refer to the above embodiment and will not be repeated here.
[0137] It should be noted that the second ownership information is used to indicate that the data supplier has ownership of the first energy and power data set, and the second ownership information is ownership information confirmed by the data review end. There are no excessive restrictions on the second ownership information, for example, it can include a numerical value. For example, the second ownership information can be 1, which is used to indicate that the data supplier has ownership of the first energy and power data set.
[0138] For example, the data sharing system can obtain data suppliers Uploaded First Energy Power Dataset D j Digital fingerprint information DF m .
[0139] Digital fingerprint information
[0140] Data sharing system obtains data review end DR s The first ownership information a sent i The audit result, s∈N, if the audit result indicates the first ownership information a i After review, the data sharing system will transfer the digital fingerprint information DF m The first ownership information a i Update to second ownership information The digital fingerprint information is transmitted by DF m Updated to Second ownership information Second ownership information Used to indicate the data provider With the first energy power data set D j The ownership of the second DR for data audit s Confirmed ownership information.
[0141] Digital fingerprint information
[0142] In one embodiment, if there are multiple data audit terminals, before updating the first ownership information in the digital fingerprint information to the second ownership information, it also includes obtaining a first number of data audit terminals corresponding to which the audit result indicates that the first ownership information has passed the audit, obtaining a first ratio of the first number to the total number of data audit terminals, and identifying that the first ratio is greater than a first set ratio. Thus, when there are multiple data audit terminals, only after the data audit terminals exceeding the first set ratio confirm that the first ownership information has passed the audit, will the updating of the first ownership information in the digital fingerprint information to the second ownership information and subsequent steps be continued.
[0143] It should be noted that there are no excessive restrictions on the first set ratio, for example, it can be two-thirds.
[0144] In one embodiment, the method further includes sending first indication information to the data supplier if the audit result indicates that the first ownership information has not passed the audit, and / or confirming that the first ownership information is incorrect, wherein the first indication information is used to indicate that there is a problem with the first ownership information, and receiving adjusted ownership certification information uploaded by the data supplier, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set. Thus, when the audit result indicates that the first ownership information has not passed the audit, and / or confirming that the first ownership information is incorrect, the data audit system can promptly inform the data supplier that there is a problem with the first ownership information, and receive the adjusted ownership certification information uploaded by the data supplier.
[0145] In some examples, if there are multiple data audit terminals, before sending the first indication information to the data supply terminal, the method further includes obtaining a second number of data audit terminals corresponding to the audit results indicating that the first ownership information has not passed the audit, obtaining a second ratio of the second number to the total number of data audit terminals, and identifying that the second ratio is greater than a second set ratio. Thus, when there are multiple data audit terminals, the first indication information is sent to the data supply terminal and the subsequent steps are not continued until the data audit terminals exceeding the second set ratio confirm that the first ownership information has not passed the audit.
[0146] In some examples, the data sharing system can confirm that the first ownership information is incorrect based on the data demander's report that the first ownership information is untrue.
[0147] In one embodiment, the method further includes reducing the rights and interests of the data supplier in the blockchain if the audit result indicates that the first ownership information has not passed the audit and / or the first ownership information is confirmed to be incorrect. Thus, when the audit result indicates that the first ownership information has not passed the audit and / or the first ownership information is confirmed to be incorrect, the data audit system can reduce the rights and interests of the data supplier in the blockchain to constrain the data supplier's data ownership confirmation behavior, which helps to improve the authenticity of the first ownership information provided by the data supplier.
[0148] In one embodiment, the method further includes obtaining an audit result for the digital fingerprint information sent by a data audit terminal, and if the audit result indicates that the digital fingerprint information has passed the audit, the digital fingerprint information is published on the blockchain.
[0149] In summary, according to the energy and power data sharing method based on blockchain in the embodiment of the present application, the digital fingerprint information of the first energy and power data set uploaded by the data supply end is obtained, wherein the digital fingerprint information includes the first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end. The audit result for the first ownership information sent by the data audit end is received. If the audit result indicates that the first ownership information has passed the audit, the first ownership information in the digital fingerprint information is updated to the second ownership information to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit end. Thus, when the audit result indicates that the first ownership information has passed the audit, the data sharing system may update the first ownership information in the digital fingerprint information to the second ownership information, that is, in the data sharing process based on blockchain, the data sharing system may update the ownership information confirmed by the data supply end to the ownership information confirmed by the data audit end when the data ownership passes the audit, thereby improving the recognition of data ownership and being suitable for sharing scenarios of energy and power data based on blockchain.
[0150] Based on any of the above embodiments, the method further includes obtaining a second keyword set uploaded by the data demand side to describe the data demand of the data demand side, so as to subsequently consider the second keyword set for supply and demand matching.
[0151] In one embodiment, the digital fingerprint information also includes an encrypted keyword set, wherein the encrypted keyword set is obtained by encrypting the first keyword set, and the first keyword set is extracted from the first energy and power data set. The method also includes obtaining a supply and demand matching result based on the second keyword set and the encrypted keyword set, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side. Thus, the data sharing system can comprehensively consider the second keyword set and the encrypted keyword set for supply and demand matching.
[0152] In some examples, after obtaining the supply and demand matching result, the method further includes sending the supply and demand matching result to the data supply end and / or the data demand end to inform the data supply end and / or the data demand end of the supply and demand matching result.
[0153] The embodiment of the present application provides another method for sharing energy and power data based on blockchain.
[0154] like Figure 6 As shown, the method may include the following steps:
[0155] S601, obtaining digital fingerprint information of a first energy and power data set uploaded by a data supplier from a blockchain-based data sharing system, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier.
[0156] It should be noted that Figure 6 The execution subject of the blockchain-based energy and power data sharing method shown is the data audit terminal.
[0157] In one embodiment, obtaining digital fingerprint information of a first energy and power data set uploaded by a data supplier from a blockchain-based data sharing system includes receiving digital fingerprint information sent by the data sharing system.
[0158] In one implementation, the data audit terminal has the authority to query the digital fingerprint information in the data sharing system, and the data audit terminal can query the digital fingerprint information in the data sharing system.
[0159] S602, review the first ownership information to obtain a review result of the first ownership information.
[0160] S603, sending the audit results to the data sharing system.
[0161] For the relevant contents of steps S601-S603, please refer to the above embodiment and will not be repeated here.
[0162] In one embodiment, the first ownership information is audited to obtain the audit result of the first ownership information, including obtaining the ownership certification information uploaded by the data supplier from the data sharing system, wherein the ownership certification information is used to prove that the data supplier has the ownership of the first energy and power data set, and based on the ownership certification information, the first ownership information is audited to obtain the audit result. Therefore, the data audit end can consider the ownership certification information to perform data ownership audit.
[0163] In some examples, the digital fingerprint information also includes an encrypted keyword set, wherein the encrypted keyword set is obtained by encrypting a first keyword set, the first keyword set is extracted from a first energy and power data set, and based on the ownership certification information, the first ownership information is audited to obtain an audit result, including performing a correlation analysis on the ownership certification information and the encrypted keyword set to obtain a second correlation parameter, and obtaining an audit result based on the second correlation parameter. Thus, the data audit terminal can perform a correlation analysis on the ownership certification information and the encrypted keyword set to perform a data ownership audit.
[0164] It should be noted that the second correlation parameter is used to characterize the correlation (also called correlation relationship) between part of the information in the ownership proof information and the keywords in the encrypted keyword set, and / or to characterize the correlation between the entire ownership proof information and the entire encrypted keyword set.
[0165] In some examples, an audit result is obtained based on a second correlation parameter, including generating an audit result indicating that the first ownership information has passed the audit if the second correlation parameter is greater than a set threshold, or generating an audit result indicating that the first ownership information has not passed the audit if the second correlation parameter is less than or equal to the set threshold.
[0166] In some examples, after sending the audit result to the data sharing system, the process further includes obtaining the adjusted ownership certification information uploaded by the data supplier from the data sharing system, and auditing the first ownership information based on the adjusted ownership certification information to obtain the audit result. Thus, the data audit end can re-audit the data ownership in consideration of the adjusted ownership certification information, and can realize multiple audits of the first ownership information, thereby improving the accuracy of the data ownership audit.
[0167] In summary, according to the method for sharing energy and power data based on blockchain in the embodiment of the present application, the digital fingerprint information of the first energy and power data set uploaded by the data supply end is obtained from the data sharing system based on blockchain, wherein the digital fingerprint information includes the first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end. The first ownership information is reviewed to obtain the review result of the first ownership information, and the review result is sent to the data sharing system. Thus, the data review end can review the ownership information confirmed by the data supply end, obtain the review result of the first ownership information, and send the review result to the data sharing system, that is, in the data sharing process based on blockchain, the data review end can conduct data ownership review, which improves the accuracy of data ownership and is suitable for sharing scenarios of energy and power data based on blockchain.
[0168] In order to implement the above embodiments, the present application also proposes a blockchain-based energy and power data sharing device, which is suitable for the data supply end.
[0169] Figure 7 A schematic diagram of the structure of a blockchain-based energy and power data sharing device provided in an embodiment of the present application.
[0170] like Figure 7 As shown, the blockchain-based energy and power data sharing device 100 includes: a confirmation module 110, a generation module 120, an adding module 130 and an uploading module 140.
[0171] Confirmation module 110, used to confirm that the data supplier has the ownership of the first energy and power data set;
[0172] A generating module 120, configured to generate first ownership information of the first energy and power data set, wherein the first ownership information is ownership information confirmed by the data supplier;
[0173] An adding module 130, configured to add the first ownership information to the digital fingerprint information of the first energy and power data set;
[0174] The uploading module 140 is used to upload the digital fingerprint information to a blockchain-based data sharing system.
[0175] Furthermore, in a possible implementation method of an embodiment of the present application, after uploading the digital fingerprint information to a blockchain-based data sharing system, the upload module 140 is also used to: receive a first indication message sent by the data sharing system, wherein the first indication message is used to indicate that there is a problem with the first ownership information; adjust the ownership proof information, wherein the ownership proof information is used to prove that the data supplier has ownership of the first energy and power data set; and upload the adjusted ownership proof information to the data sharing system.
[0176] Furthermore, in a possible implementation method of an embodiment of the present application, before uploading the digital fingerprint information to a blockchain-based data sharing system, the adding module 130 is also used to: extract a first keyword set from the first energy and power data set; add the first ownership information to the first keyword set; encrypt the first keyword set to obtain an encrypted keyword set; and add the encrypted keyword set to the digital fingerprint information.
[0177] Furthermore, in a possible implementation method of an embodiment of the present application, before uploading the digital fingerprint information to the blockchain-based data sharing system, the adding module 130 is also used to: obtain a first hash value of the first energy and power data set; and add the first hash value to the digital fingerprint information.
[0178] Furthermore, in a possible implementation of an embodiment of the present application, the device 100 also includes: a first supply and demand matching module, used to: receive a data sharing request sent by a data demand end; confirm that the data demand end has query authority for the data published on the blockchain by the data supply end; send a second indication message to the data demand end, wherein the second indication message is used to indicate that the data demand end has query authority for the data published on the blockchain by the data supply end; receive a supply and demand matching result sent by the data demand end, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand end.
[0179] Furthermore, in a possible implementation of an embodiment of the present application, the device 100 also includes: a second supply and demand matching module, used to: extract a first keyword set from the first energy and power data set; obtain a second keyword set uploaded by the data demand side to describe the data demand of the data demand side from the data sharing system; and obtain a supply and demand matching result based on the first keyword set and the second keyword set, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
[0180] Furthermore, in a possible implementation of an embodiment of the present application, the device 100 also includes: a third supply and demand matching module, used to: receive the supply and demand matching result sent by the data sharing system, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand end.
[0181] Furthermore, in a possible implementation of an embodiment of the present application, the device 100 also includes: a sharing module, used to: obtain a second energy and power data set to be shared to a data demand end; determine a transmission method of the second energy and power data set based on the privacy level of the second energy and power data set; and share the second energy and power data set to the data demand end according to the transmission method of the second energy and power data set.
[0182] Furthermore, in a possible implementation method of an embodiment of the present application, the sharing module is also used to: encrypt the second energy and power data set based on the public key of the data demand end to obtain a first encrypted data set; and share the first encrypted data set to the data demand end.
[0183] Furthermore, in a possible implementation method of an embodiment of the present application, the sharing module is also used to: encrypt the second energy and power data set based on the first public key of the data demand end to obtain a second encrypted data set; encrypt the second encrypted data set based on the second public key of the data demand end to obtain a third encrypted data set; and share the third encrypted data set to the data demand end.
[0184] Furthermore, in a possible implementation method of the embodiment of the present application, the sharing module is also used to: encrypt the second energy and power data set based on the public key of the data supply end to obtain a fourth encrypted data set; encrypt the fourth encrypted data set based on the public key of the data demand end to obtain a fifth encrypted data set; and share the fifth encrypted data set to the data demand end.
[0185] Furthermore, in a possible implementation method of an embodiment of the present application, the sharing module is also used to: obtain a supply and demand matching result, wherein the supply and demand matching result is used to indicate that the first data in the first energy and power data set is not the data required by the data demand end, and is used to indicate that the second data in the first energy and power data set is the data required by the data demand end; split the first energy and power data set into a first subset and a second subset, wherein the first subset only includes the first data and the second subset only includes the second data; and use the second subset as the second energy and power data set.
[0186] Furthermore, in a possible implementation of the embodiment of the present application, the sharing module is also used to: encrypt the first subset based on the private key of the data supplier to obtain an encrypted subset.
[0187] It should be noted that the aforementioned explanation of the embodiment of the method for sharing energy and power data based on blockchain is also applicable to the device for sharing energy and power data based on blockchain in this embodiment, and will not be repeated here.
[0188] In summary, the energy and power data sharing device based on blockchain of the embodiment of the present application confirms that the data supply end has the ownership of the first energy and power data set, generates the first ownership information of the first energy and power data set, wherein the first ownership information is the ownership information confirmed by the data supply end, adds the first ownership information to the digital fingerprint information of the first energy and power data set, and uploads the digital fingerprint information to the data sharing system based on blockchain. Thus, the data supply end can confirm that it has the ownership of the first energy and power data set, and generates the first ownership information of the data set, adds the first ownership information to the digital fingerprint information of the data set, and uploads the digital fingerprint information to the data sharing system based on blockchain, that is, in the data sharing process based on blockchain, the data supply end can confirm the data ownership, which improves the efficiency of obtaining data ownership, and is suitable for the sharing scenario of energy and power data based on blockchain.
[0189] In order to implement the above-mentioned embodiments, the present application also proposes another blockchain-based energy and power data sharing device, which is suitable for a blockchain-based data sharing system.
[0190] Figure 8 A schematic diagram of the structure of another device for sharing energy and power data based on blockchain provided in an embodiment of the present application.
[0191] like Figure 8 As shown, the blockchain-based energy and power data sharing device 200 includes: a first acquisition module 210, a second acquisition module 220 and an update module 230.
[0192] A first acquisition module 210 is used to acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier;
[0193] The second acquisition module 220 is used to receive the audit result of the first ownership information sent by the data audit terminal;
[0194] The updating module 230 is used to update the first ownership information in the digital fingerprint information to the second ownership information if the audit result indicates that the first ownership information has passed the audit, so as to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit terminal.
[0195] Furthermore, in a possible implementation of an embodiment of the present application, the update module 230 is also used to: if the audit result indicates that the first ownership information has not passed the audit, and / or confirms that the first ownership information is incorrect, send a first indication message to the data supplier, wherein the first indication message is used to indicate that there is a problem with the first ownership information; receive the adjusted ownership certification information uploaded by the data supplier, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set.
[0196] Furthermore, in a possible implementation of an embodiment of the present application, the update module 230 is also used to: if the audit result indicates that the first ownership information has not passed the audit, and / or confirms that the first ownership information is incorrect, reduce the rights and interests of the data supplier in the blockchain.
[0197] Furthermore, in a possible implementation of the embodiment of the present application, the first acquisition module 210 is further used to: acquire a second keyword set uploaded by the data demander to describe the data demand of the data demander.
[0198] Further, in a possible implementation manner of the embodiment of the present application, the digital fingerprint information further includes an encrypted keyword set, wherein the encrypted keyword set is obtained by encrypting a first keyword set, and the first keyword set is extracted from the first energy and power data set;
[0199] The device 200 also includes: a supply and demand matching module, which is used to: obtain a supply and demand matching result based on the second keyword set and the encrypted keyword set, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand end.
[0200] It should be noted that the aforementioned explanation of the embodiment of the method for sharing energy and power data based on blockchain is also applicable to the device for sharing energy and power data based on blockchain in this embodiment, and will not be repeated here.
[0201] In summary, the energy and power data sharing device based on blockchain of the embodiment of the present application obtains the digital fingerprint information of the first energy and power data set uploaded by the data supply end, wherein the digital fingerprint information includes the first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end, and receives the audit result for the first ownership information sent by the data audit end. If the audit result indicates that the first ownership information has passed the audit, the first ownership information in the digital fingerprint information is updated to the second ownership information to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit end. Thus, when the audit result indicates that the first ownership information has passed the audit, the data sharing system may update the first ownership information in the digital fingerprint information to the second ownership information, that is, in the data sharing process based on blockchain, the data sharing system may update the ownership information confirmed by the data supply end to the ownership information confirmed by the data audit end when the data ownership passes the audit, thereby improving the recognition of data ownership, and is suitable for sharing scenarios of energy and power data based on blockchain.
[0202] In order to implement the above-mentioned embodiments, the present application also proposes another blockchain-based energy and power data sharing device, which is suitable for the data review end.
[0203] Fig. 9 A schematic diagram of the structure of another device for sharing energy and power data based on blockchain provided in an embodiment of the present application.
[0204] like Fig. 9 As shown, the energy and power data sharing device 300 based on blockchain includes: an acquisition module 310, a review module 320 and a sending module 330.
[0205] An acquisition module 310 is used to acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier from a blockchain-based data sharing system, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier;
[0206] An audit module 320 is used to audit the first ownership information and obtain an audit result of the first ownership information;
[0207] The sending module 330 is used to send the audit result to the data sharing system.
[0208] Furthermore, in a possible implementation of an embodiment of the present application, the audit module 320 is also used to: obtain, from the data sharing system, the ownership certification information uploaded by the data supplier, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set; based on the ownership certification information, audit the first ownership information to obtain the audit result.
[0209] It should be noted that the aforementioned explanation of the embodiment of the method for sharing energy and power data based on blockchain is also applicable to the device for sharing energy and power data based on blockchain in this embodiment, and will not be repeated here.
[0210] In summary, the energy and power data sharing device based on blockchain in the embodiment of the present application obtains the digital fingerprint information of the first energy and power data set uploaded by the data supply end from the data sharing system based on blockchain, wherein the digital fingerprint information includes the first ownership information of the first energy and power data set, and the first ownership information is the ownership information confirmed by the data supply end, and the first ownership information is audited to obtain the audit result of the first ownership information, and the audit result is sent to the data sharing system. Thus, the data audit end can audit the ownership information confirmed by the data supply end, obtain the audit result of the first ownership information, and send the audit result to the data sharing system, that is, in the data sharing process based on blockchain, the data audit end can perform data ownership audit, which improves the accuracy of data ownership and is suitable for sharing scenarios of energy and power data based on blockchain.
[0211] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0212] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0213] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0214] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0215] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0216] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.
[0217] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0218] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood to control or imply relative importance or implicitly indicate the number of technical features controlled. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0219] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0220] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0221] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0222] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0223] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0224] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for sharing energy and power data based on blockchain, characterized in that: Applicable to the data supply side, the method comprises: Confirm that the data supplier has the ownership of the First Energy Power Data Set; Generate first ownership information of the first energy and power data set, wherein the first ownership information is ownership information confirmed by the data supplier; Adding the first ownership information to the digital fingerprint information of the first energy and power data set; The digital fingerprint information is uploaded to a blockchain-based data sharing system.
2. The method according to claim 1, characterized in that After uploading the digital fingerprint information to the blockchain-based data sharing system, the method further includes: Receiving first indication information sent by the data sharing system, wherein the first indication information is used to indicate that there is a problem with the first ownership information; Adjusting the ownership certification information, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set; The adjusted ownership certification information is uploaded to the data sharing system.
3. The method according to claim 1, characterized in that Before uploading the digital fingerprint information to the blockchain-based data sharing system, the method further includes: extracting a first keyword set from the first energy and power data set; adding the first ownership information to the first keyword set; Encrypting the first keyword set to obtain an encrypted keyword set; The encrypted keyword set is added to the digital fingerprint information.
4. The method according to claim 1, characterized in that: Before uploading the digital fingerprint information to the blockchain-based data sharing system, the method further includes: Obtaining a first hash value of the first energy and power data set; The first hash value is added to the digital fingerprint information.
5. The method according to claim 1, characterized in that The method further comprises: Receive data sharing requests sent by data demanders; Confirm that the data demander has the query authority for the data published on the blockchain by the data supplier; Sending second indication information to the data demander, wherein the second indication information is used to indicate that the data demander has query authority for the data published on the blockchain by the data supplier; Receive a supply and demand matching result sent by the data demand side, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
6. The method according to claim 1, characterized in that The method further comprises: extracting a first keyword set from the first energy and power data set; Acquire, from the data sharing system, a second keyword set uploaded by a data demander and used to describe the data demand of the data demander; Based on the first keyword set and the second keyword set, a supply and demand matching result is obtained, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
7. The method according to claim 1, characterized in that The method further comprises: Receive a supply and demand matching result sent by the data sharing system, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand end.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Obtain a second energy power data set to be shared with a data demand end; Determining a transmission method of the second energy and power data set based on a privacy level of the second energy and power data set; According to the transmission method of the second energy and power data set, the second energy and power data set is shared to the data demand end.
9. The method according to claim 8, characterized in that The step of sharing the second energy and power data set to the data demand end according to the transmission mode of the second energy and power data set includes: Encrypting the second energy and power data set based on the public key of the data demand end to obtain a first encrypted data set; The first encrypted data set is shared to the data demand end.
10. The method according to claim 8, characterized in that The step of sharing the second energy and power data set to the data demand end according to the transmission mode of the second energy and power data set includes: Encrypting the second energy and power data set based on the first public key of the data demand end to obtain a second encrypted data set; Encrypting the second encrypted data set based on the second public key of the data demand end to obtain a third encrypted data set; The third encrypted data set is shared to the data demand end.
11. The method according to claim 8, characterized in that The step of sharing the second energy and power data set to the data demand end according to the transmission mode of the second energy and power data set includes: Based on the public key of the data supplier, the second energy and power data set is encrypted to obtain a fourth encrypted data set. Encrypting the fourth encrypted data set based on the public key of the data demander to obtain a fifth encrypted data set; The fifth encrypted data set is shared to the data demand end.
12. The method according to claim 8, characterized in that The step of obtaining a second energy and power data set to be shared with a data demand end includes: Obtaining a supply-demand matching result, wherein the supply-demand matching result is used to indicate that the first data in the first energy and power data set is not the data required by the data demand end, and is used to indicate that the second data in the first energy and power data set is the data required by the data demand end; Splitting the first energy and power data set into a first subset and a second subset, wherein the first subset includes only the first data and the second subset includes only the second data; The second subset is used as the second energy power data set.
13. The method according to claim 12, characterized in that The method further comprises: The first subset is encrypted based on the private key of the data supplier to obtain an encrypted subset.
14. A method for sharing energy and power data based on blockchain, characterized in that: Applicable to a blockchain-based data sharing system, the method comprises: Acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier; Obtaining the audit result of the first ownership information sent by the data audit terminal; If the audit result indicates that the first ownership information has passed the audit, the first ownership information in the digital fingerprint information is updated to the second ownership information to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit terminal.
15. The method according to claim 14, characterized in that The method further comprises: If the audit result indicates that the first ownership information has not passed the audit, and / or it is confirmed that the first ownership information is incorrect, first indication information is sent to the data supplier, wherein the first indication information is used to indicate that there is a problem with the first ownership information; Receive the adjusted ownership certification information uploaded by the data supplier, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set.
16. The method according to claim 14, characterized in that The method further comprises: If the audit result indicates that the first ownership information has not passed the audit, and / or it is confirmed that the first ownership information is incorrect, the rights and interests of the data supplier in the blockchain are reduced.
17. The method according to claim 14, characterized in that The method further comprises: A second keyword set uploaded by the data demander for describing the data demand of the data demander is obtained.
18. The method according to claim 17, characterized in that The digital fingerprint information also includes an encrypted keyword set, wherein the encrypted keyword set is obtained by encrypting a first keyword set, and the first keyword set is extracted from the first energy and power data set; The method further comprises: Based on the second keyword set and the encrypted keyword set, a supply and demand matching result is obtained, wherein the supply and demand matching result is used to indicate whether the data in the first energy and power data set is the data required by the data demand side.
19. A method for sharing energy and power data based on blockchain, characterized in that: Applicable to the data audit end, the method includes: Acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier from a blockchain-based data sharing system, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier; Reviewing the first ownership information to obtain a review result of the first ownership information; The audit result is sent to the data sharing system.
20. The method according to claim 19, characterized in that The reviewing of the first ownership information to obtain the review result of the first ownership information includes: Acquiring, from the data sharing system, ownership certification information uploaded by the data supplier, wherein the ownership certification information is used to prove that the data supplier has ownership of the first energy and power data set; Based on the ownership certification information, the first ownership information is reviewed to obtain the review result.
21. A device for sharing energy and power data based on blockchain, characterized in that: Applicable to a data supply end, the device comprises: A confirmation module, used to confirm that the data supplier has the ownership of the first energy and power data set; A generating module, configured to generate first ownership information of the first energy and power data set, wherein the first ownership information is ownership information confirmed by the data supplier; An adding module, used for adding the first ownership information to the digital fingerprint information of the first energy and power data set; The uploading module is used to upload the digital fingerprint information to a data sharing system based on blockchain.
22. A device for sharing energy and power data based on blockchain, characterized in that: Applicable to a data sharing system based on blockchain, the device comprising: A first acquisition module is used to acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier; A second acquisition module is used to receive the audit result of the first ownership information sent by the data audit terminal; An update module is used to update the first ownership information in the digital fingerprint information to the second ownership information if the audit result indicates that the first ownership information has passed the audit, so as to update the digital fingerprint information, wherein the second ownership information is the ownership information confirmed by the data audit terminal.
23. A device for sharing energy and power data based on blockchain, characterized in that: Applicable to a data audit terminal, the device comprises: An acquisition module, used to acquire digital fingerprint information of a first energy and power data set uploaded by a data supplier from a blockchain-based data sharing system, wherein the digital fingerprint information includes first ownership information of the first energy and power data set, and the first ownership information is ownership information confirmed by the data supplier; An audit module, used to audit the first ownership information and obtain an audit result of the first ownership information; A sending module is used to send the audit result to the data sharing system.
24. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 20.
25. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 20.
26. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 20.