Carbon trading data processing method and system based on blockchain

Through the blockchain-based carbon trading data processing method, the problem of imperfect carbon emission data management is solved, transparent, efficient management and real-time monitoring of carbon emission data are achieved, and efficient verification and report generation of carbon trading are supported.

CN114493868BActive Publication Date: 2025-09-16CHINA NAT ENVIRONMENTAL PROTECTION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210052968.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2025-09-16
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

The imperfect management of carbon emission data in existing technologies makes it impossible for users to effectively understand the carbon emissions of enterprises and difficult to manage them effectively.

Method used

A blockchain-based carbon trading data processing method is adopted. Through blockchain technology, customer authority management is unified, the relationship between the configuration maintenance system and blockchain organization is configured, smart contracts are called, and the Kafka message model and Fabric SDK are used to upload data to the chain to ensure data security and consistency.

Benefits of technology

It achieves transparent, standardized and efficient management of carbon emission data, supports real-time monitoring and reporting, simplifies the carbon emission verification process, and improves the efficiency and accuracy of carbon trading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114493868B_ABST
    Figure CN114493868B_ABST
Patent Text Reader

Abstract

The present invention discloses a blockchain-based carbon trading data processing method and system. The present invention relates to the field of carbon trading technology, including accepting data from different tenants and customers, and then a unified customer authority management center to ensure data security, allocating different customer data to different ledgers, and the system maintaining a correspondence between system organizations and blockchain organizations in a configured manner, querying the blockchain organization and ledger information to which it belongs, so as to determine the final information submitted to the chain. The blockchain-based carbon trading data processing method and system, through the proposed construction of a blockchain-based carbon emission verification Internet platform, uses blockchain technology to directly collect data in real time, automatically generates reports on the platform, and the report results can be directly connected to the supervision and trading system. Supervision, trading, and financial institutions can all penetrate and view the original data, thereby ensuring that the carbon emission verification process is transparent, standardized, and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of carbon trading technology, and specifically to a blockchain-based carbon trading data processing method and system. Background Art

[0002] Carbon emissions is a general term or abbreviation for greenhouse gas emissions. The most important gas among greenhouse gases is carbon dioxide. Any human activity may cause carbon emissions. For example, ordinary people's simple cooking can cause carbon emissions. Any object's exhaust gas after being burned by fire will produce carbon emissions. Most scientists and governments admit that greenhouse gases have and will continue to bring disasters to the earth and mankind, so terms such as "(control) carbon emissions" and "carbon neutrality" have become the cultural basis that is easily understood, accepted, and taken action by most people.

[0003] However, the current data management of carbon emissions is not perfect, which makes it difficult for users to better understand the data situation of carbon emissions, making it inconvenient to manage the company's carbon emissions accordingly. Summary of the Invention

[0004] In response to the shortcomings of the existing technology, the present invention provides a blockchain-based carbon trading data processing method and system, which solves the problem that the current data management of carbon emissions is not perfect, making it difficult for users to better understand the carbon emissions data and thus inconvenient to manage the company's carbon emissions accordingly.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a blockchain-based carbon trading data processing method, comprising the following steps:

[0006] S1. Accept data from different tenants and customers, and then use a unified customer rights management center to ensure data security and allocate different customer data to different ledgers;

[0007] S2. The system maintains a correspondence between system organizations and blockchain organizations in a configurable manner, queries the blockchain organization and ledger information to determine the final information submitted to the chain;

[0008] S3: Receive the ID of the channel that will receive the transaction, the ID of the smart contract that needs to be called in the channel, and the parameter information that needs to be passed to the called smart contract to complete the transaction proposal. Then, call the transaction to query and update the status database in the ledger to complete the transaction submission.

[0009] S4. After the data is successfully uploaded to the chain, the corresponding information will be notified to the corresponding service, making the successful notification of the chain compatible with multi-service and single-service scenarios;

[0010] S5. After reading the information, the consumer publishes the message to the Kafka topic. After the broker receives the message sent by the producer, it appends the message to the segment file currently used for appending data.

[0011] S6. After the collection end collects the relevant data on carbon neutrality, it pushes the data to the blockchain through the interface of the chain end;

[0012] S7. Client A initiates an on-chain application, and then Fabric's SDK receives the on-chain data, assembles it internally into a transaction Tx application data packet, and distributes it to the Peer node. After approval, the Peer node is responsible for updating the ledger.

[0013] Furthermore, in step S1, when processing data, the template mode is used to unify the chain process, and the strategy mode is used to execute different types of data processing to make it compatible with different data types or business types.

