Thermal management model sharing method based on block chain and homomorphic encryption

By publishing and storing thermal management models in blockchain systems and using homomorphic encryption to ensure openness, transparency and privacy of model sharing and integral settlement, the modeling problem that existing simulation tools cannot meet the multifunctional needs of complex systems is solved. , realizes joint simulation and reuse of models in different disciplines and fields.

CN119420464APending Publication Date: 2025-02-11UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411281874.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The existing simulation tools are relatively single and cannot meet the multifunctional needs of complex systems.

Method used

The thermal management model sharing method based on blockchain and homomorphic encryption is adopted to publish and store thermal management models through the blockchain system, and homomorphic encryption is used to ensure the openness, transparency and privacy of model sharing and integral settlement.

Benefits of technology

The joint simulation of digital models in different disciplines and reuse of models is realized, and the modeling of multifunctional needs of complex systems is met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420464A_ABST
    Figure CN119420464A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing and information security, in particular to a thermal management model sharing method based on a block chain and homomorphic encryption. Creating a point account, completing user identity information registration and block account application, and applying for a corresponding block chain account for the user after basic identity information registration is completed; issuing the shared heat management model, namely completing the issuing of the user shared heat management model in the block chain and the storage function of the model in the IPFS; downloading the shared model, retrieving the thermal management model, and after the credit is paid to the model provider, downloading the model by the user; a user issues a thermal management model through a block chain system, other users retrieve the issued thermal management model in the system through a block chain intelligent contract, and the user needs to pay a certain amount of points to a sharing party, so that joint simulation of digital models in different subject fields and repeated use of the models can be realized; and the problem of multi-functional demand modeling of a complex system can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing and information security technology, and in particular to a thermal management model sharing method based on blockchain and homomorphic encryption. Background Art

[0002] Modeling is the basis of simulation. Modeling is the process of abstracting and simplifying the actual system or process in order to construct a computer model that can reflect the essential characteristics of the system or process. However, current simulation tools are relatively simple and cannot meet the modeling needs of complex systems with multiple functions.

[0003] Therefore, it is necessary to propose a thermal management model sharing method based on blockchain and homomorphic encryption that can meet the problem of modeling the multifunctional requirements of complex systems. Summary of the invention

[0004] The purpose of the present invention is to provide a thermal management model sharing method based on blockchain and homomorphic encryption, aiming to solve the technical problem that the simulation tools in the prior art are relatively single and cannot meet the modeling requirements of the multifunctionality of complex systems.

[0005] To achieve the above purpose, the present invention adopts a thermal management model sharing method based on blockchain and homomorphic encryption, comprising the following steps:

[0006] Create a points account, complete the user identity information registration and block account application. After the basic identity information registration is completed, apply for the corresponding blockchain account for the user;

[0007] Shared thermal management model release, complete the release of user-shared thermal management models in the blockchain and the storage of models in IPFS;

[0008] Shared model download, retrieve thermal management models, and users can download the model after paying points to the model provider.

[0009] Among them, when creating a points account, complete the user identity information registration and block account application. After the basic identity information registration is completed, apply for the corresponding blockchain account for the user. The specific process is as follows:

[0010] The thermal management model system is used to send the user's identity registration information, the model sharing system requests the CA certificate from the FabricCA server, and the CA server returns the certificate;

[0011] Generate a homomorphic key pair, the thermal management model system creates a points account for the current user and performs homomorphic encryption on the points balance field of the points account;

[0012] Call the smart contract and upload the points account data to the thermal management model shared blockchain to complete the creation of the on-chain points account.

[0013] Among them, in the steps of publishing the shared thermal management model, completing the publishing of the user shared thermal management model in the blockchain and the storage function of the model in IPFS, the specific process is:

[0014] Acquire model data to be shared submitted by users through the thermal management model sharing system;

[0015] The data format and data legitimacy of the model data are verified. Once the verification is passed, the model data is submitted to the IPFS cluster for storage.

[0016] Among them, after verifying the data format and data legitimacy of the model data and submitting the model data to the IPFS cluster for storage:

[0017] After storage is completed, the IPFS cluster returns the unique identifier of the model storage to the thermal management model sharing system, and the thermal management model sharing system generates a model attribute binding structure, in which the association between the unique identifier and the model attribute is stored;

[0018] Call the thermal management model sharing blockchain smart contract to store the model binding structure in the blockchain.

[0019] Among them, in the steps of sharing model download, retrieving thermal management model, and paying points to the model provider, the user can download the model. The specific process is:

[0020] Obtain the user's model search field, and retrieve the thermal management model that currently meets the conditions according to the search field;

[0021] Select the thermal management model and submit the download request;

