Skip to content

chore: add standardized NetworkAccountNoteAllowlist slot for network account detection#2883

Merged
PhilippGackstatter merged 10 commits intonextfrom
pgackst-network-account-detection
May 8, 2026
Merged

chore: add standardized NetworkAccountNoteAllowlist slot for network account detection#2883
PhilippGackstatter merged 10 commits intonextfrom
pgackst-network-account-detection

Conversation

@PhilippGackstatter
Copy link
Copy Markdown
Contributor

@PhilippGackstatter PhilippGackstatter commented May 7, 2026

Added standardized NetworkAccountNoteAllowlist slot for detecting network accounts as part of #2285. The motivation for this was outlined in #2817 (comment).

This is the first of two (?) steps towards removing AccountStorageMode::Network.

Also implements reconstructing such a storage slot from account storage. This would eventually use AccountStorageInterface (#2623).

Changes internal representation to use NoteScriptRoot for more type safety.

Requesting review from @Mirko-von-Leipzig mainly for the overall approach, not necessarily the details, though a review is of course appreciated 🙂

@PhilippGackstatter PhilippGackstatter added the pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority label May 7, 2026
@PhilippGackstatter PhilippGackstatter requested review from Mirko-von-Leipzig, bobbinth and partylikeits1983 and removed request for bobbinth May 7, 2026 13:10
Copy link
Copy Markdown
Contributor

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Looks cool!

Comment thread crates/miden-standards/src/account/auth/network_account/auth_network_account.rs Outdated
@PhilippGackstatter
Copy link
Copy Markdown
Contributor Author

After addressing @Mirko-von-Leipzig's comment, I noticed that we're using Vec for the list of script roots, but since it translates to a map, i.e. has set semantics, the better data structure is probably a BTreeSet, so I changed to that.

Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! I reviewed mostly non-test code and left one non-blocking comment inline.

Comment thread crates/miden-standards/src/account/auth/network_account/note_allowlist.rs Outdated
@PhilippGackstatter PhilippGackstatter added this pull request to the merge queue May 8, 2026
Merged via the queue into next with commit 8daa09a May 8, 2026
18 checks passed
@PhilippGackstatter PhilippGackstatter deleted the pgackst-network-account-detection branch May 8, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants