# An anonymous PoH wrapper

**URL:** <https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364>\
**Category:** Proof of Humanity\
**Created:** [August 31, 2022, 11:20am UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364 "2022-08-31T11:20:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joss](https://gov.proofofhumanity.id/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Joss](https://gov.proofofhumanity.id/u/Joss)\
**Post date:** [August 31, 2022, 11:20am UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/1 "2022-08-31T11:20:10Z")

</div>

I’ve had a go at implementing a ZKP-based wrapper around PoH that allows you to prove you are an individual human within a service anonymously. Please let me know your thoughts!

> **[GitHub - joss-aztec/poh-semaphore: A monorepo of Proof of Humanity Semaphore...](https://github.com/joss-aztec/poh-semaphore)**
>
> A monorepo of Proof of Humanity Semaphore packages. - GitHub - joss-aztec/poh-semaphore: A monorepo of Proof of Humanity Semaphore packages.

(I’ve submitted this as my final project for [https://zku.one/](https://zku.one/))

---

<div class="post-metadata">

**Author:** ![Joss](https://gov.proofofhumanity.id/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Joss](https://gov.proofofhumanity.id/u/Joss)\
**Post date:** [August 31, 2022, 11:37am UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/2 "2022-08-31T11:37:43Z")

</div>

Perhaps I should have posted this under the Developers category instead… Is it possible to move the post, or should I delete and repost?

---

<div class="post-metadata">

**Author:** ![shotaro.eth](https://gov.proofofhumanity.id/user_avatar/gov.proofofhumanity.id/shotaro.eth/32/63_2.png) [@shotaro.eth](https://gov.proofofhumanity.id/u/shotaro.eth)\
**Post date:** [August 31, 2022, 12:46pm UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/3 "2022-08-31T12:46:53Z")

</div>

I previously thought there was a data availability problem to update incremental merkle trees in a gas efficient manner. I didn’t know about this [implementation](https://github.com/privacy-scaling-explorations/zk-kit/blob/8ef49c1a0303a1ce401eae14a6f68e7dc63365ee/packages/incremental-merkle-tree.sol/contracts/IncrementalBinaryTree.sol#L131) used in semaphore. I thought removing profiles would be more gas intensive, but it’s just double the on-chain storage requirements which isn’t that bad.

Yeah actually semaphore could work.

---

<div class="post-metadata">

**Author:** ![santisiri](https://gov.proofofhumanity.id/user_avatar/gov.proofofhumanity.id/santisiri/32/5_2.png) [@santisiri](https://gov.proofofhumanity.id/u/santisiri)\
**Post date:** [August 31, 2022, 2:55pm UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/4 "2022-08-31T14:55:58Z")

</div>

please check [https://twitter.com/santisiri/status/1564614674309586949?s=20&t=4K0c2Sv86p\_2tO7EItFqCw](https://twitter.com/santisiri/status/1564614674309586949?s=20&t=4K0c2Sv86p_2tO7EItFqCw) if you haven’t already!

---

<div class="post-metadata">

**Author:** ![Joss](https://gov.proofofhumanity.id/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Joss](https://gov.proofofhumanity.id/u/Joss)\
**Post date:** [August 31, 2022, 3:18pm UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/5 "2022-08-31T15:18:23Z")

</div>

Thanks! (I didn’t know of this.) However, from my understanding (I need to read more), Semaphore NFT Group only supports one-shot messages. My wrapper goes further and allows a user to have a long-lived anonymous presence within a service.

---

<div class="post-metadata">

**Author:** ![shotaro.eth](https://gov.proofofhumanity.id/user_avatar/gov.proofofhumanity.id/shotaro.eth/32/63_2.png) [@shotaro.eth](https://gov.proofofhumanity.id/u/shotaro.eth)\
**Post date:** [August 31, 2022, 3:56pm UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/6 "2022-08-31T15:56:03Z")

</div>

yeah, its a bit more complicated to update the state. The group mutates overtime as POH members are challenged and removed from the POH group.

Whenever the group mutates, all proofs of membership in the previous group state and associated merkle root should be invalidated, and everyone needs to submit proofs of membership in the updated group. I need to learn more about how nullifiers are managed. It’s not sufficient to take a snapshot of POH and anonymize that. You need to update the anonymity set as it mutates, otherwise sybils begin to accumulate. You can’t just give everyone an NFT, take a snapshot, and anonymize that set.

---

<div class="post-metadata">

**Author:** ![Joss](https://gov.proofofhumanity.id/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Joss](https://gov.proofofhumanity.id/u/Joss)\
**Post date:** [August 31, 2022, 4:19pm UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/7 "2022-08-31T16:19:28Z")

</div>

I’ve addressed this problem by making users place a deposit when they register their identity commitment. When their PoH registration is no longer valid, their deposit becomes fair game, and anybody can submit a proof to have the user removed, and at the same time receive the deposit as a reward. (This can be automated to make sure removal from the group is punctual.)

In this model, a user need only register in the group once, or again if their PoH registration was expired and then renewed. The user’s group inclusion is valid across all services that support the interface. I’ve added an auxiliary ZKP which allows the user to use one identity nullifier to maintain identity proxies on a per service basis. (Each service sees an anonymous stable userId that is sandboxed to the service.)

---

<div class="post-metadata">

**Author:** ![ptaq.eth](https://gov.proofofhumanity.id/user_avatar/gov.proofofhumanity.id/ptaq.eth/32/994_2.png) [@ptaq.eth](https://gov.proofofhumanity.id/u/ptaq.eth)\
**Post date:** [October 18, 2022, 12:50am UTC](https://gov.proofofhumanity.id/t/an-anonymous-poh-wrapper/2364/8 "2022-10-18T00:50:58Z")

</div>

Awesome. [https://app.sismo.io/](https://app.sismo.io/) has something similar as well and it comes with a [non-transferable NFT as a badge](https://opensea.io/assets/matic/0xF12494e3545D49616D9dFb78E5907E9078618a34/10000009).
