# Multisig v2: safe multisig

Bittensor has two multisig types. A v2 (safe) multisig address can never be a classical public key, so a quantum attacker cannot sign as it directly. Same members, different address.

_Source: https://taostats.io/docs/concepts/security/multisig-v2_

_Last reviewed: 2026-12-01_

Bittensor has two kinds of multisig. Both work the same way: M of N members approve a call, and the call runs as the multisig account. They differ only in how the address is derived. Taostats labels them **v1** and **v2**:

| | v1 (legacy) | v2 (safe) |
|---|---|---|
| Extrinsics | `as_multi`, `approve_as_multi`, `cancel_as_multi`, `as_multi_threshold_1`, `poke_deposit` | The same five, ending in `_safe` |
| Address | A hash of the members and threshold | A hash of the members and threshold that is guaranteed not to be a valid Ed25519 or Sr25519 public key |
| Can a quantum attacker sign as the multisig directly? | In principle, yes | No |
| btcli and SDK name | `legacy` | `safe` |

If the M-of-N idea is new to you, start with the [multisig tutorial](https://taostats.io/docs/concepts/security/multisig-tutorial).

## Why v2 exists

A v1 multisig address is a 32-byte hash. Nothing stops those 32 bytes from also being a valid classical public key. Today no one can find the private key behind such a hash, but a large enough quantum computer could, in principle, work back from a public key to its private key. An attacker who did that could sign as the multisig itself and skip the quorum entirely.

A v2 address closes that path. The chain only accepts an address that decodes as neither an Ed25519 point nor an Sr25519 (Ristretto) point, so no private key for it exists to be found. The only way to act as a v2 multisig is through its members' approvals.

## Safe address, not yet a quantum-safe multisig

A v2 address removes the shortcut. It does not change who can approve. The multisig is only as strong as its members:

- **Every member a quantum-resistant wallet:** the multisig is quantum-resistant.
- **Some classical (Sr25519 or Ed25519) members:** a quantum attacker who breaks M classical member keys can approve calls as the multisig. Fewer than M classical members cannot reach the threshold on their own.
- **A proxy on the multisig:** the proxy can act for it. A classical proxy key brings back the same risk.

For a fully quantum-resistant multisig, create one in v2 from [quantum-resistant wallets](https://taostats.io/docs/concepts/protocol-changes/quantum-wallets) (ML-DSA or Falcon) and give it no classical proxy. A v1 multisig is never quantum-resistant, even when every member is.

## Same members, two different multisigs

The same set of wallets and the same threshold give **two different addresses**: one v1, one v2. They are separate accounts with separate balances, stake and pending operations. Both can exist and be used at the same time.

- **Funds do not move between them on their own.** To move from v1 to v2, the v1 multisig sends funds to the v2 address like any other transfer. Stake has to be moved as well.
- **Calls must use the matching family.** A pending v2 operation can only be approved, executed, cancelled or re-deposited with the `_safe` calls. A plain call with the same members targets the v1 address: it opens a separate v1 operation, or a cancel or deposit update fails with `NotFound`.
- **Check the address before you fund it.** Before sending funds, confirm the address your wallet shows matches the type you intend to use.

## How the v2 address is derived

| Step | v1 | v2 |
|---|---|---|
| Input | `"modlpy/utilisuba"`, the sorted members, the threshold | `"subtensor/safe-multisig/v1"`, the sorted members, the threshold, an attempt byte |
| Hash | `blake2_256` | `blake2_256`, attempts 0 to 63 in order |
| Result | The hash | The first hash that is neither a valid Ed25519 nor Sr25519 public key |

The `v1` inside the v2 domain string is the derivation scheme's own version label. It is not the Taostats multisig version.

The chain also checks the member list on every v2 call. There must be 2 to 100 members, sorted with no duplicates, and the threshold must be between 1 and the member count. If none of the 64 attempts gives a valid address, the call fails with `SafeDerivationFailed`. No fallback to a v1 address exists.

## The `_safe` extrinsics

| Call | Index | Does |
|---|---|---|
| `as_multi_threshold_1_safe` | 5 | 1-of-N: runs the call immediately as the v2 multisig |
| `as_multi_safe` | 6 | Opens, approves or executes an operation, passing the full call |
| `approve_as_multi_safe` | 7 | Approves using only the call hash |
| `cancel_as_multi_safe` | 8 | Cancels a pending v2 operation. Only the member who opened it can cancel |
| `poke_deposit_safe` | 9 | Recalculates the deposit for a pending v2 operation |

The arguments are the same as their v1 counterparts (see [Extrinsics: multisig](https://taostats.io/docs/understanding-taostats/extrinsics/multisig-extrinsics)). The chain emits the same events for both types.

Other rules are the same for both versions:

| Item | Rule |
|---|---|
| Deposit | 0.132 TAO plus 0.032 TAO per unit of threshold, reserved from the member who opens the operation and returned when it executes or is cancelled |
| Weight | v2 calls add a fixed derivation weight, so they cost slightly more |
| Proxies | Only an `Any` proxy can submit multisig calls, v1 or v2 |

## Create a v2 multisig

With btcli, a new saved multisig is v2 by default:

```bash
btcli multisig add team-treasury --threshold 2 --signatories alice,bob,carol
btcli multisig add old-treasury --threshold 2 --signatories alice,bob,carol --account-mode legacy
```

Use `--account-mode legacy` only to keep working with an existing v1 multisig. Approvals, execution and cancellation use the mode stored with each saved multisig.

In the Python SDK, pass the mode explicitly. Leaving it out gives v1:

```python
ms = await client.multisig(signatories, threshold, account_mode="safe")
```

## Find a multisig's version in the Taostats API

[`GET /v1/multisigs`](https://taostats.io/docs/api-reference/multisigs/get-multisigs) returns `multisig_version` on every result: `v1` for legacy, `v2` for safe. Query by `multisig_address` or by `signatory`; exactly one is required. A query by signatory can return both a v1 and a v2 multisig with identical members and threshold.

```bash
curl -H "Authorization: $TAOSTATS_API_KEY" \
  "https://api.taostats.io/v1/multisigs?signatory=<ss58>"
```

> [!NOTE]
> **Sources:** subtensor `main` (spec 497, live on Finney): `pallets/multisig/src/lib.rs` (`safe_multi_account_id`, call indexes 5 to 9), `primitives/hashed/src/safe.rs` (`MULTISIG_DOMAIN`, `MAX_DERIVATION_ATTEMPTS`), `pallets/multisig/src/safe_tests.rs`, `runtime/src/lib.rs` (deposits, `MaxSignatories`, `SafeDerivationWeight`), `runtime/src/proxy_filters`, `docs/guides/wallet-crypto-types.mdx`, `sdk/python/bittensor/cli/commands/multisig.py`. API field from the Taostats OpenAPI `MultisigItem.multisig_version`.
