Skip to content

Improve nonce and commitment validation to prevent stale or replayed contract actions #544

Description

@grantfox-oss

Strengthen nonce and commitment enforcement so repeated or stale executions cannot produce inconsistent contract state across action flows.

  • Affected files: app/contract/contracts/Folder/src/nonce.rs, app/contract/contracts/Folder/src/nonce_test.rs, app/contract/contracts/Folder/src/commitment.rs, app/contract/contracts/Folder/src/commitment_test.rs, app/contract/contracts/Folder/src/lib.rs, app/contract/contracts/Folder/src/storage.rs, app/contract/contracts/Folder/src/test_context.rs, app/contract/contracts/Folder/src/metadata.rs
  • Acceptance criteria:
    • Nonce and commitment checks reject stale or duplicated requests before state mutation occurs.
    • Replay-safe behavior is verified in both standard and failure-recovery execution paths.
    • Contract docs and developer notes explain which actions depend on nonce or commitment verification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions