Decentralized Review System for Transparent and Accountable Governance
Chapter 4 highlighted how Solana ' s On-Chain Program is utilized to create accounts and store data within them . This program consists of three core methods : creating an organization , creating a user , and creating a review . One of the key benefits of utilizing the On-Chain Program is that once it is deployed on the chain , it cannot be modified . This ensures that the system remains secure and transparent and eliminates any possibility of unauthorized modifications , such as adding methods to update or delete reviews . By leveraging the immutability of the On-Chain Program , we have created a robust and trustworthy review system that can be relied upon to maintain the integrity and transparency of the review process .
Solana ' s unique architecture allows anyone to read data from accounts on the chain simply by providing the account address , this is in the context of blockchain configured as public-open type . However , storing the address of every review can quickly become inefficient and result in significant overhead . To overcome this challenge , we have implemented a solution that leverages Solana ' s Program Derived Addresses ( PDAs ).
For each review , the user - who is posting the review , and the organization - about which the review is being posted , our system generates a PDA that can be reproduced by the on-chain program using a set of seeds unique to that entity . This approach ensures that we can efficiently store and retrieve data without incurring unnecessary overhead or compromising the system ’ s security . By utilizing PDAs , we have created a scalable and efficient review system that can be trusted to maintain the integrity and immutability of all review data .
In Section 4.2 , we provided a brief overview of the account structure used in our implementation . In this section , we will delve into the details of the implementation .
The account structure we are using is illustrated in Figure 5-1 . It consists of four types of accounts : User Account , Organization Account , Review Account , and User Review Account .
60 April 2023