Skip to main content

2018 | OriginalPaper | Buchkapitel

Applying Design Patterns in Smart Contracts

A Case Study on a Blockchain-Based Traceability Application

verfasst von : Yue Liu, Qinghua Lu, Xiwei Xu, Liming Zhu, Haonan Yao

Erschienen in: Blockchain – ICBC 2018

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Blockchain, the technology Bitcoin lives on, is an emerging research field due to its nature of decentralisation, and properties of data immutability and transparency. Smart contracts are the programs executed on programmable infrastructure provided by blockchain, which can manage complex business logic, extending the field significantly. As blockchain technology is still at an early stage, there are little works on applying software architectural methods to the design of blockchain-based applications. In this paper, we summarise eight smart contract design patterns based on existing smart contracts and our experience, and classify them into four categories: Creational Patterns, Structural Patterns, Inter-Behavioral Patterns, and Intra-Behavioral Patterns. We share some experiences of applying the presented design patterns of smart contract on a real-world blockchain-based traceability application, and also discuss how patterns can improve the quality attributes of blockchain-based application.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Bartoletti, M., Pompianu, L.: An empirical analysis of smart contracts: platforms, applications, and design patterns. ArXiv e-prints, March 2017CrossRef Bartoletti, M., Pompianu, L.: An empirical analysis of smart contracts: platforms, applications, and design patterns. ArXiv e-prints, March 2017CrossRef
3.
Zurück zum Zitat Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design patterns: Elements of Reusable Object-oriented Software. Pearson Education, London (1995)MATH Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design patterns: Elements of Reusable Object-oriented Software. Pearson Education, London (1995)MATH
4.
Zurück zum Zitat Lu, Q., Xu, X.: Adaptable blockchain-based systems: a case study for product traceability. IEEE Softw. 34(6), 21–27 (2017)CrossRef Lu, Q., Xu, X.: Adaptable blockchain-based systems: a case study for product traceability. IEEE Softw. 34(6), 21–27 (2017)CrossRef
5.
Zurück zum Zitat Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2008) Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2008)
7.
Zurück zum Zitat Staples, M., Chen, S., Falamaki, S., Ponomarev, A., Rimba, P., Weber, A.B.T.I., Xu, X., Zhu, J.: Risks and opportunities for systems using blockchain and smart contracts. Technical report, Sydney (2017). Data61(CSIRO) Staples, M., Chen, S., Falamaki, S., Ponomarev, A., Rimba, P., Weber, A.B.T.I., Xu, X., Zhu, J.: Risks and opportunities for systems using blockchain and smart contracts. Technical report, Sydney (2017). Data61(CSIRO)
8.
Zurück zum Zitat Swan, M.: Blockchain: Blueprint for a New Economy. O’Reilly, Sebastopol (2015) Swan, M.: Blockchain: Blueprint for a New Economy. O’Reilly, Sebastopol (2015)
10.
Zurück zum Zitat Xu, X., Pautasso, C., Zhu, L., Gramoli, V., Ponomarev, A., Tran, A.B., Chen, S.: The blockchain as a software connector. In: The 13th Working IEEE/IFIP Conference on Software Architecture (WICSA), Venice, Italy (2016) Xu, X., Pautasso, C., Zhu, L., Gramoli, V., Ponomarev, A., Tran, A.B., Chen, S.: The blockchain as a software connector. In: The 13th Working IEEE/IFIP Conference on Software Architecture (WICSA), Venice, Italy (2016)
11.
Zurück zum Zitat Xu, X., Webber, I., Staples, M., et al.: A taxonomy of blockchain-based systems for architecture design. In: IEEE International Conference on Software Architecture (ICSA), Gothenburg, Sweden (2017) Xu, X., Webber, I., Staples, M., et al.: A taxonomy of blockchain-based systems for architecture design. In: IEEE International Conference on Software Architecture (ICSA), Gothenburg, Sweden (2017)
12.
Zurück zum Zitat Zhang, P., White, J., Schmidt, D.C., Lenz, G.: Applying Software Patterns to Address Interoperability in Blockchain-based Healthcare Apps. ArXiv e-prints, June 2017 Zhang, P., White, J., Schmidt, D.C., Lenz, G.: Applying Software Patterns to Address Interoperability in Blockchain-based Healthcare Apps. ArXiv e-prints, June 2017
Metadaten
Titel
Applying Design Patterns in Smart Contracts
verfasst von
Yue Liu
Qinghua Lu
Xiwei Xu
Liming Zhu
Haonan Yao
Copyright-Jahr
2018
DOI
https://doi.org/10.1007/978-3-319-94478-4_7

Premium Partner