Skip to content

feat(tempo): add resolveAccount hooks#1

Closed
parvahuja wants to merge 2 commits into
parv/session-channel-storefrom
parv/resolve-account
Closed

feat(tempo): add resolveAccount hooks#1
parvahuja wants to merge 2 commits into
parv/session-channel-storefrom
parv/resolve-account

Conversation

@parvahuja

Copy link
Copy Markdown
Owner

Depends on the channel-store branch. This PR is intentionally stacked so the diff contains only the resolveAccount work.

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

@parvahuja parvahuja force-pushed the parv/resolve-account branch from 753c6ea to 258a895 Compare June 23, 2026 02:33
Comment thread src/tempo/client/Charge.ts Outdated
@parvahuja parvahuja force-pushed the parv/resolve-account branch 2 times, most recently from b0bc6e9 to fd7c9bf Compare June 24, 2026 20:50
@parvahuja parvahuja force-pushed the parv/session-channel-store branch from b36e3e2 to da6bc9b Compare June 24, 2026 22:56
* feat(session): add pluggable channel store

* fix(session): derive voucher authority from account

* fix(session): guard manual channel updates

---------

Co-authored-by: Parv Ahuja <17094219+parvahuja@users.noreply.github.com>
@parvahuja parvahuja force-pushed the parv/resolve-account branch from fd7c9bf to b6a2120 Compare June 25, 2026 05:08
@parvahuja parvahuja force-pushed the parv/resolve-account branch from b6a2120 to 95251e4 Compare June 25, 2026 17:33
@parvahuja parvahuja closed this Jun 25, 2026
@parvahuja

Copy link
Copy Markdown
Owner Author

Replaced by wevm#579

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