应用科学学报 ›› 2020, Vol. 38 ›› Issue (1): 81-92.doi: 10.3969/j.issn.0255-8297.2020.01.006

• 区块链 • 上一篇    下一篇

牌类游戏可信存证链系统

苑陈娟, 孙国梓, 李华康, 王纪涛   

  1. 南京邮电大学 计算机学院, 南京 210023
  • 收稿日期:2019-10-30 出版日期:2020-01-31 发布日期:2020-01-19
  • 作者简介:孙国梓,教授,研究方向为网络空间安全、电子数据取证.E-mail:sun@njupt.edu.cn
  • 基金资助:
    国家自然科学基金(No.61502247);数学工程与先进计算国家重点实验室开放基金(No.2017A10);信息网络安全公安部重点实验室开放课题基金(No.C17611)资助

Credible Depository Chain System of Card Games

YUAN Chenjuan, SUN Guozi, LI Huakang, WANG Jitao   

  1. School of Computer Science, Nanjing University of Posts and Telecomunications, Nanjing 210023, China
  • Received:2019-10-30 Online:2020-01-31 Published:2020-01-19

摘要: 目前,市面上棋牌类游戏的信任问题一直得不到有效解决,外挂等作弊手段层出不穷.为此,基于当下区块链去中心化、防篡改的特点提出了一种牌类游戏防作弊方法.通过API接入玩家的牌面信息,使用Huffman Merkle Hash tree (HuffMHT)算法对牌面信息进行数据压缩,采用多种加密算法对压缩后的数据进行加密,并编写智能合约将加密信息锚定在区块链上.任何人只需对比区块链上的发牌信息和出牌信息即可发现是否作弊.实验结果表明,该方法能有效解决牌类游戏的信任问题,确保牌类游戏的安全.

关键词: 牌类游戏, 区块链, HuffMHT, 加密算法, 智能合约

Abstract: At present, the trust problem of chess and card games on the market has not been solved with effective methods, and phenomena of cheating such as plug-ins are endless. Therefore, based on the characteristics of decentralization and tamper resistance of the current blockchain, we propose a card game anti-cheat method. This method uses the API to access the player's card information and applies the Huffman Merkle Hash tree (HuffMHT) algorithm to compress card information which is then encrypted by various encryption algorithms. At last, a smart contract is written to anchor the encrypted information on the blockchain. In the proposal, everyone has the access to compare the licensing information on the blockchain with the final complete card information to find out if they are cheating. Experimental results show that the proposed method is capable of solving the trust problem of card games effectively and enables a safe card game environment.

Key words: card games, blockchain, HuffMHT, encryption algorithm, smart contract

中图分类号: