Cell data encryption method and device based on blockchain
Through the blockchain-based battery cell data encryption method, the battery cell parameters and hash values in the blockchain are used to generate anti-counterfeiting data tables, which solves the problems of high difficulty in data encryption and low privacy and security in the existing technology, and realizes the More efficient battery cell data encryption and privacy protection.
Patent Information
- Application Number
- CN202310675046.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-06-07
AI Technical Summary
The existing data encryption technology has problems in energy storage systems with high difficulty in data encryption and low privacy security, especially in terms of tamper-proof and privacy protection.
Adopt the blockchain-based battery cell data encryption method, and determine the battery cell hash value by obtaining the battery cell parameters in the blockchain, and generate anti-counterfeiting based on the battery cell hash value, timestamp and encrypted service data of the target block. Data tables to reduce the difficulty of data encryption and improve data privacy and security.
It achieves lower data encryption difficulty and higher data privacy and security, and enhances the anti-tampering capability and privacy protection of battery cell data.
Smart Images

Figure CN116933279B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data encryption, and in particular to a method and device for encrypting battery cell data based on blockchain. Background Art
[0002] In energy storage systems, the data collected by the equipment needs to be verified for anti-counterfeiting, especially in the stages of shipment testing and verification, and data tampering prevention is required to reduce the risks borne by the enterprise.
[0003] Currently, battery manufacturers usually install tamper-proof industrial computers and / or use SSL, TLS, MD5, AES and other technologies to encrypt relevant data in energy storage systems. However, these existing data encryption technologies often have problems such as high difficulty in data encryption and low data privacy security. For example, on-site debugging of tamper-proof industrial computers is difficult and complicated, and once triggered, the original data will be erased or overwritten; SSL, TLS, MD5, AES and other technologies cannot guarantee the non-repudiation of information, or cannot provide good privacy protection during transactions.
[0004] Therefore, it is particularly important to provide a method that can reduce the difficulty of data encryption and improve the privacy security of data. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a battery cell data encryption method and device based on blockchain, which can help to improve the awareness of returning recyclable containers, thereby reducing the pollution to the environment caused by the containers being discarded or not recycled in time.
[0006] In order to solve the above technical problems, the first aspect of the present invention discloses a cell data encryption method based on blockchain, the method comprising:
[0007] Obtaining a cell parameter corresponding to a current block in a blockchain, wherein the cell parameter is used to indicate a cell data collection status of the current block, wherein the current block is any block among all blocks included in the blockchain;
[0008] Determine the cell hash value of the current block according to the cell parameter and a first preset encryption algorithm;
[0009] An anti-counterfeiting data table of the current block is generated according to the battery cell hash value of the current block, the timestamp of the current block and the encrypted business data of a predetermined target block, wherein the target block is the previous adjacent block of the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block.
[0010] As an optional implementation manner, in the first aspect of the present invention, the encrypted service data of the target block is determined by:
[0011] Obtaining a block index of the target block;
[0012] Generate a random hash value of the target block according to the block index and a first preset random algorithm;
[0013] Through a second preset encryption algorithm, an encryption operation is performed on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block to obtain an encryption result, and the encryption result is determined as the encrypted business data of the target block.
[0014] As an optional implementation, in the first aspect of the present invention, the anti-counterfeiting data table includes a block data table and a business data table of the current block;
[0015] And, generating the anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, including:
[0016] Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of a target block, and predetermined encrypted business data of the target block;
[0017] Generate a business data table of the current block according to the battery cell parameters and the battery cell hash value of the current block;
[0018] The anti-counterfeiting data table of the current block is generated according to the block data table and the business data table.
[0019] As an optional implementation, in the first aspect of the present invention, the battery cell parameter includes a target parameter and a collection parameter corresponding to the target parameter, the target parameter includes battery cell voltage data and / or battery cell temperature data, and the collection parameter includes a data collection position and / or a data collection time corresponding to the target parameter;
[0020] And, determining the cell hash value of the current block according to the cell parameter and the first preset encryption algorithm includes:
[0021] Generate a content hash value corresponding to each content included in the battery cell parameters according to a second preset random algorithm and the battery cell parameters;
[0022] According to all the content hash values and the first preset encryption algorithm, the root hash corresponding to all the content hash values is calculated, and the root hash is determined as the cell hash value of the current block.
[0023] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0024] Obtain the user's willingness to use data;
[0025] According to the data usage intention, determining at least one target cell data in the blockchain that matches the data usage intention;
[0026] According to a pre-established anti-counterfeiting monitoring model, determining whether all the target battery cell data meet a preset safety condition, wherein the preset safety condition is used to indicate that the target battery cell data has not been tampered with;
[0027] When it is determined that all the target cell data satisfy the preset safety condition, a preset data processing operation is performed according to the data usage intention and all the target cell data, and the preset data processing operation includes a data delivery operation and / or a data testing operation.
[0028] As an optional implementation, in the first aspect of the present invention, the anti-counterfeiting monitoring model is established in the following manner:
[0029] Obtaining the anti-counterfeiting data tables of all the blocks in the blockchain, and obtaining a predetermined block index of each block, wherein an association is established between the anti-counterfeiting data table of each block and the block index of the block;
[0030] Generate a block layout hash value of the blockchain according to all the anti-counterfeiting data tables, all the block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm;
[0031] According to the anti-counterfeiting data tables of all the blocks and the block layout hash values, an anti-counterfeiting monitoring model of the blockchain is established, and the anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
[0032] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0033] When it is determined that there is at least one abnormal cell data that does not meet the preset safety condition among all the target cell data, determining at least one abnormal block in the blockchain according to the anti-counterfeiting monitoring model and all the abnormal cell data;
[0034] Obtaining a data modification record pre-stored in each of the abnormal blocks;
[0035] Determine the abnormal data modification node corresponding to each abnormal block according to the data modification record corresponding to each abnormal block and the anti-counterfeiting monitoring model;
[0036] According to the abnormal data modification node corresponding to each abnormal block and the anti-counterfeiting monitoring model, an abnormal data report of the blockchain is generated.
[0037] The second aspect of the present invention discloses a battery cell data encryption device based on blockchain, the device comprising:
[0038] An acquisition module, used to acquire a cell parameter corresponding to a current block in a blockchain, wherein the cell parameter is used to indicate a cell data collection status of the current block, and the current block is any block among all blocks included in the blockchain;
[0039] A determination module, used to determine the battery cell hash value of the current block according to the battery cell parameters and a first preset encryption algorithm;
[0040] A generation module is used to generate an anti-counterfeiting data table of the current block according to the battery cell hash value of the current block, the timestamp of the current block and the encrypted business data of a predetermined target block, wherein the target block is a block that is previously adjacent to the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block.
[0041] As an optional implementation, in the second aspect of the present invention, the encrypted service data of the target block is determined by:
[0042] Obtaining a block index of the target block;
[0043] Generate a random hash value of the target block according to the block index and a first preset random algorithm;
[0044] Through a second preset encryption algorithm, an encryption operation is performed on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block to obtain an encryption result, and the encryption result is determined as the encrypted business data of the target block.
[0045] As an optional implementation, in the second aspect of the present invention, the anti-counterfeiting data table includes a block data table and a business data table of the current block;
[0046] And, the generation module generates the anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, specifically including:
[0047] Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of a target block, and predetermined encrypted business data of the target block;
[0048] Generate a business data table of the current block according to the battery cell parameters and the battery cell hash value of the current block;
[0049] The anti-counterfeiting data table of the current block is generated according to the block data table and the business data table.
[0050] As an optional implementation, in the second aspect of the present invention, the battery cell parameter includes a target parameter and a collection parameter corresponding to the target parameter, the target parameter includes battery cell voltage data and / or battery cell temperature data, and the collection parameter includes a data collection position and / or a data collection time corresponding to the target parameter;
[0051] And, the determination module determines the hash value of the battery cell of the current block according to the battery cell parameter and the first preset encryption algorithm, specifically including:
[0052] Generate a content hash value corresponding to each content included in the battery cell parameters according to a second preset random algorithm and the battery cell parameters;
[0053] According to all the content hash values and the first preset encryption algorithm, the root hash corresponding to all the content hash values is calculated, and the root hash is determined as the cell hash value of the current block.
[0054] As an optional implementation, in the second aspect of the present invention, the acquisition module is further used to:
[0055] Obtain the user's willingness to use data;
[0056] The determination module is further configured to determine, according to the data usage intention, at least one target cell data in the blockchain that matches the data usage intention;
[0057] And, the device further comprises:
[0058] A judgment module, used to judge whether all the target battery cell data meet a preset safety condition according to a pre-established anti-counterfeiting monitoring model, wherein the preset safety condition is used to indicate that the target battery cell data has not been tampered with;
[0059] An execution module is used to execute a preset data processing operation according to the data usage intention and all the target battery cell data when the judgment module determines that all the target battery cell data meet the preset safety conditions. The preset data processing operation includes a data delivery operation and / or a data testing operation.
[0060] As an optional implementation, in the second aspect of the present invention, the anti-counterfeiting monitoring model is established in the following manner:
[0061] Obtaining the anti-counterfeiting data tables of all the blocks in the blockchain, and obtaining a predetermined block index of each block, wherein an association is established between the anti-counterfeiting data table of each block and the block index of the block;
[0062] Generate a block layout hash value of the blockchain according to all the anti-counterfeiting data tables, all the block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm;
[0063] According to the anti-counterfeiting data tables of all the blocks and the block layout hash values, an anti-counterfeiting monitoring model of the blockchain is established, and the anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
[0064] As an optional implementation manner, in the second aspect of the present invention, the determining module is further used to:
[0065] When the judgment module determines that there is at least one abnormal cell data that does not meet the preset safety condition among all the target cell data, at least one abnormal block in the blockchain is determined according to the anti-counterfeiting monitoring model and all the abnormal cell data;
[0066] The acquisition module is further used to acquire the data modification record pre-stored in each abnormal block;
[0067] The determination module is further used to determine the abnormal data modification node corresponding to each abnormal block according to the data modification record corresponding to each abnormal block and the anti-counterfeiting monitoring model;
[0068] The generation module is also used to generate an abnormal data report of the blockchain according to the abnormal data modification node corresponding to each abnormal block and the anti-counterfeiting monitoring model.
[0069] The third aspect of the present invention discloses a power management system, which is used to execute the blockchain-based battery cell data encryption method disclosed in the first aspect of the present invention.
[0070] The fourth aspect of the present invention discloses another battery cell data encryption device based on blockchain, the device comprising:
[0071] A memory storing executable program code;
[0072] a processor coupled to the memory;
[0073] The processor calls the executable program code stored in the memory to execute the blockchain-based battery cell data encryption method disclosed in the first aspect of the present invention.
[0074] The fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the blockchain-based battery cell data encryption method disclosed in the first aspect of the present invention.
[0075] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0076] In an embodiment of the present invention, the cell parameters corresponding to the current block in the blockchain are obtained, and the cell parameters are used to indicate the cell data collection of the current block, and the current block is any block among all the blocks included in the blockchain; according to the cell parameters and the first preset encryption algorithm, the cell hash value of the current block is determined; according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, the anti-counterfeiting data table of the current block is generated, wherein the target block is the block adjacent to the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block. It can be seen that the implementation of the present invention can determine the cell hash value of the current block according to the cell parameters of the current block and the first preset encryption algorithm, so as to perform secondary encryption on the cell hash value according to the encrypted business data of the target block and the timestamp of the current block, and then generate the anti-counterfeiting data table of the current block, which can reduce the difficulty of data encryption and improve the degree of data privacy security. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0078] Figure 1It is a flowchart of a method for encrypting battery data based on blockchain disclosed in an embodiment of the present invention;
[0079] Figure 2 It is a flow chart of another method for encrypting battery cell data based on blockchain disclosed in an embodiment of the present invention;
[0080] Figure 3 It is a structural schematic diagram of a battery data encryption device based on blockchain disclosed in an embodiment of the present invention;
[0081] Figure 4 It is a structural schematic diagram of another battery cell data encryption device based on blockchain disclosed in an embodiment of the present invention;
[0082] Figure 5 It is a structural schematic diagram of another battery cell data encryption device based on blockchain disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0083] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0085] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0086] The present invention discloses a battery cell data encryption method and device based on blockchain, which can determine the battery cell hash value of the current block according to the battery cell parameters of the current block and a first preset encryption algorithm, thereby performing secondary encryption on the battery cell hash value according to the encrypted business data of the target block and the timestamp of the current block, and then generating an anti-counterfeiting data table of the current block, which can reduce the difficulty of data encryption and improve the degree of data privacy security. The following are detailed descriptions.
[0087] Embodiment 1
[0088] See also Figure 1 , Figure 1 This is a flow chart of a method for encrypting battery data based on blockchain disclosed in an embodiment of the present invention. Figure 1 The described blockchain-based battery cell data encryption method can be applied to blockchains that need to encrypt battery cell data in daily life, and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a battery cell data encryption system, or by a local server or cloud server that processes the battery cell data encryption process, wherein the battery cell data encryption system can be integrated into the battery cell data encryption device, or can exist independently of the battery cell data encryption device, and the embodiments of the present invention do not limit this. Figure 1 As shown, the cell data encryption method based on blockchain may include the following operations:
[0089] 101. Get the cell parameters corresponding to the current block in the blockchain.
[0090] In an embodiment of the present invention, optionally, a method for obtaining the battery cell parameters corresponding to the current block in the blockchain may specifically be: a battery management system (BMS) collects corresponding data and uploads the data to an energy management system (EMS), which then sends the data to a cloud big data platform (i.e., a battery cell data encryption system).
[0091] In the embodiment of the present invention, optionally, the cell parameters are used to indicate the cell data collection status of the current block, and the cell data includes but is not limited to battery type, voltage data, temperature data, battery capacity, current data, cycle life, cell quality, cell size, cell signature, cell identification, etc. Optionally, the current block is any block of all blocks included in the blockchain, that is, each block included in the blockchain has its corresponding cell parameters.
[0092] 102. Determine a cell hash value of a current block according to the cell parameters and a first preset encryption algorithm.
[0093] In an embodiment of the present invention, optionally, all contents included in the battery cell data can be converted into corresponding hash values through the first preset encryption algorithm, and the hash values corresponding to all contents are used as the battery cell data set in the Merkle tree, and then the root of the Merkle tree is calculated by hashing the battery cell data set multiple times, and the root is determined as the battery cell hash value of the current block.
[0094] 103. Generate an anti-counterfeiting data table of the current block according to the battery cell hash value of the current block, the timestamp of the current block, and the encrypted business data of the predetermined target block.
[0095] In an embodiment of the present invention, optionally, the target block is a block that is adjacent to the current block in the blockchain, and the encrypted business data of the target block is packaged by the block index, timestamp, random hash value, battery cell hash value of the target block and the encrypted business data of the block that is adjacent to the target block. In layman's terms, the corresponding data of each adjacent previous block in the blockchain is packaged and stored in the next block, so as to achieve an interlocking effect, increase the difficulty of tampering, and thereby improve the privacy security of the battery cell data.
[0096] In an embodiment of the present invention, optionally, the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block, and the anti-counterfeiting data table includes a block data table of the current block and a business data table. The block data table is used to store the block anti-counterfeiting data of the current block, such as the block index, timestamp, random hash value of the current block, and the random hash value of the target block corresponding to the current block, etc. The business data table is used to store the business anti-counterfeiting data of the current block, such as battery cell data, battery cell hash value, etc. It should be noted that each block in the blockchain has its corresponding unique anti-counterfeiting data table.
[0097] It can be seen that the implementation of the embodiment of the present invention can determine the battery cell hash value of the current block according to the battery cell parameters of the current block and the first preset encryption algorithm, thereby re-encrypting the battery cell hash value according to the encrypted business data of the target block and the timestamp of the current block, and then generating an anti-counterfeiting data table for the current block, which can reduce the difficulty of data encryption and improve the level of data privacy security.
[0098] In an optional embodiment, the encrypted business data of the target block is determined by:
[0099] Get the block index of the target block;
[0100] Generate a random hash value of the target block according to the block index and a first preset random algorithm;
[0101] Through the second preset encryption algorithm, an encryption operation is performed on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block to obtain an encryption result, and the encryption result is determined as the encrypted business data of the target block.
[0102] In this optional embodiment, the block index is used to indicate the block identifier of the target block. The block index can be presented in the form of a block number, a stripe code, a QR code, a hash value, etc. It should be noted that each block in the blockchain has its corresponding unique block index, which is convenient for distinguishing different blocks. Optionally, the first preset random algorithm can be a preset hash algorithm / hash function, which is used to generate a unique hash value corresponding to the target block, that is, a sha256 random hash value.
[0103] In this optional embodiment, optionally, the random hash value of the target block, the timestamp of the target block and the predetermined cell hash value of the target block can be used as a data set in the Merkle tree through the second preset encryption algorithm, and then the root of the Merkle tree is calculated by hashing the data set multiple times, and the root is determined as the encryption result.
[0104] It can be seen that this optional embodiment can generate a random hash value of the target block according to the block index of the target block and the first preset random algorithm, and then encrypt the encrypted business data of the target block through the second preset encryption algorithm, which can ensure the accuracy of the encrypted business data and thus improve the data privacy security.
[0105] In another optional embodiment, the anti-counterfeiting data table includes a block data table and a business data table of the current block;
[0106] Furthermore, the above step 103 generates an anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, including:
[0107] Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of the target block, and predetermined encrypted business data of the target block;
[0108] Generate the business data table of the current block based on the battery cell parameters and the battery cell hash value of the current block;
[0109] Generate the anti-counterfeiting data table of the current block based on the block data table and the business data table.
[0110] In this optional embodiment, optionally, the block information of the current block in the blockchain, such as the specific location of the block, block attributes, etc., can be queried through the block data table of the current block; the data of the current area including the business, such as battery cell data, battery cell collection data, etc. can be queried through the business data table of the current block. Optionally, each content in the block data table and the business data table can be presented using a corresponding hash value, which is conducive to data recording and reduces the difficulty of data encryption.
[0111] It can be seen that this optional embodiment can generate a block data table and a business data table of the current block according to the multiple contents included in the current block and the target block, and then generate an anti-counterfeiting data table of the current block, which can reduce the difficulty of data encryption, and can improve the effectiveness and accuracy of data encryption, thereby improving the level of data privacy security.
[0112] In another optional embodiment, the battery cell parameters include a target parameter and a collection parameter corresponding to the target parameter, the target parameter includes battery cell voltage data and / or battery cell temperature data, and the collection parameter includes a data collection position and / or a data collection time corresponding to the target parameter;
[0113] Furthermore, the above step 102 determines the hash value of the cell of the current block according to the cell parameters and the first preset encryption algorithm, including:
[0114] Generate a content hash value corresponding to each content included in the battery cell parameters according to the second preset random algorithm and the battery cell parameters;
[0115] According to all content hash values and the first preset encryption algorithm, a root hash corresponding to all content hash values is calculated, and the root hash is determined as the cell hash value of the current block.
[0116] In this optional embodiment, optionally, the target parameters may also include battery type, battery capacity, current data, cycle life, cell quality, cell size, cell signature, cell identification, etc. The more content included in the target parameters, the more detailed the corresponding cell parameters are, and the more conducive to providing an accurate data basis for the subsequent encryption steps, thereby improving the degree of data privacy security. Optionally, each content included in the target parameters will generate corresponding acquisition parameters (i.e., data acquisition location and / or data acquisition time) during the acquisition process. These acquisition parameters can establish an association relationship with the corresponding target parameters. When generating content hash values according to the second preset random algorithm, the target parameters with an associated relationship and the two content hash values generated by the acquisition parameters also have an associated relationship; similarly, these acquisition parameters can also be combined with the corresponding target parameters. When generating content hash values according to the second preset random algorithm, the combined target parameters and acquisition parameters generate a single content hash value. Optionally, the second preset random algorithm is used to generate a content hash value corresponding to each content included in the cell parameters.
[0117] It can be seen that this optional embodiment can generate a content hash value corresponding to each content included in the battery cell parameters according to the second preset random algorithm, and then determine the battery cell hash value of the current block according to the first preset encryption algorithm. The more content the battery cell parameters include, the more difficult it is for the corresponding battery cell hash value to be tampered with, which is conducive to further improving the level of data privacy security.
[0118] Embodiment 2
[0119] See also Figure 2 , Figure 2 This is a flow chart of a method for encrypting battery data based on blockchain disclosed in an embodiment of the present invention. Figure 2 The described blockchain-based battery cell data encryption method can be applied to blockchains that need to encrypt battery cell data in daily life, and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a battery cell data encryption system, or by a local server or cloud server that processes the battery cell data encryption process, wherein the battery cell data encryption system can be integrated into the battery cell data encryption device, or can exist independently of the battery cell data encryption device, and the embodiments of the present invention do not limit this. Figure 2 As shown, the cell data encryption method based on blockchain may include the following operations:
[0120] 201. Obtain the cell parameters corresponding to the current block in the blockchain.
[0121] 202. Determine a cell hash value of a current block according to the cell parameters and a first preset encryption algorithm.
[0122] 203. Generate an anti-counterfeiting data table of the current block according to the battery cell hash value of the current block, the timestamp of the current block, and the encrypted business data of the predetermined target block.
[0123] 204. Obtain the user's data usage intention, and determine at least one target battery cell data in the blockchain that matches the data usage intention based on the data usage intention.
[0124] In an embodiment of the present invention, optionally, the user's data usage intention is used to indicate that the user currently needs to perform a preset data processing operation on the corresponding data of at least one block in the blockchain. Optionally, the user can determine at least one target battery cell data to be obtained through the above-mentioned cloud big data platform. For example, the user can determine to obtain the current battery cell voltage, battery cell temperature, etc. of the block corresponding to block index 4 in the blockchain through the above-mentioned cloud big data platform.
[0125] 205. According to the pre-established anti-counterfeiting monitoring model, determine whether all target battery cell data meet the preset safety conditions.
[0126] In an embodiment of the present invention, optionally, after each block in the blockchain generates a corresponding anti-counterfeiting data table, these anti-counterfeiting data tables will be uploaded to the above-mentioned cloud big data platform as a data public account, and the data public account will publicly display all hash values of the complete link of the blockchain. Further optionally, the anti-counterfeiting monitoring model is established based on the data public account, which is used to locate the block corresponding to the target battery cell data, and match the target battery cell data with the anti-counterfeiting data table of the corresponding block in the data public account, and then determine whether the target battery cell data has been tampered with based on the data matching degree. Optionally, a preset security condition is used to indicate that the target battery cell data has not been tampered with.
[0127] In the embodiment of the present invention, optionally, since each block in the blockchain has its corresponding anti-counterfeiting data table, and the anti-counterfeiting data table of any block stores the encrypted business data of the previous adjacent block of the block, if a certain data is slightly modified, a new hash value will be generated for a certain block, and the newly generated hash value does not match the hash value of the above data public account, which will make the block invalid on the blockchain. Further optionally, before adding the modified data to any block in the blockchain, the validity of the modification must be verified by a block greater than a preset proportion (such as 51%), otherwise the modification will be rejected. Therefore, forcibly modifying the data will consume a lot of resources, which will greatly increase the difficulty of data tampering, thereby reducing the possibility of cell data being tampered with.
[0128] 206. When it is determined that all target cell data satisfy a preset safety condition, a preset data processing operation is performed according to the data usage intention and all target cell data.
[0129] In an embodiment of the present invention, optionally, the above steps implement data verification operations through an anti-counterfeiting monitoring model. Furthermore, when the target battery cell data is verified and there are no abnormal conditions, a preset data processing operation can be performed on the target battery cell data, and the preset data processing operation includes a data delivery operation and / or a data testing operation.
[0130] In the embodiment of the present invention, for other descriptions of step 201 to step 203, please refer to the detailed description of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0131] It can be seen that the implementation of the embodiment of the present invention can determine the battery cell hash value of the current block according to the battery cell parameters of the current block and the first preset encryption algorithm, thereby re-encrypting the battery cell hash value according to the encrypted business data of the target block and the timestamp of the current block, and then generating an anti-counterfeiting data table for the current block, which can reduce the difficulty of data encryption and improve the level of data privacy security; it can determine at least one target battery cell data according to the user's data usage intention, and perform anti-counterfeiting inspection on all target battery cell data through the anti-counterfeiting monitoring model, and then perform preset data processing operations on all target battery cell data, and can check the battery cell data on demand to ensure the safety and reliability of the battery cell data when in use, and further improve the level of data privacy security.
[0132] In an optional embodiment, the anti-counterfeiting monitoring model is established in the following manner:
[0133] Obtain the anti-counterfeiting data table of all blocks in the blockchain, and obtain the predetermined block index of each block;
[0134] Generate a block layout hash value of the blockchain according to all anti-counterfeiting data tables, all block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm;
[0135] According to the anti-counterfeiting data table of all blocks and the block layout hash value, the anti-counterfeiting monitoring model of the blockchain is established.
[0136] In this optional embodiment, optionally, an association relationship is established between the anti-counterfeiting data table of each block and the block index of the block. Optionally, the anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
[0137] In this optional embodiment, as an optional implementation method, the above steps establish an anti-counterfeiting monitoring model of the blockchain according to the anti-counterfeiting data tables of all blocks and the block layout hash values, including:
[0138] Determine the blockchain data public account based on the anti-counterfeiting data table of all blocks;
[0139] Determine the public account index of the blockchain based on the block layout hash value and the association between the anti-counterfeiting data table of each block and the block index of the block;
[0140] Based on the data public account and the public account index, an anti-counterfeiting monitoring model of the blockchain is established.
[0141] In this optional implementation, optionally, the block layout hash value is used to indicate the layout of each block in the blockchain. For example, assuming that there are multiple blocks in the blockchain, these blocks are connected in sequence and the corresponding block indexes are block a, block b, block c...block g, then the block layout hash value corresponding to the blockchain can be abc...g. In addition, when the block layout is tampered with, a different block layout hash value will be obtained that does not match the original block hash value and conflicts with it, that is, the block layout hash value also has the function of anti-counterfeiting encryption.
[0142] In this optional implementation, optionally, in the process of using the anti-counterfeiting monitoring model, the target battery cell data and its corresponding block can be quickly located in the data public account through the public account index, which is conducive to improving the data verification efficiency of the anti-counterfeiting monitoring model.
[0143] It can be seen that this optional implementation method can determine the data public account and public account index of the blockchain based on the anti-counterfeiting data table of all blocks and the block layout hash value, and then establish an anti-counterfeiting monitoring model of the blockchain, which can improve the data positioning capability of the anti-counterfeiting monitoring model, and thus improve the data verification efficiency of the anti-counterfeiting monitoring model.
[0144] It can be seen that this optional embodiment can establish an anti-counterfeiting monitoring model of the blockchain based on the anti-counterfeiting data tables of all blocks and the block layout hash values, which can improve the accuracy and reliability of the anti-counterfeiting monitoring model, thereby improving the data verification efficiency of the anti-counterfeiting monitoring model, and further improving the data privacy security level.
[0145] In another optional embodiment, the method further comprises:
[0146] When it is determined that there is at least one abnormal cell data that does not meet the preset safety conditions among all the target cell data, at least one abnormal block in the blockchain is determined according to the anti-counterfeiting monitoring model and all the abnormal cell data;
[0147] Obtain the data modification records pre-stored for each abnormal block;
[0148] According to the data modification records corresponding to each abnormal block and the anti-counterfeiting monitoring model, determine the abnormal data modification node corresponding to each abnormal block;
[0149] According to the abnormal data modification nodes and anti-counterfeiting monitoring model corresponding to each abnormal block, an abnormal data report of the blockchain is generated.
[0150] In this optional embodiment, each block in the blockchain optionally stores its corresponding data modification record. After any block data is modified, the corresponding original data, modified data, modification identifier, modification node, etc. will be stored in the data modification record of the block, which is conducive to the subsequent steps of tracing the data. Optionally, the abnormal data modification node is used to indicate the specific abnormal location of the abnormal battery cell data. For example, assuming that at a certain time on a certain day of a certain month, user 1 modifies the battery cell voltage of block a from x to z, and its corresponding battery cell data does not meet the preset safety conditions, then its corresponding abnormal data modification node can be indicated as a certain time on a certain day of a certain month-user 1-original battery cell voltage data x-battery cell voltage modification data z.
[0151] In this optional embodiment, optionally, the abnormal data report is used to indicate each abnormal data modification node existing in the blockchain and the modification opinions corresponding to each abnormal data modification node, which is helpful for maintenance personnel to locate abnormal data and correct it, and is also helpful to locate the person responsible for the accident and reduce the risk borne by the enterprise.
[0152] It can be seen that this optional embodiment can determine the abnormal data modification node corresponding to each abnormal block and then generate an abnormal data report of the blockchain when it is determined that there is at least one abnormal battery cell data. It can quickly locate the specific abnormal data, thereby improving the efficiency of abnormal data correction and thus improving the level of data privacy security; it can quickly locate the specific person responsible for the accident, thereby reducing the risk borne by the enterprise.
[0153] Embodiment 3
[0154] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a battery data encryption device based on blockchain disclosed in an embodiment of the present invention. Figure 3 The described blockchain-based battery cell data encryption device can be applied to blockchains that need to encrypt battery cell data on a daily basis, and the embodiments of the present invention do not limit this. Optionally, the device can be implemented by a battery cell data encryption system, or by a local server or cloud server that processes the battery cell data encryption process, wherein the battery cell data encryption system can be integrated into the battery cell data encryption device, or can exist independently of the battery cell data encryption device, and the embodiments of the present invention do not limit this. Figure 3 As shown, the battery cell data encryption device based on blockchain may include:
[0155] An acquisition module 301 is used to acquire the cell parameters corresponding to the current block in the blockchain, where the cell parameters are used to indicate the cell data collection status of the current block, and the current block is any block among all the blocks included in the blockchain;
[0156] A determination module 302, configured to determine a hash value of a cell of a current block according to a cell parameter and a first preset encryption algorithm;
[0157] The generation module 303 is used to generate an anti-counterfeiting data table of the current block according to the battery cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, wherein the target block is the previous adjacent block of the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block.
[0158] It can be seen that implementation Figure 3 The described blockchain-based battery cell data encryption device can determine the battery cell hash value of the current block according to the battery cell parameters of the current block and the first preset encryption algorithm, and then perform secondary encryption on the battery cell hash value according to the encrypted business data of the target block and the timestamp of the current block, thereby generating an anti-counterfeiting data table for the current block, which can reduce the difficulty of data encryption and improve the level of data privacy security.
[0159] In an optional embodiment, the encrypted business data of the target block is determined by:
[0160] Get the block index of the target block;
[0161] Generate a random hash value of the target block according to the block index and a first preset random algorithm;
[0162] Through the second preset encryption algorithm, an encryption operation is performed on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block to obtain an encryption result, and the encryption result is determined as the encrypted business data of the target block.
[0163] It can be seen that implementation Figure 3 The described blockchain-based battery cell data encryption device can generate a random hash value of the target block according to the block index of the target block and a first preset random algorithm, and then encrypt the encrypted business data of the target block through a second preset encryption algorithm, thereby ensuring the accuracy of the encrypted business data and improving the level of data privacy security.
[0164] In another optional embodiment, the anti-counterfeiting data table includes a block data table and a business data table of the current block;
[0165] Furthermore, the generation module 303 generates the anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, specifically including:
[0166] Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of the target block, and predetermined encrypted business data of the target block;
[0167] Generate the business data table of the current block based on the battery cell parameters and the battery cell hash value of the current block;
[0168] Generate the anti-counterfeiting data table of the current block based on the block data table and the business data table.
[0169] It can be seen that implementation Figure 3 The described blockchain-based battery cell data encryption device can generate a block data table and a business data table of the current block according to multiple contents included in the current block and the target block, and then generate an anti-counterfeiting data table of the current block, which can reduce the difficulty of data encryption, and can improve the effectiveness and accuracy of data encryption, thereby improving the degree of data privacy security.
[0170] In another optional embodiment, the battery cell parameter includes a target parameter and a collection parameter corresponding to the target parameter, the target parameter includes battery cell voltage data and / or battery cell temperature data, and the collection parameter includes a data collection position and / or a data collection time corresponding to the target parameter;
[0171] Furthermore, the determination module 302 determines the hash value of the battery cell of the current block according to the battery cell parameters and the first preset encryption algorithm in the following manner:
[0172] Generate a content hash value corresponding to each content included in the battery cell parameters according to the second preset random algorithm and the battery cell parameters;
[0173] According to all content hash values and the first preset encryption algorithm, a root hash corresponding to all content hash values is calculated, and the root hash is determined as the cell hash value of the current block.
[0174] It can be seen that implementation Figure 3 The described blockchain-based battery cell data encryption device can generate a content hash value corresponding to each content included in the battery cell parameters according to the second preset random algorithm, and then determine the battery cell hash value of the current block according to the first preset encryption algorithm. The more content the battery cell parameters include, the more difficult it is to tamper with the corresponding battery cell hash value, which is conducive to further improving the data privacy security.
[0175] In yet another optional embodiment, the acquisition module 301 is further used to:
[0176] Obtain the user's willingness to use data;
[0177] The determination module 302 is further configured to determine, according to the data usage intention, at least one target cell data in the blockchain that matches the data usage intention;
[0178] And, if Figure 4 As shown, the device also includes:
[0179] A judgment module 304 is used to judge whether all target battery cell data meets a preset safety condition according to a pre-established anti-counterfeiting monitoring model, and the preset safety condition is used to indicate that the target battery cell data has not been tampered with;
[0180] The execution module 305 is used to execute preset data processing operations according to the data usage intention and all target cell data when the above-mentioned judgment module 304 determines that all target cell data meet the preset safety conditions. The preset data processing operations include data delivery operations and / or data testing operations.
[0181] It can be seen that implementation Figure 4 The described blockchain-based battery cell data encryption device can determine at least one target battery cell data according to the user's data usage intention, and perform anti-counterfeiting inspection on all target battery cell data through an anti-counterfeiting monitoring model, and then perform preset data processing operations on all target battery cell data. It can check the battery cell data on demand, ensure the security and reliability of the battery cell data when in use, and further improve the data privacy security level.
[0182] In yet another optional embodiment, the anti-counterfeiting monitoring model is established in the following manner:
[0183] Obtaining the anti-counterfeiting data table of all blocks in the blockchain, and obtaining a predetermined block index of each block, wherein an association is established between the anti-counterfeiting data table of each block and the block index of the block;
[0184] Generate a block layout hash value of the blockchain according to all anti-counterfeiting data tables, all block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm;
[0185] According to the anti-counterfeiting data tables of all blocks and the block layout hash values, an anti-counterfeiting monitoring model of the blockchain is established. The anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
[0186] It can be seen that implementation Figure 4The described blockchain-based battery cell data encryption device can establish an anti-counterfeiting monitoring model of the blockchain according to the anti-counterfeiting data tables of all blocks and the block layout hash values, which can improve the accuracy and reliability of the anti-counterfeiting monitoring model, thereby improving the data verification efficiency of the anti-counterfeiting monitoring model, and further improving the data privacy security.
[0187] In yet another optional embodiment, the above-mentioned determination module 302 is further used to:
[0188] When the judgment module 304 judges that there is at least one abnormal cell data that does not meet the preset safety condition among all the target cell data, at least one abnormal block in the blockchain is determined according to the anti-counterfeiting monitoring model and all the abnormal cell data;
[0189] The acquisition module 301 is also used to acquire the data modification record pre-stored in each abnormal block;
[0190] The determination module 302 determines the abnormal data modification node corresponding to each abnormal block according to the data modification record corresponding to each abnormal block and the anti-counterfeiting monitoring model;
[0191] The above-mentioned generation module 303 is also used to generate an abnormal data report of the blockchain according to the abnormal data modification node corresponding to each abnormal block and the anti-counterfeiting monitoring model.
[0192] It can be seen that implementation Figure 4 The described blockchain-based battery cell data encryption device can, when it is determined that there is at least one abnormal battery cell data, determine the abnormal data modification node corresponding to each abnormal block and then generate an abnormal data report on the blockchain. It can quickly locate the specific abnormal data, thereby improving the efficiency of abnormal data correction and thus improving the level of data privacy security; it can quickly locate the specific person responsible for the accident, thereby reducing the risk borne by the enterprise.
[0193] Embodiment 4
[0194] An embodiment of the present invention discloses a power management system, which is used to execute the steps in the blockchain-based battery cell data encryption method described in Embodiment 1 or Embodiment 2 of the present invention.
[0195] Embodiment 5
[0196] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of another battery data encryption device based on blockchain disclosed in an embodiment of the present invention. Figure 5 As shown, the battery cell data encryption device based on blockchain may include:
[0197] A memory 401 storing executable program codes;
[0198] a processor 402 coupled to the memory 401;
[0199] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the blockchain-based battery cell data encryption method described in Embodiment 1 or Embodiment 2 of the present invention.
[0200] Embodiment 6
[0201] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the battery cell data encryption method based on blockchain described in Embodiment 1 or Embodiment 2 of the present invention.
[0202] Embodiment 7
[0203] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the blockchain-based battery cell data encryption method described in Example 1 or Example 2.
[0204] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0205] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0206] Finally, it should be noted that the battery cell data encryption method and device based on blockchain disclosed in the embodiments of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cell data encryption method based on blockchain, characterized in that: The method comprises: Obtaining a cell parameter corresponding to a current block in a blockchain, wherein the cell parameter is used to indicate a cell data collection status of the current block, wherein the current block is any block among all blocks included in the blockchain; Determine the cell hash value of the current block according to the cell parameter and a first preset encryption algorithm; Generate an anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block, wherein the target block is a block that is adjacent to the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block; The encrypted business data of the target block is determined in the following manner: Obtaining a block index of the target block; Generate a random hash value of the target block according to the block index and a first preset random algorithm; Performing an encryption operation on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block through a second preset encryption algorithm to obtain an encryption result, and determining the encryption result as the encrypted business data of the target block; And, the anti-counterfeiting data table includes a block data table and a business data table of the current block; The step of generating the anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block includes: Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of a target block, and predetermined encrypted business data of the target block; Generate a business data table of the current block according to the battery cell parameters and the battery cell hash value of the current block; Generate an anti-counterfeiting data table for the current block according to the block data table and the business data table; The method further comprises: Obtaining the anti-counterfeiting data tables of all the blocks in the blockchain, and obtaining a predetermined block index of each block, wherein an association is established between the anti-counterfeiting data table of each block and the block index of the block; Generate a block layout hash value of the blockchain according to all the anti-counterfeiting data tables, all the block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm, wherein the block layout hash value is used to indicate the layout of each block in the blockchain; Determine the blockchain data public account based on the anti-counterfeiting data table of all blocks; Determine the public account index of the blockchain according to the block layout hash value and the association relationship between the anti-counterfeiting data table of each block and the block index of the block; According to the data public account and the public account index, an anti-counterfeiting monitoring model of the blockchain is established, and the anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
2. The method for encrypting battery data based on blockchain according to claim 1, characterized in that: The cell parameters include target parameters and collection parameters corresponding to the target parameters, the target parameters include cell voltage data and / or cell temperature data, and the collection parameters include data collection positions and / or data collection times corresponding to the target parameters; And, determining the cell hash value of the current block according to the cell parameter and the first preset encryption algorithm includes: Generate a content hash value corresponding to each content included in the battery cell parameters according to a second preset random algorithm and the battery cell parameters; According to all the content hash values and the first preset encryption algorithm, the root hash corresponding to all the content hash values is calculated, and the root hash is determined as the cell hash value of the current block.
3. The method for encrypting battery data based on blockchain according to any one of claims 1 to 2, characterized in that: The method further comprises: Obtain the user's willingness to use data; According to the data usage intention, determining at least one target cell data in the blockchain that matches the data usage intention; According to a pre-established anti-counterfeiting monitoring model, determining whether all the target battery cell data meet a preset safety condition, wherein the preset safety condition is used to indicate that the target battery cell data has not been tampered with; When it is determined that all the target cell data satisfy the preset safety condition, a preset data processing operation is performed according to the data usage intention and all the target cell data, and the preset data processing operation includes a data delivery operation and / or a data testing operation.
4. The method for encrypting battery cell data based on blockchain according to claim 3, characterized in that: The method further comprises: When it is determined that there is at least one abnormal cell data that does not meet the preset safety condition among all the target cell data, determining at least one abnormal block in the blockchain according to the anti-counterfeiting monitoring model and all the abnormal cell data; Obtaining a data modification record pre-stored in each of the abnormal blocks; According to the data modification record corresponding to each of the abnormal blocks and the anti-counterfeiting monitoring model, determining the abnormal data modification node corresponding to each of the abnormal blocks, wherein the abnormal data modification node is used to indicate the specific abnormal position of the abnormal battery cell data; According to the abnormal data modification node corresponding to each abnormal block and the anti-counterfeiting monitoring model, an abnormal data report of the blockchain is generated.
5. A battery cell data encryption device based on blockchain, characterized in that: The device comprises: An acquisition module, used to acquire a cell parameter corresponding to a current block in a blockchain, wherein the cell parameter is used to indicate a cell data collection status of the current block, and the current block is any block among all blocks included in the blockchain; A determination module, used to determine the battery cell hash value of the current block according to the battery cell parameters and a first preset encryption algorithm; A generation module, configured to generate an anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block, and the encrypted business data of a predetermined target block, wherein the target block is a block that is adjacent to the current block in the blockchain, and the anti-counterfeiting data table is used to store the anti-counterfeiting data of the current block; The encrypted business data of the target block is determined in the following manner: Obtaining a block index of the target block; Generate a random hash value of the target block according to the block index and a first preset random algorithm; Performing an encryption operation on the random hash value of the target block, the timestamp of the target block, and the predetermined cell hash value of the target block through a second preset encryption algorithm to obtain an encryption result, and determining the encryption result as the encrypted business data of the target block; And, the anti-counterfeiting data table includes a block data table and a business data table of the current block; The specific manner in which the generation module generates the anti-counterfeiting data table of the current block according to the cell hash value of the current block, the timestamp of the current block and the encrypted business data of the predetermined target block is: Generate a block data table of the current block according to a predetermined block index of the current block, a predetermined random hash value of the current block, a cell hash value of the current block, a timestamp of the current block, a predetermined random hash value of a target block, and predetermined encrypted business data of the target block; Generate a business data table of the current block according to the battery cell parameters and the battery cell hash value of the current block; Generate an anti-counterfeiting data table for the current block according to the block data table and the business data table; The device is further used to obtain the anti-counterfeiting data table of all the blocks in the blockchain, and obtain the predetermined block index of each block, wherein an association relationship is established between the anti-counterfeiting data table of each block and the block index of the block; Generate a block layout hash value of the blockchain according to all the anti-counterfeiting data tables, all the block indexes, the association between the anti-counterfeiting data table of each block and the block index of the block, and a third preset random algorithm, wherein the block layout hash value is used to indicate the layout of each block in the blockchain; Determine the blockchain data public account based on the anti-counterfeiting data table of all blocks; Determine the public account index of the blockchain according to the block layout hash value and the association relationship between the anti-counterfeiting data table of each block and the block index of the block; According to the data public account and the public account index, an anti-counterfeiting monitoring model of the blockchain is established, and the anti-counterfeiting monitoring model is used to store and monitor the block layout data and / or anti-counterfeiting data of the blockchain.
6. A power management system, characterized in that: The power management system is used to execute the blockchain-based battery cell data encryption method as described in any one of claims 1 to 4.
7. A battery cell data encryption device based on blockchain, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the blockchain-based battery cell data encryption method as described in any one of claims 1 to 4.
