Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info on multisigs to /smart-contracts/index.md #6225

Merged
merged 2 commits into from
May 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jmcook1186 marked this conversation as resolved.
Show resolved Hide resolved

"Mulisigs" are contracts that require multiple valid signatures to execute. This is very useful for avoiding single points of failure for contracts holding susbtantial 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 are often used in DAO governance. Multisigs require a majority N of M possible signatures in order to execute. `N = 3, M = 5` and `N = 4, M = 7` are commonly used. A 4/7 multisig requires 4 out of 7 possible valid signatures. This means the funds are still retrievable even if 3 signatures are lost. It also means that a majority of key-holders must agree and sign in order for the contract to execute. Multisig contracts can be used as extra-secure wallets.
jmcook1186 marked this conversation as resolved.
Show resolved Hide resolved

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

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