Implementing multisig wallets in solidity
A multisig wallet is a smart contract that lives in the Ethereum blockchain. This wallet defines a set of rules to manage and transfer funds and requires approval from more than one participant before each action. This reduces risk if one person is incapacitated or loses their keys.
In this recipe, you will learn to create a basic multisig wallet and perform transactions using it.
Getting ready
The wallet is built on Ethereum and uses solidity as the language. You need to have a working installation of Ethereum for deploying and testing the code. You also need to have good knowledge of writing smart contracts to understand the solidity code explained in this recipe.
How to do it...
Every multisig wallet should have the following basic components:
- A list of addresses who have permission to do something
- A set of rules for approval
- An option to receive Ether
- Ways to submit/approve a request
- Create a contract that can act as the
Multisig
wallet. Create a mapping...