Journal of Computer Applications ›› 2024, Vol. 44 ›› Issue (10): 3240-3245.DOI: 10.11772/j.issn.1001-9081.2023101433

• Frontier and comprehensive applications • Previous Articles     Next Articles

Double auction carbon trading based on consortium blockchain

Chaoying YAN, Ziyi ZHANG, Yingnan QU, Qiuyu LI, Dixiang ZHENG, Lijun SUN()   

  1. College of Information Science and Technology,Qingdao University of Science and Technology,Qingdao Shandong 266061,China
  • Received:2023-10-23 Revised:2024-01-02 Accepted:2024-01-04 Online:2024-10-15 Published:2024-10-10
  • Contact: Lijun SUN
  • About author:YAN Chaoying, born in 1998, M. S. candidate. His research interests include blockchain, smart contract, consensus algorithm.
    ZHANG Ziyi, born in 2001. Her research interests include energy trade, matching algorithm.
    QU Yingnan, born in 2002. Her research interests include energy trade, matching algorithm.
    LI Qiuyu, born in 2002. His research interests include smart contract.
    ZHENG Dixiang, born in 2001. His research interests include smart contract.
  • Supported by:
    Natural Science Foundation of Shandong Province(ZR2023MF082);Open Project of State Key Laboratory of Network and Switching Technology(SKLNST?2022?1?11);Open Fund of Key Laboratory of Industrial Internet of Things and Networked Control, Ministry of Education(2022FF08);Qingdao Natural Science Foundation(23-2-1-164-zyyd-jch)

基于联盟链的双向拍卖碳交易

颜超英, 张紫仪, 曲映楠, 李秋禹, 郑地翔, 孙丽珺()   

  1. 青岛科技大学 信息科学技术学院,山东 青岛 266061
  • 通讯作者: 孙丽珺
  • 作者简介:颜超英(1998—),男,陕西宝鸡人,硕士研究生,CCF会员,主要研究方向:区块链、智能合约、共识算法
    张紫仪(2001—),女,福建南平人,主要研究方向:能源交易、匹配算法
    曲映楠(2002—),女,山东烟台人,主要研究方向:能源交易、匹配算法
    李秋禹(2002—),男,山东青岛人,主要研究方向:智能合约
    郑地翔(2001—),男,山东潍坊人,主要研究方向:智能合约
    孙丽珺(1978—),女,山东青岛人,副教授,博士,CCF会员,主要研究方向:雾/边缘计算、区块链、服务计算 lijunsun@qust.edu.cn
  • 基金资助:
    山东省自然科学基金面上项目(ZR2023MF082);网络与交换技术国家重点实验室开放课题(SKLNST?2022?1?11);工业物联网与网络化控制教育部重点实验室开放基金资助项目(2022FF08);青岛市自然科学基金资助项目(23?2?1?164?zyyd?jch)

Abstract:

Carbon trading is an important way to reduce greenhouse gas emission and develop a low-carbon economy. In the process of traditional carbon trading, there are mainly problems such as wide distribution of subjects, poor data interoperability and low efficiency. Taking the consortium blockchain with access mechanism as the infrastructure of carbon trading, the security and traceability of transaction data can be ensured. Therefore, a double auction transaction algorithm based on consortium blockchain was proposed, which was divided into two phases considering user satisfaction. In the first phase, the price ranges of quotation were proposed by all nodes, and the transactions were concluded immediately by the nodes meeting the conditions in this phase. Then, the remaining transaction nodes entered the second phase, where the transaction volume matching degree was calculated, and the overall user satisfaction was taken as the optimization goal, so that, the result with the maximum overall satisfaction was output. The proposed algorithm was compared with the Hungarian algorithm and the Gale-Shapley (GS) algorithm. Experimental results showed that the proposed algorithm improved user satisfaction, and the average matching time was reduced by 26.2% and 36.0%, respectively. With the HLF (HyperLedger Fabric) used to deploy a double auction algorithm smart contract to calculate and process user transaction requests automatically, and the transaction results recorded on the channel ledger of the consortium blockchain through consensus, the proposed algorithm can achieve stable transaction throughput under different block sizes and transaction requests.

Key words: double auction, consortium blockchain, transaction algorithm, user satisfaction, smart contract

摘要:

碳交易是降低温室气体排放、发展低碳经济的重要方式。在传统碳交易过程中主要存在主体分布广、数据互通性差和效率低等问题,而通过带有准入机制的联盟链作为碳交易的基础设施,可确保交易数据的安全性与可溯源性。因此,提出一种基于联盟链的双向拍卖交易算法。所提算法考虑用户满意度,分2个阶段执行。在第1阶段,所有节点提出报价范围,符合条件的节点将在该阶段立刻达成交易;剩余交易节点进入第2阶段,计算交易量匹配度,以用户整体满意度为优化目标进行匹配,从而输出最大整体满意度的结果。所提算法与匈牙利算法、GS(Gale-Shapley)算法的对比实验结果表明,所提算法提高了用户满意度,且让平均匹配时间分别降低了26.2%和36.0%。所提算法利用HLF(HyperLedger Fabric)部署双向拍卖算法智能合约,自动计算和处理用户交易请求,并把交易的结果经过共识记录在联盟链的通道账本,在不同的区块大小和交易请求数下实现了稳定的交易吞吐量。

关键词: 双向拍卖, 联盟链, 交易算法, 用户满意度, 智能合约

CLC Number: