What is a multisig in smart contracts?

A multisig, short for multi-signature wallet, is a smart contract account that executes a transaction only after a set number of its owners approve it, written M of N. A 2-of-3 multisig has three keys and needs any two of them to move funds (Chainlink), so one stolen or lost key is not enough on its own.

Last updated . 2 minute read. By the QuillAudits Team.

How does a multisig work?

An owner proposes a transaction, the others approve it by signing or by calling the contract, and once approvals reach the threshold it can be executed. Protocols put treasuries, upgrade rights and admin roles behind one because actions on the target then need consent from several parties (ethereum.org).

Setup Keys an attacker must control Keys you can lose and still sign
2 of 3 2 1
3 of 5 3 2
4 of 7 4 3
1 of N 1 N minus 1

Lose more keys than the right-hand column allows and, without a recovery path, the funds are locked, as Chainlink notes for a 2-of-3 wallet that loses two (Chainlink).

What does a multisig not protect against?

A multisig spreads trust across several keys, but nothing in it checks what the owners sign. If owners approve calldata they haven't decoded, or keep their keys on the same kind of device, the threshold falls with them. The wallet contract itself can also fail. Parity multi-sig wallets deployed after 20 July 2017 depended on a shared library contract that nobody had initialized. On 6 November 2017 a user initialized it, became its owner and destroyed it, leaving 587 wallets holding 513,774.16 ETH unable to move their funds (Parity).

  • Owners are separate people on separate hardware wallets.
  • Each owner decodes the calldata on a second device before signing.
  • A timelock sits between the multisig and anything users would want to exit before.
  • The wallet contract is widely used, audited and fully initialized.

QuillShield is building the security layer between AI and money, so you can keep shipping between audits.

Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

  1. 1Sign up and import a repo
  2. 2See the exact price before anything is charged
  3. 3Approve it, and the audit starts