Skip to content

refactor: rename multisig APIs to configurable accounts (TIP-1107) - #508

Merged
jxom merged 2 commits into
mainfrom
jxom/elegant-franklin-k65hrf
Oct 11, 2026
Merged

jxom merged 2 commits into
mainfrom
jxom/elegant-franklin-k65hrf

Conversation

@jxom

@jxom jxom commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

What is this PR solving?

This PR renames the Tempo multisig account APIs to configurable accounts to align with TIP-1107 and TIP-1114 specifications. The changes reflect a broader protocol shift from "native multisig" terminology to "configurable accounts," which better describes accounts with weighted owners and adjustable thresholds.

Key Changes

API Renames:

  • MultisigConfig → AccountConfig
  • MultisigSimulation → AccountSimulation
  • MultisigOperation → AccountOperation, and RpcSchemaTempo.Multisig → RpcSchemaTempo.Account, with the relay methods renamed from multisig_* to account_*. Every configurable transaction carries its config, so the relay layer serves every configurable account, single-owner accounts included.
  • Signature envelope type 'multisig' → 'configurable'
  • Signature type byte identifier serializedMultisigType → serializedConfigurableType

Configuration Updates:

  • Raised AccountConfig.maxThreshold from 8 to 255 per TIP-1114
  • Added AccountConfig.update to derive the config left by an owner update
  • Updated documentation to reflect configurable account semantics
  • Renamed error types for consistency. The tempo:multisig:* hash domains are unchanged, so derived addresses, commitments and digests are unchanged.

Documentation & Tests:

  • Renamed guide from "Multisig Transactions" to "Configurable Accounts"
  • Updated all test files and test fixtures to use new naming
  • Updated Zod schemas for validation
  • Updated RPC schema mappings (node wire format still uses multisig internally)

Files Modified

  • Core APIs: AccountConfig.ts, AccountOperation.ts, AccountSimulation.ts (renamed from MultisigConfig.ts, MultisigOperation.ts, MultisigSimulation.ts)
  • Signature handling: SignatureEnvelope.ts, KeyAuthorization.ts
  • Tests: All test files updated to use new naming
  • Documentation: Guide pages and inline documentation updated
  • Zod schemas: Updated validation schemas for new types
  • Package exports: Updated index.ts and z.ts to export new names

Backward Compatibility

This is a breaking change for consumers using the multisig APIs. The wire format for RPC communication with Tempo nodes continues to use multisig terminology internally (keyType: 'multisig', multisigSimulation), but the Ox library now exposes configurable naming throughout. Relays must move to the account_* methods together with their clients.

Test Plan

Existing test suite covers the renamed APIs:

  • AccountConfig.test.ts - Configuration validation and serialization
  • AccountOperation.test.ts - Operation hashing, approval selection, and serialization
  • AccountSimulation.test.ts - RPC simulation utilities
  • SignatureEnvelope.test.ts - Signature envelope serialization
  • KeyAuthorization.test.ts - Key authorization binding
  • TransactionRequest.test.ts - Transaction request handling
  • Zod schema tests validate round-trip encoding/decoding

All tests pass with the new naming conventions.

https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm

Aligns the Tempo account APIs with TIP-1107, which brands accounts with
weighted owners and a rotatable configuration as configurable accounts
(including single-owner accounts), keeping "multisig" for the
multi-owner approval flow.

- MultisigConfig -> AccountConfig, MultisigSimulation -> AccountSimulation
  (core and zod), with matching error names.
- SignatureEnvelope.Multisig -> Configurable (type 'configurable'),
  MultisigRpc -> ConfigurableRpc, sortMultisigApprovals -> sortApprovals,
  InvalidMultisigApprovalError -> InvalidApprovalError.
- KeyAuthorization and TransactionRequest key type 'multisig' ->
  'configurable', and TransactionRequest.multisigSimulation ->
  accountSimulation. The node's wire names are unchanged: RPC keyType
  'multisig' and multisigSimulation are mapped in toRpc/fromRpc.
- Kept MultisigOperation and RpcSchemaTempo.Multisig, which mirror the
  multisig_* relay methods, and the tempo:multisig:* hash domains.
- Raised AccountConfig.maxThreshold from 8 to 255 to match TIP-1114,
  which now allows any threshold reachable by at most eight approvals.
- Added AccountConfig.update to derive the config left by updateConfig
  (same salt, next version, canonical owners).
- Renamed the guide, test helpers, and vitest project; added a redirect
  for the old guide URL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
ox Error Error Oct 9, 2026 4:19am UTC

Request Review

@jxom jxom changed the title Rename multisig APIs to configurable accounts (TIP-1107) refactor: rename multisig APIs to configurable accounts (TIP-1107) Oct 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T04:17:24.816866Z 8c9073c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 8c9073c

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 252395f363

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,25 @@
---
"ox": patch

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Mark the API rename as a major change

Publishing this as patch would release the breaking removal of MultisigConfig/MultisigSimulation, sortMultisigApprovals, and the 'multisig' domain discriminant as an automatically accepted 1.8.x update. Existing consumers can therefore receive the release through a caret range and immediately encounter missing exports or incompatible types; this migration changeset should request a major version bump rather than a patch.

AGENTS.md reference: AGENTS.md:L122-L125

Useful? React with 👍 / 👎.

Every configurable transaction carries its config, so the relay layer
serves every configurable account, single-owner accounts included, not
just multi-owner coordination.

- MultisigOperation -> AccountOperation (core and zod), with matching
  error names and messages.
- RpcSchemaTempo.Multisig -> RpcSchemaTempo.Account, and the multisig_*
  methods -> account_approveKeyAuthorization,
  account_approveRawTransaction(Sync), account_getConfig and
  account_getOperation.
- Updated the changeset and the AGENTS.md note. Node wire names
  (keyType 'multisig', multisigSimulation) and the tempo:multisig:* hash
  domains are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm
@jxom
jxom merged commit 42a84e6 into main Oct 11, 2026
15 of 16 checks passed
@jxom
jxom deleted the jxom/elegant-franklin-k65hrf branch October 11, 2026 20:38
@github-actions github-actions Bot mentioned this pull request Oct 11, 2026

This branch had an error being deployed

1 failed deployment
Preview — 8c9073c5 Deployed Oct 9, 2026 by vercel[bot]
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