Cobo Safe Technical Documentation
Cobo Safe
is an open-source access control framework for smart contract wallets. Developed by Cobo, this framework allows the Owner
of a smart contract wallet to delegate certain operations (e.g., transferring tokens, interacting with specific smart contracts) to the Delegate
. The Delegate
can then perform authorized wallet operations on behalf of the Owner
.
The Cobo Safe
framework includes the following components:
Cobo Account: The wrapper of a smart contract wallet in the
Cobo Safe
framework.Owner: A privileged user who owns the smart contract wallet. The
Owner
can delegatePermissions
to other users (i.e.,Delegates
) in aCobo Safe
framework.Delegate: A user of least privilege in a
Cobo Safe
framework. TheDelegates
can only perform wallet operations as authorized by theOwner
.Permission: The authority granted within a
Cobo Account
. In other words, a user's ability to initiate certain Ethereum transactions from the smart contract wallet.Role: Each
Role
is associated with a set ofPermissions
. TheOwner
can pre-configure a set ofPermissions
for eachRole
, and then delegate aRole
to theDelegate
with the help of aRole Manager
.Role Manager: A module that is used to manage each
Delegate
and itsRole.
Only theOwner
is authorized to modify the settings of aRole Manager
. In general, eachCobo Account
will only have oneRole Manager
.Authorizer: A module that is used to examine the
Permissions
granted to aDelegate
. TheAuthorizer
will check the transactions sent by theDelegate
according to the configuration of theOwner
. Unauthorized transactions will be rejected by theAuthorizer
.
Cobo Safe
ensures an easily adaptable and modular access control framework by combining built-in and customized Authorizers
.
By leveraging Cobo Safe
, Cobo Argus V2 effectively implements role-based access controls (RBAC) to enhance the transparency and flexibility in DeFi investments.
Last updated