Skip to content

chore: Add safe constructor and validation fns to signed block#2382

Merged
bobbinth merged 12 commits intonextfrom
sergerad-signed-block-new
Feb 3, 2026
Merged

chore: Add safe constructor and validation fns to signed block#2382
bobbinth merged 12 commits intonextfrom
sergerad-signed-block-new

Conversation

@sergerad
Copy link
Copy Markdown
Contributor

@sergerad sergerad commented Feb 1, 2026

Context

Signed block has a nominal implementation and we need to expand it so that the node can validate signed block contents cleanly.

Changes

  • Add SignedBlock::new() as a safe alternative to new_unchecked()
  • Add additional validation logic and pub fns to SignedBlock.

@sergerad sergerad added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Feb 1, 2026
@bobbinth bobbinth self-requested a review February 2, 2026 18:04
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 left a few small comments inline.

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!

@sergerad sergerad changed the title chore: Add constructor to signed block chore: Add safe constructor and validation fns to signed block Feb 2, 2026
@sergerad sergerad force-pushed the sergerad-signed-block-new branch from c0f7210 to aa5f97c Compare February 2, 2026 22:32
@sergerad
Copy link
Copy Markdown
Contributor Author

sergerad commented Feb 2, 2026

I had to force push new commits to add gpg signatures. I don't know why my commits sometimes don't have them.

@bobbinth bobbinth merged commit ef58815 into next Feb 3, 2026
17 checks passed
@bobbinth bobbinth deleted the sergerad-signed-block-new branch February 3, 2026 19:26
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants