project screenshot 1
project screenshot 2
project screenshot 3

PostAndVote

A Web3-based social media platform for creators to post content and compete in daily events. Users log in with Worldcoin, vote on posts, and win rewards. Smart contracts manage profiles, events, and rewards, promoting decentralization, transparency, and creativity.

PostAndVote

Created At

Superhack 2024

Winner of

Worldcoin - Pool Prize

Prize Pool

Project Description

PostAndVote is a decentralized social platform designed to enhance the way users create, share, and vote on content in a trustful and sybil-resistant environment. It leverages blockchain technology, IPFS (InterPlanetary File System), and Worldcoin’s World ID to ensure that all interactions on the platform are authentic and human-driven.

At the core of PostAndVote is the World ID integration, which plays a crucial role in maintaining the integrity of the platform. World ID provides a privacy-preserving proof of personhood, ensuring that each participant is a unique individual. This mechanism is essential for preventing bots, fake accounts, and sybil attacks, which are common challenges in online communities. By requiring World ID verification, PostAndVote ensures that every user’s identity is genuine, thereby fostering a trustworthy environment for content creation and engagement.

Users of PostAndVote can mint their own unique NFT profiles, which are stored on IPFS and represent their digital identity on the platform. These NFT profiles, which include customizable avatars and usernames, are required for participation in the platform’s events and voting processes.

The platform hosts content creation events where users can submit their creative work, such as images and captions, by paying a participation fee. The submissions are then subject to a voting process where other users can vote on the content based on originality and quality. Voting is conducted transparently on the blockchain, ensuring that all votes are fairly counted. To enhance security, the votes remain hidden until the end of the voting period, preventing any bias or influence during the process.

IPFS integration ensures that all content is stored in a decentralized and immutable manner, which protects the content from tampering and ensures its availability across the globe without reliance on a centralized server.

In summary, PostAndVote is not just another social media platform; it’s a next-generation decentralized application that combines the best of blockchain technology, decentralized storage, and privacy-preserving identity verification. By integrating World ID, PostAndVote stands out as a platform that prioritizes authenticity, security, and user engagement, offering a new way for individuals to interact and share their creativity online.

How it's Made

PostAndVote was meticulously crafted using a blend of cutting-edge blockchain technologies, decentralized storage solutions, and advanced identity verification protocols to create a secure, transparent, and user-friendly platform.

Technologies Used: Ethereum Blockchain:

The smart contracts for PostAndVote are written in Solidity and deployed on the Ethereum blockchain. Ethereum’s robust and secure network ensures that all transactions, including content submissions, voting, and rewards distribution, are tamper-proof and immutable. The contracts manage user profiles, event creation, participation, and voting processes, with each interaction recorded transparently on the blockchain. Hardhat:

Hardhat was used as the development environment for compiling, testing, and deploying the smart contracts. Its integration with Ethers.js allowed for seamless interactions with the Ethereum blockchain. Hardhat also provided the tools necessary to simulate blockchain environments, making the development process more efficient and streamlined. IPFS (InterPlanetary File System):

All user-generated content, including profile pictures (avatars), event submissions (images), and metadata, is stored on IPFS. This decentralized storage solution ensures that content is accessible globally and remains resistant to censorship and tampering. IPFS's integration with the Ethereum blockchain is achieved by storing the IPFS hash within the smart contract, ensuring the content can be retrieved reliably. Worldcoin’s World ID:

The World ID protocol was integrated to verify users’ identities while preserving privacy. World ID ensures that each participant is a unique individual, which is critical for preventing sybil attacks and maintaining the integrity of the platform’s voting process. By leveraging World ID, the platform guarantees that only verified users can create profiles, participate in events, and vote, enhancing trust within the community. React.js and React Bootstrap:

The front-end of PostAndVote is built with React.js, a popular JavaScript library for building user interfaces. React’s component-based architecture allowed for the development of a responsive and dynamic UI. React Bootstrap was used to create a clean and user-friendly interface, ensuring that users can navigate the platform with ease and participate in events without friction. Ethers.js:

Ethers.js was used for handling blockchain interactions within the front-end. This lightweight library allowed for seamless integration between the React front-end and the Ethereum smart contracts. Ethers.js managed tasks such as connecting to the user's wallet (e.g., MetaMask), sending transactions, and fetching data from the blockchain. Challenges Faced: During the development process, an issue arose related to IPFS integration. Specifically, while attempting to upload metadata or content to IPFS via Pinata (a popular IPFS pinning service), I encountered an error: "IPFS URI upload error: Internal JSON-RPC error." This error seemed to originate from a failure in communicating with the IPFS node, potentially due to network congestion, API limitations, or an issue with the JSON-RPC request structure. Despite troubleshooting, this issue posed a significant challenge and required further investigation and optimization to ensure smooth uploads to IPFS.

Benefits of Partner Technologies: Worldcoin’s World ID provided a critical layer of trust, ensuring that the platform remains free from bots and sybil attacks. The integration of World ID into both the front-end (for user verification) and the back-end (for validation) was essential in creating a secure environment for user interactions. IPFS offered a decentralized solution for content storage, making the platform resilient and censorship-resistant, which is crucial for a user-driven content platform. Hardhat and Ethers.js were instrumental in creating a seamless development workflow, from smart contract deployment to interaction management, ensuring that the platform could be developed and tested efficiently. I am having a error :- IPFS URI upload error: Internal JSON-RPC error. In summary, PostAndVote combines state-of-the-art blockchain technology with decentralized storage and privacy-preserving identity verification to create a next-generation platform that is both innovative and secure. Despite challenges such as the IPFS upload error, the integration of partner technologies like Worldcoin’s World ID has been pivotal in achieving the project’s goals.

background image mobile

Join the mailing list

Get the latest news and updates