Skip to content

refactor(rpc): normalize NoteSyncRecord with NoteMetadataHeader#1837

Open
SantiagoPittella wants to merge 6 commits intonextfrom
santiagopittella-note-metadata-header-response
Open

refactor(rpc): normalize NoteSyncRecord with NoteMetadataHeader#1837
SantiagoPittella wants to merge 6 commits intonextfrom
santiagopittella-note-metadata-header-response

Conversation

@SantiagoPittella
Copy link
Collaborator

closes #1720

  • Refactor NoteSyncRecord proto message to be NoteMetadataHeader + NoteInclusionInBlockProof instead of carrying the full NoteMetadata.
  • Add NoteMetadataHeader proto message containing the fixed-size metadata fields.
  • Add NoteAttachmentKind proto enum mapping to miden_protocol::note::NoteAttachmentKind.
  • Clients that need the full NoteMetadata (including attachment) should use GetNotesById.

@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-note-metadata-header-response branch from facb2c5 to d198527 Compare March 25, 2026 17:36
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 small comments inline.

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.

Replace full NoteMetadata with a fixed-size header in NoteSyncRecord

2 participants