Skip to content

Conversation

@PhilippGackstatter
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter commented Jan 13, 2026

  • Changes the commitment of NoteAttachmentArray to be built over the elements padded to the next multiple of 8 (double word size). This is equivalent to how NoteInputs are built. This should make it possible to use the efficient pipe_double_words_preimage_to_memory when working on Compute attachment_size during output_note::set_attachment #2266. This is done now so that working on that issue may be a non-breaking or less breaking change.
    • Turns out this isn't necessary and was reverted.
  • Renames (see also feat: add tx kernel support for NoteAttachment #2249 (comment))
    • NoteAttachmentType -> NoteAttachmentScheme
    • NoteAttachmentType::untyped -> NoteAttachmentScheme::none
    • NoteAttachmentContentType -> NoteAttachmentKind
    • "attachment_types" -> "attachment_kind_scheme"
      • An alternative would be "attachment metadata", though it could be easily confused as the attachment of the note metadata. Mostly internal anyway.
  • Updates the parameter order in set_attachment and related APIs from kind, scheme, ATTACHMENT to scheme, kind, ATTACHMENT so that kind and ATTACHMENT are grouped together. This makes more sense since kind identifies the structure or ATTACHMENT and scheme is a separate value. If you disagree with this change, its a single commit that can be easily reverted.

Note: One more PR is needed to document attachments in the docs.

closes #2109

@PhilippGackstatter PhilippGackstatter changed the title chore: rename NoteAttachmentType and NoteAttachmentContentType chore: rename NoteAttachmentType and NoteAttachmentContentType Jan 13, 2026
Copy link
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 left a couple of comments inline, the main one about reversing padding for the note attachment array commitment.

@PhilippGackstatter PhilippGackstatter force-pushed the pgackst-remove-aux-and-exec-hint branch from aa0554f to 60fa121 Compare January 15, 2026 08:44
Base automatically changed from pgackst-remove-aux-and-exec-hint to next January 15, 2026 08:59
@PhilippGackstatter PhilippGackstatter force-pushed the pgackst-note-attachment-cleanup branch from 3869233 to b77f611 Compare January 15, 2026 09:13
@PhilippGackstatter PhilippGackstatter merged commit 778130d into next Jan 15, 2026
17 checks passed
@PhilippGackstatter PhilippGackstatter deleted the pgackst-note-attachment-cleanup branch January 15, 2026 09:29
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Jan 15, 2026
…xMiden#2268)

* feat: Pad elements in `NoteAttachmentArray` before committing

* chore: Rename `NoteAttachmentType` -> `NoteAttachmentScheme`

* chore: rename "attachment type info" to "attachment kind scheme"

* chore: Rename `NoteAttachmentContentType` -> `NoteAttachmentKind`

* chore: rename attachment scheme untyped to unknown

* chore: Swap kind and scheme in procedure signatures

* chore: add changelog

* Revert "feat: Pad elements in `NoteAttachmentArray` before committing"

This reverts commit cfe9702.

* chore: rename `NoteAttachmentScheme::unknown` to `none`

* fix: more content type -> attachment kind renames
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Jan 15, 2026
…xMiden#2268)

* feat: Pad elements in `NoteAttachmentArray` before committing

* chore: Rename `NoteAttachmentType` -> `NoteAttachmentScheme`

* chore: rename "attachment type info" to "attachment kind scheme"

* chore: Rename `NoteAttachmentContentType` -> `NoteAttachmentKind`

* chore: rename attachment scheme untyped to unknown

* chore: Swap kind and scheme in procedure signatures

* chore: add changelog

* Revert "feat: Pad elements in `NoteAttachmentArray` before committing"

This reverts commit cfe9702.

* chore: rename `NoteAttachmentScheme::unknown` to `none`

* fix: more content type -> attachment kind renames
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.

Refactor aux into NoteAttachment and simplify NoteTag

3 participants