Titre : | Using Fabric Ledger for Building Blockchain Services |
Auteurs : | Abdelkader Baia, Auteur ; Djemaa Boukhlouf, Directeur de thèse |
Editeur : | Biskra [Algérie] : Faculté des Sciences Exactes et des Sciences de la Nature et de la Vie, Université Mohamed Khider, 2024 |
Format : | 1 vol. (94 p.) / ill., couv. ill. en coul / 30 cm |
Langues: | Français |
Mots-clés: | Blockchain, Hyperledger fabric, Car market. |
Résumé : |
The car market is a complex system. It involved a vast amount of information, from vehicle
details and ownership history to maintenance records and market trends. Thus, it necessitates robust IT systems for effective management. The car market is vulnerable to fraudulent activities, including fake history reports, vehicle sales, paperwork hassles, and unclear ownership trails. In this thesis, we propose a modular architecture for implementing Hyperledger Fabric in the Algerian car market. The use of blockchain technology on the Fabric Ledger platform will enable private tracking, monitoring, and control of car exchanges, which could potentially be utilized by authorities in managing Algeria’s car markets. Our proposed architecture was implemented by the framework Hyperledger Fabric |
Sommaire : |
Abstract
List of Tables List of Figures General Introduction 1 1 Blockchain Technology 2 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 Blockchain Architecture and Algorithms Used . . . . . . . . . . . . . . . . . . . 3 1.3.1 Data layer . . . . . . . . . . . . . . . . . . . . . . . 3 1.3.1.1 Data Block . . . . . . . . . . . . .. . . . . . . . . . . 3 1.3.1.2 Chain Structure . . . . . . . . . . . . . . . . . . 4 1.3.1.3 Timestamp . . . . . . . . . . . . . . . . . . . . . 5 1.3.1.4 merkle tree . . . . . . . . . . .. . . . . . . . . . 5 1.3.1.5 Cryptography . . . . . . . . . . .. . . . . . . . . 6 1.3.2 Network Layer . . . . . . . . . . . .. . . . . . . . . . . 6 1.3.3 Consensus Layer . . . . . . . . . . . . . . . . . . . . . 7 1.3.4 Contract Layer . . . . . . . . . . . . . .. . . . . . . . . 7 1.3.4.1 Smart contract . . . . . . . . . . . . . . . 7 1.3.5 Service layer . . . . . . . . . . . . . . . . . . . 8 1.3.6 Application layer . . . . . . . . . .. . . . . . . . . 9 1.4 History and Evolution . . . . . . . . . . . . . . . . . . . . . 9 1.5 Types of Blockchain . . . . . . . . . .. . . . . . . . . . . . . 10 1.5.1 Private Blockchain Networks . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5.2 Public Blockchain Networks . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5.3 Consortium Blockchains . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5.4 Hybrid Blockchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.6 Blockchain mechanism of action . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.7 Benefits of blockchain . . . . . . . . . . . . . . . . . 13 1.8 Applications . . . . . . . . . . . . . . . . . . . . . 13 1.9 Conclusion . . . . . . . . . . . . . . . . . . . 15 2 Hyperledger Fabric 16 2.1 Introduction . . . . . . . . . .. . . . . . . . 16 2.2 Hyperledger Project . . . . . . . . . . . . . . . . . 16 2.3 Hyperledger Fabric . . . . . . . . . . . . . . . . . . . . . . . 17 2.4 Characteristics of Hyperledger Fabric . . . . . . . . . . . . . . . 17 2.5 Hyperledger Fabric Architecture . . . . . . . . . . . . . . . . . . . 18 2.5.1 Peer Node . . . . . . . . . . . . . . . . . . .. . . . . . . . . 19 2.5.2 Orderer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.3 Membership service provider (MSP) . . . . . . . . . . . . . . . . . 20 2.5.4 Ledger . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5.5 Chaincode . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . 22 2.5.7 Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.5.8 HyperLedger Fabric Certification Authority(CA) . . . . . . . . . . . . . . 23 2.5.9 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.6 Comparison of Hyperledger Fabric, Corda, and Ethereum . . . . . . . . . . . . . 24 2.7 Related works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.8 Conclusion . . . . . . . . . . . . . . . . . . . . 26 3 Conception 27 3.1 Introduction . . . . . . . . . . . . . . . . 27 3.2 Global Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2.1 Development stages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2.2 Global architecture of the system . . . . . . . . . . . . . . . . . . . . . . 29 3.3 Hyperledger fabric network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.4 Deploy chaincode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.5 Algorithms of Car Management System . . . . . . . . . . . . . . . . . . . . . . . 35 3.6 Design by UML (Unified Modeling Language) . . . . . . . . . . . . . . . . . . . 37 3.6.1 Use Case diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.6.2 Sequence diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.6.2.1 Authenticate . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.6.2.2 Log in to the car account . . . . . . . . . . . . . . . . . . . . . 39 3.6.2.3 Create a car . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.6.2.4 Change ownership . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.6.2.5 Change the state of a car . . . . . . . . . . . . . . . . . . . . . 43 3.6.2.6 Delete car . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . 47 4 Implementation 48 4.1 Introduction . . . . . . . . . . . . . 48 4.2 Development Environment . . . . . . . . . . . . . . . . .. . . . 48 4.3 System implementation and realization . . . . . . . . . . . . . . . . . . 50 4.3.1 Network Hyperledger Fabric implementation . . . . . . . . . . . . . . . . 50 4.3.2 Interfaces’ screenshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.4 Results and discussion . . . . . . . . . . . . . . . . . 59 4.5 Conclusion . . . . . . . . . . . . . . . . . . . . . . 62 General Conclusion 63 Bibliography 64 Appendix: Smart Contracts . . . . . . . . . . . 69 |
Type de document : | Mémoire master |
Disponibilité (1)
Cote | Support | Localisation | Statut |
---|---|---|---|
MINF/913 | Mémoire master | bibliothèque sciences exactes | Consultable |