Toward a Greener Planet Through IoT JOI_20230426_eBook | Page 52

Decentralized Review System for Transparent and Accountable Governance
CONTENTS
1 Overview ........................................................................................................................ 48
1.1
Introduction ...................................................................................................................... 48
1.2
Purpose ............................................................................................................................. 50
1.3
Scope ................................................................................................................................ 50
1.4
Structure ........................................................................................................................... 51
1.5
Audience ........................................................................................................................... 51
1.6
Use ................................................................................................................................... 52
2 Motivation ...................................................................................................................... 52
2.1
Challenges and Limitations of Traditional Review Systems .................................................. 52
2.2
Enhancing Trust and Verifiability in Review Systems ........................................................... 52
3 Decentralized Technologies ............................................................................................. 53 3.1 Blockchain-Solana ............................................................................................................. 53
3.1.1 Program Derived Addresses .............................................................................................. 55 3.2 Inter Planetary File System ( IPFS ) ....................................................................................... 55
4 System Architecture and Design ...................................................................................... 55
4.1
System Overview : A class diagram ..................................................................................... 56
4.2
Decentralized Design ......................................................................................................... 58
4.3
Review Multimedia Storage ............................................................................................... 59
5 Implementation .............................................................................................................. 59
5.1
Storing and Reading Data on Solana ................................................................................... 60
5.1.1
Adding Data ....................................................................................................................... 60
5.1.2
Reading Data ...................................................................................................................... 60
5.1.3
Accounts ............................................................................................................................ 60
5.2
Adding and Storing Reviews ............................................................................................... 62
5.3
Fetching Reviews ............................................................................................................... 63
6 Conclusion and Further Scope ......................................................................................... 63 7 References ...................................................................................................................... 64 8 Acknowledgements ......................................................................................................... 69
FIGURES
Figure 4-1 : Class diagram ............................................................................................................................. 56 Figure 4-2 : Searching and selecting an organization ................................................................................... 57 Figure 4-3 : Fetching and adding reviews ..................................................................................................... 58 Figure 5-1 : Solana account types reproduced from [ 11 ]............................................................................. 61 Figure 5-2 : Adding review to blockchain . .................................................................................................... 63
Journal of Innovation 47