Repository navigation
feat(tempo): add multisig configuration witnesses - #412
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
There was a problem hiding this comment.
💡 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, |
There was a problem hiding this comment.
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 👍 / 👎.
| Array.isArray(version) || | ||
| Hex.size(version) > 8 || |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 👍 / 👎.
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.