Skip to content

StateSet primitive #455

Open
Open

Description

@rpanic

Build a new State primitive for Runtimes (and protocol hooks) that behaves like a Set.

A example for usage of this would be storing the "set of UTXOs" or "set of nullifiers".
Generalized, it's useful where the existence of a specific entity is unique and that's the only "fact" we are interested in.

@state() myStateSet = new StateSet(Field)
stateSet.add(value) => void
stateSet.contains(value) => Bool
stateSet.remove(value) => Bool

Behind the scenes, it will just be a StateMap<Field, Value> where the key is the hash of the value

Activity

  1. linked a pull request that will close this issueImplemented AppendOnlyStateSet #457on Mar 16, 2026
  2. moved this to In Progress in Main Boardon Mar 16, 2026
  3. self-assigned this
    on Mar 16, 2026
  4. yamimaio commented on Apr 20, 2026

    @yamimaio

    Work is mostly done, we need to add tests

  5. moved this from In Progress to Todo in Main Boardon Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions