Computer Engineering and Applications ›› 2021, Vol. 57 ›› Issue (24): 115-125.DOI: 10.3778/j.issn.1002-8331.2007-0473

• Network, Communication and Security • Previous Articles     Next Articles

Fair Prepaid Card Management Scheme Based on Blockchain

FENG Guilan, LI Zhengnan   

  1. 1.Modern Education Technology Center, Civil Aviation Flight University of China, Guanghan, Sichuan 618307, China
    2.Institute of Aviation Engineering, Civil Aviation Flight University of China, Guanghan, Sichuan 618307, China
  • Online:2021-12-15 Published:2021-12-13



  1. 1.中国民航飞行学院 现代教育技术中心,四川 广汉 618307
    2.中国民航飞行学院 航空工程学院,四川 广汉 618307


In recent years, the prepaid consumption mechanism has been widely adopted in super retail, recreation and fitness, education training. However, there are some drawbacks in existing prepaid card schemes, e.g. high incidence of fraud, frequent breach of contract, and lack of government regulation. At present, the smart contract technology in blockchain enjoys the characteristics of decentralization, high security guarantee and verifiability, which can be used to manage prepaid cards in an effective way. This paper contributes a new idea to address the occurred problems in current prepaid card schemes. Therefore, a fair prepaid card management scheme based on blockchain and smart contract is proposed. The transactions between consumers and merchants are completed through smart contracts. The management of the advance payment is realized by the temporary function of the smart contracts. After the consumer and the merchant jointly confirm the consumption success, the smart contract will automatically settle the consumption fee to the merchant. If the merchant breaches the contract, the consumer can recover the advance payment by appealing to protect his rights, which proves that the scheme meets the fairness requirements. To implement the proposed scheme, smart contracts are written in solidity and deployed on local Ethereum test network. The results of security analysis and evaluation show that the scheme achieves high security and availability.

Key words: blockchain, smart contracts, prepaid card, Ethereum, fairness



关键词: 区块链, 智能合约, 预付卡, 以太坊, 公平性