Multisig approve call binding - Require inner call payload in approve#622
Merged
Conversation
Approvers now resubmit the proposal's encoded inner call, which must be byte-equal to the payload stored at the proposal id. This binds each approval signature to the actual call being approved, so offline/cold wallet signers can decode and inspect what they sign instead of trusting an opaque proposal id. Bumps transaction_version (breaking encoding change for approve). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
illuzen
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Multisig::approvenow takes the proposal's encoded inner call as a parameter and rejects the approval (CallMismatch) unless it is byte-equal to the payload stored at(multisig_address, proposal_id).This binds each approval signature to the actual call being approved: a cold wallet decodes the inner call directly from the extrinsic it signs, instead of trusting the hot/mobile wallet's claim about what an opaque proposal id contains. Wallets fetch
Proposals(multisig_address, proposal_id).callfrom state and embed it in the approve params.CallMismatchis appended after existing error variants so error indices are stable. No migration needed.MaxCallSizeand charged by the length fee; the O(n) comparison is covered by the existing call-size-linear weight component.transaction_versionbumped 2 → 3 (breaking encoding change forapprove); wallet integrations must pass the new parameter.transaction_extensions.rschange is test-only (a runtime test constructs an approve call).