# FairDAO: A zero-knowledge proof-based app for DAOs to keep fairness in decisions

**URL:** <https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285>\
**Category:** zkDAO\
**Created:** [March 29, 2022, 5:37pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285 "2022-03-29T17:37:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamid58b](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hamid58b/32/8726_2.png) [@hamid58b](https://talk.harmony.one/u/hamid58b)\
**Post date:** [March 29, 2022, 5:37pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/1 "2022-03-29T17:37:17Z")

</div>

**FairDAO proposal**  
FairDAO is a zero-knowledge dApp that helps DAOs to make sure the voting process includes all groups and minorities and the outcome is not biased toward a specific group of the population while prevents double-voting.

**Application Type:**

zkDAO

**Proposal Overview:**

This dApp will address important aspects of the web3 communities that build DAOs and aim to fund projects and public goods. This project ensures DAOs that the voters are the fair representatives of the population by keeping their sensitive group information private. It will also serve as a first stepping stone for an anti-collusion infrastructure that will not allow members to vote twice on a single proposal.

**Use Cases:**

- This will be a first step stone to build an infrastructure that guarantees fairness and prevents bias in decisions while keeping privacy, such as race, skin color, religion, sexual orientation, country, location, health, language, etc.
- It helps DAOs to make sure no one casts twice for a single proposal.

**Proposal ask**

To build this DAO tooling we request $15k/year stable basic income to develop, maintain, cover operation costs, and adopt with current DAO toolings. The milestones are described as detailed below:

1. launching a feature-complete product on testnet
2. forming a DAO with 5-out-of-9 multisig with our DAOs
3. launching on our mainnet with audit
4. attracting 1k daily active users (with launch video, full PR promotion)
5. attracting 10k daily active users (with a detailed roadmap, governance process)

**Roadmap**

| Objective | Date | Status |
| --- | --- | --- |
| Testnet Launct | Apr 1st | Pending |
| Feature Improvement and Fixes | May 2nt | Pending |
| Beta Testing and Fixes | May 15th | Pending |
| Smart contract audit | June 1st | Pending |
| Mainnet Launch | June 30th | Pending |

Links:

[Github repository](https://github.com/hamid58b/zk-dao)  
[Demo dApp](https://zkfair.netlify.app/)

---

<div class="post-metadata">

**Author:** ![socathie](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/socathie/32/5676_2.png) [@socathie](https://talk.harmony.one/u/socathie)\
**Post date:** [March 30, 2022, 4:15am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/2 "2022-03-30T04:15:59Z")

</div>

The app itself will need some work in terms of UI and UX, but I love that it’s planning to do multiple wallet compatibility! Voting yes from me as a governor.

---

<div class="post-metadata">

**Author:** ![hakwan](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hakwan/32/8566_2.png) [@hakwan](https://talk.harmony.one/u/hakwan)\
**Post date:** [March 30, 2022, 10:14pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/3 "2022-03-30T22:14:28Z")

</div>

yes vote from me too, as a zkDAO governor (funding pending milestone 1, testnet launch though).

Hamid, can you elaborate a bit more how you used Sparse Merkle Tree in this project too? at zkDAO we are particularly keen to support products which get out of the box a bit re: technical development. i’m curious to learn more

---

<div class="post-metadata">

**Author:** ![tosin](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tosin](https://talk.harmony.one/u/tosin)\
**Post date:** [March 31, 2022, 4:49am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/4 "2022-03-31T04:49:26Z")

</div>

Fairness is a necessary quality of any voting process and this application is trying to ensure this quality is present in every poll. A strong yes from me as governor of zkDAO

---

<div class="post-metadata">

**Author:** ![hakwan](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hakwan/32/8566_2.png) [@hakwan](https://talk.harmony.one/u/hakwan)\
**Post date:** [March 31, 2022, 10:36pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/5 "2022-03-31T22:36:31Z")

</div>

Hamid, can you update to post a link to your testnet launch too, if it has just happened?

---

<div class="post-metadata">

**Author:** ![kayuet](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/kayuet/32/9932_2.png) [@kayuet](https://talk.harmony.one/u/kayuet)\
**Post date:** [March 31, 2022, 11:38pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/6 "2022-03-31T23:38:01Z")

</div>

A yes vote from me as a zkDAO governor. Traditional methods are hard to mask the identity of populations of small sizes and zk tech has a lot of promises in this area.

---

<div class="post-metadata">

**Author:** ![hamid58b](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hamid58b/32/8726_2.png) [@hamid58b](https://talk.harmony.one/u/hamid58b)\
**Post date:** [April 1, 2022, 1:39am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/7 "2022-04-01T01:39:27Z")

</div>

Thanks for the feedback and your support for this project.

The sparse Merkle tree (SMT) all data points are indexed, and data points are added to the leaves (corresponding index). If the data is not in its index, we now have the non-inclusion proof (Data will be null) So, to insert any datapoint to the tree we need to provide following signals: the old root of tree and new index ( that are stored in the smart contract), old (index, data) pair, and the new (index, data) pair. Then, the new root will be created using new data points. The data structure of SMT makes it easier to update, delete, insert, and search in the tree as it is the collection of (data, index) pairs, or (key, value) pairs.

Please see the `smt` library and the sample code on how to add, update, delete nodes in the sparse merkle tree here: [GitHub - cedoor/sparse-merkle-tree: Sparse Merkle tree implementation in TypeScript.](https://github.com/cedoor/sparse-merkle-tree)

---

<div class="post-metadata">

**Author:** ![hamid58b](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hamid58b/32/8726_2.png) [@hamid58b](https://talk.harmony.one/u/hamid58b)\
**Post date:** [April 1, 2022, 1:45am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/8 "2022-04-01T01:45:06Z")

</div>

Yes the testnet is launched. I added the testnet link on Harmony.  
The process is to connect with metamask wallet and generate the secret and nullifier and provide your group ID (0, 1, …n), then run generate the calldata and join. Next, a user need to create a vote, and finally use the secret and nullifier to vote yes or no for a selected proposal.

---

<div class="post-metadata">

**Author:** ![hakwan](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hakwan/32/8566_2.png) [@hakwan](https://talk.harmony.one/u/hakwan)\
**Post date:** [April 1, 2022, 1:36pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/9 "2022-04-01T13:36:47Z")

</div>

that sounds great. Hamid - can you post the link to the testnet launch here too?

---

<div class="post-metadata">

**Author:** ![hamid58b](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/hamid58b/32/8726_2.png) [@hamid58b](https://talk.harmony.one/u/hamid58b)\
**Post date:** [April 1, 2022, 3:36pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/10 "2022-04-01T15:36:08Z")

</div>

Please see the link here: [https://zkfair.netlify.app/](https://zkfair.netlify.app/)

---

<div class="post-metadata">

**Author:** ![Kousik\_Rajesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/kousik_rajesh/32/13468_2.png) [@Kousik\_Rajesh](https://talk.harmony.one/u/Kousik_Rajesh)\
**Post date:** [April 5, 2022, 12:47pm UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/11 "2022-04-05T12:47:27Z")

</div>

Well justified use cases for the app. Yes from me as governor of zkdao.

---

<div class="post-metadata">

**Author:** ![AleksandarHadzibabic](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/aleksandarhadzibabic/32/10081_2.png) [@AleksandarHadzibabic](https://talk.harmony.one/u/AleksandarHadzibabic)\
**Post date:** [April 7, 2022, 11:33am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/12 "2022-04-07T11:33:27Z")

</div>

I can see the great value in this project. Yes from me as a governor of zkDAO.

---

<div class="post-metadata">

**Author:** ![kayuet](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/kayuet/32/9932_2.png) [@kayuet](https://talk.harmony.one/u/kayuet)\
**Post date:** [April 8, 2022, 8:00am UTC](https://talk.harmony.one/t/fairdao-a-zero-knowledge-proof-based-app-for-daos-to-keep-fairness-in-decisions/15285/13 "2022-04-08T08:00:11Z")

</div>

with \>5 positive votes from zkDao’s governors, this project will be funded.
