Skip to content

Multisig Accounts

Pallet Purpose
D9MultisigRegistry Register the multisig so signatories can discover it in D9 Wallet
Multisig (Substrate pallet-multisig) Hold the proposal deposit, collect approvals, and execute the call
D9MultisigRegistry::register_multisig(signatories, threshold)
D9MultisigRegistry::deregister_multisig(multisig_id)
  1. Sort all signatory public keys in strictly increasing byte order and remove duplicates.
  2. Derive the multisig account ID using standard Substrate multisig derivation.
  3. Have any signatory submit register_multisig with the full member list and threshold (2 <= threshold <= count).
Multisig::approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)
Multisig::as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)
Multisig::cancel_as_multi(threshold, other_signatories, timepoint, call_hash)
  1. Initiate: The first signatory calls approve_as_multi with maybe_timepoint = None and the call_hash. This reserves a deposit:

    Deposit = DepositBase + DepositFactor × threshold
    = 1.0 D9 + 0.1 D9 × threshold
  2. Approve: Each subsequent signatory calls approve_as_multi using the timepoint recorded by the first approval.

  3. Execute: The final signatory calls as_multi with the full encoded call bytes and a max_weight sufficient for execution.

  4. Cancel: Call cancel_as_multi. Upon execution or cancellation, the deposit is returned to the depositor.