Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic arrays in o1js #1848

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open

Dynamic arrays in o1js #1848

wants to merge 28 commits into from

Conversation

querolita
Copy link
Member

@querolita querolita commented Oct 2, 2024

Addressing #1086, based on #633

Making this public as WIP to receive early feedback

@querolita querolita changed the title DynamicArrays in o1js ArrayLists in o1js Oct 7, 2024
@mitschabaude
Copy link
Collaborator

mitschabaude commented Oct 11, 2024

@querolita @Trivo25 maybe of interest: I created quite polished general-purpose types for both static and dynamic arrays in this PR: zksecurity/mina-credentials#25

They made it pretty easy to implement dynamic-length sha256.

I think they could serve as a starting point for arrays in o1js that are (even) better designed than the D. Gretzke repo!

@querolita querolita changed the title ArrayLists in o1js Dynamic arrays in o1js Oct 17, 2024
@querolita querolita marked this pull request as ready for review October 17, 2024 17:51
@querolita querolita changed the base branch from v1 to main November 7, 2024 08:41
@querolita querolita requested review from a team as code owners November 7, 2024 08:41
@querolita
Copy link
Member Author

querolita commented Nov 12, 2024

TODO

  • Include complexity of each function
  • Improve efficiency making further use of cached masked positions
  • Randomized tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants