---
description: >-
  "Code is law; it provides the rules and regulations that govern blockchain
  networks." — Vitalik Buterin
---

# Technical Overview

CryptOpinion operates on a hybrid infrastructure, utilizing both blockchain and traditional database systems to optimize efficiency and data integrity. Here's a detailed explanation of how the platform functions.

### Dual Existence of Surveys and Participation answers:

Each survey and participation exists in two forms: one on the blockchain and another in a traditional database. The database backend stores data such as question labels, descriptions, and answers, as storing this type of data directly on the blockchain can be costly. However, to ensure the reliability of stored data, cryptographic hash functions generate fingerprints of this data, which are then stored on the blockchain. By storing fingerprints, we guarantee the integrity and authenticity of the data while minimizing storage expenses. Thoses hash functions are executed directly in your browser.

### Blockchain Trust System:

All interactions between the frontend and backend systems are governed by a blockchain trust system. This means that no actions can be executed unless they are first validated by the blockchain. As a result, there may be slight delays in user actions as they await confirmation from the blockchain. However, this approach ensures that all platform activities are secure, transparent, and tamper-proof.

### Web3 Authentication System:

CryptOpinion employs a robust authentication system based on Web3 principles. Users are required to sign transactions with their wallet using tools like MetaMask to interact with the application. This Web3-based authentication system adds an additional layer of security by ensuring that users can only access and manipulate data that they own on the blockchain. This prevents unauthorized access and data tampering, enhancing the overall integrity and trustworthiness of the platform.

In summary, CryptOpinion combines the benefits of blockchain technology and traditional database systems to create a secure, efficient, and reliable platform for conducting surveys. By leveraging blockchain for data integrity and implementing robust authentication mechanisms, CryptOpinion ensures that survey data remains tamper-proof and trustworthy, while also providing a seamless user experience for participants and survey creators alike.

### Survey and Answer Structure:

In CryptOpinion, surveys are meticulously structured entities designed to gather targeted insights from participants. Here's a closer look at the components of a survey and its corresponding answers.

#### Survey Compositions:

* **Title:** A succint title that encapsulates the purpose or topic of the survey.
* **Description:** A detailed description providing context and instructions for participants.
* **Questions:** A list of questions formulated to solicit specific information or opinions from participants. Questions can be either open-ended, requiring text answers, or multiple-choice, where participants select one choice from a predefined list.

#### Answer Formats:

* **Open-ended Questions:** These questions prompt participants to provide textual responses, allowing for nuanced and detailed feedback.
* **Multiple-choice Questions:** Participants choose one option from a predefined list of choices, providing structured and standardized responses.

#### Anonymity and Indexings:

* **Anonymous Participation:** CryptOpinion prioritizes participant privacy by ensuring that all interactions remain anonymous. Participants' identities are protected, and their contributions are associated with cryptographic addresses rather than personal information.
* **Indexing by Hash and Addresses:** Each survey, question, and answer is indexed by a unique cryptographic hash, ensuring data integrity and immutability. Additionally, participants' contributions are linked to their wallet addresses, providing transparency while maintaining anonymity.

By structuring surveys with clear titles, comprehensive descriptions, and diverse question formats, CryptOpinion facilitates meaningful data collection while respecting participant privacy. Through anonymized indexing and cryptographic hashing, the platform ensures the integrity and security of survey data, fostering trust and confidence among users.