[0022] According to the user download request, the corresponding thermal management model data is read from the IPFS cluster.

[0023] Among them, after the step of reading the corresponding thermal management model data from the IPFS cluster according to the user download request:

[0024] Call the blockchain points transfer contract to complete the points transfer between the downloader and the sharer on the chain;

[0025] Return thermal management model data to the user.

[0026] The invention discloses a thermal management model sharing method based on blockchain and homomorphic encryption, including the creation of a points account: completing the registration of user identity information and the application of a block account, and applying for a corresponding blockchain account for the user after the registration of the basic identity information is completed; publishing a shared thermal management model: completing the publishing of the user's shared thermal management model in the blockchain and the storage function of the model in the IPFS; downloading a shared model: retrieving the thermal management model, and after paying points to the model provider, the user can download the model. The user publishes the thermal management model through the blockchain system, and the model is stored in the IPFS cluster under the chain, and the Hash value of the model content is stored in the blockchain. Other users retrieve the thermal management models published in the system through the blockchain smart contract. For the thermal management model that meets their own needs, the user can issue a model sharing request to the other party. Once the sharing request is responded to by the other party, the user needs to pay a certain amount of points to the sharing party. The payment process of the points will be completed by the homomorphic operation of the smart contract. The openness, transparency and privacy of the model sharing and points settlement process can be ensured by homomorphic encryption and smart contracts. The method can realize the joint simulation of digital models in different disciplines and the reuse of models, and can meet the problem of modeling of multifunctional requirements of complex systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0028] Figure 1 It is a flowchart of the steps of the thermal management model sharing method based on blockchain and homomorphic encryption of the present invention.

[0029] Figure 2 It is a flowchart of the steps of creating a points account of the present invention.

[0030] Figure 3 It is a flow chart of the steps of publishing the shared thermal management model of the present invention.

[0031] Figure 4 It is a flow chart of the steps of downloading the shared model of the present invention.

[0032] Figure 5 It is a timing diagram of creating a points account of the present invention.

[0033] Figure 6 It is a timing diagram released by the shared thermal management model of the present invention.

[0034] Figure 7It is a timing diagram of the shared model downloading of the present invention. DETAILED DESCRIPTION

[0035] See also Figure 1 to Figure 7 ,in Figure 1 It is a flowchart of the steps of the thermal management model sharing method based on blockchain and homomorphic encryption. Figure 2 This is a flowchart of the steps for creating a points account. Figure 3 is a flow chart of the steps for publishing a shared thermal management model. Figure 4 This is a flowchart of the steps for sharing model downloads. Figure 5 This is a time sequence diagram of the points account creation. Figure 6 is the timing diagram released by the shared thermal management model, Figure 7 It is a timing diagram of shared model downloading.

[0036] The present invention provides a thermal management model sharing method based on blockchain and homomorphic encryption, comprising the following steps:

[0037] S100: Create a points account, complete the user identity information registration and block account application, and apply for the corresponding blockchain account for the user after the basic identity information registration is completed;

[0038] S200: Shared thermal management model release, complete the release of user shared thermal management model in the blockchain and the storage of the model in IPFS;

[0039] S300: Shared model download, retrieve the thermal management model, and after paying points to the model provider, the user can download the model.

[0040] In this embodiment, there are three steps including point account creation, shared thermal management model publishing and shared model downloading; wherein point account creation: completing user identity information registration and block account application, after basic identity information registration is completed, applying for the corresponding blockchain account for the user; shared thermal management model publishing: completing the publishing of the user's shared thermal management model in the blockchain and the storage function of the model in IPFS; shared model downloading: retrieving the thermal management model, paying points to the model provider, the user can download the model. The user publishes the thermal management model through the blockchain system, and the model is stored in the IPFS cluster under the chain, and the Hash value of the model content is stored in the blockchain. Other users retrieve the published thermal management models in the system through the blockchain smart contract. For the thermal management model that meets their own needs, the user can issue a model sharing request to the other party. Once the sharing request is responded to by the other party, the user needs to pay a certain amount of points to the sharing party. The payment process of points will be completed by the homomorphic operation of the smart contract. The openness, transparency and privacy of the model sharing and point settlement process can be ensured through homomorphic encryption and smart contracts. This method can realize the joint simulation of digital models in different disciplines and the reuse of models, and can meet the problem of modeling the multifunctional requirements of complex systems.

[0041] Furthermore, when creating a points account, completing the user identity information registration and block account application, after the basic identity information registration is completed, in the step of applying for the corresponding blockchain account for the user, the specific process is as follows:

