Skip to content

feat(tempo): add resolveAccount hooks#576

Closed
parvahuja wants to merge 2 commits into
wevm:mainfrom
parvahuja:parv/resolve-account
Closed

feat(tempo): add resolveAccount hooks#576
parvahuja wants to merge 2 commits into
wevm:mainfrom
parvahuja:parv/resolve-account

Conversation

@parvahuja

Copy link
Copy Markdown
Contributor

Depends on #571. This branch is stacked on the channel store work so the session hook can see cached channel state.

What

  • Added one Tempo resolveAccount hook shared by charge and session clients.
  • Used the returned account for charge proof/transaction signing and session open/recover/voucher planning.
  • Accepted canonical TIP-1020 primitive session voucher signatures for secp256k1, p256, and webAuthn accounts.

Why

Wallet and account SDKs need to decide which account signs each Tempo action, especially for access-key backed charge and session flows, without mppx depending on a specific account SDK.

Validation

  • VITE_TEMPO_NETWORK=none pnpm exec vp test --run src/tempo/client/Charge.test.ts src/tempo/session/client/Session.test.ts src/tempo/session/precompile/Voucher.test.ts
  • VITE_TEMPO_NETWORK=none pnpm exec vp test --run src/tempo/session/ src/tempo/client/Charge.test.ts
  • pnpm check:types
  • pnpm check:ci
  • pnpm audit --ignore-registry-errors

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@576

commit: 753c6ea

@parvahuja parvahuja closed this Jun 22, 2026
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.

1 participant