feat: introduce standard NetworkAccountTarget attachment#2257
Merged
PhilippGackstatter merged 8 commits intonextfrom Jan 15, 2026
Merged
feat: introduce standard NetworkAccountTarget attachment#2257PhilippGackstatter merged 8 commits intonextfrom
NetworkAccountTarget attachment#2257PhilippGackstatter merged 8 commits intonextfrom
Conversation
sergerad
reviewed
Jan 13, 2026
sergerad
approved these changes
Jan 13, 2026
bobbinth
approved these changes
Jan 13, 2026
Contributor
bobbinth
left a comment
There was a problem hiding this comment.
Looks good! Thank you! I left just a couple of small comments inline.
cff70aa to
e22c488
Compare
7726b77 to
e8d4f86
Compare
This was referenced Jan 15, 2026
afa7789
pushed a commit
to afa7789/miden-base
that referenced
this pull request
Jan 15, 2026
) * feat: Implement `NetworkAccountTarget` * chore: Let SPAWN note create output notes with attachment * chore: test creating note with NetworkAccountTarget attachment * chore: add changelog * fix: don't use super::* import * feat: Add `WellKnownNoteAttachment` * chore: Use 8-bit tag for exec hint; remove `AfterBlockNumber` * chore: improve network account target error
afa7789
pushed a commit
to afa7789/miden-base
that referenced
this pull request
Jan 15, 2026
) * feat: Implement `NetworkAccountTarget` * chore: Let SPAWN note create output notes with attachment * chore: test creating note with NetworkAccountTarget attachment * chore: add changelog * fix: don't use super::* import * feat: Add `WellKnownNoteAttachment` * chore: Use 8-bit tag for exec hint; remove `AfterBlockNumber` * chore: improve network account target error
Farukest
added a commit
to Farukest/miden-base
that referenced
this pull request
Jan 31, 2026
Move NoteExecutionHint type from miden-protocol to miden-standards following the usage pattern established in PR 0xMiden#2257 where NoteExecutionHint was removed from NoteMetadata and is now primarily used by NetworkAccountTarget in miden-standards. Changes: - Add execution_hint.rs to miden-standards/src/note/ - Remove execution_hint.rs from miden-protocol/src/note/ - Update error message in NoteError to use literal values instead of NoteExecutionHint constants (to avoid circular dependency) - Update imports in miden-agglayer and miden-testing to use miden-standards::note::NoteExecutionHint Closes 0xMiden#2281
4 tasks
Farukest
added a commit
to Farukest/miden-base
that referenced
this pull request
Jan 31, 2026
Move NoteExecutionHint type from miden-protocol to miden-standards following the usage pattern established in PR 0xMiden#2257 where NoteExecutionHint was removed from NoteMetadata and is now primarily used by NetworkAccountTarget in miden-standards. Changes: - Add execution_hint.rs to miden-standards/src/note/ - Remove execution_hint.rs from miden-protocol/src/note/ - Update error message in NoteError to use literal values instead of NoteExecutionHint constants (to avoid circular dependency) - Update imports in miden-agglayer and miden-testing to use miden-standards::note::NoteExecutionHint Closes 0xMiden#2281
Farukest
added a commit
to Farukest/miden-base
that referenced
this pull request
Feb 2, 2026
Move NoteExecutionHint type from miden-protocol to miden-standards following the usage pattern established in PR 0xMiden#2257 where NoteExecutionHint was removed from NoteMetadata and is now primarily used by NetworkAccountTarget in miden-standards. Changes: - Add execution_hint.rs to miden-standards/src/note/ - Remove execution_hint.rs from miden-protocol/src/note/ - Update error message in NoteError to use literal values instead of NoteExecutionHint constants (to avoid circular dependency) - Update imports in miden-agglayer and miden-testing to use miden-standards::note::NoteExecutionHint Closes 0xMiden#2281
PhilippGackstatter
added a commit
that referenced
this pull request
Feb 3, 2026
* refactor: move NoteExecutionHint to miden-standards Move NoteExecutionHint type from miden-protocol to miden-standards following the usage pattern established in PR #2257 where NoteExecutionHint was removed from NoteMetadata and is now primarily used by NetworkAccountTarget in miden-standards. Changes: - Add execution_hint.rs to miden-standards/src/note/ - Remove execution_hint.rs from miden-protocol/src/note/ - Update error message in NoteError to use literal values instead of NoteExecutionHint constants (to avoid circular dependency) - Update imports in miden-agglayer and miden-testing to use miden-standards::note::NoteExecutionHint Closes #2281 * refactor: address PR review feedback for NoteExecutionHint - Remove NoteExecutionHintTagOutOfRange error variant from miden-protocol - Use NoteError::other for tag validation error in execution_hint.rs - Make TAG constants pub(crate) instead of pub * Update crates/miden-standards/src/note/execution_hint.rs --------- Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
afa7789
pushed a commit
to afa7789/miden-base
that referenced
this pull request
Mar 9, 2026
* refactor: move NoteExecutionHint to miden-standards Move NoteExecutionHint type from miden-protocol to miden-standards following the usage pattern established in PR 0xMiden#2257 where NoteExecutionHint was removed from NoteMetadata and is now primarily used by NetworkAccountTarget in miden-standards. Changes: - Add execution_hint.rs to miden-standards/src/note/ - Remove execution_hint.rs from miden-protocol/src/note/ - Update error message in NoteError to use literal values instead of NoteExecutionHint constants (to avoid circular dependency) - Update imports in miden-agglayer and miden-testing to use miden-standards::note::NoteExecutionHint Closes 0xMiden#2281 * refactor: address PR review feedback for NoteExecutionHint - Remove NoteExecutionHintTagOutOfRange error variant from miden-protocol - Use NoteError::other for tag validation error in execution_hint.rs - Make TAG constants pub(crate) instead of pub * Update crates/miden-standards/src/note/execution_hint.rs --------- Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a standard
NetworkAccountTargetattachment for use in network transactions. It replacesNoteTag::NetworkAccount(removed in #2219) to identify notes targeted at network accounts. To create a "targeted network note", i.e. a note intended to be consumed by a network account, this attachment should be used instead of usingNoteTag::NetworkAccount.Miden node can try decoding a
NoteAttachment(accessible inNoteMetadata) into aNetworkAccountTargetto check if a note is targeted at a network account. An alternative way would be to check ifNoteAttachment::attachment_type() == NetworkAccountTarget::ATTACHMENT_TYPEand only then attempt decoding.Tagging @Mirko-von-Leipzig and @sergerad for review since this type will be used in network transactions. Please let me know if the process I described would work or if you need any additional APIs exposed, etc.
part of #2109