semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

two-step admin update

Open 0xDatapunk opened this issue 1 year ago • 0 comments

the best practice for updateGroupAdmin is through a two-step update: existing admin assign the new potential admin to a new address the new address accept the admin role. This is to avoid exisitng admin making a mistake and assign it to a wrong address

per @blockdev: You can take inspiration from ownable2step in OZ

https://github.com/semaphore-protocol/semaphore/blob/8eb19e83fda62644872b2fcfbd85011d3b2c21e2/packages/contracts/contracts/base/SemaphoreGroups.sol#L58

0xDatapunk avatar Mar 11 '24 17:03 0xDatapunk