Guardians
Guardians are used with Etherspot to add an extra layer of security to your smart contract wallet.Adding a new guardian as an owner
To add a new guardian to a wallet, the wallet owner can call this function from the Etherspot smart contract wallet address:An owner itself can just add a new owner by calling:
Adding a new owner as a guardian
- A guardian calls guardianPropose(address _newOwner). This creates a proposal to add a new owner to the wallet.
- Other guardians then have to call guardianCosign(). The guardian that created the proposal cannot call this as their vote is already recorded in the proposal. This function then checks whether the minimum quorum threshold for the proposal has been met or not.
- If yes, then the proposal is passed and the new owner is added to the wallet.
- If no, then nothing happens.