Skip to content

Root history + expiry, to fix mempool invalidations #98

Closed

Description

@m1guelpf

Is your feature request related to a problem? Please describe.
Adding a new member to a Semaphore group changes the root, invalidating any currently-generated proofs. This makes it so that a transaction submitted with a valid proof can become invalid if another transaction modifying a group is submitted first.

Describe the solution you'd like
Root history kind of solves this (by accepting the root as well as the proof, and ensuring the root was part of the group at some point), but pretty much gets rid of the ability to remove members from a project (since they can always generate a proof against a root where they were still in the group).

You can reduce this problem by making roots expire after a certain time, making sure that transactions with a valid proof stuck in the mempool still succeed, but that a member cannot submit proofs days/hours after being removed from a group.

I'd be interested in contributing code for this, either to the core or as an optional template, if the Semaphore team is interested in it.

Additional context
Basic root history was removed recently (#95), but I couldn't find any discussion or info as to why.

Activity

  1. added
    feature 🚀This is enhancing something existing or creating something new
    on May 24, 2022
  2. moved this to 🗒 Todo in Semaphore V2on Aug 29, 2022
  3. linked a pull request that will close this issueMerkle tree expiries #124on Sep 9, 2022
  4. Repository owner moved this from 🗒 Todo to ✔️ Done in Semaphore V2on Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature 🚀This is enhancing something existing or creating something newgood first issueGood for newcomers

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions