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 |
1. Register a shared account
Section titled “1. Register a shared account”D9MultisigRegistry::register_multisig(signatories, threshold)D9MultisigRegistry::deregister_multisig(multisig_id)- Sort all signatory public keys in strictly increasing byte order and remove duplicates.
- Derive the multisig account ID using standard Substrate multisig derivation.
- Have any signatory submit
register_multisigwith the full member list and threshold (2 <= threshold <= count).
2. Approve and execute a call
Section titled “2. Approve and execute a call”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)-
Initiate: The first signatory calls
approve_as_multiwithmaybe_timepoint = Noneand thecall_hash. This reserves a deposit:Deposit = DepositBase + DepositFactor × threshold= 1.0 D9 + 0.1 D9 × threshold -
Approve: Each subsequent signatory calls
approve_as_multiusing thetimepointrecorded by the first approval. -
Execute: The final signatory calls
as_multiwith the full encodedcallbytes and amax_weightsufficient for execution. -
Cancel: Call
cancel_as_multi. Upon execution or cancellation, the deposit is returned to the depositor.
