A Uniform Payment System for Hyperledger Fabric Blockchain

The payment scheme of Fabric 2.0 alpha is threatened by counterfeit tokens and its users are client apps, not the end consumers. In this paper, a uniform payment system is designed with the following advantages. (1). By limiting the token-minting right to a designated token-minting bank and the design of label, our system prevents the counterfeit token problem. (2). A complete transaction is divided into Bitcoin-level part and Fabric-level part. The Bitcoin-level part constructs inputs and outputs and signs these inputs, outputs and a nonce with a private key. This makes a micro enterprises or an end consumer can enjoy the payment service as the Bitcoin-level operation can be implemented on a mobile phone. The double-spending problem is prevented by the Fabric-level mechanism. (3). The system is easy to expand. When there is a new payment application, only one sub-function is added to the payment contract to implement the payment application, and a call to the sub-function is added. (4). Compared with Bitcoin, the unlockcode of UTXO only needs to be stored once, instead of being stored with each UTXO, thus reducing the sizes of transactions.