Skip to content

feat(tempo): add multisig configuration witnesses - #412

Merged
jxom merged 4 commits into
0.xfrom
jxom/tip-1061-config-witness-v0
Aug 26, 2026
Merged

jxom merged 4 commits into
0.xfrom
jxom/tip-1061-config-witness-v0

Conversation

@jxom

@jxom jxom commented Aug 26, 2026

Copy link
Copy Markdown
Member

Adds complete TIP-1061 configuration witnesses to multisig configs and signatures, including versioned commitments, unified envelope encoding, RPC conversion, nested witnesses, and frozen protocol vectors.

Matches tempoxyz/tempo#7241.

@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ox Ready Ready Preview Aug 26, 2026 1:53am

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 5d5e36d

@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: 32859e48e5

ℹ️ 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".

const config = MultisigConfig.from(operation.config)
const config = MultisigConfig.from({
...operation.config,
version: operation.configVersion,

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 Convert config versions before returning operation RPC

For every operation, this now adds a bigint at config.version; toRpc subsequently spreads the normalized operation and converts only configVersion, leaving the nested bigint unchanged. As a result, passing MultisigOperation.toRpc(...) to a standard JSON-RPC transport fails during JSON.stringify with a BigInt serialization error. Convert the nested config to its RPC representation (or omit its redundant version) before returning the RPC object.

Useful? React with 👍 / 👎.

Comment on lines +800 to +801
Array.isArray(version) ||
Hex.size(version) > 8 ||

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject noncanonical version integers during decoding

When the witness version is encoded as 0x00, 0x0001, or any other leading-zero value of at most eight bytes, this width-only check accepts it, fromTuple converts it to a valid bigint, and the subsequent config assertion passes. This contradicts toTuple's canonical integer encoding—where zero is empty and nonzero values are minimally encoded—so deserialize accepts a noncanonical signature that changes bytes when reserialized and may be rejected by protocol consumers. Reject nonempty versions whose first byte is zero.

Useful? React with 👍 / 👎.

@@ -0,0 +1,13 @@
---
'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 Release the breaking multisig API as a minor

This change removes the released initialConfig and init envelope inputs, replaces the getSignPayload version argument, makes complete configuration witnesses mandatory, and changes the multisig wire/RPC shapes. Publishing those changes as a patch means consumers taking routine patch upgrades can encounter compile-time failures and incompatible serialized signatures; this changeset should use a minor release and clearly identify the breaking migration.

Useful? React with 👍 / 👎.

@jxom
jxom merged commit 200d9a7 into 0.x Aug 26, 2026
12 checks passed
@jxom
jxom deleted the jxom/tip-1061-config-witness-v0 branch August 26, 2026 01:52
@github-actions github-actions Bot mentioned this pull request Aug 26, 2026

This branch was successfully deployed

1 active deployment
Preview — 5d5e36dc Deployed Aug 26, 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.

1 participant