Skip to content

Commit

Permalink
Merge pull request #6225 from jmcook1186/multisig
Browse files Browse the repository at this point in the history
add info on multisigs to /smart-contracts/index.md
  • Loading branch information
minimalsm authored May 6, 2022
2 parents ccadf23 + 40280dc commit 04c3fde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/developers/docs/smart-contracts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ There are ways to get around this using [oracles](/developers/docs/oracles/).

Another limitation of smart contracts is the maximum contract size. A smart contract can be a maximum of 24KB or it will run out of gas. This can be circumnavigated by using [The Diamond Pattern](https://eips.ethereum.org/EIPS/eip-2535).

## Multisig contracts {#multisig}

Multisig (multiple-signature) contracts are smart contract accounts that require multiple valid signatures to execute a transaction. This is very useful for avoiding single points of failure for contracts holding substantial amounts of ether or other tokens. Multisigs also divide responsibility for contract execution and key management between multiple parties and prevent the loss of a single private key leading to irreversible loss of funds. For these reasons, multisig contracts can be used for simple DAO governance. Multisigs require N signatures out of M possible acceptable signatures (where N ≤ M, and M > 1) in order to execute. `N = 3, M = 5` and `N = 4, M = 7` are commonly used. A 4/7 multisig requires four out of seven possible valid signatures. This means the funds are still retrievable even if three signatures are lost. In this case it also means that a majority of key-holders must agree and sign in order for the contract to execute.

## Smart contract resources {#smart-contract-resources}

**OpenZeppelin Contracts -** **_Library for secure smart contract development._**
Expand Down

0 comments on commit 04c3fde

Please sign in to comment.