Problem statement: Implement a smart contract-based product rating system for Amazon that enhances the transparency and reliability of product reviews and ratings.
Must have 1: Reviews Stored in IPFS: Store product reviews on the InterPlanetary File System (IPFS), ensuring that all reviews are decentralized, immutable, and publicly accessible. This prevents manipulation of reviews by keeping them off centralized servers. Use a smart contract to store star ratings for each product. The contract should maintain the total ratings and average score, ensuring that ratings are securely managed and transparently available.
Must have 2: Automated Score Computation: Implement a function within the smart contract that automatically computes the average score based on user ratings, updating in real time as new ratings are added to ensure accurate representation of product quality.
Excellent feature 1: Mitigating SPAM: Introduce a mechanism that requires reviewers to stake a small amount of tokens before submitting a review. If the review is flagged as spam or fake, the staked tokens can be forfeited, thereby discouraging malicious activity and ensuring that only genuine reviews are posted.
Excellent feature 2: Verified Purchase Indicator: Implement a feature that indicates whether a review comes from a verified purchase. This could involve linking reviews to on-chain purchase transactions, increasing trust in the ratings provided by users.
Rest of the instructions will be posted on Classroom. Please inform your batch mates regarding the allocation. The allocation is purely random and no exchange or change of problem statement is allowed.