SurveyChain is a Web3 app built on the Constellation Network, leveraging decentralized technology to create, manage, and participate in surveys with enhanced privacy, security, and incentivization.
- Overview
- Key Features
- Architecture
- Getting Started
- Usage
- Core Technologies
- Development
- Contributing
- License
SurveyChain revolutionizes the way surveys are conducted by leveraging blockchain technology. It offers a decentralized platform where survey data is not controlled by a single entity but distributed across the Constellation Network, ensuring data integrity, participant privacy, and built-in incentivization through token rewards.
- Decentralized survey creation and management
- End-to-end encryption for survey responses
- Token rewards for survey participation
- Immutable and tamper-proof survey data
- Integration with Constellation Network's Metagraph architecture
SurveyChain utilizes a two-layer architecture within the Constellation Network:
-
Layer 1 (Data L1):
- Handles incoming survey data
- Performs initial validations
- Packages data into blocks
- Runs DAG-based consensus
-
Layer 0 (Metagraph L0):
- Receives blocks from L1
- Performs final validation and consensus
- Creates snapshots of the survey system state
- Submits snapshots to the Global L0
This architecture ensures scalability, security, and decentralization while maintaining privacy and functionality.
- Node.js (v14 or later)
- pnpm (recommended) or npm
-
Clone the repository:
git clone https://github.com/your-username/surveychain.git cd surveychain
-
Install dependencies:
pnpm install
Create a .env.local
file in the root directory and add the following variables:
NEXT_PUBLIC_NETWORK=mainnet
NEXT_PUBLIC_METAGRAPH_ID=your-metagraph-id
ENCRYPT_KEY=your-encryption-key
- Connect your wallet
- Navigate to the "Create Survey" page
- Fill in survey details and set token reward
- Submit the survey to the network
- Connect your wallet
- Browse available surveys
- Select a survey and answer questions
- Submit responses to receive token reward
- Connect your wallet
- Navigate to "My Surveys"
- Select a survey to view encrypted responses
- Decrypt responses using your private key
- Constellation Network: The underlying blockchain platform
- Next.js: React framework for building the web application
- RainbowKit: Wallet connection manager
- Sign-In With Ethereum: Account authentication
- TailwindCSS: Utility-first CSS framework
- Framer Motion: Animation library for React
- Prisma: Database ORM for storing off-chain data
To start the development server:
pnpm dev
To build the application:
pnpm build
We welcome contributions to SurveyChain! Please see our Contributing Guidelines for more information.
SurveyChain is released under the MIT License.