[0014] Furthermore, in step S2, the corresponding relationship includes a system organization and a blockchain organization. The system organization is the organization of the customer to which the on-chain data belongs, and the blockchain organization is the organization established by the blockchain infrastructure for each customer.

[0015] Furthermore, in step S3, submitting a transaction proposal is a request to execute the smart contract call included in the transaction. Submitting a transaction includes a deployment transaction and a call transaction. The deployment transaction is used to deploy the smart contract to a node in the blockchain network and prepare it to be called.

[0016] Furthermore, in step S4, the message notification utilizes Kafka's message model. Kafka's message model has two modes: broadcast mode and unicast mode. In the broadcast mode, the services that need to consume the same Topic are divided into different consumer groups according to the service name, ensuring that the messages of the related Topic will be consumed by all different consumer groups subscribed to the Topic. In the unicast mode, only one consumer group needs to be defined for the same Topic, ensuring that one consumer group obtains all messages of a specific topic. Within the consumer group, several consumers consume messages of the topic partition. The consumer group can ensure that each partition of a topic is consumed by only one consumer in the consumer group.

[0017] Furthermore, in step S5, the consumer distinguishes the messages that have been read by checking the offset of the message. The offset is another kind of metadata, which is a continuously increasing integer value. When creating a message, Kafka will add it to the message. In a given partition, the offset of each message is unique. The consumer saves the offset of the last read message in each partition in Zookeeper and Kafka. If the consumer is shut down and restarted, its reading status will not be lost.

[0018] Furthermore, in step S6, when data is to be submitted to the blockchain, it first passes through the on-chain end, where the on-chain end program uniformly controls and performs some related data operations. After the on-chain end calls the relevant interface, it calls the SDK provided by Fabric, and the SDK unified interface calls to submit the on-chain operation.

[0019] Furthermore, in step S7, the data packet program runs on the blockchain. During the execution of the chain code, according to the consensus algorithm, the ledger data will be modified only when the signatures of the participants are passed, ensuring the consistency of the data among the participants. If one of the participants modifies its ledger data privately, the result will be invalid, and the privately modified data will be deemed invalid, and the ledger data will not be modified.

[0020] Furthermore, a system for carbon trading data processing based on blockchain, the system includes an application end and an on-chain end module, a blockchain end, a carbon emission data module and a data confirmation module, the application end includes a data acquisition module, a fabricApi interface and a verification data module, the project data module is project data, the verification data module is verification data, the application end collects data from the project data module and the verification data module respectively, the blockchain end includes an organized ledger module, and the application end transmits data to the blockchain end through the on-chain end module.

[0021] Furthermore, the uplink module includes an adapter, a fabricApi interface, and a kafka platform. The adapter is connected to the kafka platform through the fabricApi interface. The carbon emission data module transmits the carbon emission data to the kafka platform, and then the data confirmation module confirms the carbon emission data.

[0022] Beneficial effects

[0023] The present invention provides a blockchain-based carbon trading data processing method and system, which has the following advantages compared with the existing technology:

[0024] 1. The blockchain-based carbon trading data processing method and system, through the proposed construction of a blockchain-based carbon emission verification Internet platform, uses blockchain technology to directly collect data in real time and automatically generate reports on the platform. The report results can be directly connected to the supervision and trading systems. Supervision, trading, and financial institutions can all penetrate and view the original data, thereby ensuring that the carbon emission verification process is transparent, standardized, and efficient.

[0025] 2. This blockchain-based carbon trading data processing method and system uses technical means to complete real-time monitoring and chain-linking of carbon emission and emission reduction enterprise data, and output actual emission / emission reduction reports for business enterprises to the review and certification agencies; help the review and certification agencies output review and certification reports based on automated templates, thereby achieving efficient submission and quickly completing the registration, filing and filing work of the national carbon emission registration system; and output tradable carbon asset targets to the market in batches. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a principle block diagram of the present invention.

[0027] In the figure: 1. Application end; 11. Data collection module; 12. Project data module; 13. Verification data module; 2. On-chain module; 21. Adapter; 22. FabricApi interface; 23. Kafka platform; 3. Blockchain end; 31. Organization ledger module; 4. Carbon emission data module; 5. Data confirmation module. DETAILED DESCRIPTION

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0029] See also Figure 1 The present invention provides a technical solution, a method for processing carbon trading data based on blockchain, comprising the following steps:

[0030] S1. Accept data from different tenants and customers, and then use a unified customer rights management center to ensure data security and allocate different customer data to different ledgers;

