A blockchain-based method and system for personal carbon asset management
By calculating the similarity measurement and refining characteristics of public carbon emission projects in Hanming space, combined with hash attention mechanism and smart contract encryption, the problems of confusion in the laws, low retrieval efficiency and data security among public carbon emission projects are solved. It has achieved effective communication and transaction security improvement in carbon asset management.
Patent Information
- Application Number
- CN202411290888.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-14
AI Technical Summary
The existing personal carbon asset management methods have confusion in the laws between public carbon emission projects, which is difficult to promote exchanges and cooperation, carbon asset retrieval efficiency and insufficient accuracy, which affects the fluency of the carbon trading market, and the low security of carbon asset trading data. This will affect the fairness and authenticity of the transaction.
Using the similarity measure between public carbon emission items in Hanming space, the potential characteristics are extracted and integrated into a whole through the hash attention mechanism, search verification and testing are performed, transaction proof information is generated, and smart contract encryption is performed to make consistency Sex verification, promotes public exchanges and cooperation in carbon emission reduction, and improves the security of carbon asset trading.
By calculating the probability of the public's carbon footprint similarity parameters, we will improve the accuracy of carbon asset retrieval and the security of transaction data, promote the public's exchanges and cooperation in carbon emission reduction, improve the fluency and fairness of the carbon trading market, and promote market health develop.
Smart Images

Figure CN118820805B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing technology, and specifically relates to a personal carbon asset management method and system based on blockchain. Background Art
[0002] The existing personal carbon asset management methods have technical problems such as confusion between different public carbon emission projects, making it difficult to promote communication and cooperation among the public; low efficiency and insufficient accuracy in carbon asset retrieval, which leads to the fluency of the carbon trading market, affects the public's use, and causes a low promotion rate; and low security of carbon asset trading data, which makes data easy to be tampered with and leaked, affecting the fairness and authenticity of transactions, and hindering the healthy development of the carbon trading market. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a personal carbon asset management method and system based on blockchain. In view of the technical problem that there are chaotic rules between different public carbon emission projects and it is difficult to promote communication and cooperation among the public, the similarity measurement between pairs of public carbon emission projects in the Hamming space is calculated. Under the condition that the given carbon footprint analysis dimension is similar, the probability of the public carbon footprint similarity parameter is calculated to promote the public's communication and cooperation in carbon emission reduction. In view of the technical problem that the carbon asset retrieval efficiency is too low and the accuracy is not enough, which leads to the fluency of the carbon trading market, affects the public's use effect, and causes a low promotion rate, the present invention adopts Extract potential features, compress real-valued features into intermediate hash codes, and merge the intermediate hash codes into a whole by proposing a hash attention mechanism. Perform retrieval verification and testing, express quantitative losses, and calculate the final objective function. In order to address the technical problem that carbon asset trading data has low security, which makes data easy to be tampered with and leaked, affects the fairness and authenticity of transactions, and thus hinders the healthy development of the carbon trading market, the execution of smart contracts is adopted to generate transaction proof information, encrypt transaction data, calculate aggregated authenticators and random blind values, and send proof information to the security module for consistency verification. After receiving the proof, the smart contract automatically checks the integrity of the information.
[0004] The technical solution adopted by the present invention is as follows: The present invention provides a personal carbon asset management method based on blockchain, which includes the following steps:
[0005] Step S1: Carbon asset registration, specifically, the public can receive the Green Carbon Planet, which will be recorded in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset;
[0006] Step S2: Similar carbon footprint analysis, specifically calculating the similarity measure between pairs of public carbon emission items in the Hamming space, and calculating the probability of public carbon footprint similarity parameters given similar carbon footprint analysis dimensions, to promote public communication and cooperation in carbon emission reduction;
[0007] Step S3: Carbon asset retrieval, specifically, extracting potential features, compressing real-valued features into intermediate hash codes, fusing the intermediate hash codes into a whole by proposing a hash attention mechanism, performing retrieval verification and testing, expressing quantization losses, and calculating the final objective function;
[0008] Step S4: Execute the smart contract, specifically generate transaction proof information, encrypt the transaction data, calculate the aggregated identity verification device and random blind value, send the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof;
[0009] Step S5: Data report generation, specifically obtaining personal carbon asset data from the blockchain and generating charts and visual displays based on the analysis results.
[0010] Furthermore, in step S1, the carbon asset registration includes the following steps:
[0011] Step S11: By building a distributed multi-center network based on blockchain, the public information of using smart garbage equipment to participate in garbage sorting is encrypted using an asymmetric encryption algorithm, digital keys and carbon asset accounts are generated for the public, and an initial 3D green carbon planet is allocated;
[0012] Step S12: When the public puts in various types of garbage, the system uses AI intelligent visual analysis to determine whether the classification is correct and stores it in the blockchain storage module in the form of hash chain;
[0013] Step S13: According to the classification results determined by AI intelligent recognition, the weight of the correctly classified public garbage is converted into carbon emission reduction according to the calculation ratio of different garbage types, and distributed to the public's personal blockchain carbon asset account;
[0014] Step S14: Every time the public makes a contribution, a portion of the corresponding 3D green carbon planet will turn green according to the proportional calculation method. The degree of greening depends on the amount of carbon emission reduction. After the public's current green carbon planet turns green according to the preset value, the public can claim the planet and record it in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset.
[0015] Further, in step S2, the similar carbon footprint analysis includes the following steps:
[0016] Step S21: Data collection: collect the public's travel, residence and consumption data, and classify the collected activities in detail to accurately calculate carbon emissions. The similarity between pairs of public carbon emissions items in the Hamming space is calculated by the Hamming distance. The formula used is as follows:
[0017]
[0018] In the formula, and Representing two public individuals, represents the similarity measure between public carbon emission projects, namely, the Hamming distance, and K is the carbon emission benchmark value;
[0019] Step S22: Calculate the probability of the public carbon footprint similarity parameter, using the following formula:
[0020] ;
[0021] In the formula, It represents the probability of the public carbon footprint similarity parameter given the same carbon footprint analysis dimension, It represents the public carbon footprint similarity parameter. A value of 1 indicates similarity, and a value of 0 indicates dissimilarity. B1 indicates that the carbon footprint analysis dimensions are the same. An indicator that indicates the degree of correlation between the carbon footprints of two publics;
[0022] Step S23: Communication and cooperation: promoting communication and cooperation among individuals on carbon emission reduction based on similar carbon footprint analysis, and adjusting their lifestyles and consumption habits in a targeted manner.
[0023] Furthermore, in step S3, the carbon asset search includes the following steps:
[0024] Step S31: Extract potential features. In carbon asset retrieval, the real-valued potential features should be accurately merged and refined and placed in a common Hamming space to prevent the emergence of redundant information, bridge the gap between different modes, and maximize the accuracy of hash retrieval in carbon assets.
[0025] Step S32: Calculate the intermediate hash code. For each real-valued feature in the carbon asset potential space, compress the real-valued feature into an intermediate hash code. The formula used is as follows:
[0026] ;
[0027] Where H represents the calculated intermediate hash code, tanh is the hyperbolic tangent function, represents the potential spatial parameter of carbon assets, Represents the real-valued characteristics of the potential space of carbon assets;
[0028] Step S33: forming a hash representation, in addition to achieving the maximum retrieval accuracy in each compression result, seamlessly refine at each position to form the final hash representation, propose a hash attention mechanism, perform a sigmoid activation function on the hadamard product, calculate the weighted average, and fuse the intermediate hash codes into a whole;
[0029] Step S34: Perform retrieval verification and testing to express the quantization loss. The formula used is as follows:
[0030] ;
[0031] In the formula, represents the quantization loss, B represents the first quantization matrix, F represents the second quantization matrix, G represents the third quantization matrix, represents the Frobenius norm;
[0032] Step S35: Calculate the final objective function using the following formula:
[0033] ;
[0034] In the formula, represents the final objective function to be minimized, is the first loss function, is the second loss function, is the third loss function. The first, second and third loss functions are obtained according to the quantized loss results, combined with the data characteristics and the task objectives. α represents the weight coefficient of the first loss function, β represents the weight coefficient of the second loss function, and γ represents the weight coefficient of the third loss function.
[0035] Furthermore, in step S4, the execution of the smart contract includes the following steps:
[0036] Step S41: Generate transaction proof information, send the proof and encrypted data to the security module, and encrypt the transaction data using Paillier homomorphic encryption. The formula used is as follows:
[0037] ;
[0038] In the formula, Indicates the encrypted result, g is the fixed basic parameter in the encryption algorithm, m represents the specific transaction data to be encrypted, h() represents the encryption function, T represents the transaction content, and N is used to control the encryption operation;
[0039] Step S42: Calculate the identity verification code using the following formula:
[0040] ;
[0041] In the formula, is a computational authenticator, Represents the identity of the i-th transaction entity, i represents the index of the transaction entity, represents the authority level of the i-th transaction entity, represents the characteristic state of the i-th transaction entity, H() represents the hash function, and v represents the cardinality of the transaction entity;
[0042] Step S43: Calculate the aggregated authenticator and random blind value using the following formula:
[0043] ;
[0044] ;
[0045] In the formula, represents the aggregated authenticator, k is the total number of transaction entities, represents a random blind value, represents a random factor;
[0046] Step S44: Send the certification information to SM, where SM refers to the security module. The formula used is as follows:
[0047] ;
[0048] In the formula, Indicates certification information;
[0049] Step S45: Consistency verification. Once the smart contract receives the proof, it automatically performs consistency verification to check whether the following equation is true. If true, the information is complete. The formula used is as follows:
[0050] ;
[0051] Where e() represents the smart contract function.
[0052] Furthermore, in step S5, the data report is generated by obtaining personal carbon asset data from the blockchain, calculating the individual's total carbon emissions, total emission reductions and net carbon asset value, generating charts and visual displays based on the analysis results, and presenting the data report to individual users so that users can understand their own carbon asset management situation.
[0053] The present invention provides a blockchain-based personal carbon asset management system, which includes a carbon asset registration module, a similar carbon footprint analysis module, a carbon asset retrieval module, an intelligent contract execution module, and a data report generation module;
[0054] The carbon asset registration module specifically allows the public to receive the Green Carbon Planet, which is recorded in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset;
[0055] The similar carbon footprint analysis module specifically calculates the similarity measure between pairs of public carbon emission items in the Hamming space, and calculates the probability of public carbon footprint similarity parameters given similar carbon footprint analysis dimensions, so as to promote public communication and cooperation in carbon emission reduction;
[0056] The carbon asset retrieval module specifically extracts potential features, compresses real-valued features into intermediate hash codes, fuses the intermediate hash codes into a whole by proposing a hash attention mechanism, performs retrieval verification and testing, represents quantization loss, and calculates the final objective function;
[0057] The execution smart contract module specifically generates transaction proof information, encrypts transaction data, calculates aggregated identity verification and random blind values, sends the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof;
[0058] The data report generation module specifically obtains personal carbon asset data from the blockchain and generates charts and visual displays based on the analysis results.
[0059] The beneficial results achieved by the present invention using the above scheme are as follows:
[0060] (1) In order to solve the technical problem that there are chaotic rules between different public carbon emission projects, which makes it difficult to promote communication and cooperation among the public, we adopt the method of calculating the similarity measure between pairs of public carbon emission projects in the Hamming space, and calculate the probability of the public carbon footprint similarity parameter under the condition that the given carbon footprint analysis dimension is similar, so as to promote the communication and cooperation of the public in carbon emission reduction;
[0061] (2) In order to solve the technical problems that the carbon asset retrieval efficiency is too low and the accuracy is not enough, which leads to the fluency of the carbon trading market, affects the public use effect, and causes the low promotion rate, the latent features are extracted, the real-valued features are compressed into intermediate hash codes, and the intermediate hash codes are integrated into a whole by proposing a hash attention mechanism, and the retrieval verification and testing are performed to express the quantization loss and calculate the final objective function;
[0062] (3) In order to address the technical problem that the security of carbon asset trading data is low, which makes data easy to be tampered with and leaked, affects the fairness and authenticity of transactions, and thus hinders the healthy development of the carbon trading market, we use the execution of smart contracts to generate transaction proof information, encrypt transaction data, calculate aggregated authenticators and random blind values, and send the proof information to the security module for consistency verification. After receiving the proof, the smart contract automatically checks the integrity of the information. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A flowchart of a personal carbon asset management method based on blockchain provided by the present invention;
[0064] Figure 2 A schematic diagram of a blockchain-based personal carbon asset management system provided by the present invention;
[0065] Figure 3 is a schematic flow chart of step S2;
[0066] Figure 4 is a schematic diagram of the process of step S3;
[0067] Figure 5 It is a schematic diagram of the process of step S4.
[0068] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0069] The technical solutions 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, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0070] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0071] Example 1, see Figure 1 The present invention provides a personal carbon asset management method based on blockchain, which includes the following steps:
[0072] Step S1: Carbon asset registration, specifically, the public can receive the Green Carbon Planet, which will be recorded in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset;
[0073] Step S2: Similar carbon footprint analysis, specifically calculating the similarity measure between pairs of public carbon emission items in the Hamming space, and calculating the probability of public carbon footprint similarity parameters given similar carbon footprint analysis dimensions, to promote public communication and cooperation in carbon emission reduction;
[0074] Step S3: Carbon asset retrieval, specifically, extracting potential features, compressing real-valued features into intermediate hash codes, fusing the intermediate hash codes into a whole by proposing a hash attention mechanism, performing retrieval verification and testing, expressing quantization losses, and calculating the final objective function;
[0075] Step S4: Execute the smart contract, specifically generate transaction proof information, encrypt the transaction data, calculate the aggregated identity verification device and random blind value, send the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof;
[0076] Step S5: Data report generation, specifically obtaining personal carbon asset data from the blockchain and generating charts and visual displays based on the analysis results.
[0077] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, the carbon asset registration includes the following steps:
[0078] Step S11: By building a distributed multi-center network based on blockchain, the public information of using smart garbage equipment to participate in garbage sorting is encrypted using an asymmetric encryption algorithm, digital keys and carbon asset accounts are generated for the public, and an initial 3D green carbon planet is allocated;
[0079] Step S12: When the public puts in various types of garbage, the system uses AI intelligent visual analysis to determine whether the classification is correct and stores it in the blockchain storage module in the form of hash chain;
[0080] Step S13: According to the classification results determined by AI intelligent recognition, the weight of the correctly classified public garbage is converted into carbon emission reduction according to the calculation ratio of different garbage types, and distributed to the public's personal blockchain carbon asset account;
[0081] Step S14: Every time the public makes a contribution, a portion of the corresponding 3D green carbon planet will turn green according to the proportional calculation method. The degree of greening depends on the amount of carbon emission reduction. After the public's current green carbon planet turns green according to the preset value, the public can claim the planet and record it in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset.
[0082] Example 3, see Figure 1 and Figure 3This embodiment is based on the above embodiment. In step S2, the similar carbon footprint analysis includes the following steps:
[0083] Step S21: Data collection: collect the public's travel, residence and consumption data, and classify the collected activities in detail to accurately calculate carbon emissions. The similarity between pairs of public carbon emissions items in the Hamming space is calculated by the Hamming distance. The formula used is as follows:
[0084] ;
[0085] In the formula, and Representing two public individuals, represents the similarity measure between public carbon emission projects, namely, the Hamming distance, and K is the carbon emission benchmark value;
[0086] Step S22: Calculate the probability of the public carbon footprint similarity parameter, using the following formula:
[0087] ;
[0088] In the formula, It represents the probability of the public carbon footprint similarity parameter given the same carbon footprint analysis dimension, It represents the public carbon footprint similarity parameter. A value of 1 indicates similarity, and a value of 0 indicates dissimilarity. B1 indicates that the carbon footprint analysis dimensions are the same. An indicator that indicates the degree of correlation between the carbon footprints of two publics;
[0089] Step S23: Communication and cooperation: promoting communication and cooperation among individuals on carbon emission reduction based on similar carbon footprint analysis, and adjusting their lifestyles and consumption habits in a targeted manner.
[0090] By performing the above operations, the similarity measure between pairs of public carbon emission projects in the Hamming space is calculated. Given the similarity of the carbon footprint analysis dimensions, the probability of the public carbon footprint similarity parameters is calculated, which promotes public communication and cooperation in carbon emission reduction and solves the technical problem that the rules between different public carbon emission projects are chaotic and it is difficult to promote communication and cooperation among the public.
[0091] Example 4, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In step S3, the carbon asset search includes the following steps:
[0092] Step S31: Extract potential features. In carbon asset retrieval, the real-valued potential features should be accurately merged and refined and placed in a common Hamming space to prevent the emergence of redundant information, bridge the gap between different modes, and maximize the accuracy of hash retrieval in carbon assets.
[0093] Step S32: Calculate the intermediate hash code. For each real-valued feature in the carbon asset potential space, compress the real-valued feature into an intermediate hash code. The formula used is as follows:
[0094] ;
[0095] Where H represents the calculated intermediate hash code, tanh is the hyperbolic tangent function, represents the potential spatial parameter of carbon assets, Represents the real-valued characteristics of the potential space of carbon assets;
[0096] Step S33: forming a hash representation, in addition to achieving the maximum retrieval accuracy in each compression result, seamlessly refine at each position to form the final hash representation, propose a hash attention mechanism, perform a sigmoid activation function on the hadamard product, calculate the weighted average, and fuse the intermediate hash codes into a whole;
[0097] Step S34: Perform retrieval verification and testing to express the quantization loss. The formula used is as follows:
[0098] ;
[0099] In the formula, represents the quantization loss, B represents the first quantization matrix, F represents the second quantization matrix, G represents the third quantization matrix, represents the Frobenius norm;
[0100] Step S35: Calculate the final objective function using the following formula:
[0101] ;
[0102] In the formula, represents the final objective function to be minimized, is the first loss function, is the second loss function, is the third loss function. The first, second and third loss functions are obtained according to the quantized loss results, combined with the data characteristics and the task objectives. α represents the weight coefficient of the first loss function, β represents the weight coefficient of the second loss function, and γ represents the weight coefficient of the third loss function.
[0103] By performing the above operations, the latent features are refined, the real-valued features are compressed into intermediate hash codes, and the intermediate hash codes are fused into a whole by proposing a hash attention mechanism. Retrieval verification and testing are performed, the quantified loss is expressed, and the final objective function is calculated. The technical problems of low carbon asset retrieval efficiency and insufficient accuracy, which lead to the fluency of the carbon trading market, affect the public use effect, and cause low promotion rate, are solved.
[0104] Example 5, see Figure 1 and Figure 5 This embodiment is based on the above embodiment. In step S4, executing the smart contract includes the following steps:
[0105] Step S41: Generate transaction proof information, send the proof and encrypted data to the security module, and encrypt the transaction data using Paillier homomorphic encryption. The formula used is as follows:
[0106] ;
[0107] In the formula, Indicates the encrypted result, g is the fixed basic parameter in the encryption algorithm, m represents the specific transaction data to be encrypted, h() represents the encryption function, T represents the transaction content, and N is used to control the encryption operation;
[0108] Step S42: Calculate the identity verification code using the following formula:
[0109] ;
[0110] In the formula, is a computational authenticator, Represents the identity of the i-th transaction entity, i represents the index of the transaction entity, represents the authority level of the i-th transaction entity, represents the characteristic state of the i-th transaction entity, H() represents the hash function, and v represents the cardinality of the transaction entity;
[0111] Step S43: Calculate the aggregated authenticator and random blind value using the following formula:
[0112] ;
[0113] ;
[0114] In the formula, represents the aggregated authenticator, k is the total number of transaction entities, represents a random blind value, represents a random factor;
[0115] Step S44: Send the certification information to SM, where SM refers to the security module. The formula used is as follows:
[0116] ;
[0117] In the formula, Indicates certification information;
[0118] Step S45: Consistency verification. Once the smart contract receives the proof, it automatically performs consistency verification to check whether the following equation is true. If true, the information is complete. The formula used is as follows:
[0119] ;
[0120] Where e() represents the smart contract function.
[0121] By executing the above operations, the smart contract is executed, transaction proof information is generated, transaction data is encrypted, aggregated authenticators and random blind values are calculated, and proof information is sent to the security module for consistency verification. After receiving the proof, the smart contract automatically checks the integrity of the information, solving the technical problem that the security of carbon asset trading data is low, which makes the data easy to be tampered with and leaked, affects the fairness and authenticity of the transaction, and hinders the healthy development of the carbon trading market.
[0122] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, the data report is generated, specifically by obtaining personal carbon asset data from the blockchain, calculating the individual's total carbon emissions, total emission reductions and net carbon asset value, generating charts and visual displays based on the analysis results, and presenting the data report to individual users so that users can understand their own carbon asset management situation.
[0123] Embodiment 7, see Figure 2 , this embodiment is based on the above embodiment, and the present invention provides a personal carbon asset management system based on blockchain, including a carbon asset registration module, a similar carbon footprint analysis module, a carbon asset retrieval module, an intelligent contract execution module and a data report generation module;
[0124] The carbon asset registration module specifically allows the public to receive the Green Carbon Planet, which is recorded in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset;
[0125] The similar carbon footprint analysis module specifically calculates the similarity measure between pairs of public carbon emission items in the Hamming space, and calculates the probability of public carbon footprint similarity parameters given similar carbon footprint analysis dimensions, so as to promote public communication and cooperation in carbon emission reduction;
[0126] The carbon asset retrieval module specifically extracts potential features, compresses real-valued features into intermediate hash codes, fuses the intermediate hash codes into a whole by proposing a hash attention mechanism, performs retrieval verification and testing, represents quantization loss, and calculates the final objective function;
[0127] The execution smart contract module specifically generates transaction proof information, encrypts transaction data, calculates aggregated identity verification and random blind values, sends the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof;
[0128] The data report generation module specifically obtains personal carbon asset data from the blockchain and generates charts and visual displays based on the analysis results.
[0129] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0130] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0131] The present invention and its embodiments are described above, which is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it and design structural methods and embodiments similar to the technical solution without creativity without departing from the purpose of the invention, they should all fall within the protection scope of the present invention.
Claims
1. A personal carbon asset management method based on blockchain, Features: The method comprises the following steps: Step S1: Carbon asset registration; Step S2: Similar carbon footprint analysis, specifically calculating the similarity measure between pairs of public carbon emission items in the Hamming space, and calculating the probability of public carbon footprint similarity parameters given that the carbon footprint analysis dimensions are similar; Step S3: Carbon asset retrieval, specifically, extracting potential features, compressing real-valued features into intermediate hash codes, fusing the intermediate hash codes into a whole by proposing a hash attention mechanism, performing retrieval verification and testing, expressing quantization losses, and calculating the final objective function; Step S4: Execute the smart contract, specifically generate transaction proof information, encrypt the transaction data, calculate the aggregated identity verification device and random blind value, send the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof; Step S5: generating a data report; In step S3, the carbon asset search includes the following steps: Step S31: Extract potential features. In carbon asset retrieval, the real-valued potential features should be merged and refined and placed in a common Hamming space; Step S32: Calculate the intermediate hash code. For each real-valued feature in the carbon asset potential space, compress the real-valued feature into an intermediate hash code. The formula used is as follows: ; In the formula, represents the calculated intermediate hash code, tanh is the hyperbolic tangent function, d represents the carbon asset potential space parameter, and e represents the real-valued feature of the carbon asset potential space; Step S33: forming a hash representation; Step S34: Perform retrieval verification and testing to express the quantization loss. The formula used is as follows: ; In the formula, represents the quantization loss, R represents the random number used for retrieval verification, B represents the first quantization matrix, F represents the second quantization matrix, G represents the third quantization matrix, represents the Frobenius norm; Step S35: Calculate the final objective function using the following formula: ; In the formula, represents the final objective function to be minimized, is the first loss function, is the second loss function, is the third loss function, wherein the first loss function, the second loss function and the third loss function are obtained according to the quantized loss result, combined with the data characteristics and the task objectives, α represents the weight coefficient of the first loss function, β represents the weight coefficient of the second loss function, and γ represents the weight coefficient of the third loss function; In step S4, the execution of the smart contract includes the following steps: Step S41: Generate transaction proof information, send the proof and encrypted data to SM, and encrypt the transaction data using Paillier homomorphic encryption. The formula used is as follows: ; In the formula, c represents the encrypted result, g is the fixed basic parameter in the encryption algorithm, m represents the specific transaction data to be encrypted, h() represents the encryption function, T represents the transaction content, and N is used to control the encryption operation; Step S42: Calculate the identity verification code using the following formula: ; In the formula, represents the authenticator of the i-th transaction entity, Represents the identity of the i-th transaction entity, i represents the index of the transaction entity, represents the authority level of the i-th transaction entity, represents the characteristic state of the i-th transaction entity, H() represents the hash function, and v represents the cardinality of the transaction entity; Step S43: Calculate the aggregated authenticator and random blind value using the following formula: ; ; In the formula, represents the aggregated authenticator, k is the total number of transaction entities, represents a random blind value, represents a random factor; Step S44: Send the certification information to SM, where SM refers to the security module. The formula used is as follows: ; In the formula, Indicates certification information; Step S45: Consistency verification. Once the smart contract receives the proof, it automatically performs consistency verification. The formula used is as follows: ; Where e() represents the smart contract function.
2. According to the blockchain-based personal carbon asset management method of claim 1, Features: In step S2, the similar carbon footprint analysis includes the following steps: Step S21: Data collection: collect the public's travel, residence and consumption data, and classify the collected activities in detail to accurately calculate carbon emissions. The similarity between pairs of public carbon emissions items in the Hamming space is calculated by the Hamming distance. The formula used is as follows: ; In the formula, Indicates Public carbon emissions projects, represents the jth public carbon emission project, represents the similarity measure between public carbon emission projects, namely, the Hamming distance, and K is the carbon emission benchmark value; Step S22: Calculate the probability of the public carbon footprint similarity parameter, using the following formula: ; In the formula, It represents the probability of the public carbon footprint similarity parameter given the same carbon footprint analysis dimension, represents the public carbon footprint similarity parameter, B1 represents the case where the carbon footprint analysis dimension is the same, An indicator that indicates the degree of correlation between the carbon footprints of two publics; Step S23: Promoting communication and cooperation among individuals on carbon emission reduction based on similar carbon footprint analysis.
3. According to the blockchain-based personal carbon asset management method of claim 1, Features: In step S1, the carbon asset registration includes the following steps: Step S11: By building a distributed multi-center network based on blockchain, the public information of using smart garbage equipment to participate in garbage sorting is encrypted using an asymmetric encryption algorithm, digital keys and carbon asset accounts are generated for the public, and an initial 3D green carbon planet is allocated; Step S12: When the public puts in various types of garbage, the system uses AI intelligent visual analysis to determine whether the classification is correct and stores it in the blockchain storage module in the form of hash chain; Step S13: According to the classification results determined by AI intelligent recognition, the weight of the correctly classified public garbage is converted into carbon emission reduction according to the calculation ratio of different garbage types, and distributed to the public's personal blockchain carbon asset account; Step S14: Every time the public makes a contribution, a portion of the corresponding 3D green carbon planet will turn green according to the proportional calculation method. The degree of greening depends on the amount of carbon emission reduction. After the public's current green carbon planet turns green according to the preset value, the public will receive the planet and record it in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset.
4. According to the blockchain-based personal carbon asset management method of claim 1, Features: In step S5, the data report is generated, specifically by obtaining personal carbon asset data from the blockchain, calculating the individual's total carbon emissions, total emission reductions and net carbon asset value, generating charts and visual displays based on the analysis results, and presenting the data report to individual users so that users can understand their carbon asset management status.
5. A personal carbon asset management system based on blockchain, used to implement a personal carbon asset management method based on blockchain as described in any one of claims 1-4, Features: It includes carbon asset registration module, similar carbon footprint analysis module, carbon asset retrieval module, smart contract execution module and data report generation module.
6. According to claim 5, a personal carbon asset management system based on blockchain, Features: The carbon asset registration module specifically allows the public to receive the Green Carbon Planet, which is recorded in the public's blockchain carbon asset account through the blockchain network as the public's personal digital asset; The similar carbon footprint analysis module specifically calculates the similarity measure between pairs of public carbon emission items in the Hamming space, and calculates the probability of public carbon footprint similarity parameters given that the carbon footprint analysis dimensions are similar; The carbon asset retrieval module specifically extracts potential features, compresses real-valued features into intermediate hash codes, fuses the intermediate hash codes into a whole by proposing a hash attention mechanism, performs retrieval verification and testing, represents quantization loss, and calculates the final objective function; The execution smart contract module specifically generates transaction proof information, encrypts transaction data, calculates aggregated identity verification and random blind values, sends the proof information to the security module for consistency verification, and the smart contract automatically checks the integrity of the information after receiving the proof; The data report generation module specifically obtains personal carbon asset data from the blockchain and generates charts and visual displays based on the analysis results.
