Skip to content

feat(tempo): support v2 keychain signature type#178

Open
jxom wants to merge 3 commits intomainfrom
jmoxey/v2-keychain-auth
Open

feat(tempo): support v2 keychain signature type#178
jxom wants to merge 3 commits intomainfrom
jmoxey/v2-keychain-auth

Conversation

@jxom
Copy link
Member

@jxom jxom commented Feb 27, 2026

Summary

Adds support for V2 keychain signatures following the tempoxyz/tempo PR #2867 specification.

Changes

  • New signature type byte 0x04 for V2 keychain signatures (V1 remains 0x03)
  • KeychainVersion type ('v1' | 'v2') and version field on Keychain / KeychainRpc types, defaulting to 'v2'
  • SignatureEnvelope.serialize / deserialize handle both 0x03 (V1) and 0x04 (V2) type bytes
  • TxEnvelopeTempo.getSignPayload accepts a from option for V2 keychain signing, computing keccak256(sigHash || from) to bind the signature to the user account

Breaking Changes

  1. KeyAuthorization.chainId is now required (previously optional, defaulted to 0n)
  2. Keychain signatures default to V2 (0x04). To use legacy V1 format, set version: 'v1'

See .changeset/v2-keychain-auth.md for migration examples.

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ox Ready Ready Preview, Comment Feb 27, 2026 2:48am

Request Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/ox@178

commit: dcf1762

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