[0042] S101: The thermal management model system is used to send the user's identity registration information, the model sharing system requests the CA certificate from the FabricCA server, and the CA server returns the certificate;

[0043] S102: Generate a homomorphic key pair, the thermal management model system creates a points account for the current user and performs homomorphic encryption on the points balance field of the points account;

[0044] S103: Call the smart contract and upload the points account data to the thermal management model shared blockchain to complete the creation of the on-chain points account.

[0045] In this embodiment, if Figure 2 and Figure 5 As shown in Figure 1, the user submits identity information to the thermal management model sharing system and applies for a CA certificate. The thermal management model sharing system applies for a CA certificate from the FabricCA server and generates a homomorphic public-private key pair for the user through the keyGen(PP) function to encrypt and save the user certificate key data, where PP is a system public parameter. The system creates a blockchain thermal management model sharing points account structure for the user based on the user's identity information, as shown in formula (1):

[0046] account←(user,points,createTime)#(1);

[0047] Where user is the user identity, points is the initial points of the account, createTime is the time when the account was created, and points are used to complete the model download.

[0048] The system uses the user's homomorphic public key (n, g) to encrypt the points field, as shown in formula (2):

[0049] hp←g m r n mod n 2 #(2);

[0050] The encrypted account will be used through smart contracts to complete the creation of the on-chain account structure.

[0051] Furthermore, in the step of publishing the shared thermal management model, completing the publishing of the user shared thermal management model in the blockchain and the storage function of the model in IPFS, the specific process is:

[0052] S201: Acquiring model data to be shared submitted by a user through a thermal management model sharing system;

[0053] S202: Verify the data format and data legitimacy of the model data. After passing the verification, submit the model data to the IPFS cluster for storage;

[0054] S203: After storage is completed, the IPFS cluster returns the unique identifier of the model storage to the thermal management model sharing system, and the thermal management model sharing system generates a model attribute binding structure, in which the association relationship between the unique identifier and the model attribute is stored;

[0055] S204: Call the thermal management model sharing blockchain smart contract and store the model binding structure in the blockchain.

[0056] In this embodiment, if Figure 3 and Figure 6 As shown, the user uploads the thermal management model model through the thermal management model sharing system and fills in the basic attribute information related to the model battr = (issuer, sid, points, desc), where issuer is the model publisher, sid is the usage scenario id of the model, points requires the other party to pay points when the model is shared, and desc is the description information of the model.

[0057] The thermal management model sharing system needs to check whether the current user already has a thermal management model with the same name. If so, the release is rejected. Otherwise, the model is stored in the off-chain IPFS cluster and the cid (Content Identifier) ​​information of the stored content is obtained, as shown in formula (3):

[0058] cid←ipfs_add(model)#(3).

[0059] The thermal management model sharing system generates a binding structure m of cid and model attributes, as shown in formula (4):

[0060] m←(cid,battr,eattr)#(4);

[0061] Where eattr = (uploadTime, size, shareTimes, quality) is the model supplementary attribute automatically generated by the system, batrr is the basic attribute of the model mentioned in step 1, uploadTime is the model upload time, size is the model size, shareTimes is the number of times the current model is shared, and quality is the model quality score. Quality is shown in formula (5):

[0062] quality←avg(scores)#(5);

[0063] Among them, scores is a list of all user ratings, and the user can rate the score in the range of 0-100.

[0064] The thermal management model sharing system stores m in the blockchain, where the access address of m in the blockchain is cid.

[0065] Further, in the steps of sharing model download, retrieving thermal management model, and paying points to the model provider, the user can download the model. The specific process is:

[0066] S301: Obtain a model search field of the user, and search for a thermal management model that currently meets the conditions according to the search field;

[0067] S302: Select a thermal management model and submit a download request;

[0068] S303: Read corresponding thermal management model data from the IPFS cluster according to the user download request;

[0069] S304: Call the blockchain points transfer contract to complete the points transfer between the downloader and the sharing party on the chain;

[0070] S305: Return the thermal management model data to the user.

[0071] In this embodiment, if Figure 4 and Figure 7 As shown, the user retrieves the required thermal management model through the thermal management model sharing system client according to the model attribute field. If there is a model that meets the requirements, then proceed to the next step. Based on the cid content requested by the user, the system queries whether there is a corresponding m from the chain. If so, it reads the m data and obtains the points field declared in battr. The thermal management model sharing system reads the homomorphic ciphertext of the points balance in the user's account account through a smart contract, decrypts it and verifies whether account.points≥m.battr.points holds, that is, whether the current user's points account points balance is sufficient to pay for the points required for the current model download. If not, the request is rejected, otherwise proceed to the next step.

[0072] The system reads the model data from IPFS according to CID, and then executes the points transfer process through the smart contract. The system performs the homomorphic subtraction operation as shown in formula (6) on the points balance in the downloader's points account to complete the points deduction:

[0073]

[0074] For the points balance in the sharing party's points account, perform the homomorphic addition operation as shown in formula (7) to complete the points accumulation, and then return the model data to the client:

[0075]

[0076] Among them, hp req and points req are the homomorphic ciphertext and plaintext of the downloader's points account balance, hp share and They are the homomorphic ciphertext and plaintext of the shared party’s points account balance, hp pay and points pay They are the homomorphic ciphertext and plaintext of the points that the downloader needs to pay to the sharing party, hp get and points get They are the integral homomorphic ciphertext and plaintext actually obtained by the sharing party this time, r1 and r2 and r3 and r4 represent random numbers respectively, g1 and n1 represent the homomorphic public key of the downloading party, and g2 and n2 represent the homomorphic public key of the sharing party.

[0077] Compared with the traditional thermal model management platform, the present invention can realize the sharing of thermal management models among users, and this sharing is implemented based on the blockchain system and homomorphic encryption. Compared with the traditional thermal model management platform, the thermal management sharing model proposed by this method can not only accurately and stably manage the basic model of the thermal management system, but also realize the management and reuse functions of the thermal management system model. On this basis, homomorphic encryption and blockchain technology are used to ensure the data security and privacy of the thermal management model sharing process. This allows modeling engineers to better focus on the design of specific models, providing great convenience for the research and development and iteration of thermal management systems.

[0078] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A thermal management model sharing method based on blockchain and homomorphic encryption, characterized in that: The steps include: Create a points account, complete the user identity information registration and block account application. After the basic identity information registration is completed, apply for the corresponding blockchain account for the user; Shared thermal management model release, complete the release of user-shared thermal management models in the blockchain and the storage of models in IPFS; Shared model download, retrieve thermal management models, and users can download the model after paying points to the model provider.

2. The thermal management model sharing method based on blockchain and homomorphic encryption as claimed in claim 1, characterized in that: When creating a points account, complete the user identity information registration and block account application. After the basic identity information is registered, apply for the corresponding blockchain account for the user. The specific process is as follows: The thermal management model system is used to send the user's identity registration information, the model sharing system requests the CA certificate from the FabricCA server, and the CA server returns the certificate; Generate a homomorphic key pair, the thermal management model system creates a points account for the current user and performs homomorphic encryption on the points balance field of the points account; Call the smart contract and upload the points account data to the thermal management model shared blockchain to complete the creation of the on-chain points account.

3. The thermal management model sharing method based on blockchain and homomorphic encryption as claimed in claim 1, characterized in that: In the steps of publishing the shared thermal management model, completing the publishing of the user shared thermal management model in the blockchain and the storage function of the model in IPFS, the specific process is: Acquire model data to be shared submitted by users through the thermal management model sharing system; The data format and data legitimacy of the model data are verified. Once the verification is passed, the model data is submitted to the IPFS cluster for storage.

4. The thermal management model sharing method based on blockchain and homomorphic encryption as claimed in claim 3 is characterized in that: After verifying the data format and data legitimacy of the model data and submitting the model data to the IPFS cluster for storage: After storage is completed, the IPFS cluster returns the unique identifier of the model storage to the thermal management model sharing system, and the thermal management model sharing system generates a model attribute binding structure, in which the association between the unique identifier and the model attribute is stored; Call the thermal management model sharing blockchain smart contract to store the model binding structure in the blockchain.

5. The thermal management model sharing method based on blockchain and homomorphic encryption as claimed in claim 1, characterized in that: After sharing the model download, retrieving the thermal management model and paying points to the model provider, the user can download the model. The specific process is as follows: Obtain the user's model search field, and retrieve the thermal management model that currently meets the conditions according to the search field; Select the thermal management model and submit the download request; According to the user's download request, the corresponding thermal management model data is read from the IPFS cluster.

6. The thermal management model sharing method based on blockchain and homomorphic encryption as claimed in claim 5 is characterized in that: After the step of reading the corresponding thermal management model data from the IPFS cluster according to the user download request: Call the blockchain points transfer contract to complete the points transfer between the downloader and the sharer on the chain; Return thermal management model data to the user.

Citation Information

Patent Citations

  • Integral management method based on block chain and related device

    CN111368311A

  • Internet of Things data sharing system and method based on block chain

    CN112003886A

  • Point data management method based on block chain

    CN113689228A

  • Knowledge question-answering system, method and device based on block chain

    CN115242398A

  • Power consumption data sharing system based on block chain and IPFS

    CN115913516A