Skip to content

refactor!: ephemeral arrays#22162

Open
mverzilli wants to merge 11 commits intomerge-train/fairiesfrom
martin/volatile-arrays
Open

refactor!: ephemeral arrays#22162
mverzilli wants to merge 11 commits intomerge-train/fairiesfrom
martin/volatile-arrays

Conversation

@mverzilli
Copy link
Copy Markdown
Contributor

@mverzilli mverzilli commented Mar 30, 2026

Implements a new type of array especially designed to use in oracle interfaces between Aztec.nr and PXE. The memory space of of these arrays is isolated by contract call frame and lives in memory. This makes them faster to work with, but it also removes the need for a lot of boilerplate to instantiate them, use them as params, and ultimately dispose of them.

Closes F-136

@mverzilli mverzilli marked this pull request as ready for review March 31, 2026 13:08
@mverzilli mverzilli requested a review from nventuro as a code owner March 31, 2026 13:08
@mverzilli mverzilli changed the base branch from next to merge-train/fairies March 31, 2026 13:08
@mverzilli mverzilli removed the request for review from nventuro March 31, 2026 13:17
Comment on lines +15 to +16
/// Ephemeral arrays are designed for transient communication between PXE (TypeScript) and contracts (Noir) during
/// simulation, for example, note validation requests or event validation responses.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they are useful for more than that, but I want to grow a bit more confidence on the API and oracle design before encouraging people to use it happily

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.

1 participant