Carbon emission permit trading method, device and equipment based on block chain and storage medium
By registering enterprises on the blockchain and generating pseudonyms, the challenges of existing carbon emission trading platforms in information security and privacy protection are solved, and secure heterogeneous communication between enterprises under different cryptographic systems are achieved, which improves the security and efficiency of transactions.
Patent Information
- Application Number
- CN202411981311.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-27
AI Technical Summary
The existing carbon emission trading platforms have many challenges in information security and privacy protection, especially when communicating between different cryptographic systems, and the lack of effective communication protocols leads to insecurity and inefficiency of transactions.
Using a blockchain-based carbon emission rights trading method, enterprises are registered on the blockchain through smart contracts and pseudonyms are generated to achieve secure heterogeneous communication between enterprises under different cryptographic systems. The specific steps include generating pseudonyms for the hash of the enterprise identity information, generating public-private key pairs, using preset signature strategies for signature and de-signing, and using multi-ciphertext equivalent test to ensure the confidentiality of transaction information.
It realizes secure heterogeneous communication between enterprises under different cryptographic systems in the complex and changeable carbon emission trading platform, protects user privacy, improves the data confidentiality, security and efficiency of transactions, and provides a more flexible and secure technical framework for future carbon emission trading.
Smart Images

Figure CN120047148A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology, and particularly relates to a carbon emission right trading method, device, equipment and storage medium based on blockchain. Background Art
[0002] With the increasing global attention to climate change, carbon emission right trading, as a market mechanism, aims to effectively control and reduce greenhouse gas emissions through economic means. However, existing trading platforms face many challenges in information security and privacy protection. These trading platforms often rely on traditional centralized identity authentication mechanisms, which not only increase the risk of single point of failure, but also may lead to the leakage of user identity information. Secondly, when dealing with communications between different enterprises, especially those using different cryptographic systems, the existing trading systems based on the existing cryptographic systems often lack effective communication protocols, which makes the implementation of cross-platform trading complex and insecure.
[0003] In addition, although some existing carbon emission right trading platforms have tried to introduce smart contracts, due to the lack of data privacy protection measures, these solutions are still difficult to meet the strict privacy protection requirements in practical applications; in addition, these platforms often require a large amount of computing overhead. Therefore, there is an urgent need for a novel solution that can adapt to the dynamically changing carbon emission right trading environment to solve the above problems. Summary of the Invention
[0004] The purpose of the present invention is to provide a carbon emission right trading method, device, equipment and storage medium based on blockchain, aiming to solve the problems that in the process of carbon emission right trading, user privacy information is easily leaked, and the security and efficiency of trading are low because the existing technology cannot provide an effective solution that can adapt to the dynamically changing carbon emission right trading environment.
[0005] On the one hand, the present invention provides a carbon emission right trading method based on blockchain, and the method includes the following steps:
[0006] According to the identity information of a first enterprise under a first cryptographic system and a second enterprise under a second cryptographic system, a smart contract deployed in the blockchain registers the first and second enterprises to be traded for carbon emission rights respectively, and generates pseudonyms for the first and second enterprises;
[0007] The first enterprise generates its own public-private key pair according to the pseudonym of the first enterprise;
[0008] Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined to be traded with the first enterprise, and uploads the obtained trading ciphertext after signcryption to the blockchain;
[0009] The intelligent contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and determines the transaction ciphertext matching the test trapdoor according to the test result;
[0010] According to the preset decryption and signature strategy, the first enterprise decrypts and signs the transaction ciphertext to obtain the carbon quota trading information.
[0011] Preferably, the first cryptosystem is an identity-based cryptosystem, and the second cryptosystem is a certificateless cryptosystem.
[0012] Preferably, the steps for the second enterprise to sign and encrypt the carbon quota trading information determined to conduct carbon emission rights trading with the first enterprise by using a preset sign-encryption strategy include:
[0013] After the second enterprise determines to conduct carbon emission rights trading with the first enterprise, based on the public key of the first enterprise, the second enterprise uses an offline sign-encryption strategy to generate an offline ciphertext for the carbon emission rights trading;
[0014] After the second enterprise determines to conduct the carbon emission rights trading with the first enterprise with the carbon quota trading information, based on the offline ciphertext and the pseudonym of the second enterprise, the second enterprise uses an online sign-encryption strategy to sign and encrypt the carbon quota trading information to obtain the transaction ciphertext.
[0015] Preferably, before the step that the intelligent contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, the method further includes:
[0016] The first enterprise generates the test trapdoor for the multi-ciphertext equality test according to its own private key and uploads the test trapdoor to the intelligent contract.
[0017] Preferably, the steps for the intelligent contract deployed in the blockchain to register the first and second enterprises to be involved in carbon emission rights trading respectively and generate the pseudonyms of the first and second enterprises include:
[0018] Based on the system parameters released by a trusted institution, the intelligent contract hashes the identity information of the first and second enterprises respectively to obtain the pseudonyms of the first and second enterprises.
[0019] On the other hand, the present invention provides a carbon emission rights trading device based on a blockchain, and the device includes:
[0020] A pseudonym generation unit, which is used to respectively register the first and second enterprises to be involved in carbon emission rights trading through a smart contract deployed on a blockchain according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, and generate pseudonyms for the first and second enterprises;
[0021] A key generation unit, which is used for the first enterprise to generate its own public-private key pair according to the pseudonym of the first enterprise;
[0022] An information signcryption unit, which is used for the second enterprise to signcrypt the carbon quota trading information determined to be involved in carbon emission rights trading with the first enterprise based on the public key of the first enterprise and the pseudonym of the second enterprise by using a preset signcryption strategy, and upload the signed ciphertext obtained after signcryption to the blockchain;
[0023] A ciphertext testing unit, which is used for the smart contract to perform multi-ciphertext equality testing on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and determine the transaction ciphertext that matches the test trapdoor according to the test result;
[0024] An information unsigncryption unit, which is used for the first enterprise to unsigncrypt the transaction ciphertext according to a preset unsigncryption strategy to obtain the carbon quota trading information.
[0025] Preferably, the first cryptographic system is an identity-based cryptographic system, and the second cryptographic system is a certificateless cryptographic system.
[0026] Preferably, the information signcryption unit includes:
[0027] An offline signcryption unit, which is used for the second enterprise to generate an offline ciphertext for the carbon emission rights trading based on the public key of the first enterprise by using an offline signcryption strategy after determining to be involved in carbon emission rights trading with the first enterprise;
[0028] An online signcryption unit, which is used for the second enterprise to perform online signcryption on the carbon quota trading information based on the offline ciphertext and the pseudonym of the second enterprise by using an online signcryption strategy after determining to be involved in the carbon emission rights trading with the first enterprise with the carbon quota trading information to obtain the transaction ciphertext.
[0029] On the other hand, the present invention also provides a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps described in the above blockchain-based carbon emission rights trading method are implemented.
[0030] On the other hand, the present invention also provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the steps of the above-mentioned blockchain-based carbon emission trading method.
[0031] According to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, the smart contract deployed in the blockchain registers the first and second enterprises to be involved in carbon emission trading respectively, generates pseudonyms for the first and second enterprises. The first enterprise generates its own public-private key pair based on its pseudonym. Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined to be traded with the first enterprise, and uploads the obtained transaction ciphertext to the blockchain. The smart contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, determines the transaction ciphertext that matches the test trapdoor according to the test result, and according to the decryption strategy, the first enterprise decrypts the transaction ciphertext to obtain the carbon quota trading information, thereby realizing secure heterogeneous communication between enterprises under different cryptographic systems in a complex and changeable carbon emission trading platform, not only protecting user privacy, but also enhancing the data confidentiality, security and efficiency of transactions, which will provide a more flexible and secure technical framework for future carbon emission trading and promote the achievement of the goal of sustainable development. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flowchart of the implementation of the blockchain-based carbon emission trading method provided in Embodiment 1 of the present invention;
[0033] Figure 2 is a schematic structural diagram of the blockchain-based carbon emission trading device provided in Embodiment 2 of the present invention;
[0034] Figure 3 is a schematic structural diagram of the computing device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0035] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0036] It should be understood that the term "and / or" in the present invention describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after;
[0037] Unless otherwise specified, the term "plurality" in the present invention means two or more, and other quantifiers are similar;
[0038] The terms "first", "second", "third", etc. in the present invention are used to distinguish similar or like objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that such terms used can be interchanged under appropriate circumstances, for example, it is possible to implement in an order other than those given in the illustration or description of the embodiments of the present disclosure.
[0039] The following describes in detail the specific implementation of the present invention in combination with specific embodiments:
[0040] Example 1:
[0041] Figure 1 The implementation process of the carbon emission right trading method based on blockchain provided in the first embodiment of the present invention is shown. For the sake of convenience of description, only the parts related to the embodiments of the present invention are shown and are described in detail as follows:
[0042] In step S101, according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, the smart contract deployed in the blockchain registers the first and second enterprises to be carbon emission right traded respectively, and generates pseudonyms for the first and second enterprises.
[0043] The embodiments of the present invention are applicable to computing devices, for example, personal computers, servers, etc. In the embodiments of the present invention, each enterprise that wants to conduct carbon emission right trading and is under the same and / or different cryptographic systems uploads its respective real identity information to the smart contract pre-deployed in the blockchain. The smart contract registers each enterprise according to the identity information of the enterprise. If the registration is successful, a corresponding pseudonym is generated for each enterprise. This pseudonym will replace the real identity of the enterprise as a unique identifier of the enterprise on the blockchain, so as to conduct anonymous communication for carbon emission right trading by using the pseudonym, thereby protecting the privacy of the enterprise and ensuring the legality and security of the transaction. Among them, the first cryptographic system and the second cryptographic system are different cryptographic systems. The first enterprise represents the enterprise that wants to purchase carbon emission rights in the first cryptographic system, and the second enterprise represents the enterprise that wants to initiate carbon emission right trading in the second cryptographic system.
[0044] In a feasible embodiment, the first cryptographic system is the identity-based cryptography (IBC), and the second cryptographic system is the certificateless cryptography (CLC).
[0045] In another feasible embodiment, the generation of the pseudonym is realized through the following steps:
[0046] Based on the system parameters issued by a trusted institution, the smart contract hashes the identity information of the first and second enterprises respectively to obtain the pseudonyms of the first and second enterprises.
[0047] In an embodiment of the present invention, the trusted institution includes a key generation center KGC and a private key generation center PKG. The trusted institution generates system parameters based on given security parameters and makes ζ public. Here, based on the system parameter ζ issued by the trusted institution, the smart contract hashes the real identity information of the first and second enterprises respectively to obtain the pseudonyms of the first and second enterprises. Specifically, for each enterprise to be registered, the smart contract first randomly selects a random number
[0048] and then calculates an intermediate variable N = β·Γ according to the random number β. Finally, according to the intermediate variable N and the system master key randomly selected by the trusted structure the pseudonym is obtained through hash calculation where h is the real identity information of the enterprise, is the corresponding pseudonym of the enterprise, and the first hash function Φ :{0, 1} 1 :{0, 1} * →{0, 1} l , the second hash function the third hash function the fourth hash function the fifth hash function Φ 5 :G 2 →{0, 1} 2l , the sixth hash function Φ 6 :{0, 1} * →{0, 1} l , G 1 is a cyclic additive group of order α, Γ is a generator of the group G 1 , G 2 is a cyclic multiplicative group of order α, G 1 , G 2 satisfies the bilinear mapping relationship e:G 1 ×G 1 →G 2 , l is the length of the elements in the prime field of order α wherein, is the system public key and G is a cyclic additive group of prime order p with its generator being Γ, thereby realizing the generation of pseudonym identities for enterprises conducting carbon emission rights trading, protecting the real identity information of enterprises, and achieving traceability.
[0049] In step S102, the first enterprise generates its own public-private key pair according to the pseudonym of the first enterprise.
[0050] In an embodiment of the present invention, the first enterprise generates its own public-private key pair according to the pseudonym of the first enterprise. Specifically, the first enterprise first randomly selects a value and then calculates the intermediate variable θ = η·Γ according to η. Finally, based on the system master key χ, the private key and the public key are calculated. Among them, the private key Δ of the first enterprise r includes Δ r,1 and Δ r,2 two sub-private keys, and the public key of the first enterprise includes and two sub-public keys.
[0051] In step S103, based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined for the carbon emission rights trading with the first enterprise, and uploads the resulting trading ciphertext to the blockchain.
[0052] In an embodiment of the present invention, during the carbon emission rights trading process, the second enterprise initiating the carbon emission rights trading first needs to determine the trading partner (such as the first enterprise) that wants to trade with itself. After determining the trading partner, it then determines the specific information for trading with the trading partner (i.e., the carbon quota trading information). In this process, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined for the carbon emission rights trading with the first enterprise, and uploads the resulting trading ciphertext to the blockchain.
[0053] In a feasible embodiment, before the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined for the carbon emission rights trading with the first enterprise, the second enterprise generates its own public-private key pair using its own pseudonym. Specifically, the generation of the public-private key pair of the second enterprise is achieved through the following steps:
[0054] ① The second enterprise receives the partial private key generated by the KGC according to its pseudonym and sent to it Among them, is the pseudonym of the second enterprise;
[0055] ② The second enterprise verifies the equation to confirm the legitimacy. If the equation holds, the partial private key is legal, otherwise it is illegal;
[0056] ③ After the legitimacy verification passes, the second enterprise generates its own private key and public key where φ is a secret value randomly selected by the second enterprise and is the public key of the second enterprise for two sub-public keys of
[0057] The public and private key pair of the second enterprise is generated through the above steps ① to ③ generation.
[0058] In another feasible embodiment, the signcryption of carbon quota trading information is implemented through the following steps:
[0059] (1) After the second enterprise determines to conduct carbon emission rights trading with the first enterprise, based on the public key of the first enterprise, the second enterprise adopts an off-line signcryption strategy to generate an off-line ciphertext for carbon emission rights trading;
[0060] In the embodiment of the present invention, after the second enterprise determines the first enterprise that will conduct carbon emission rights trading with itself, based on the received public key of the first enterprise, the second enterprise adopts an off-line signcryption strategy to generate an off-line ciphertext for this carbon emission rights trading. Specifically, the second enterprise calculates the first off-line sub-ciphertext υ and the second off-line sub-ciphertext ω according to the first off-line sub-ciphertext formula and the second off-line sub-ciphertext formula ω = λ·Γ, and the off-line ciphertext (υ, ω) for carbon emission rights trading is composed of υ and ω. Where λ is a random number randomly generated by the second enterprise and Thus, the off-line signcryption operation of part of the information for carbon emission rights trading is pre-completed, so as to reduce the time complexity of on-line signcryption.
[0061] (2) After the second enterprise determines to conduct carbon emission rights trading with the first enterprise based on carbon quota trading information, based on the off-line ciphertext and the pseudonym of the second enterprise, the second enterprise adopts an on-line signcryption strategy to perform on-line signcryption on the carbon quota trading information to obtain a trading ciphertext.
[0062] In the embodiment of the present invention, after the second enterprise determines the specific carbon quota trading information π for trading with the first enterprise, based on the off-line ciphertext (υ, ω) and the pseudonym of the second enterprise The second enterprise adopts an on-line signcryption strategy to perform on-line signcryption on the carbon quota trading information π to obtain a trading ciphertext. Specifically, the on-line signcryption of the carbon quota trading information π is implemented through the following steps:
[0063] (2.1) The second enterprise calculates the first on-line sub-ciphertext where E and I are intermediate variables, and E = θ·Γ, θ is a random number randomly selected by the second enterprise and
[0064] (2.2) The second enterprise calculates the second on-line sub-ciphertext Among them, is an intermediate variable, and
[0065] (2.3) The second enterprise makes Q(a) = Q 0 + Q 1 a + Q 2 a 2 + ··· + Q ε-1 a ε-1 , and calculates the third online sub-ciphertext Among them, a is a random number randomly selected by the second enterprise and Q 0 、Q 1 、...、Q ε-1 are all intermediate variables, and Q 0 = Φ 2 (π || ε), Q 1 = Φ 2 (π || ε || Q 0 ),...、Q ε-1 = Φ 2 (π || ε || Q 0 || Q 1 || ··· || Q ε-2 ), ε is the number of ciphertexts for the multi-ciphertext equality test;
[0066] (2.4) The second enterprise calculates the fourth online sub-ciphertext o 4 = Φ 6 (n || I || ω || o 1 || o 2 || o 3 || υ || Q 0 || ··· Q n-1 ), among which, is the equality test verification parameter;
[0067] (2.5) The second enterprise calculates the fifth online sub-ciphertext where i ∈ {1, ···, ε};
[0068] (2.6) Combining the offline ciphertext (υ, ω) and the online signcryption stage to obtain five sub-ciphertexts o 1 、o 2 、o 3 、o 4 、o 5 , and finally obtaining the transaction ciphertext O = (ε, I, ω, o 1 , o 2 , o 3 , o 4 , o 5 ) for the carbon emission rights trading between the second enterprise and the first enterprise.
[0069] Through the above steps (1) and (2), the off-line signcryption and on-line signcryption operations of carbon emission right trading information are respectively realized, thus reducing the computational overhead of on-line signcryption to a certain extent and improving the response rate of the system.
[0070] In step S104, the smart contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and determines the transaction ciphertext matching the test trapdoor according to the test result.
[0071] In the embodiment of the present invention, the smart contract uses the test trapdoor input by the first enterprise to perform a multi-ciphertext equality test on the ciphertext stored in the blockchain, determines the transaction ciphertext matching the test trapdoor according to the test result, and sends the transaction ciphertext to the first enterprise. Specifically, for i ∈ {1, ···, ε}, There is a system of equations Let Q i,k = Q j,k , where j ∈ {1, ···, ε}, k ∈ {0, 1, ···, ε - 1}, and the system of equations has a unique solution Q i,0 , Q i,1 , ···, Q i,ε-1 , check whether the equation o i,4 = Φ 6 (π||I||ω||o 1 ||o 2 ||o 3 ||ω·Λ i ||Q i,0 ||···Q i,k-1 ) holds. If the equation holds, it means that π 1 = π 2 = ··· = π m , that is, among the ε ciphertexts participating in the equality test, the plaintexts corresponding to m ciphertexts are equal. After the equality test is verified, the transaction ciphertext O i matching the i-th test trapdoor Λ i is obtained = (ε i , I, ω, o i,1 , o i,2 , o i,3 , o i,4 , o i,5 ), and O i is the i-th transaction ciphertext participating in the multi-ciphertext equality test.
[0072] In a feasible embodiment, before the smart contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, the first enterprise generates a test trapdoor for the multi-ciphertext equality test according to its own private key and uploads the test trapdoor to the smart contract to implement the authorization of the multi-ciphertext equality test. Specifically, the calculation formula of the test trapdoor is where Λ is the test trapdoor.
[0073] In step S105, according to the preset decryption and signature verification policy, the first enterprise decrypts and verifies the transaction ciphertext to obtain the carbon quota trading information.
[0074] In the embodiment of the present invention, the first enterprise uses the preset decryption and signature verification policy to decrypt and verify the received transaction ciphertext O i =(ε i ,I,ω,o i,1 ,o i,2 ,o i,3 ,o i,4 ,o i,5 ) to obtain the carbon quota trading information π. Specifically, the first enterprise first calculates the intermediate variable E′ = I·Δ r,1 , and recovers After that, calculate Q 0 ′ = Φ 2 (π||ε), Q 1 ′ = Φ 2 (π||ε||Q 0 ′),..., Q ε ′ -1 = Φ 2 (π||ε||Q 0 ′||···||Q ε ′ -2 ), and then verify whether the following equation holds:
[0075]
[0076]
[0077]
[0078] If the above equation holds, then π = π′, and the decryption is successful.
[0079] In the embodiment of the present invention, according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, the smart contract deployed in the blockchain registers the first and second enterprises to be involved in carbon emission rights trading respectively, generates pseudonyms for the first and second enterprises. The first enterprise generates its own public-private key pair based on its pseudonym. Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined for carbon emission rights trading with the first enterprise, and uploads the obtained transaction ciphertext after signcryption to the blockchain. The smart contract performs multi-ciphertext equality testing on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, determines the transaction ciphertext that matches the test trapdoor according to the test result, and according to the decryption strategy, the first enterprise decrypts the transaction ciphertext to obtain the carbon quota trading information, thereby realizing secure heterogeneous communication between enterprises under different cryptographic systems in a complex and changeable carbon emission rights trading platform, not only protecting user privacy, but also enhancing the data confidentiality, security and efficiency of transactions, which will provide a more flexible and secure technical framework for future carbon emission rights trading and promote the achievement of sustainable development goals.
[0080] Example 2:
[0081] Figure 2 The structure of the carbon emission rights trading device based on the blockchain provided in the second embodiment of the present invention is shown. For the sake of convenience of description, only the parts related to the embodiment of the present invention are shown, including:
[0082] The pseudonym generation unit 21 is used to register the first and second enterprises to be involved in carbon emission rights trading respectively by the smart contract deployed in the blockchain according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, and generate pseudonyms for the first and second enterprises;
[0083] The key generation unit 22 is used for the first enterprise to generate its own public-private key pair according to the pseudonym of the first enterprise;
[0084] The information signcryption unit 23 is used for the second enterprise to signcrypt the carbon quota trading information determined for carbon emission rights trading with the first enterprise using a preset signcryption strategy based on the public key of the first enterprise and the pseudonym of the second enterprise, and upload the obtained transaction ciphertext after signcryption to the blockchain;
[0085] The ciphertext testing unit 24 is used for the smart contract to perform multi-ciphertext equality testing on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and determine the transaction ciphertext that matches the test trapdoor according to the test result;
[0086] The information decryption unit 25 is used for the first enterprise to decrypt the transaction ciphertext according to the preset decryption strategy to obtain the carbon quota trading information.
[0087] Preferably, the first cryptographic system is an identity-based cryptographic system, and the second cryptographic system is a certificateless cryptographic system.
[0088] Preferably, the information signcryption unit 23 includes:
[0089] An offline signcryption unit, which is used for the second enterprise to generate an offline ciphertext for carbon emission rights trading based on the public key of the first enterprise by adopting an offline signcryption strategy after determining to conduct carbon emission rights trading with the first enterprise;
[0090] An online signcryption unit, which is used for the second enterprise to perform online signcryption on the carbon quota trading information based on the offline ciphertext and the pseudonym of the second enterprise by adopting an online signcryption strategy after determining to conduct carbon emission rights trading with the first enterprise using the carbon quota trading information, so as to obtain a trading ciphertext.
[0091] In the embodiment of the present invention, each unit of the blockchain-based carbon emission rights trading device can be implemented by corresponding hardware or software units. Each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not used to limit the present invention here. Specifically, the implementation manners of each unit can refer to the description of the foregoing Embodiment 1, and will not be elaborated here.
[0092] Example 3:
[0093] Figure 3 The structure of the computing device provided in Embodiment 3 of the present invention is shown. For the sake of convenience of description, only the parts related to the embodiment of the present invention are shown.
[0094] The computing device 3 in the embodiment of the present invention includes a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30. When the processor 30 executes the computer program 32, the steps in the foregoing embodiment of the blockchain-based carbon emission rights trading method are implemented, such as Figure 1 The steps S101 to S105 shown. Alternatively, when the processor 30 executes the computer program 32, the functions of each unit in the foregoing device embodiments are implemented, such as Figure 2 The functions of the units shown.
[0095] In an embodiment of the present invention, according to the identity information of a first enterprise under a first cryptographic system and a second enterprise under a second cryptographic system, a smart contract deployed in a blockchain registers the first and second enterprises to be involved in carbon emission rights trading respectively, generates pseudonyms for the first and second enterprises. The first enterprise generates its own public-private key pair based on its pseudonym. Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined for carbon emission rights trading with the first enterprise, and uploads the obtained transaction ciphertext after signcryption to the blockchain. The smart contract performs a multi-ciphertext equivalence test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, determines the transaction ciphertext that matches the test trapdoor according to the test result, and according to the unsigncryption strategy, the first enterprise unsigncrypts the transaction ciphertext to obtain the carbon quota trading information, thereby realizing secure heterogeneous communication between enterprises under different cryptographic systems in a complex and changeable carbon emission rights trading platform, which not only protects user privacy, but also improves the data confidentiality, security and efficiency of transactions. This will provide a more flexible and secure technical framework for future carbon emission rights trading and promote the achievement of the goal of sustainable development.
[0096] The computing device in the embodiment of the present invention can be a personal computer or a server. The steps implemented when the processor 30 in the computing device 3 executes the computer program 32 to implement the carbon emission rights trading method based on the blockchain can refer to the description of the foregoing method embodiments and will not be elaborated herein.
[0097] Example 4:
[0098] In an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in the foregoing embodiments of the carbon emission rights trading method based on the blockchain. For example, Figure 1 the steps S101 to S105 shown. Alternatively, when the computer program is executed by a processor, it implements the functions of each unit in the foregoing device embodiments. For example Figure 2 the functions of the units shown.
[0099] In the embodiment of the present invention, according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, the smart contract deployed in the blockchain registers the first and second enterprises to be involved in carbon emission rights trading respectively, generates pseudonyms for the first and second enterprises. The first enterprise generates its own public-private key pair based on its pseudonym. Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota trading information determined to be involved in carbon emission rights trading with the first enterprise, and uploads the obtained transaction ciphertext to the blockchain. The smart contract performs a multi-ciphertext equality test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, determines the transaction ciphertext that matches the test trapdoor according to the test result, and according to the decryption strategy, the first enterprise decrypts and unsigns the transaction ciphertext to obtain the carbon quota trading information, thereby realizing secure heterogeneous communication between enterprises under different cryptographic systems in the complex and changeable carbon emission rights trading platform, not only protecting user privacy, but also improving the data confidentiality, security and efficiency of transactions, which will provide a more flexible and secure technical framework for future carbon emission rights trading and promote the achievement of the goal of sustainable development.
[0100] The computer-readable storage medium of the embodiment of the present invention may include any entity or device, recording medium capable of carrying computer program code, for example, memories such as ROM / RAM, magnetic disks, optical disks, flash memories, etc.
[0101] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A carbon emission rights trading method based on blockchain, characterized in that: The method comprises the following steps: According to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, the smart contract deployed in the blockchain registers the first and second enterprises to be traded in carbon emission rights respectively, and generates pseudonyms for the first and second enterprises; The first enterprise generates its own public and private key pair according to the pseudonym of the first enterprise; Based on the public key of the first enterprise and the pseudonym of the second enterprise, the second enterprise uses a preset signcryption strategy to signcrypt the carbon quota transaction information determined to be conducted with the first enterprise for carbon emission rights trading, and uploads the transaction ciphertext obtained after the signcryption to the blockchain; The smart contract performs a multi-ciphertext equivalence test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and determines the transaction ciphertext matching the test trapdoor according to the test result; According to a preset decryption strategy, the first enterprise decrypts the transaction ciphertext to obtain the carbon quota transaction information.
2. The method according to claim 1, characterized in that The first cryptographic system is an identity-based cryptographic system, and the second cryptographic system is a certificateless cryptographic system.
3. The method according to claim 1, characterized in that The step of the second enterprise using a preset signcryption strategy to signcrypt the carbon quota transaction information for the carbon emission rights transaction with the first enterprise includes: After the second enterprise determines to conduct carbon emission rights trading with the first enterprise, based on the public key of the first enterprise, the second enterprise uses an offline signcryption strategy to generate an offline ciphertext for the carbon emission rights trading; After the second enterprise determines to conduct the carbon emission rights transaction with the first enterprise using the carbon quota transaction information, the second enterprise uses an online signcryption strategy to signcrypt the carbon quota transaction information online based on the offline ciphertext and the pseudonym of the second enterprise to obtain the transaction ciphertext.
4. The method according to claim 1, characterized in that Before the step of performing a multi-ciphertext equivalence test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, the method further includes: The first enterprise generates the test trapdoor for multi-ciphertext equivalence test according to its own private key, and uploads the test trapdoor to the smart contract.
5. The method according to claim 1, characterized in that The smart contract deployed in the blockchain registers the first and second enterprises to be traded in carbon emission rights respectively, and generates pseudonyms for the first and second enterprises, including: Based on the system parameters issued by the trusted organization, the smart contract hashes the identity information of the first and second enterprises respectively to obtain the pseudonyms of the first and second enterprises.
6. A carbon emission rights trading device based on blockchain, characterized in that: The device comprises: A pseudonym generation unit, configured to register the first and second enterprises to be traded in carbon emission rights respectively according to the identity information of the first enterprise under the first cryptographic system and the second enterprise under the second cryptographic system, and generate pseudonyms for the first and second enterprises; A key generation unit, used for the first enterprise to generate its own public and private key pair according to the pseudonym of the first enterprise; An information signcryption unit, configured to signcrypt the carbon quota transaction information for carbon emission rights trading with the first enterprise using a preset signcryption strategy based on the public key of the first enterprise and the pseudonym of the second enterprise, and upload the transaction ciphertext obtained after the signcryption to the blockchain; A ciphertext testing unit, configured for the smart contract to perform a multi-ciphertext equivalence test on the ciphertext stored in the blockchain according to the test trapdoor uploaded by the first enterprise, and to determine the transaction ciphertext matching the test trapdoor according to the test result; The information decryption and signcryption unit is used for the first enterprise to decrypt the transaction ciphertext according to a preset decryption and signcryption strategy to obtain the carbon quota transaction information.
7. The device according to claim 6, characterized in that The first cryptographic system is an identity-based cryptographic system, and the second cryptographic system is a certificateless cryptographic system.
8. The device according to claim 6, characterized in that The information signcryption unit comprises: An offline signcryption unit, configured for the second enterprise to generate an offline ciphertext for the carbon emission rights transaction by adopting an offline signcryption strategy based on the public key of the first enterprise after the second enterprise determines to conduct the carbon emission rights transaction with the first enterprise; The online signcryption unit is used for the second enterprise to signcrypt the carbon quota trading information online based on the offline ciphertext and the pseudonym of the second enterprise by adopting an online signcryption strategy to obtain the transaction ciphertext after the second enterprise determines to conduct the carbon emission rights transaction with the first enterprise using the carbon quota trading information.
9. A computing device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.