[0031] S2. The system maintains a correspondence between system organizations and blockchain organizations in a configurable manner, queries the blockchain organization and ledger information to determine the final information submitted to the chain;

[0032] S3: Receive the ID of the channel that will receive the transaction, the ID of the smart contract that needs to be called in the channel, and the parameter information that needs to be passed to the called smart contract to complete the transaction proposal. Then, call the transaction to query and update the status database in the ledger to complete the transaction submission.

[0033] S4. After the data is successfully uploaded to the chain, the corresponding information will be notified to the corresponding service, making the successful notification of the chain compatible with multi-service and single-service scenarios;

[0034] S5. After reading the information, the consumer publishes the message to the Kafka topic. After the broker receives the message sent by the producer, it appends the message to the segment file currently used for appending data.

[0035] S6. After the collection end collects the relevant data on carbon neutrality, it pushes the data to the blockchain through the interface of the chain end;

[0036] S7. Client A initiates an on-chain application, and then Fabric's SDK receives the on-chain data, assembles it internally into a transaction Tx application data packet, and distributes it to the Peer node. After approval, the Peer node is responsible for updating the ledger.

[0037] In an embodiment of the present invention, in step S1, when processing data, a template mode is used to unify the chain process, and a strategy mode is used to execute different types of data processing to make it compatible with different data types or business types.

[0038] In an embodiment of the present invention, in step S2, the corresponding relationship includes a system organization and a blockchain organization. The system organization is the organization of the customer to which the on-chain data belongs, and the blockchain organization is the organization established by the blockchain infrastructure for each customer.

[0039] In an embodiment of the present invention, in step S3, submitting a transaction proposal is a request to execute the smart contract call included in the transaction. Submitting a transaction includes a deployment transaction and a call transaction. The deployment transaction is used to deploy the smart contract to a node in the blockchain network and prepare it to be called.

[0040] In an embodiment of the present invention, in step S4, the message notification utilizes Kafka's message model. Kafka's message model includes two means: broadcast mode and unicast mode. In the broadcast mode, the services that need to consume the same Topic are divided into different consumer groups according to the service name, ensuring that the messages of the related Topic will be consumed by all different consumer groups subscribed to the Topic. In the unicast mode, only one consumer group needs to be defined for the same Topic, ensuring that one consumer group obtains all messages of a specific topic. Within the consumer group, several consumers consume messages of the topic partition. The consumer group can ensure that each partition of a topic is consumed by only one consumer in the consumer group.

[0041] In this embodiment of the present invention, in step S5, the consumer distinguishes the messages that have been read by checking the offset of the message. The offset is another kind of metadata, which is a continuously increasing integer value. When creating a message, Kafka will add it to the message. In a given partition, the offset of each message is unique. The consumer saves the offset of the last read message of each partition in Zookeeper and Kafka. If the consumer is shut down and restarted, its reading status will not be lost.

[0042] In this embodiment of the present invention, in step S6, when data is to be submitted to the blockchain, it first passes through the on-chain end, where the on-chain end program uniformly controls and performs some related data operations. After the on-chain end calls the relevant interface, it calls the SDK provided by Fabric, and the SDK uniformly calls the interface to submit the on-chain operation.

[0043] In this embodiment of the present invention, in step S7, the data packet program runs on the blockchain. During the execution of the chain code, according to the consensus algorithm, the ledger data will be modified only when the signatures of the participants are passed, ensuring the consistency of the data among the participants. If one of the participants modifies its ledger data privately, the result will be invalid, and the privately modified data will be deemed invalid, and the ledger data will not be modified.

[0044] In an embodiment of the present invention, a system for processing carbon trading data based on blockchain includes an application end 1, an on-chain end module 2, a blockchain end 3, a carbon emission data module 4, and a data confirmation module 5. The application end 1 includes a data acquisition module 11, a fabricApi interface 22, and a verification data module 13. The project data module 12 is project data, and the verification data module 13 is verification data. The application end 1 collects data from the project data module 12 and the verification data module 13 respectively. The blockchain end 3 includes an organized ledger module 31. The application end 1 transmits data to the blockchain end 3 through the on-chain end module 2.

[0045] In an embodiment of the present invention, the up-link end module 2 includes an adapter 21, a fabricApi interface 22, and a kafka platform 23. The adapter 21 is connected to the kafka platform 23 through the fabricApi interface 22. The carbon emission data module 4 transmits the carbon emission data to the kafka platform 23, and then the data confirmation module 5 confirms the carbon emission data.

[0046] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.

[0047] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus.

Claims

