Skip to content

fix: use session-specific EIP-712 signing without MeeUserOp timestamps#201

Open
fichiokaku wants to merge 3 commits into
developfrom
fix/session-supertx-typehash
Open

fix: use session-specific EIP-712 signing without MeeUserOp timestamps#201
fichiokaku wants to merge 3 commits into
developfrom
fix/session-supertx-typehash

Conversation

@fichiokaku
Copy link
Copy Markdown
Contributor

@fichiokaku fichiokaku commented Apr 6, 2026

PR-Codex overview

This PR enhances the signSessionQuote and signQuote functionalities by introducing support for MEE version 2.2.1 and above, allowing for personal signing on raw hashes for simple mode using smart sessions. It also refines signature handling based on session details.

Detailed summary

  • Added imports for versionIsAtLeast, isP256Signer, and MEEVersion.
  • Updated signSessionQuote to handle MEE >= 2.2.1 with personal signing.
  • Enhanced signQuote to check for session details and use NoMee flow for signing.
  • Adjusted signature construction for MEE >= 2.2.1 to omit prefixes when applicable.
  • Improved documentation for signing processes and session expiry handling.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@fichiokaku fichiokaku requested a review from vr16x April 6, 2026 11:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

size-limit report 📦

Path Size
core (esm) 71.53 KB (+0.15% 🔺)
core (cjs) 86.61 KB (+0.12% 🔺)
bundler (tree-shaking) 7 KB (0%)
paymaster (tree-shaking) 543 B (0%)

return await signQuote(client, {
quote: quote as GetQuotePayload
})
const simpleQuote = quote as GetQuotePayload
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use this inside the signQuote itself only for smart sessions flow ?

Currently the legacy smart sessions flow might break because it uses EIP 712 and our server goes with NoMeeMode.

Adding this inside signQuote with a special flag for smart sessions will apply this for all the smart sessions flows

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