Skip to content

feat: implement canonical nonce strategy across contracts#440

Open
Cedarich wants to merge 20 commits intoRemitwise-Org:mainfrom
Cedarich:feature/workspace-canonical-nonce-strategy
Open

feat: implement canonical nonce strategy across contracts#440
Cedarich wants to merge 20 commits intoRemitwise-Org:mainfrom
Cedarich:feature/workspace-canonical-nonce-strategy

Conversation

@Cedarich
Copy link
Copy Markdown

  • Implements a canonical nonce model (per-caller sequential nonce + used-nonce log) via remitwise_common::nonce and applies it consistently across remittance_split , savings_goals , and orchestrator .
  • Updates orchestrator entrypoints to use consistent nonce read → execute → increment semantics and adds get_nonce for callers.
  • Adds/updates integration tests covering nonce advancement, replay rejection, wrong nonce rejection, and savings snapshot replay protection.
  • Updates THREAT_MODEL.md to document the canonical nonce strategy and security assumptions.
  • Fixes a duplicate proptest dev-dependency entry in insurance/Cargo.toml

closes #340

@Baskarayelu
Copy link
Copy Markdown
Contributor

@Cedarich Please resolve the conflicts

@Cedarich
Copy link
Copy Markdown
Author

Cedarich commented Apr 1, 2026

@Baskarayelu On it boss 🙏🏿

@Cedarich
Copy link
Copy Markdown
Author

Cedarich commented Apr 1, 2026

@Baskarayelu Conflicts resolved

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.

Implement canonical nonce strategy shared across contracts

3 participants