Skip to content

Conversation

@howydev
Copy link
Contributor

@howydev howydev commented Sep 29, 2025

Funders and paymasters needed a nonce to prevent accounts from replaying intents on paymasters and funders

This created a bunch of nonce invalidation duplication - the paymaster, funder and account all needed to invalidate their own nonce because they cant trust each other

Moving this to the OC allows us to get away with just invalidating a single nonce. This reduces gas by:

  1. ~1k for all flows
  2. ~22k for all app sponsor flows
  3. another ~22k reduction for funder flows (not captured in benchmarks)

@github-actions
Copy link
Contributor

🤖 Bytecode changes detected! EIP-712 domain versions have been automatically updated for: IthacaAccount,Orchestrator,SimpleFunder

@howydev
Copy link
Contributor Author

howydev commented Sep 29, 2025

#392

@howydev howydev force-pushed the howy/update-benchmarks branch from 7ea2e15 to ed932e5 Compare October 9, 2025 05:04
@howydev howydev added this to the v1.0.0 milestone Oct 9, 2025
howydev and others added 12 commits October 9, 2025 01:16
* feat: simplify multichain nonce design

* chore: readd merkle verification prefix

* chore: undo blank line addns

* chore: lint

* .

* ~50 failing tests down to 5

* down to 1 failing test

* fixed failing test

* chore: remove console logs and bench

* .

* Update test/Base.t.sol

* Update src/Orchestrator.sol

* Update test/utils/mocks/MockPayerWithSignatureOptimized.sol

* chore: final cleanup, rebench

* Update src/Orchestrator.sol

* chore: bump contract versions due to bytecode changes - Contracts updated: IthacaAccount,Orchestrator,SimpleFunder,Simulator

* chore: cleanup

* rebase

* fix

---------

Co-authored-by: GitHub Action <[email protected]>
@howydev howydev force-pushed the howy/orchestrator-nonce branch from 893c356 to d50a531 Compare October 9, 2025 05:18
@howydev howydev changed the base branch from howy/update-benchmarks to v1.0.0 October 9, 2025 05:24
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

🤖 Bytecode changes detected! EIP-712 domain versions have been automatically updated for: IthacaAccount,Orchestrator,SimpleFunder

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.

2 participants