摘要
目前,市面上棋牌类游戏的信任问题一直得不到有效解决,外挂等作弊手段层出不穷.为此,基于当下区块链去中心化、防篡改的特点提出了一种牌类游戏防作弊方法.通过API接入玩家的牌面信息,使用Huffman Merkle Hash tree (HuffMHT)算法对牌面信息进行数据压缩,采用多种加密算法对压缩后的数据进行加密,并编写智能合约将加密信息锚定在区块链上.任何人只需对比区块链上的发牌信息和出牌信息即可发现是否作弊.实验结果表明,该方法能有效解决牌类游戏的信任问题,确保牌类游戏的安全.
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.
作者
苑陈娟
孙国梓
李华康
王纪涛
YUAN Chenjuan;SUN Guozi;LI Huakang;WANG Jitao(School of Computer Science,Nanjing University of Posts and Telecomunications,Nanjing 210023,China)
出处
《应用科学学报》
CAS
CSCD
北大核心
2020年第1期81-92,共12页
Journal of Applied Sciences
基金
国家自然科学基金(No.61502247)
数学工程与先进计算国家重点实验室开放基金(No.2017A10)
信息网络安全公安部重点实验室开放课题基金(No.C17611)资助