Skip to content

Conversation

@jlm0
Copy link
Collaborator

@jlm0 jlm0 commented Dec 4, 2025

Summary

  • Add aa-porto-7702 example demonstrating Para + Porto integration
  • Upgrade Para EOA to Porto Smart Account using EIP-7702
  • Includes working raw signing integration (bypasses EIP-191 prefix)
  • Account persistence detection via RelayActions.getKeys
  • Comparison UI showing EOA vs Smart Account features

Key Implementation Details

  • Raw Signing: Uses para.signMessage({ walletId, messageBase64 }) instead of viemAccount.signMessage() to avoid EIP-191 prefix
  • Porto Relay: Must use https://rpc.porto.sh endpoint for Porto-specific methods
  • Upgrade Flow: prepareUpgradeAccount() → sign digests → upgradeAccount()
  • Persistence: Check getKeys() on mount to detect already-upgraded accounts

Test Plan

  • Run yarn install and yarn dev
  • Connect with Para (email/social login)
  • Click "Upgrade to Porto Smart Account"
  • Verify Porto account details display with authorized keys
  • Refresh page and verify account state persists

jlm0 added 3 commits December 4, 2025 16:52
Add aa-porto-7702 example demonstrating:
- Para authentication with Porto smart account upgrade
- Raw signing integration (bypassing EIP-191 prefix)
- RelayActions.prepareUpgradeAccount + upgradeAccount flow
- Account persistence check via RelayActions.getKeys
- Comparison UI showing EOA vs Smart Account features
@jlm0 jlm0 merged commit 9a6bbc6 into 2.0.0-alpha Dec 4, 2025
1 check passed
@jlm0 jlm0 deleted the porto branch December 5, 2025 15:34
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