Controlling contracts with multisig

In the previous chapters, we looked at different contracts that maintain access rights for a contract, such as  Ownable.sol, MinterRole.sol, and PauserRole.sol. These access roles are basically given to an EOA. However, if the private key of that EOA account is stolen, then an attacker can potentially steal funds or perform malicious activities on the contracts.

If you transfer these kinds of access rights to an already deployed multisig address, more security will be provided. To do this, you can perform the following steps:

  1. Deploy a new multisig wallet and initialize it with the required number of owners.
  2. Ensure that the multisig wallet deployment is working and that the required number of owners are ...

Get Mastering Blockchain Programming with Solidity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.