Skip to content

Issue 264 payload version - #338

Merged
Calebux merged 3 commits into
zintarh:mainfrom
Gentleslyl2006:issue-264-payload-version
Jul 30, 2026
Merged

Issue 264 payload version#338
Calebux merged 3 commits into
zintarh:mainfrom
Gentleslyl2006:issue-264-payload-version

Conversation

@Gentleslyl2006

Copy link
Copy Markdown
Contributor

Title: Add payload version byte to mint signature payload

Description:

  • Introduce MINT_SIGNATURE_PAYLOAD_VERSION = 1 for mint signature payloads.
  • Prepend version byte to contract-side payload construction in mint.rs.
  • Update all test signing helpers in security_test.rs, test.rs, and prop_test.rs to include the version byte when generating expected mint payloads.
  • Document the versioned payload format in README.md, SECURITY_RECOMMENDATIONS.md, and ERRORS.md.
  • Clarify migration expectations for backend signers: new mint signatures must include the payload version byte, or verification will fail.

Testing:

- Implement upgrade() function with admin authorization
- Emit event containing requested WASM hash before upgrade
- Add tests for upgrade event emission and authorization
- Document event schema for operators
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Gentleslyl2006 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Calebux
Calebux merged commit 5eeef95 into zintarh:main Jul 30, 2026
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.

security: Add payload version byte to mint signatures

2 participants