应用科学学报 ›› 2023, Vol. 41 ›› Issue (3): 431-447.doi: 10.3969/j.issn.0255-8297.2023.03.006

• 业务过程管理 • 上一篇    下一篇

基于矿工的改进哈希时间锁定协议

左宇轩, 强振平, 代飞, 苏世琪, 梁志宏   

  1. 西南林业大学 大数据与智能工程学院, 云南 昆明 650224
  • 收稿日期:2022-09-28 出版日期:2023-05-30 发布日期:2023-06-16
  • 通信作者: 强振平,教授,博导,研究方向为计算机视觉。E-mail:qzp@swfu.edu.cn E-mail:qzp@swfu.edu.cn
  • 基金资助:
    云南省应用基础研究计划项目(No. 202001AT070135, No. 2018FB105);云南省基础研究重点项目(No. 202101AS070007);云南省重大科技专项计划项目(No. 202002AD080002);国家自然科学基金(No. 62262063);云南省基础研究面上项目(No. 202001BB050031)资助

Improved Hashed Timelock Contract Based on Miners

ZUO Yuxuan, QIANG Zhenping, DAI Fei, SU Shiqi, LIANG Zhihong   

  1. School of Big Data and Intelligent Engineering, Southwest Forestry University, Kunming 650224, Yunnan, China
  • Received:2022-09-28 Online:2023-05-30 Published:2023-06-16

摘要: 针对哈希时间锁定协议无法实现跨链资产转移的问题,提出一种基于矿工的改进哈希时间锁定跨链交互协议。首先,在原子交换过程中加入了椭圆曲线加密算法,该算法使矿工在目标链上安全的生成与锁定交易,以完成用户的跨链资产转移;然后,在协议中加入了矿工节点的竞争选取算法与奖惩算法,以实现一种新的币信证明共识机制;最后,对协议中的智能合约及其功能函数进行了详细阐述。在以太坊私链平台上进行仿真实验,结果表明该协议可安全地完成跨链资产转移,有效地激励矿工积极参与跨链交易。

关键词: 区块链, 跨链, 哈希时间锁定协议, 资产转移, 椭圆曲线加密, 共识机制

Abstract: To overcome the challenging problem of the inability of hashed timelock contract to realize cross-chain asset transfers, an improved cross-chain protocol based on miners is proposed. The protocol incorporates elliptic curve cryptography during the atomic swap process, enabling miners to generate and lock transactions on the target chain, thereby completing cross-chain asset transfers. Additionally, a competitive selection algorithm and a reward-punishment algorithm for miner nodes are integrated into the protocol to implement a new proof-of-coin-trust consensus mechanism. Finally, the protocol’s smart contracts and their functional capabilities are described in detail. Simulation results based on Ethereum show that cross-chain asset transfer is safely completed, and honest miners are motivated to actively participate in cross-chain transactions.

Key words: blockchain, cross-chain, hashed timelock contract, asset transfer, elliptic curve cryptography, consensus mechanism

中图分类号: