Skip to content

Multisig approve call binding - Require inner call payload in approve#622

Merged
n13 merged 2 commits into
mainfrom
multisig-approve-call-binding
Jul 23, 2026
Merged

Multisig approve call binding - Require inner call payload in approve#622
n13 merged 2 commits into
mainfrom
multisig-approve-call-binding

Conversation

@n13

@n13 n13 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Multisig::approve now 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).call from state and embed it in the approve params.

  • Fail-closed check only — no changes to storage, fees, deposits, thresholds, signer checks, call indices, or weight formulas; CallMismatch is appended after existing error variants so error indices are stable. No migration needed.
  • The extra parameter is bounded by the existing MaxCallSize and charged by the length fee; the O(n) comparison is covered by the existing call-size-linear weight component.
  • transaction_version bumped 2 → 3 (breaking encoding change for approve); wallet integrations must pass the new parameter.
  • Tests: all existing approve call sites updated, plus mismatch and cross-proposal-payload rejection tests. The transaction_extensions.rs change is test-only (a runtime test constructs an approve call).

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>
@n13 n13 changed the title Require inner call payload in multisig approve Multisig approve call binding - Require inner call payload in approve Jul 22, 2026
@n13
n13 merged commit 1a6de86 into main Jul 23, 2026
5 checks passed
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