Patterns for Blockchain-Based Payment Applications

Qinghua Lu, Xiwei Xu, H. M. N. Dilum Bandara, Shiping Chen, Liming Zhu

TL;DR

This paper addresses the need for structured knowledge in designing blockchain-based payment applications by introducing a set of 12 design patterns. These patterns are mapped to a token's lifecycle, providing architects and developers with a systematic guide for building secure and efficient payment systems on the blockchain.

What Problem Does This Paper Address?

Blockchain technology promises fast, secure, and borderless payments, positioning payments as its "killer application." However, the field is still emerging, and there's a lack of organized knowledge for designing these applications. This gap makes it challenging for architects and developers to create robust payment systems. The paper aims to fill this void by identifying and presenting reusable design solutions in the form of patterns, specifically tailored for blockchain-based payment applications.

Methods

The authors conducted a literature review and drew upon their project experience to identify and collect design patterns. They first defined the lifecycle of a "payable token" and then associated specific patterns with the state transitions within this lifecycle. The patterns are described using an extended pattern form, including summary, context, problem, forces, solution, consequences, and known uses. The paper focuses on patterns that facilitate the design and development of blockchain-based payment applications.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Token Lifecycle as a Framework: Mapping design patterns to a token's lifecycle provides a structured and intuitive way to understand how different components interact and evolve during a payment process.
  • Bridging the Knowledge Gap: The paper systematically organizes knowledge about blockchain payment design, moving beyond ad-hoc solutions to a more architectural approach.
  • Holistic View: The 12 patterns cover a broad spectrum of critical aspects, from token design and management to security and privacy, offering a comprehensive toolkit.
  • Practical Guidance: By providing concrete patterns and their applications, the paper serves as a practical guide for developers and architects, accelerating the adoption and improvement of blockchain payment systems.

Key Results

The paper presents 12 design patterns categorized into "Token Design Patterns" and "Payment Management Patterns." These patterns include:

Token Design Patterns: * Token Template * Token Registry * Policy Contract * Burned Token

Payment Management Patterns: * Escrow * Payment Channel * Seller Credential * Stealth Address * Oracle * Multisignature * Token Swap * Authorised Spender

Each pattern is detailed with its purpose, context, problem it solves, and how it can be implemented. The paper also discusses the benefits and drawbacks of each pattern and provides examples of their use in existing systems.

Limitations and Future Work

The authors acknowledge that while they focus on patterns for blockchain-based payment applications, some of these patterns may also be applicable at different levels of system design. They plan to extend their existing decision model for selecting blockchain-based patterns to specifically include the payment patterns presented in this paper. This future work aims to further assist developers and architects in choosing the most appropriate patterns for their specific payment application needs.

Summary updated

Abstract

As the killer application of blockchain technology, blockchain-based payments have attracted extensive attention ranging from hobbyists to corporates to regulatory bodies. Blockchain facilitates fast, secure, and cross-border payments without the need for intermediaries such as banks. Because blockchain technology is still emerging, systematically organised knowledge providing a holistic and comprehensive view on designing payment applications that use blockchain is yet to be established. If such knowledge could be established in the form of a set of blockchain-specific patterns, architects could use those patterns in designing a payment application that leverages blockchain. Therefore, in this paper, we first identify a token’s lifecycle and then present 12 patterns that cover critical aspects in enabling the state transitions of a token in blockchain-based payment applications. The lifecycle and the annotated patterns provide a payment-focused systematic view of system interactions and a guide to effective use of the patterns.
BibTeX
@inproceedings{lu2021patterns,
  author = {Qinghua Lu and Xiwei Xu and H. M. N. Dilum Bandara and Shiping Chen and Liming Zhu},
  title = {{Patterns for Blockchain-Based Payment Applications}},
  booktitle = {EuroPLoP},
  year = {2021},
  url = {https://openreview.net/forum?id=2SBrI3RHaX},
}
Figure