1. A blockchain-based carbon trading data processing method, characterized by: The following steps are involved: S1. Accept data from different tenants and customers, and then use a unified customer rights management center to ensure data security and allocate different customer data to different ledgers; S2. The system maintains a correspondence between system organizations and blockchain organizations in a configurable manner, queries the blockchain organization and ledger information to determine the final information submitted to the chain; S3: Receive the ID of the channel that will receive the transaction, the ID of the smart contract that needs to be called in the channel, and the parameter information that needs to be passed to the called smart contract to complete the transaction proposal. Then, call the transaction to query and update the status database in the ledger to complete the transaction submission. S4. After the data is successfully uploaded to the chain, the corresponding information will be notified to the corresponding service, making the successful notification of the chain compatible with multi-service and single-service scenarios; S5. After reading the information, the consumer publishes the message to the Kafka topic. After the broker receives the message sent by the producer, it appends the message to the segment file currently used for appending data. S6. After the collection end collects the relevant data on carbon neutrality, it pushes the data to the blockchain through the interface of the chain end; S7. Client A initiates an on-chain application, and then Fabric's SDK receives the on-chain data, assembles it internally into a transaction Tx application data packet, and distributes it to the Peer node. After approval, the Peer node is responsible for updating the ledger.

2. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S1, when processing data, the template mode is used to unify the chain process, and the strategy mode is used to execute different types of data processing to make it compatible with different data types or business types.

3. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S2, the corresponding relationship includes the system organization and the blockchain organization. The system organization is the organization of the customer to which the on-chain data belongs, and the blockchain organization is the organization established by the blockchain infrastructure for each customer.

4. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S3, submitting a transaction proposal is a request to execute the smart contract call included in the transaction. The submission transaction includes a deployment transaction and a call transaction. The deployment transaction is used to deploy the smart contract to the node of the blockchain network and prepare it to be called.

5. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S4, the message notification utilizes Kafka's message model. Kafka's message model includes two modes: broadcast mode and unicast mode. In the broadcast mode, services that need to consume the same Topic are divided into different consumer groups according to the service name, ensuring that the messages of the related Topic will be consumed by all different consumer groups subscribed to the Topic. In the unicast mode, only one consumer group needs to be defined for the same Topic, ensuring that one consumer group obtains all messages of a specific topic. Within the consumer group, several consumers consume messages of the topic partition. The consumer group can ensure that each partition of a topic is consumed by only one consumer in the consumer group.

6. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S5, the consumer distinguishes the messages that have been read by checking the offset of the message. The offset is another kind of metadata, which is a continuously increasing integer value. When creating a message, Kafka will add it to the message. In a given partition, the offset of each message is unique. The consumer saves the offset of the last read message in each partition in Zookeeper and Kafka. If the consumer is shut down and restarted, its reading status will not be lost.

7. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S6, when data is to be submitted to the blockchain, it first passes through the on-chain end, where the on-chain end program uniformly controls and performs some related data operations. After the on-chain end calls the relevant interface, it calls the SDK provided by Fabric, and the SDK uniformly calls the interface to submit the on-chain operation.

8. The blockchain-based carbon trading data processing method according to claim 1, characterized in that: In step S7, the data package program runs on the blockchain. During the execution of the chain code, according to the consensus algorithm, the ledger data will be modified only when the signatures of the participants are passed, ensuring the consistency of the data among the participants. If one of the participants modifies its ledger data privately, the result will be invalid, and the privately modified data will be deemed invalid, and the ledger data will not be modified.

9. A blockchain-based carbon trading data processing system, characterized in that: A method comprising any one of claims 1 to 8, wherein the system comprises an application end (1), an on-chain end module (2), a blockchain end (3), a carbon emission data module (4), and a data confirmation module (5); the application end (1) comprises a data acquisition module (11), a fabricApi interface (22), and a verification data module (13); the project data module (12) comprises project data; the verification data module (13) comprises verified data; the application end (1) respectively collects data from the project data module (12) and the verification data module (13); the blockchain end (3) comprises an organized ledger module (31); and the application end (1) transmits data to the blockchain end (3) through the on-chain end module (2).

10. The blockchain-based carbon trading data processing system according to claim 9, characterized in that: The uplink end module (2) includes an adapter (21), a fabricApi interface (22) and a Kafka platform (23); the adapter (21) is connected to the Kafka platform (23) through the fabricApi interface (22); the carbon emission data module (4) transmits the carbon emission data to the Kafka platform (23); and then the data confirmation module (5) confirms the carbon emission data.

Citation Information

Patent Citations

  • New energy settlement system based on block chain

    CN110503569A

  • Carbon emission management method and device based on block chain, and medium

    CN111104463A